/* ===== CSS RESET & BASE ===== */
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 {
  background: #F7F9FC;
  color: #23374D;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #19467E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #17A29B;
}
button, input[type="submit"] {
  font-family: inherit;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #19467E;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.6rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
@media (min-width: 500px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.35rem; }
}

.text-section > h1,
.text-section > h2,
.text-section > h3 { margin-top: 0; }
p, li, address, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #23374D;
  margin-bottom: 12px;
}

/* ===== LAYOUT UTILITY ===== */
.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(25,70,126,0.07), 0 1.5px 8px rgba(23,162,155,0.07);
  padding: 24px;
  flex: 1 0 240px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.24s;
}
.card:hover,
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(25,70,126,0.11), 0 3px 12px rgba(23,162,155,0.10);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 28px 28px 18px 28px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(25,70,126,0.08);
  margin-bottom: 24px;
  min-width: 250px;
  max-width: 540px;
  border-left: 8px solid #17A29B;
}
.testimonial-card blockquote {
  color: #23374D;
  font-style: italic;
  font-size: 1.12rem;
  margin: 0 0 10px 0;
}
.testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17A29B;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(25,70,126,0.07);
  padding: 18px 24px;
  min-width: 200px;
  flex: 1 1 220px;
  transition: box-shadow 0.24s, transform 0.18s;
  border-bottom: 4px solid #17A29B;
}
.feature-item img {
  width: 38px;
  height: 38px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 56px 0;
  background: #19467E;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  color: #fff;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  text-shadow: 0 2px 8px rgba(25,70,126,0.16);
}
.hero p {
  font-size: 1.15rem;
  color: #F7F9FC;
}
@media (min-width: 600px) {
  .hero h1 { font-size: 2.7rem; }
}

/* ===== BUTTONS ===== */
.cta-button,
button.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #17A29B;
  color: #fff;
  padding: 13px 34px;
  border-radius: 45px 7px 45px 7px;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.20s, transform 0.13s;
  box-shadow: 0 2px 10px rgba(23,162,155,0.11);
  margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: #19467E;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(25,70,126,0.15);
}

/* ===== MAIN NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 3px solid #17A29B;
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
header img[alt="CloudyWander Akademie"] {
  height: 42px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #19467E;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s, box-shadow 0.07s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F7F9FC;
  color: #17A29B;
}
.main-nav .cta-button {
  margin-left: 28px;
}
.mobile-menu-toggle {
  background: #17A29B;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 3px 14px 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  display: none;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0; height: 100%; width: 100vw;
  z-index: 1040;
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.57,1.5,.63,1);
  box-shadow: 6px 0 34px rgba(25,70,126,0.11);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #19467E;
  align-self: flex-end;
  margin: 0 24px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 32px;
  gap: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #19467E;
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid #F7F9FC;
  border-radius: 0 18px 18px 0;
  transition: background 0.12s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: #17A29B;
  color: #fff;
}

@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header .container { flex-direction: row; }
  .main-nav a { font-size: 0.95rem; }
  .cta-button { margin-left: 8px; font-size: 1rem; }
}
@media (max-width: 860px) {
  .main-nav { gap: 10px; }
  .main-nav .cta-button { margin-left: 9px; }
}
@media (max-width: 800px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container { min-height: 64px; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 24px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
}

/* ===== FLEX RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 980px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .content-wrapper { gap: 18px; }
  .feature-item {
    min-width: unset;
    width: 100%;
    margin-bottom: 12px;
  }
  .feature-grid {
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: unset;
    padding: 16px 12px 12px 16px;
    font-size: 0.99rem;
  }
  .section {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 30px;
  }
  .hero { padding: 34px 0 18px 0; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===== TABLES ===== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0 28px 0;
  font-size: 0.97rem;
}
table caption {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #19467E;
  font-weight: 700;
  padding-bottom: 8px;
}
thead {
  background: #19467E;
  color: #fff;
}
th, td {
  padding: 13px 14px;
  border: 1.5px solid #e2e7ed;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: #fff;
  background: #19467E;
  font-size: 1rem;
}
td {
  background: #fff;
  color: #23374D;
}
tr:nth-child(even) td {
  background: #F7F9FC;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(25,70,126,0.06);
  padding: 16px 18px;
  transition: box-shadow 0.12s;
  position: relative;
}
.faq-item h3 {
  font-size: 1.08rem;
  color: #17A29B;
  margin-bottom: 6px;
  font-weight: 700;
}
.faq-item p {
  color: #23374D;
  font-size: 1rem;
}
.faq-item:hover {
  box-shadow: 0 4px 14px rgba(25,70,126,0.17);
}

/* ===== FOOTER ===== */
footer {
  background: #19467E;
  color: #fff;
  padding: 36px 0 0 0;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.footer-menu {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 13px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.96;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color 0.15s, opacity 0.19s;
}
.footer-menu a:hover { color: #17A29B; opacity: 1; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.footer-contact address {
  font-style: normal;
  color: #F7F9FC;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social img {
  height: 29px;
  width: 29px;
  margin-right: 2px;
  opacity: 0.94;
  transition: opacity 0.11s;
}
.footer-social img:hover {
  opacity: 1;
}
.footer-legal {
  margin-top: 11px;
  font-size: 0.98rem;
  color: #C6DEE4;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding-left: 5px;
  }
  .footer-menu {
    gap: 11px;
    font-size: 0.98rem;
    padding-bottom: 4px;
  }
  .footer-contact img {
    height: 34px;
    margin-bottom: 7px;
  }
}

