/* -----------------------------
   CSS RESET & BASELINE
------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F2F2F2;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222E39;
  background: #F2F2F2;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}
a {
  color: #18436A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0f2942;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #18436A;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

:focus-visible {
  outline: 2px solid #DCC889;
  outline-offset: 2px;
}

/* Spacing Utility Classes and Layout Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(24, 67, 106, 0.06);
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 67, 106, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.2s;
  min-width: 240px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px rgba(24, 67, 106, 0.15);
  transform: translateY(-4px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #18436A 0%, #2a5986 100%);
  color: #fff;
  padding: 60px 0;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
}
.hero .cta-primary {
  background: #DCC889;
  color: #18436A;
  margin-top: 20px;
}

/* --- HEADER/NAV --- */
header {
  background: #fff;
  border-bottom: 1px solid #E4E8EC;
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 76px;
}
header > a img {
  height: 48px;
  margin: 14px 24px 14px 0;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-right: auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #18436A;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
}
header nav a:hover, header nav a:focus {
  background: #E4E8EC;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #18436A;
  background: #DCC889;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(24, 67, 106, 0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.2s;
  margin-left: 24px;
  letter-spacing: 0.5px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E5D59E;
  color: #0f2942;
  box-shadow: 0 4px 16px rgba(24, 67, 106, 0.25);
  transform: translateY(-2px) scale(1.02);
}
/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #18436A;
  font-size: 2rem;
  display: none;
  margin-left: 24px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.18s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E4E8EC;
}

/* --- MOBILE MENU PANEL --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 67, 106, 0.96);
  box-shadow: 0 0 60px rgba(24, 67, 106, 0.25);
  z-index: 1450;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6,.05,.28,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 18px 20px 10px 20px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1451;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #DCC889;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
  padding: 14px 0;
  border-radius: 7px;
  width: 92%;
  text-align: center;
  transition: background 0.13s, color 0.13s;
  position: relative;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #DCC889;
  color: #18436A;
}
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 920px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 700px) {
  .hero {
    padding: 32px 0;
  }
}

/* --- FEATURE/INFO GRIDS & ITEMS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin: 12px 0 16px 0;
}
.feature-item {
  background: #F2F6FA;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(24, 67, 106, 0.06);
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #e4e8ec;
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 4px 14px rgba(24, 67, 106, 0.11);
  transform: translateY(-3px) scale(1.02);
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}
.feature-item h3 {
  font-size: 1.13rem;
  opacity: 0.93;
}
.feature-item p {
  font-size: 1rem;
  color: #28384C;
}

/* Testimonial Styles */
.testimonials {
  background: #F8FAFE;
  padding: 40px 0;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(24, 67, 106, 0.09);
  max-width: 370px;
  min-width: 220px;
  border-left: 6px solid #18436A;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(24, 67, 106, 0.19);
  transform: scale(1.015);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #28384C;
  font-style: italic;
}
.testimonial-card span {
  color: #18436A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* CTA Section */
.cta {
  background: #18436A;
  color: #fff;
  padding: 44px 0;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(24, 67, 106, 0.15);
  margin-bottom: 48px;
}
.cta .cta-primary {
  background: #DCC889;
  color: #18436A;
  margin-top: 24px;
}

/* Contact Row (Kontaktseite) */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.contact-row img {
  width: 30px;
  height: 30px;
}
.info p {
  color: #18436A;
  font-size: 1rem;
  margin-top: 12px;
}

/* --- FOOTER --- */
footer {
  background: #202E3C;
  color: #ECF0F5;
  padding: 36px 0 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #e4e8ec;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
}
footer nav a {
  color: #DCC889;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
.footer-contact {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #ECF0F5;
}
footer small {
  margin-top: 8px;
  color: #DCC889;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

/* Responsive Typography */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
}

/* Responsive Flex Directions */
@media (max-width: 900px) {
  .feature-grid, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 0.97rem;
  }
  .feature-grid, .content-grid {
    gap: 12px;
  }
}

/* --- COOKIE BANNER STYLES --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #18436A;
  box-shadow: 0 -2px 16px rgba(24, 67, 106, 0.14);
  padding: 28px 12px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.25s, transform 0.33s cubic-bezier(.4,.14,.23,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  color: #18436A;
  flex: 1 1 60%;
  padding-right: 8px;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 22px;
  margin-left: 0;
  border: none;
  outline: none;
  background: #E4E8EC;
  color: #18436A;
  box-shadow: 0 1px 4px rgba(24,67,106,0.05);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.12s;
}
.cookie-btn.accept {
  background: #18436A;
  color: #fff;
}
.cookie-btn.reject {
  background: #e04f5f;
  color: #fff;
}
.cookie-btn.settings {
  background: #DCC889;
  color: #18436A;
  margin-right: 0;
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-1px) scale(1.04);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #0f2942;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #c73344;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #eaddb8;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 5px;
  }
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 67, 106, 0.68);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 92%;
  padding: 34px 24px 28px 24px;
  box-shadow: 0 6px 32px rgba(24, 67, 106, 0.32);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookie-modal-in 0.38s ease;
}
@keyframes cookie-modal-in {
  from { transform: translateY(50px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 22px;
  background: none;
  border: none;
  color: #18436A;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: #18436A;
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  background: #E4E8EC;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DCC889;
  transition: left 0.22s, background 0.22s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: #18436A;
}
.cookie-category .desc {
  color: #8899AF;
  font-size: 0.96em;
  max-width: 220px;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
  width: 100%;
}

/* Hide modal/cookie elements by default (JS should trigger .visible/.open) */
.cookie-modal-overlay, .cookie-banner {
  display: flex;
}

/* -----------------------------
   GENERAL & UTILITY
------------------------------ */
.section ul, .text-section ul {
  margin-bottom: 0.7em;
}
.section ul li,
.text-section ul li {
  margin-bottom: 7px;
  line-height: 1.6;
  color: #28384C;
  font-size: 1em;
  list-style: disc inside;
}

main {
  padding-bottom: 76px;
}

/* Prevent overlap and spacing for cards, sections, grids */
.section + .section, section + section {
  margin-top: 52px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .testimonial-list, .content-grid {
  gap: 24px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}

/* -----------------------------
   MICRO-INTERACTIONS (Buttons, Lists)
------------------------------ */
button, .cta-primary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.18s;
}
li {
  transition: color 0.145s;
}
li:hover, li:focus {
  color: #18436A;
}

/* Highlight links */
a {
  position: relative;
}
a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #18436A;
  transition: width 0.17s;
  position: absolute;
  left: 0; bottom: -2px;
}
a:hover:after, a:focus:after {
  width: 96%;
}

/* -----------------------------
   CUSTOM SCROLLBARS
------------------------------ */
*::-webkit-scrollbar {
  width: 9px;
  background: #E4E8EC;
}
*::-webkit-scrollbar-thumb {
  background: #DCC889;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(24,67,106,0.09);
}

/* ---------------
   ACCENT CLASSES
---------------- */
.text-accent {
  color: #DCC889 !important;
}
.bg-accent {
  background: #DCC889 !important;
}
.bg-primary {
  background: #18436A !important;
  color: #fff;
}
.text-primary {
  color: #18436A !important;
}
.text-secondary {
  color: #E5D59E !important;
}

/* ---------------
   FOCUS/ACCESSIBILITY
---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------------
   PRINT OVERRIDE
---------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section {
    box-shadow: none !important;
    background: #fff !important;
  }
} 