/* ================= 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,
main, 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F7F9;
  color: #254869;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #32BFA1;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #254869;
  text-decoration: underline;
}
button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  color: #254869;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #254869;
  font-size: 1rem;
  margin-bottom: 13px;
}

strong, b {
  font-weight: 700;
}

/* ==================== SPACING & CONTAINERS =================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(37,72,105,0.07);
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(37,72,105,0.05);
  z-index: 50;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #254869;
  font-size: 1rem;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #e8f7f4;
  color: #32BFA1;
}
header img {
  max-height: 48px;
}
.cta.primary {
  background: #32BFA1;
  color: #fff;
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 99px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(50,191,161,0.13);
  transition: box-shadow 0.16s, background 0.16s;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #254869;
  color: #fff;
  box-shadow: 0 6px 21px rgba(50,191,161,0.23);
  text-decoration: none;
}
.cta.secondary {
  background: #254869;
  color: #fff;
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 99px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(37,72,105,0.09);
  margin-top: 24px;
  transition: box-shadow 0.16s, background 0.16s;
  display: inline-block;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #32BFA1;
  color: #fff;
  box-shadow: 0 6px 21px rgba(37,72,105,0.13);
  text-decoration: none;
}

/* ============== MOBILE MENU STYLES ================ */
.mobile-menu-toggle {
  display: none;
  background: #32BFA1;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 6px 20px;
  z-index: 110;
  margin-left: 18px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #254869;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #254869;
  color: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 44px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #32BFA1;
  color: #fff;
  font-size: 2rem;
  padding: 2px 18px;
  border-radius: 7px;
  margin-bottom: 32px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #206f5c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #32BFA1;
  color: #fff;
}

/* ============ HERO SECTION =============== */
.hero {
  background: #32BFA1;
  color: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 60px 0 44px 0;
  box-shadow: 0 10px 34px 0 rgba(50,191,161,0.18);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  font-weight: 900;
}
.hero p {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero .cta.primary {
  background: #254869;
  color: #fff;
  margin-top: 18px;
}
.hero .cta.primary:hover, .hero .cta.primary:focus {
  background: #fff;
  color: #254869;
}

/* ========== FEATURE & SERVICE GRIDS (FLEXBOX) ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(37,72,105,0.09);
  padding: 30px 28px 24px 28px;
  min-width: 240px;
  flex: 1 1 240px;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
}
.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 1rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.service-item {
  background: #254869;
  color: #fff;
  border-radius: 12px;
  flex: 1 1 230px;
  min-width: 220px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 16px 0 rgba(37,72,105,0.13);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-item h3 {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.service-item p {
  color: #fff;
  font-size: 1rem;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 7px 23px 0 rgba(37,72,105,0.18);
  transform: translateY(-2px) scale(1.025);
}

/* ========== BENEFIT & OTHER LISTS ========== */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 17px;
}
.benefit-list li {
  position: relative;
  color: #254869;
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.benefit-list li:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #32BFA1;
  margin-right: 11px;
  margin-left: -18px;
  vertical-align: middle;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.faq-item {
  background: #fff;
  border-left: 5px solid #32BFA1;
  border-radius: 9px;
  padding: 18px 28px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px 0 rgba(37,72,105,0.09);
  transition: border-color 0.24s;
}
.faq-item h3 {
  font-size: 1.11rem;
  margin-bottom: 6px;
  color: #254869;
}
.faq-item p {
  color: #254869;
  font-size: 0.96rem;
}
.faq-item:hover, .faq-item:focus-within {
  border-left: 5.5px solid #254869;
}
.contact-prompt {
  margin-top: 16px;
  font-size: 1.05rem;
  color: #254869;
}

/* ========== TESTIMONIALS =========== */
.testimonial-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  color: #254869;
  border-radius: 13px;
  padding: 20px 28px;
  box-shadow: 0 3px 18px 0 rgba(37,72,105,0.10);
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
  z-index: 1;
}
.testimonial-card p {
  color: #254869;
  font-size: 1.1rem;
  margin-bottom: 1px;
}
.testimonial-author {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  color: #32BFA1;
  font-weight: 700;
  font-size: 1.03rem;
  margin-top: 8px;
}
.score-case {
  color: #254869;
  font-size: 0.98rem;
  margin-top: 8px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(50,191,161,0.16);
  z-index: 2;
}

/* ========== LEHRMATERIAL CARDS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(37,72,105,0.12);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 28px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 19px 0 rgba(37,72,105,0.17);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ========== GENERIC FLEX GRIDS ========== */
.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;
}

