/* ===== CSS RESET & BASE ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #234163;
  background: linear-gradient(135deg, #F5F5F5 77%, #B9DFFF 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #234163;
  outline-offset: 2px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ===== BRAND TYPOGRAPHY ===== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #234163;
  letter-spacing: -1px;
}
@media (min-width: 700px) {
  h1, .h1 {
    font-size: 3rem;
  }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #234163;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #234163;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-bottom: 12px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaf2fb;
  box-shadow: 0 2px 8px 0 rgba(35,65,99,0.04);
  width: 100%;
  z-index: 1500;
  position: sticky;
  top: 0;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header img {
  height: 36px;
  width: auto;
}
nav.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #234163;
  padding: 8px 4px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: #B9DFFF;
  color: #234163;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(90deg, #234163 80%, #B9DFFF 100%);
  color: #fff;
  padding: 10px 28px;
  border-radius: 99px;
  border: none;
  margin-left: 20px;
  box-shadow: 0 3px 16px 0 rgba(35,65,99,0.09);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #234163 60%, #73b3ee 100%);
  box-shadow: 0 6px 24px 0 rgba(35,65,99,0.17);
}

/* ----- Mobile Navigation ----- */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 2500;
  font-size: 2.2rem;
  background: #234163;
  border-radius: 10px;
  color: #fff;
  padding: 4px 18px 6px 18px;
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(35,65,99,0.09);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #B9DFFF;
  outline-offset: 2px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #F5F5F5;
  box-shadow: 0 4px 32px 0 rgba(35,65,99,0.24);
  z-index: 3000;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.6,0.1,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 24px 24px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #234163;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  z-index: 3200;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #B9DFFF;
  color: #234163;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 56px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 16px 8px 10px 0;
  border-bottom: 1px solid #B9DFFF;
  color: #234163;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #B9DFFF44;
  color: #234163;
}
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 999px) {
  nav.main-nav,
  header .btn-primary {
    display: none;
  }
}

