/* --- RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #FFFFFF;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
strong { font-weight: 600; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #176B87;
  --secondary: #F7F7F7;
  --accent: #157D44;
  --white: #FFFFFF;
  --gray-light: #F5F6FA;
  --gray-dark: #2E3640;
  --shadow: 0 2px 12px 0 rgba(20,40,90,0.06);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
p, ul, ol { font-size: 1rem; color: #222; margin-bottom: 18px; }
.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px !important;
  list-style: disc inside;
  color: #222;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* --- UNIVERSAL CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .container {
    padding-left: 10px; padding-right: 10px;
  }
}

/* --- HEADER NAVIGATION --- */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(23,107,135,0.08);
  position: relative;
  z-index: 31;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: flex-start;
  padding: 26px 0 22px 0;
}
.main-nav > a {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  letter-spacing: 0.02em;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav > a:hover, .main-nav > a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.main-nav > a.cta {
  background: var(--primary);
  color: var(--white);
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 700;
  margin-left: 10px;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 8px 0 rgba(23,107,135,0.10);
}
.main-nav > a.cta:hover, .main-nav > a.cta:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 10px 0 rgba(21,125,68,0.16);
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 22px;
  display: block;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  padding: 0.4em 0.65em;
  border: none;
  cursor: pointer;
  z-index: 32;
  margin-left: auto;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
}
.mobile-menu {
  display: none;
}
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px; top: 18px;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(23,107,135,0.96);
    flex-direction: column;
    align-items: flex-start;
    z-index: 1001;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.47,0,0.75,0.72), opacity 0.32s;
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    align-self: flex-end;
    margin: 28px 24px 14px 0;
    background: transparent;
    color: var(--white);
    font-size: 2.2rem;
    border: none;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.18s;
  }
  .mobile-menu-close:focus,
  .mobile-menu-close:hover {
    color: #b3e1d0;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    align-items: flex-start;
    padding: 30px 36px;
    margin-top: 24px;
  }
  .mobile-nav a {
    color: var(--white);
    font-size: 1.18rem;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 500;
    padding: 13px 0;
    width: 100%;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #CCFAEE;
    border-bottom: 2px solid #b5fae4;
  }
}

