/* ===================================================
   WissensWelt Innovativ – style.css
   Modern, gradient-inspired, flexbox-only layout
   Brand colors: #243F6E (Primary), #1B232A (Secondary), #FFD166 (Accent)
   Fonts: Montserrat (Display), Roboto (Body)
   =================================================== */

/* ----------------------
   1. CSS Reset/Normalize
-------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, figcaption, blockquote, pre {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  outline: none;
  border: none;
  color: inherit;
}

/* -------------------------------
   2. CSS Variables (w/ fallbacks)
----------------------------------*/
:root {
  --color-primary: #243F6E;
  --color-primary-rgb: 36,63,110;
  --color-secondary: #1B232A;
  --color-accent: #FFD166;
  --color-bg-gradient-start: #E9F1FF;
  --color-bg-gradient-end: #F6FBFF;
  --color-bg-dark-1: #243F6E;
  --color-bg-dark-2: #1B232A;
  --color-bg-light: #FFF;
  --color-neutral-100: #F9FAFB;
  --color-neutral-200: #E1E8EF;
  --color-neutral-900: #1B232A;
  --color-fg: #212529;
  --color-fg-inverse: #FFF;
  --color-shadow: rgba(36,63,110,0.06);
  --color-shadow-strong: rgba(36,63,110,0.13);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition: 0.25s cubic-bezier(.4, .03, .35, 1.01);
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }
}

/* ----------------------
   3. Body & Layout
-----------------------*/
body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 80%);
  color: var(--color-fg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Section spacing */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}
section:last-of-type,
.section:last-of-type {
  margin-bottom: 0;
}

/* Card container patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--color-shadow);
  background: var(--color-bg-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  transform: translateY(-3px) scale(1.015);
}
.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;
}

/* Features/testimonials pattern */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 4px 16px var(--color-shadow);
  margin-bottom: 24px;
  position: relative;
}
.testimonial-card p {
  color: #222;
  font-size: 1.1rem;
  text-align: center;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Content wrapper utility: vertical spacing */
.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section ul, .text-section ol {
  margin-left: 1.7em;
  margin-top: 10px;
}

/* -------------------
   4. Typography
--------------------*/
h1, .hero h1, .thank-you h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.16;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
p, li, dd {
  font-size: 1.1rem;
  color: var(--color-fg);
  margin-bottom: 8px;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}
em {
  color: var(--color-secondary);
  font-style: italic;
}
.subheadline {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 400;
}
ul, ol {
  margin-bottom: 15px;
  margin-left: 24px;
}
ul li {
  list-style: disc;
  margin-bottom: 7px;
}
ol li {
  list-style: decimal;
  margin-bottom: 7px;
}
dt {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 12px;
}
dd {
  margin-left: 1em;
  margin-bottom: 10px;
  font-style: italic;
}
.hero h1, .thank-you h1 {
  font-size: 2.65rem;
}

/* --------------------------
   5. Hero Section
----------------------------*/
.hero {
  background: linear-gradient(100deg, #E9F1FF 65%, #E3ECFF 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 60px 0 50px 0;
  box-shadow: 0 2px 18px var(--color-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}

/* Thank You Section Style */
.thank-you {
  background: #f6fbff;
  border-radius: var(--radius-lg);
  padding: 60px 0;
  min-height: 380px;
}

/* ----------------------
   6. Navigation Styles
------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(36, 63, 110, 0.09);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 20px 10px 20px;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 7px 12px;
  color: var(--color-primary);
  border-radius: 20px;
  transition: background var(--transition),color var(--transition);
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-primary);
  color: #fff;
}
header nav img {
  height: 42px;
  margin-right: 16px;
  vertical-align: middle;
}

/* ----------------------------
   6a. Mobile Menu Patterns
------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 2.3rem;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  border: 0;
  margin-left: auto;
  margin-right: 6px;
  transition: background 0.16s, color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-neutral-200);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 92vw;
  max-width: 340px;
  background: #fff;
  box-shadow: 4px 0 36px 0 rgba(27, 35, 42, 0.18);
  z-index: 2000;
  transform: translateX(-120%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 10;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-neutral-200);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  align-items: flex-start;
  padding-left: 18px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  padding: 13px 8px;
  width: 100%;
  border-radius: 12px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-primary);
  color: #fff;
}

/* ========= Responsive NAV ========= */
@media (max-width: 1100px) {
  header nav {
    gap: 14px;
    flex-wrap: wrap;
  }
  header nav a {
    font-size: 0.98rem;
    font-weight: 500;
    padding: 6px 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-right: 68px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* Overlay on mobile menu open */
body.menu-open {
  overflow: hidden;
  position: relative;
}
body.menu-open::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 63, 110, 0.18);
  z-index: 1999;
  transition: opacity var(--transition);
}


/* ----------------------
   7. CTA Button Styles
------------------------*/
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-primary) 58%, var(--color-accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.82em 2.5em;
  border-radius: 32px;
  box-shadow: 0 3px 14px var(--color-shadow);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: .02em;
  margin-top: 6px;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(92deg, var(--color-accent) 26%, var(--color-primary) 100%);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 7px 22px var(--color-shadow-strong);
}

/* ----------------------
   8. Card Styles
------------------------*/
.card {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow:0 4px 20px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 0 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 10px 34px var(--color-shadow-strong);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Infographic Highlight */
.infographic-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, #F6FBFF 10%, #E1E8EF 90%);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: 0 2px 11px var(--color-shadow);
  margin: 18px 0 0 0;
}
.infographic-preview img { width: 52px; height: auto; }
.infographic-preview span { font-size: 1.05rem; font-weight: 500; color: var(--color-primary); }

/* Timeline as subtle card */
.timeline {
  background: #F9FAFB;
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 7px var(--color-shadow);
  margin-top: 20px;
  font-style: italic;
  color: var(--color-primary);
}

/* -----------------------------
   9. Newsletter Section Style
--------------------------------*/
.newsletter-section {
  background: linear-gradient(112deg, #e9f1ff 78%, #ffd16633 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 14px var(--color-shadow);
}

/* --------------------
   10. Footer Styles
----------------------*/
footer {
  width: 100%;
  background: var(--color-bg-gradient-end);
  margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 16px var(--color-shadow);
}
footer .container {
  flex-direction: column;
  gap: 22px;
  padding-top: 36px;
  padding-bottom: 28px;
  min-width: 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-secondary);
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 16px;
  transition: color var(--transition), background var(--transition);
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-primary);
  color: #fff;
}
footer .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  align-items: center;
}