/* ========== CONTACT PAGE ========== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #254869;
}
.contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.office-hours, .location-map {
  background: #e8f7f4;
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 20px;
}
.office-hours h2, .location-map h2 {
  color: #254869;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
}

.confirmation-message {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 20px 0 rgba(37,72,105,0.10);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.confirmation-message h1 {
  font-size: 2rem;
}
.confirmation-message ul {
  margin-left: 20px;
}
.confirmation-message li {
  list-style-type: disc;
  color: #254869;
  margin-bottom: 5px;
}

/* ========== FOOTER ========== */
footer {
  background: #254869;
  color: #fff;
  padding: 44px 0 22px 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.90;
  transition: opacity 0.16s;
  padding: 4px 2px;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  pointer-events: none;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #254869;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(37,72,105,0.21);
  padding: 23px 18px 23px 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: cookie-banner-in 0.5s cubic-bezier(.77,0,.18,1) both;
}
@keyframes cookie-banner-in {
  from { transform: translateY(150%); }
  to { transform: translateY(0); }
}
.cookie-banner-text {
  font-size: 1.04rem;
  color: #fff;
  margin-bottom: 7px;
}
.cookie-banner-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-consent-btn, .cookie-settings-btn {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  border-radius: 8px;
  padding: 10px 28px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  margin-right: 5px;
}
.cookie-consent-btn.accept {
  background: #32BFA1;
  color: #fff;
}
.cookie-consent-btn.accept:hover {
  background: #29a185;
}
.cookie-consent-btn.reject {
  background: #fff;
  color: #254869;
}
.cookie-consent-btn.reject:hover {
  background: #32BFA1;
  color: #fff;
}
.cookie-settings-btn {
  background: transparent;
  border: 2px solid #32BFA1;
  color: #32BFA1;
  padding: 10px 22px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #32BFA1;
  color: #fff;
}
/* Modal popup */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 325px; max-width: 94vw;
  background: #fff;
  color: #254869;
  border-radius: 17px;
  box-shadow: 0 12px 48px 0 rgba(37,72,105,0.23);
  padding: 36px 32px 32px 32px;
  z-index: 2100;
  display: none;
  flex-direction: column;
  gap: 30px;
  animation: cookie-modal-in 0.45s cubic-bezier(.77,0,.18,1) both;
}
.cookie-modal.open {
  display: flex;
  animation: cookie-modal-in 0.45s cubic-bezier(.77,0,.18,1) both;
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,-60%) scale(0.93); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-modal-title {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #254869;
}
.cookie-modal-close {
  font-size: 1.8rem;
  background: #32BFA1;
  color: #fff;
  border-radius: 7px;
  padding: 2px 10px;
  cursor: pointer;
}
.cookie-modal-close:hover {
  background: #206f5c;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e8;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-title {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  color: #254869;
}
.cookie-toggle {
  width: 48px;
  height: 26px;
  background: #e3e5e5;
  border-radius: 19px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
  border: none;
  margin-left: 14px;
}
.cookie-toggle[data-checked="true"] {
  background: #32BFA1;
}
.cookie-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.14s;
}
.cookie-toggle[data-checked="true"] .cookie-toggle-thumb {
  left: 24px;
  background: #fff;
}
.cookie-category-desc {
  font-size: 0.98rem;
  color: #657088;
}
.cookie-category--essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
  background: #b5bfc8;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .service-list, .testimonial-carousel, .footer-contact {
    gap: 18px;
  }
  .card,
  .service-item,
  .testimonial-card,
  .feature-item {
    min-width: 180px;
    padding: 20px 13px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 13px 10px 13px 10px;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin-left: 0;
  }
  .hero {
    padding: 44px 5px 30px 5px;
    margin-bottom: 35px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .feature-grid, .card-container, .service-list, .testimonial-carousel, .footer-contact {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .card, .service-item, .testimonial-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding: 16px 11px;
  }
  .benefit-list {
    padding-left: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 13px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 32px;
  }
  footer {
    padding: 28px 0 12px 0;
    margin-top: 40px;
  }
  .cookie-modal {
    padding: 20px 8px 18px 8px;
    min-width: 200px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .cta.primary, .cta.secondary {
    padding: 9px 20px;
    font-size: 0.98rem;
  }
  .feature-item, .card, .service-item, .testimonial-card {
    padding: 11px 7px 14px 7px;
  }
  .confirmation-message {
    padding: 19px 7px;
  }
}

/* ========== TRANSITIONS & INTERACTIONS ========== */
a, button, .cta.primary, .cta.secondary, .service-item, .faq-item, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.15s, background 0.18s, color 0.15s, border 0.18s, transform 0.15s;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #f7f7f9;
}
::-webkit-scrollbar-thumb {
  background: #b5bfc8;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #32BFA1;
}

/* ========== UTILITY ========== */
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }
.mb-48 { margin-bottom: 48px!important; }

/* ========== END CSS ========== */
