/* --- 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, 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 {
  line-height: 1.5;
  background: #F5F7FA;
  color: #16384d;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
footer p {
  color: white;
}
img {
  max-width: 100%; height: auto; display: block;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.5,1,.5,1);
}
a:hover, a:focus {
  color: #4B8F8C;
  outline: none;
}

/* --- Typography & Headers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: #205072;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; color: #205072; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
  color: #193958;
}
strong {
  font-weight: 700;
  color: #205072;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(32, 80, 114, 0.07);
}

/* --- Cards & Flex Layouts --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(32,80,114,0.10);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(75,143,140,0.16);
  z-index: 2;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature {
  background: #4B8F8C;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(32,80,114,0.10);
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.18s, background 0.2s;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature:hover {
  background: #205072;
  box-shadow: 0 8px 28px 0 rgba(32,80,114,0.17);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(32,80,114,0.05);
  border-left: 7px solid #205072;
  font-size: 1.08rem;
  color: #193958;
  font-weight: 600;
  transition: box-shadow .18s;
}
.testimonial-card span {
  font-size: 1rem;
  color: #205072;
  font-weight: 900;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(75,143,140,0.13);
}

/* --- FAQ Styles --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-left: 5px solid #4B8F8C;
  border-radius: 8px;
  padding: 18px 18px 14px 22px;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.03);
}
.faq-item h3 {
  color: #205072; font-size: 1.1rem; margin-bottom: 9px; font-weight: 700;
}

/* --- Quicklinks & Lists --- */
.quicklinks {
  margin-top: 18px;
  font-size: 1rem;
}
.quicklinks ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.quicklinks li {
  list-style: none;
}
.quicklinks a {
  background: #205072;
  color: #fff;
  border-radius: 6px;
  padding: 6px 17px;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: .01em;
  transition: background 0.20s;
}
.quicklinks a:hover {
  background: #4B8F8C;
  color: #fff;
}

/* --- Navigation Bar --- */
header {
  background: #205072;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px 0 rgba(32,80,114,0.05);
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: flex-start;
  padding: 0 20px;
  height: 68px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #F5F7FA;
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.19s, color 0.15s;
  display: flex; align-items: center;
}
header nav a.cta {
  background: #F5F7FA;
  color: #205072 !important;
  font-weight: 800;
  border-radius: 10px;
  margin-left: auto;
  padding: 8px 25px;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.08);
  transition: background 0.18s, color 0.12s, box-shadow 0.19s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: #4B8F8C;
  color: #fff !important;
  box-shadow: 0 8px 18px 0 rgba(75,143,140,0.11);
}
header nav a:hover,
header nav a:focus {
  background: #4B8F8C;
  color: #fff;
}
header nav img {
  height: 36px;
  margin-right: 18px;
}