/* ===== SECTIONS & SPACING ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 18px 0 rgba(35,65,99,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
section > .container {
  align-items: stretch;
}

@media (max-width: 700px) {
  section {
    margin-bottom: 36px;
    padding: 24px 5vw;
    border-radius: 12px;
  }
}

/* ===== FLEXBOX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #F5F5F5;
  box-shadow: 0 2px 10px 0 rgba(35,65,99,0.06);
  position: relative;
  padding: 28px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,65,99,0.14);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(35,65,99,0.08);
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #234163;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/******** ADDITIONAL CUSTOM FLEXBOX UTILS ********/
.feature-grid, .district-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div, .district-grid > div, .faq-list > div {
  flex: 1 1 220px;
  background: #B9DFFF11;
  border-radius: 16px;
  box-shadow: 0 1px 8px #B9DFFF33;
  padding: 18px 14px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-grid > div:hover, .district-grid > div:hover, .faq-list > div:hover {
  background: #B9DFFF44;
  box-shadow: 0 6px 24px #B9DFFF44;
}
.district-grid > div h3 {
  color: #234163;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.district-grid ul {
  margin-bottom: 10px;
}

/******* BUTTONS & LINKS ******/
.btn-primary, .text-section a.btn-primary {
  margin-top: 24px;
  margin-bottom: 0;
}
.text-section a {
  color: #234163;
  font-weight: 500;
  border-bottom: 1px solid #B9DFFF;
  transition: border 0.2s, color 0.18s;
}
.text-section a:hover {
  color: #1768ad;
  border-bottom: 2px solid #1768ad;
}

/******* LIST STYLE *******/
ul, .text-section ul, .district-grid ul {
  padding-left: 18px;
  list-style: square inside;
  color: #234163;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/******* OL *******/
ol {
  padding-left: 24px;
  list-style: decimal inside;
}

/******* BLOCKQUOTE FOR TESTIMONIALS *******/
.testimonial-card blockquote {
  margin: 0;
  color: #234163;
  font-style: italic;
  background: none;
  padding: 0;
}
.testimonial-card strong {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: #234163;
}

/********** FORMS (Kontakt)* ******/
input, textarea {
  width: 100%;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #B9DFFF;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fff;
  color: #234163;
  transition: border 0.2s;
}
input:focus, textarea:focus {
  border-color: #234163;
}
label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  display: block;
  margin-bottom: 6px;
}

/********** FOOTER **********/
footer {
  background: linear-gradient(90deg, #f5f5f5 80%, #B9DFFF 120%);
  border-top: 1px solid #B9DFFF44;
  box-shadow: 0 -2px 8px 0 rgba(35,65,99,0.06);
  padding: 44px 0 18px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234163;
  font-size: 1rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border 0.2s, color 0.2s;
  font-weight: 500;
}
footer nav a:hover {
  color: #1768ad;
  border-bottom: 1px solid #1768ad;
}
.legal-info {
  width: 100%;
  margin-top: 16px;
  color: #234163;
  font-size: 0.96rem;
  opacity: 0.77;
}

/* ===== COOKIE CONSENT BANNER (BOTTOM FIXED) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  background: #234163;
  color: #fff;
  padding: 24px 20px;
  align-items: center;
  box-shadow: 0 -2px 16px 0 #23416355;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  animation: cookie-fadein 0.7s cubic-bezier(0.7,0,0.2,1);
}
@keyframes cookie-fadein {
  from { opacity: 0; transform: translateY(40px) }
  to { opacity: 1; transform: translateY(0) }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0;
}
.cookie-banner .accept {
  background: #B9DFFF;
  color: #234163;
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #234163;
  border: 1px solid #B9DFFF;
  font-weight: 600;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #B9DFFF;
  color: #234163;
}
.cookie-banner .settings {
  background: transparent;
  color: #B9DFFF;
  border: 1.5px solid #B9DFFF;
  font-weight: 600;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #B9DFFF22;
}

/* ===== COOKIE MODAL POPUP ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4500;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,65,99,0.31);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein 0.4s;
}
.cookie-modal {
  background: #fff;
  color: #234163;
  border-radius: 16px;
  box-shadow: 0 6px 44px 0 #23416333;
  padding: 34px 24px 28px 24px;
  min-width: 310px;
  max-width: 90vw;
  font-size: 1.08rem;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight:600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 18px 0;
}
.cookie-categories label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-categories input[type=checkbox] {
  accent-color: #234163;
  width: 18px;
  height: 18px;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal .accept {
  background: #B9DFFF;
  color: #234163;
  font-weight: 700;
}
.cookie-modal .reject {
  background: #fff;
  color: #234163;
  border: 1px solid #B9DFFF;
  font-weight: 600;
}
.cookie-modal .close {
  background: transparent;
  color: #234163;
  font-weight: 400;
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 7vw;
  }
  .card-container,
  .content-grid,
  .district-grid,
  .feature-grid,
  .faq-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .feature-grid,
  .district-grid,
  .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.98rem;
    padding: 16px 8px 16px 8px;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 15px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.3rem;
  }
  .cookie-modal {
    padding: 20px 8px 18px 8px;
    min-width: unset;
    font-size: 0.99rem;
  }
}

/* === VISUAL ENHANCEMENTS === */
section {
  box-shadow: 0 3px 18px 0 #23416318;
  transition: box-shadow 0.24s, background 0.22s;
}
section:hover {
  box-shadow: 0 12px 60px -8px #B9DFFFcc;
  background: #F5F5F5;
}
.card, .district-grid > div, .feature-grid > div, .faq-list > div {
  transition: box-shadow 0.18s, background 0.21s, transform 0.14s;
}
.card:hover, .district-grid > div:hover, .feature-grid > div:hover, .faq-list > div:hover {
  transform: translateY(-4px) scale(1.025);
}

/***** MICRO ANIMATIONS *****/
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.24s, color 0.18s, box-shadow 0.16s, transform 0.18s;
}
.btn-primary:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.97);
}

/***** ACCESSIBILITY IMPROVEMENTS *****/
:focus-visible {
  outline: 3px solid #B9DFFF;
}

/* ===== MINOR UTILS ===== */
.hide-mobile { display: none !important; }
.hide-desktop { display: block !important; }
@media (min-width: 1000px) {
  .hide-mobile { display: block !important; }
  .hide-desktop { display: none !important; }
}

/* === CLASSES PROVIDED IN HTML (ensure exact class naming) === */
/* (Already handled in above selectors) */

/****** END OF CSS ******/