/* ===== ADDITIONAL UI ELEMENTS ===== */
.text-section {
  margin-bottom: 20px;
}
.text-section ul, .text-section ol {
  list-style: disc inside;
  margin-left: 9px;
  padding-left: 12px;
  margin-bottom: 20px;
}
.text-section li {
  margin-bottom: 7px;
  font-size: 1rem;
}
.text-section strong {
  color: #19467E;
  font-weight: 600;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.cta-section {
  background: #19467E;
  color: #fff;
  border-radius: 14px;
  padding: 19px 22px;
  margin: 24px 0 10px 0;
  font-size: 1.08rem;
}

hr {
  border: none;
  border-top: 1.7px solid #e2e7ed;
  margin: 26px 0 16px 0;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #23374D;
  color: #fff;
  padding: 26px 16px 18px 16px;
  font-size: 1rem;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(25,70,126,0.13);
  transition: transform 0.25s, opacity 0.23s;
  gap: 14px;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #17A29B;
  color: #fff;
  border: none;
  border-radius: 45px 7px 45px 7px;
  padding: 10px 26px;
  font-size: 1.01rem;
  margin-right: 2px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(23,162,155,0.13);
  transition: background 0.17s, color 0.1s;
}
.cookie-btn.settings {
  background: #19467E;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #23374D;
  border: 2px solid #17A29B;
  margin-right: 9px;
}
.cookie-btn:hover {
  background: #17A29B;
  color: #fff;
}
.cookie-btn.settings:hover { background: #17A29B; }
.cookie-btn.reject:hover { background: #17A29B; color: #fff; }

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed; z-index: 2000; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(25,70,126, 0.55);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  pointer-events: auto;
  transition: opacity 0.28s;
  opacity: 1;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 94vw;
  padding: 38px 28px 22px 28px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(25,70,126,0.19);
  color: #19467E;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  margin: 0;
  margin-bottom: 8px;
  color: #19467E;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 7px;
}
.cookie-category .cookie-label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #17A29B;
}
.cookie-category .always {
  color: #bbb;
  font-size: 0.97rem;
  font-style: italic;
  padding-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 23px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #17A29B;
  cursor: pointer;
  transition: color 0.11s;
}
.cookie-modal-close:hover { color: #19467E; }

@media (max-width: 500px) {
  .cookie-modal {
    padding: 21px 8px 14px 12px;
    max-width: 97vw;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .cookie-modal-close { right: 12px; top: 7px; }
}

/* ===== VISUAL GEOMETRIC ELEMENTS ===== */
.section, .card, .feature-item, .testimonial-card, .faq-item, .cta-section, .cookie-modal {
  border-radius: 18px 5px 20px 7px;
}
/* Precise horizontal rules */
hr {
  height: 0;
  border: 0;
  border-top: 1.8px solid #17A29B;
  margin: 36px 0 16px;
}

.hero .container, .hero .content-wrapper {
  position: relative;
  z-index: 2;
}

/* ===== ANIMATION & MICRO-INTERACTIONS ===== */
.cta-button, .cookie-btn, button, .mobile-menu-toggle {
  transition: background 0.19s, color 0.13s, box-shadow 0.12s, transform 0.13s;
}
.card, .feature-item, .testimonial-card, .faq-item {
  transition: box-shadow 0.21s, transform 0.13s;
}

.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(25,70,126,0.18);
  transform: translateY(-2px) scale(1.013);
}

/* ===== GEOMETRIC TYPOGRAPHY ACCENTS ===== */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-stretch: semi-expanded;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* ===== Z-INDEX LAYERING ===== */
.mobile-menu { z-index: 1100; }
header { z-index: 1020; position: relative; }
main { z-index: 1; position: relative; }
footer { z-index: 1; position: relative; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #17A29B;
  outline-offset: 2px;
  box-shadow: 0 0 3px #19467E22;
}

/* ===== PRINT (minimal for completeness) ===== */
@media print {
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main { margin: 0; }
}