/* -----------------------------
   11. Cookie Consent Banner
--------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #F6FBFF 70%, #FFD166 100%);
  box-shadow: 0 -1px 16px var(--color-shadow-strong);
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  gap: 16px;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  transition: transform var(--transition), opacity var(--transition);
  animation: cookie-slide-up 0.6s cubic-bezier(.43,1.09,.43,1) 1;
}
@keyframes cookie-slide-up {
  0% {transform: translateY(110%); opacity: 0;}
  80% {transform: translateY(-10%); opacity: 1;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  flex: 1 1 200px;
  color: #212529;
  margin-right: 14px;
  font-size: 1.04rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 0.6em 1.6em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-btn.reject {
  background: var(--color-neutral-200);
  color: var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffd166;
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: #fff;
  z-index: 4000;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 44px var(--color-shadow-strong);
  min-width: 310px;
  max-width: 95vw;
  width: 400px;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #eee;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 8px;
}
.cookie-toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  margin: 0;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: left 0.18s, background 0.22s;
}
.cookie-toggle input:checked + .slider {
  left: 22px;
  background: var(--color-accent);
}
.cookie-modal .cookie-btn.accept {
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 18px;
  background: none;
  color: var(--color-secondary);
  font-size: 1.7rem;
  border:none;
  cursor: pointer;
  transition: color 0.20s;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-neutral-200);
  color: var(--color-primary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 63, 110, 0.14);
  z-index: 3999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ----------------------
   12. General Animations
------------------------*/
section, .section, .content-wrapper, .hero, .card, .testimonial-card, .timeline, .infographic-preview {
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}

/* Microinteractions for cards */
.card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 9px 28px var(--color-shadow-strong);
}
.cta-btn:active {
  transform: scale(0.98);
}


/* --------------------------
   13. Responsive Design
----------------------------*/
@media (max-width: 950px) {
  .container {
    max-width: 96vw;
    padding: 0 5vw;
  }
  .hero {
    padding: 38px 0 24px 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section, section {
    padding: 26px 0px;
    margin-bottom: 36px;
    border-radius: 24px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .card {
    padding: 20px 14px;
    min-width: unset;
    flex-basis: 100%;
  }
  .testimonial-card {
    padding: 18px 8px;
    margin-bottom: 18px;
  }
  .timeline {
    padding: 12px 8px;
    font-size: 1.04rem;
  }
  .hero {
    padding: 32px 0 20px 0;
  }
  .hero h1, .thank-you h1 {
    font-size: 2.1rem;
  }
  .subheadline {
    font-size: 1.05rem;
  }
  .cookie-modal {
    width: 97vw;
    min-width: unset;
    padding: 18px 8vw;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 6px;
  }
  .content-grid, .card-container, .card {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .infographic-preview {
    padding: 12px 8px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  h1, .hero h1, .thank-you h1 {
    font-size: 1.45rem;
  }
  section, .section {
    padding: 14px 2px;
    border-radius: 12px;
  }
  .footer .contact-info {
    flex-direction: column;
    gap: 3px;
    font-size: 0.96rem;
  }
}

/* Touch improvements for links */
a, button, .cta-btn, .cookie-btn, .mobile-nav a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------------------
   Misc Utility Classes
-----------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }

/* Hide scroll if modal or menu open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ====================
   END OF STYLE.CSS
====================== */
