/* --- CSS 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, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
b, strong {
  font-weight: 700;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #172A3A;
  background: #F8F9FA;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.5em;
  margin-top: 0.5rem;
}
a {
  color: #172A3A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFAE42;
  outline: none;
}

/* --- TYPOGRAPHY SCALE & HEADINGS --- */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
  color: #172A3A;
  letter-spacing: -0.01em;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 20px;
  color: #172A3A;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #172A3A;
}

h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #172A3A;
  font-weight: 500;
}
p, ul, ol, li, dl, dd {
  font-size: 1rem;
  margin-bottom: 12px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(23,42,58,0.06);
}

/* --- CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23,42,58,0.07);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #172A3A;
  padding: 4px 0;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #FFAE42;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  background: #172A3A;
  color: #fff;
  box-shadow: 0 2px 8px rgba(23,42,58,0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFAE42;
  color: #172A3A;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 24px rgba(255,174,66,0.09);
}

/* --- HERO SECTION --- */
.hero {
  background: #F8F9FA;
  min-height: 320px;
  display: flex;
  align-items: center;
  border-radius: 0 0 36px 36px;
  padding-top: 32px;
  padding-bottom: 32px;
  box-shadow: 0 4px 24px rgba(23,42,58,0.05);
  margin-bottom: 56px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-size: 2.25rem;
  color: #172A3A;
  margin-bottom: 8px;
}
.hero p {
  color: #30475E;
  margin-bottom: 24px;
}

/* --- CARDS & FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23, 42, 58, 0.07);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 280px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,42,58,0.06);
  padding: 20px 18px;
  margin-bottom: 20px;
}

/* Service list style on Leistungen/index page */
.service-list {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F8F9FA;
  padding: 20px 22px;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(23,42,58,0.06);
  font-size: 1.065rem;
}
.service-list li img {
  width: 34px;
  height: 34px;
  margin-right: 12px;
  flex-shrink: 0;
  filter: grayscale(0.3) brightness(0.97);
}
.service-list li a {
  color: #172A3A;
  background: #FFAE42;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
}
.service-list li a:hover {
  background: #30475E;
  color: #fff;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,42,58,0.08);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
  color: #172A3A;
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #172A3A;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1rem;
  color: #30475E;
}

/* --- CTA HIGHLIGHTED SECTION --- */
.cta-highlight, .cta-section {
  background: #172A3A;
  color: #fff;
  border-radius: 26px;
  box-shadow: 0 1px 12px rgba(23,42,58,0.08);
  margin-bottom: 60px;
  padding: 38px 20px;
}
.cta-highlight h2, .cta-section h2 {
  color: #FFAE42;
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta-highlight p, .cta-section p {
  color: #fff;
  margin-bottom: 22px;
}
.cta-section .cta-btn, .cta-highlight .cta-btn {
  background: #FFAE42;
  color: #172A3A;
}
.cta-section .cta-btn:hover,
.cta-highlight .cta-btn:hover {
  background: #fff;
  color: #172A3A;
}

/* --- FAQ SECTIONS --- */
.faq-list {
  margin-bottom: 24px;
  width: 100%;
}
.faq-list dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #172A3A;
  margin-top: 18px;
}
.faq-list dd {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid #FFAE42;
  color: #30475E;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(23,42,58,0.05);
  margin-bottom: 28px;
}
table th, table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid #E4E9F0;
}
table th {
  background: #172A3A;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #FFAE42;
}
table tr:last-child td {
  border-bottom: none;
}

/* --- TEXT SECTIONS --- */
.text-section {
  margin-bottom: 18px;
  background: #F8F9FA;
  padding: 18px 18px;
  border-radius: 10px;
}
.text-section h2 {
  color: #172A3A;
  font-size: 1.22rem;
  margin-bottom: 7px;
}
.text-section ul {
  margin-top: 0;
}