/* --- Footer Styles --- */
footer {
  background: #205072;
  color: #F5F7FA;
  padding: 40px 0 24px 0;
  mtargin-top: 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav a {
  color: #F5F7FA !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: .98rem;
  border-radius: 7px;
  padding: 6px 13px;
  transition: background 0.15s;
}
footer nav a:hover {
  background: #4B8F8C;
}
footer p {
  text-align: center;
  font-size: .96rem;
  opacity: .85;
  margin: 0;
  padding: 0;
}

/* --- Button & CTA Styles --- */
.cta, .cta-btn {
  display: inline-block;
  background: #205072;
  color: #fff !important;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  padding: 14px 38px;
  letter-spacing: 0.04em;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(32,80,114,0.07);
  transition: background 0.16s, color 0.14s, transform .16s, box-shadow 0.20s;
  text-align: center;
  text-decoration: none !important;
}
.cta:hover, .cta:focus, .cta-btn:hover, .cta-btn:focus {
  background: #4B8F8C;
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(75,143,140,0.13);
  outline: none;
}
button, .btn {
  background: #4B8F8C;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  margin: 0 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #205072;
}


/* --- Map Block --- */
.map-block {
  background: #fff;
  border: 2px solid #4B8F8C;
  border-radius: 12px;
  padding: 22px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 9px 0 rgba(32,80,114,0.08);
  color: #205072;
  font-weight: 600;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #205072;
  color: #fff;
  width: 100%;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5000;
  box-shadow: 0 -2px 24px 0 rgba(32,80,114,0.13);
  align-items: center;
  gap: 16px;
  animation: slideUpBanner .55s cubic-bezier(.7,.2,.53,.99);
}
@keyframes slideUpBanner {
  from { transform: translateY(140%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}
.cookie-banner .cookie-btn-group .accept {
  background: #4B8F8C;
  color: #fff;
  border-radius: 9px;
  padding: 10px 28px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-banner .cookie-btn-group .accept:hover,
.cookie-banner .cookie-btn-group .accept:focus {
  background: #51ad99;
  color: #fff;
}
.cookie-banner .cookie-btn-group .reject {
  background: #fff;
  color: #205072;
  border: 2px solid #4B8F8C;
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.13s, color 0.13s;
}
.cookie-banner .cookie-btn-group .reject:hover,
.cookie-banner .cookie-btn-group .reject:focus {
  background: #F5F7FA;
  border-color: #205072;
  color: #205072;
}
.cookie-banner .cookie-btn-group .settings {
  background: transparent;
  color: #fff;
  border: none;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.13s;
  padding: 10px 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-banner .cookie-btn-group .settings:hover {
  color: #F5F7FA;
  text-decoration: underline;
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 6000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,.58);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeBg .35s cubic-bezier(.5,1,.5,1);
}
@keyframes fadeBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #205072;
  border-radius: 22px;
  box-shadow: 0 8px 48px 0 rgba(32,80,114,0.19);
  padding: 38px 28px 28px 28px;
  max-width: 350px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: popModal .34s cubic-bezier(.57,.22,.45,1);
}
@keyframes popModal {
  from { transform: scale(.92) translateY(32px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.21rem;
  margin-bottom: 7px;
  color: #205072;
}
.cookie-modal label {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #4B8F8C;
  width: 18px; height: 18px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 14px;
  font-size: 1.5rem;
  background: transparent;
  color: #4B8F8C;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {color: #205072;}

/* --- Hamburger Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #205072;
  border: none;
  font-size: 2.1rem;
  border-radius: 9px;
  padding: 4px 14px;
  cursor: pointer;
  margin: 0 14px 0 auto;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.08);
  transition: background 0.15s, color 0.12s;
  z-index: 1501;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #4B8F8C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: #205072;
  transform: translateX(-102vw);
  transition: transform .36s cubic-bezier(.76,.02,.21,.92);
  z-index: 2000;
  box-shadow: 0 10px 40px 0 rgba(32,80,114,0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 48px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 4px 19px;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 15px;
  transition: color 0.10s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD460;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100vw;
  padding: 0 32px;
}
.mobile-nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.19rem;
  font-weight: 700;
  background: transparent;
  border-radius: 8px;
  padding: 10px 9px;
  margin: 0;
  transition: background 0.15s, color 0.14s;
  width: 100%;
  text-align: left;
  letter-spacing: .01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4B8F8C;
  color: #FFD460;
}

/* --- Responsive & Mobile --- */
@media (max-width: 1180px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
  .card {
    min-width: 210px;
    padding: 18px 11px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .section {
    padding: 19px 3vw;
    margin-bottom: 28px;
  }
  .content-wrapper, .card-container, .content-grid, .features-grid {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .feature, .card {
    min-width: unset;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    font-size: .99rem;
  }
  footer nav {
    font-size: 0.9rem;
   flex-direction: column;
    gap: 8px;
    padding: 0 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px !important;
    align-items: center !important;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* --- Utility Classes & Misc --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center !important; }
.hide { display: none !important; }

/* Ensure always white BG for main area on all pages */
main {
  background: #F5F7FA;
  min-height: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar { width: 10px; background: #F5F7FA; }
::-webkit-scrollbar-thumb { background: #4B8F8C; border-radius: 6px; }

/* --- Animations for subtle micro-interactions --- */
.card, .feature, .testimonial-card, .faq-item {
  transition: box-shadow .13s, background .13s, border-color .17s, transform .15s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .faq-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 28px 0 rgba(75,143,140,0.12);
}

/* --- Focus Styles for Accessibility --- */
a:focus, button:focus, .cta:focus, input:focus, .mobile-menu-close:focus {
  outline: 2px solid #FFD460;
  outline-offset: 2px;
}

/* --- Forms --- */
input, textarea, select {
  font-size: 1rem;
  border: 2px solid #4B8F8C;
  border-radius: 7px;
  padding: 8px 14px;
  background: #fff;
  color: #205072;
  margin-bottom: 14px;
  transition: border-color .13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #205072;
}

/* --- Print Styles --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, main, .container { background: #fff !important; box-shadow: none !important; }
  body { color: #000 !important; }
}

/* --- Demo Cookie Banner & Modal Structure (for JS) --- */
/*
You may use this minimal HTML snippet somewhere in your / for the cookie banner and modal:

<div class="cookie-banner" id="cookie-banner">
  <div>
    Wir verwenden Cookies. Mit "Akzeptieren" stimmen Sie der Speicherung von Cookies zu. Einstellungen jederzeit ändern.
  </div>
  <div class="cookie-btn-group">
    <button class="accept">Alle akzeptieren</button>
    <button class="reject">Alle ablehnen</button>
    <button class="settings">Cookie Einstellungen</button>
  </div>
</div>
<div class="cookie-modal-overlay" id="cookie-modal">
  <div class="cookie-modal">
    <button class="close-modal">✕</button>
    <h2>Cookie Einstellungen</h2>
    <label><input type="checkbox" checked disabled> Essenzielle Cookies (immer aktiv)</label>
    <label><input type="checkbox"> Analyse-Cookies</label>
    <label><input type="checkbox"> Marketing-Cookies</label>
    <div class="modal-btns">
      <button class="accept">Speichern</button>
      <button class="reject">Abbrechen</button>
    </div>
  </div>
</div>
*/
