/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f8fafc;
  color: #132536;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #E5A600;
  text-decoration: none;
  transition: color 0.24s cubic-bezier(.44,0,.56,1);
}
a:hover, a:focus {
  color: #21405C;
}
ul, ol {
  margin-left: 1.2em;
  padding: 0 0 0 1.2em;
}
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

:root {
  --primary: #21405C;
  --primary-hover: #2c5176;
  --secondary: #D4D9DE;
  --accent: #E5A600;
  --accent-hover: #f7be2d;
  --danger: #E52E00;
  --success: #00b977;
  --white: #fff;
  --black: #101820;
  --shadow-card: 0 4px 24px 0 rgba(33,64,92,0.09);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #243446;
}
strong {
  color: var(--accent);
  font-weight: 700;
}

/* CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.text-section {
  background: #f3f7fe;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(229,166,0,0.04);
  padding: 32px 16px;
}

/* FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 225px;
  flex: 1 1 270px;
  transition: box-shadow .2s cubic-bezier(.44,0,.56,1), transform .15s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(229,166,0,0.19);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: #fcfcfd;
  border-radius: 16px;
  box-shadow: 0 4px 14px 0 rgba(33, 64, 92, 0.13);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 740px;
  color: #17181d;
  border-left: 8px solid var(--accent);
}
.testimonial-card strong {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0 12px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-list article {
  background: #fffceb;
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 18px 18px 13px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px 0 rgba(33,64,92,0.065);
}

.editorial-highlight {
  margin-top: 22px;
  padding: 14px 18px;
  background: #e1f2ff;
  border-left: 6px solid var(--primary);
  border-radius: 12px;
  font-size: 1.04rem;
  color: var(--primary);
}

/* NAVIGATION */
header {
  background: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(33,64,92,0.08);
  position: sticky;
  top: 0;
  z-index: 85;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 22px;
}
header a {
  color: var(--accent) !important;
  font-weight: 600;
  margin-right: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 1.1px;
  font-size: 1.05rem;
  transition: color 0.18s cubic-bezier(.44,0,.56,1);
}
header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
header nav a {
  margin-right: 20px;
}
header nav a:last-child {
  margin-right: 0;
}
header .cta.primary {
  margin-left: 16px;
  color: white !important;
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 32px 0;
  margin-top: 80px;
  font-size: 1em;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer nav a {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 5px 0;
  font-size: 1.04rem;
  transition: color 0.18s cubic-bezier(.44,0,.56,1);
}
footer nav a:hover,
footer nav a:focus {
  color: var(--white);
  text-decoration: underline;
}
footer .contact-info p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .contact-info img {
  width: 20px; height: 20px;
}


/* CTA BUTTON STYLES */
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent);
  border-radius: 55px;
  color: var(--primary);
  padding: 14px 32px;
  font-size: 1.16rem;
  letter-spacing: 1.8px;
  box-shadow: 0 2px 10px 0 rgba(229,166,0,0.06);
  margin-top: 19px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow .15s, transform .1s;
  border: none;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent-hover);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(229,166,0,0.19);
  transform: scale(1.03);
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 9px 0 rgba(33, 64, 92, 0.09);
  margin-bottom: 24px;
  font-size: 1rem;
  overflow: hidden;
}
thead {
  background: var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
  color: var(--primary);
}
thead th {
  padding: 16px 8px;
  font-weight: 800;
  text-align: left;
  letter-spacing: 1.1px;
  border-bottom: 2.5px solid var(--accent);
}
tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #e7eefa;
  font-size: 1rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #FFFBEB;
  transition: background 0.17s;
}

/* FILTERS, TABLE HIGHLIGHTS */
section #vergleichstabelle .content-wrapper span,
section #vergleichstabelle .content-wrapper strong {
  background: #e1f2ff;
  color: var(--primary);
  padding: 1px 9px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.01em;
  margin-right: 6px;
}

/* CONTACT INFO */
.contact-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info p,
.contact-info {
  color: #243446;
  font-size: 1em;
}
.contact-info img {
  width: 18px;
  height: 18px;
}