/* --- HERO SECTION, BANNERS --- */
.hero-section {
  background: linear-gradient(120deg, #F7F7F7 80%, #eaf5fa 100%);
  padding: 58px 0 40px 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-section .content-wrapper {
  max-width: 650px;
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  color: var(--primary);
}
.hero-section p {
  color: #303030;
  margin-bottom: 18px;
}
.hero-section .cta {
  margin-top: 16px;
}

.cta-banner {
  background: var(--primary);
  color: var(--white);
  margin-bottom: 0;
  padding: 36px 0;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta-banner h3 {
  margin: 0 0 12px 0;
  color: var(--white);
}
.cta-banner .cta {
  background: var(--accent);
  color: var(--white);
}

/* --- SECTIONS & FLEX LAYOUTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.features-section, .testimonials-section {
  background: var(--secondary);
  border-radius: 12px;
}
.text-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  width: 100%;
  justify-content: flex-start;
}
.feature {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  background: var(--white);
  border-radius: 14px;
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.feature img {
  width: 34px; height: 34px;
  margin-bottom: 4px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 24px 0 rgba(23,107,135,0.12);
  transform: translateY(-4px) scale(1.03);
}
.feature h3 { margin: 0; font-size: 1.15rem; }
.feature p { color: #333; }

.services-overview ul,
.text-section ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.services-overview ul li,
.text-section ul li {
  margin-bottom: 7px;
  list-style: disc inside;
}

.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;
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
  }
}

/* --- TESTIMONIALS --- */
.testimonials-section h2, .testimonials-section h1 { color: var(--primary); }
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  box-shadow: 0 2px 14px 0 rgba(23,107,135,0.07);
  border-radius: 12px;
  padding: 24px 22px;
  margin-bottom: 24px;
  max-width: 560px;
  color: #222;
}
.testimonial-card p {
  color: #1A1A1A;
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.testimonial-card span {
  color: var(--gray-dark);
  font-size: 0.99rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  opacity: 0.85;
}

/* --- BUTTONS --- */
.cta, .btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 28px;
  padding: 13px 34px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px 0 rgba(23,107,135,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.16s, transform 0.16s;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(21,125,68,.11);
  transform: translateY(-2px) scale(1.035);
}

/* --- CARDS, CARD-CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(23,107,135,0.13);
  transform: translateY(-3px) scale(1.03);
}

/* --- TABLES (Preise) --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 25px;
  font-size: 1rem;
}
thead {
  background: #F2FAFC;
}
thead th {
  text-align: left;
  padding: 13px 10px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
tbody tr {
  background: var(--white);
}
tbody tr:nth-child(even) {
  background: #F7F7F7;
}
td {
  padding: 13px 10px;
}

/* --- FOOTER --- */
footer {
  background: var(--secondary);
  width: 100%;
  margin-top: 60px;
  color: #333;
  border-top: 1px solid #e8ecef;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding: 38px 20px 24px 20px;
  justify-content: space-between;
}
.brand-info {
  flex: 2 1 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 170px;
}
.brand-info img {
  width: 130px; height: auto;
}
.quick-links, .legal-links, .contact-info {
  flex: 1 1 180px;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 160px;
}
.quick-links h4, .legal-links h4, .contact-info h4 {
  font-size: 1.1rem;
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.quick-links ul, .legal-links ul {
  display: flex; flex-direction: column; gap: 9px;
}
.quick-links a, .legal-links a {
  color: #2E3640;
  font-size: 1rem;
  transition: color 0.17s;
}
.quick-links a:hover, .legal-links a:hover, .contact-info a:hover {
  color: var(--accent);
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.contact-info img {
  height: 18px; width: 18px;
}
.footer-bottom {
  width: 100%;
  background: none;
  text-align: center;
  font-size: 0.99rem;
  color: #B1B6BD;
  padding: 21px 0 13px 0;
}
@media (max-width: 950px) {
  .footer-main {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--secondary);
  color: #1A1A1A;
  box-shadow: 0 -2px 14px 0 rgba(30,60,98,0.08);
  padding: 24px 10px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.42,0,0.58,1), opacity 0.32s;
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner p {
  color: #24282f;
  text-align: center;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--primary);
  color: var(--white);
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 0.99rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin: 0 2px;
  transition: background 0.17s, color 0.16s, box-shadow 0.17s, transform 0.13s;
}
.cookie-banner button.cookie-settings {
  background: #edf5f9;
  color: var(--primary);
  border: 1px solid #e1e6ec;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.045);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #e3f1e7;
  color: var(--primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,107,135,0.24);
  z-index: 1401;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 410px;
  width: 92vw;
  padding: 34px 20px 26px 24px;
  box-shadow: 0 8px 32px 0 rgba(20,80,120,0.15);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 16px;
}
.cookie-category-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #f6f9fa;
  border-radius: 9px;
  padding: 11px 15px 11px 13px;
  font-size: 1rem;
}
.cookie-category-row .cookie-switch {
  margin-left: 12px;
  display: flex; align-items: center;
}
input[type="checkbox"].cookie-switch {
  width: 34px; height: 17px;
  appearance: none;
  background: #d7dadb;
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
input[type="checkbox"].cookie-switch:checked {
  background: var(--accent);
}
input[type="checkbox"].cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
input[type="checkbox"].cookie-switch:checked:before {
  left: 19px;
}
.cookie-category-row.essential {
  opacity: 0.7;
}
.cookie-modal-btns {
  display: flex; gap: 13px; margin-top: 6px;
}
.cookie-modal button {
  margin-top: 0;
  margin-bottom: 0;
  min-width: 90px;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--primary);
  position: absolute;
  right: 15px; top: 13px;
  font-size: 1.3rem;
  padding: 2px 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  border: none;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #f3f3f3;
  color: var(--accent);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 650px) {
  .footer-main {
    padding: 28px 10px 18px 10px;
    gap: 22px;
  }
  section {
    padding: 30px 4vw;
  }
  .features-section,
  .testimonials-section {
    border-radius: 6px;
  }
  .card, .testimonial-card, .feature {
    padding: 16px 10px 16px 10px;
    border-radius: 7px;
  }
}

@media (max-width: 480px) {
  .cta, .btn {
    padding: 10px 14vw;
    font-size: 1rem;
  }
  h1 { font-size: 1.2rem !important; }
  h2 { font-size: 1rem !important; }
}

/* --- MISC UTILS / CLASSES --- */
.mr-8 { margin-right: 8px; }
.mt-12 { margin-top: 12px; }
.text-center { text-align: center; }
.text-image-section img {
  max-width: 40vw;
  min-width: 80px;
  border-radius: 8px;
  box-shadow: 0 2px 11px 0 rgba(23,107,135,0.08);
}

/* --- VISUAL INTERACTION & FOCUS STATES --- */
a, button, .card, .feature {
  transition: box-shadow 0.17s, background 0.18s, color 0.15s, border 0.13s, transform 0.16s;
  outline: none;
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-section, .features-section, .testimonials-section, .cta-banner {
  animation: fadeInUp 0.9s cubic-bezier(.41,.9,.6,1.01) 0s 1;
}

/* --- ENSURE 20px+ SPACING BETWEEN CARDS & SECTIONS --- */
.card, .testimonial-card, .feature, section {
  margin-bottom: 20px;
}
section:last-child {
  margin-bottom: 0 !important;
}

/* --- Hide scrollbars for mobile menu ---*/
.mobile-menu::-webkit-scrollbar { width: 0; background: transparent; }
.mobile-menu { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Fine-tune spacing for major breakpoints --- */
@media (max-width: 420px) {
  section{
    padding: 19px 2vw;
  }
  .footer-main { padding: 13px 3vw 12px 3vw; }
}