/* --- FOOTER --- */
footer {
  background: #172A3A;
  color: #fff;
  padding: 34px 0 18px 0;
  width: 100%;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 100px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
footer nav a {
  font-size: 1rem;
  color: #FFAE42;
  text-decoration: underline;
  margin-bottom: 1px;
  font-weight: 500;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.97rem;
  color: #E4E9F0;
}
.footer-contact a {
  color: #FFAE42;
  text-decoration: underline;
}

/* --- RESPONSIVE FLEX (MOBILE-FIRST) --- */
@media (max-width: 990px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  header nav {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .hero {
    min-height: 180px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-radius: 0 0 16px 16px;
  }
  .section, .cta-highlight, .cta-section {
    padding: 32px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .content-wrapper, .content-grid {
    gap: 16px;
  }
  .card-container {
    gap: 14px;
  }
  .card {
    padding: 16px 10px;
    border-radius: 10px;
  }
  .service-list li {
    padding: 14px 10px;
    gap: 8px;
    border-radius: 8px;
  }
  .testimonial-card {
    padding: 14px 10px;
    border-radius: 10px;
    max-width: 100%;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
}
@media (max-width: 730px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  footer .container {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
  }
  .card {
    min-width: unset;
    flex: 1 1 100%;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 203;
  width: 49px;
  height: 49px;
  border: none;
  background: #FFAE42;
  color: #172A3A;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 2px 11px rgba(23,42,58,0.09);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #172A3A;
  color: #FFAE42;
}

@media (max-width: 980px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F8F9FA;
  box-shadow: 0 4px 32px rgba(23,42,58,0.19);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.76,-0.03,.19,1.04);
  z-index: 2200;
  padding: 0;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: #172A3A;
  color: #fff;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(23,42,58,0.13);
  transition: background 0.2s, color 0.2s;
  z-index: 2240;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFAE42;
  color: #172A3A;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 92px;
  width: 100vw;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #172A3A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #E4E9F0;
  width: 85vw;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFAE42;
  background: #E4E9F0;
  outline: none;
  border-bottom: 1.5px solid #FFAE42;
}

/* Overlay for mobile menu (body overlay, optional use in JS) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,42,58,0.38);
  z-index: 2100;
  transition: opacity 0.22s;
  opacity: 1;
}

@media (min-width: 981px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #30475E;
  color: #fff;
  z-index: 5500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  box-shadow: 0 -2px 18px rgba(23,42,58,0.11);
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.61,-0.07,.41,1.13);
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__text {
  max-width: 600px;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 22px;
  cursor: pointer;
  color: #fff;
  background: #172A3A;
  box-shadow: 0 2px 8px rgba(23,42,58,0.07);
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFAE42;
  color: #172A3A;
  transform: translateY(-1px) scale(1.05);
}
.cookie-btn--settings {
  background: #FFAE42;
  color: #172A3A;
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: #fff;
  color: #172A3A;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 15px 7px;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
    gap: 8px;
  }
}

/* --- COOKIE PREFERENCE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 5600;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 31, 45, 0.44);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInCookieModal 0.26s cubic-bezier(.42,0,.58,1);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  color: #172A3A;
  border-radius: 18px;
  max-width: 430px;
  min-width: 260px;
  padding: 36px 22px 22px 22px;
  box-shadow: 0 4px 38px rgba(23,42,58,0.14);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 17px;
  background: none;
  color: #30475E;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #FFAE42;
  color: #172A3A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #FFAE42;
  width: 1.18em;
  height: 1.18em;
  margin-right: 7px;
}
.cookie-category--essential {
  opacity: 0.64;
  pointer-events: none;
}

.cookie-modal__actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-direction: row;
  justify-content: flex-end;
}

/* --- UTILITY CLASSES --- */
.bg-primary { background: #172A3A !important; color: #fff !important; }
.bg-accent { background: #F8F9FA !important; }
.bg-secondary { background: #FFAE42 !important; color: #172A3A !important; }
.box-shadow {
  box-shadow: 0 2px 10px rgba(23,42,58,0.08);
}
.rounded {
  border-radius: 12px;
}
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- MISC. --- */
::-webkit-input-placeholder { color: #8392A7; }
::-moz-placeholder { color: #8392A7; }
:-ms-input-placeholder { color: #8392A7; }
::placeholder { color: #8392A7; }

[tabindex]:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus { outline: 2px solid #FFAE42; outline-offset: 2px; }

/* Scrollbar style (optional) */
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-thumb { background: #F1ECE5; border-radius: 8px; }

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.18s;
}
input, select, textarea {
  border: 1.5px solid #E4E9F0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  color: #172A3A;
  background: #fff;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border 0.19s, box-shadow 0.19s;
}
input:focus, select:focus, textarea:focus {
  border-color: #FFAE42;
  outline: 2px solid #FFAE42;
}

/* --- END --- */