/****************************
  Responsive & Flexbox Layouts
*****************************/
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 100%;
    gap: 0;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 6px;
  }
  .content-wrapper, .card-container, .content-grid, .feature-item {
    gap: 12px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    gap: 13px;
    padding: 13px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
    margin-bottom: 13px;
    max-width: 100%;
    font-size: 1em;
  }
}

/* --------------------------------- */
/*         MOBILE NAVIGATION         */
/* --------------------------------- */
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 9px 17px;
  font-size: 2rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: background 0.16s, color 0.18s;
  z-index: 123;
}
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100%;
  background: var(--primary);
  z-index: 2000;
  transform: translateX(-120%);
  transition: transform 0.38s cubic-bezier(.14,0,.7,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: var(--accent);
  border: none;
  align-self: flex-end;
  margin: 10px 15px 0 0;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--white);
  background: var(--danger);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 18px 0 0 0;
  padding: 0 28px 18px 28px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 14px 0 7px 0;
  border-bottom: 1.5px solid #34567720;
  text-decoration: none;
  transition: color 0.19s;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

@media (min-width: 950px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 949px) {
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}


/*---------------------------------
   Cookie Consent Banner & Modal
-----------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 20px 21px 20px;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 -3px 23px 0 rgba(33,64,92,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2100;
  gap: 16px;
  font-size: 1.07rem;
  animation: fadein-banner 0.7s cubic-bezier(.32,.6,.38,.96);
}
@keyframes fadein-banner {
  0% { opacity: 0; transform: translateY(100px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner strong {
  color: var(--accent);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 7px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 27px;
  padding: 10px 19px;
  font-size: 1.04em;
  margin: 0 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(229,166,0,0.10);
  transition: background 0.16s, color 0.14s, transform 0.09s;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--accent-hover);
  color: var(--primary);
  transform: scale(1.05);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.reject:hover {
  filter: brightness(0.9);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: #e3e7ec;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 33, 48, 0.41);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-modal 0.36s cubic-bezier(.32,.6,.38,.96);
}
@keyframes fadein-modal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 24px 22px;
  max-width: 94vw;
  width: 360px;
  box-shadow: 0 8px 48px 0 rgba(33,64,92,0.19);
  color: #17222f;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.9rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: var(--secondary);
  position: relative;
  transition: background .16s;
  margin-left: 10px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-switch {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.15s, background 0.12s;
}
.cookie-toggle input:checked ~ .cookie-toggle-switch {
  left: 18px;
  background: var(--success);
}
.cookie-modal .cookie-category-label {
  font-weight: 700;
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 7px;
}
.cookie-modal .cookie-btn {
  min-width: 80px;
}

/****************************
   Utilities / Micro Effects
*****************************/
.shadow-smooth {
  box-shadow: 0 2px 10px 0 rgba(229,166,0,0.09) !important;
}
.rounded-12 {
  border-radius: 12px !important;
}
.gap-16 {
  gap: 16px !important;
}

/* Miscellaneous Interactive Elements */
section ul li {
  margin-bottom: 9px;
  font-size: 1.03em;
}

/* Animations for micro-interaction */
.cta.primary:active, .card:active {
  transform: scale(0.97);
}

.card:focus {
  outline: 2px solid var(--accent);
}


/* --- Ensure nothing ever overlaps --- */
main, header, footer, .container, .section, .card, .content-wrapper {
  z-index: 1;
  position: relative;
}

/* SCROLLBAR STYLE (modern browsers only) */
::-webkit-scrollbar {
  width: 11px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
  border: 2px solid var(--secondary);
}

/* HIDING FOCUS OUTLINES ONLY FOR MOUSE USERS */
:focus:not(:focus-visible) {
  outline: none;
}

/********************************************/
/*            Accessibility/Contrast         */
/********************************************/
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #1b2631 !important;
}

/************************************
   Print-friendly tweaks (optional)
*************************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important;} 
  main { padding: 0; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}
