/* ===========================
   CFS ist Chance – Design System
   Olaf Waters
   =========================== */

:root {
  --light_burgundy: #8f1a1a;
  --logo-red: #630000;
  --black_burgundy: #420000;
  --white_green: #b8d9b8;
  --light_green: #5c9e5c;
  --mid_green: #237523;
  --logo-green: #005000;
  --dark-green: #003500;
  --black-green: #001c00;

  /* Warm Neutrals */
  --warm-white: #fdfaf5;
  --cream:      #f7f2e8;
  --sand:       #e8e2d6;
  --warm-gray:  #b0a898;
  --mid-brown:  #6b6259;
  --dark-brown: #3a322b;
  --charcoal: #2c2c2c;
  --near-black: #1e1a15;


  /*Old colors*/
  --white-green: #7a9e7e;
  --sage-dark: #4d7050;
  --earth: #8b6f5e;
  --mid-gray: #6b6b6b;
  --light-gray: #e8e4de;

  
  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
  --section-pad: 5rem 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAVBAR ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--logo-green);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark-green); text-decoration: none; }
.nav-links a.nav-active { color: var(--logo-red) !important; }

.nav-cta {
  background: var(--logo-green);
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--logo-red) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* ---- HERO ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem;
}

/* Subtle light overlay so text stays readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-content .btn {
  margin-top: 4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--logo-red);
  margin: 0;
}

.hero-title-2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--logo-green);
  margin: 0;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black-green);
  font-weight: 500;
  margin: 0;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--logo-green);
  font-weight: 300;
  margin: 0 0 0.75rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--logo-red);
  color: white;
}
.btn-primary:hover {
  background: var(--light_burgundy);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,0,0,0.25);
}

.btn-green {
  background: var(--logo-green);
  color: white;
}
.btn-green:hover {
  background: var(--logo-red);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,80,0,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--logo-green);
  border: 1.5px solid var(--logo-green);
}
.btn-outline:hover {
  background: var(--logo-green);
  color: white;
  text-decoration: none;
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
  color: var(--logo-green);
  margin-bottom: 1.2rem;
}

.section p { color: var(--mid-gray); max-width: 62ch; margin-bottom: 1rem; }

/* ---- TWO-COL CONTENT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.content-image {
  border-radius: 12px;
  overflow: hidden;
}
.content-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ---- QUESTIONS LIST ---- */
.questions-list {
  list-style: none;
  margin: 1.5rem 0;
}
.questions-list li {
  padding: 0.7rem 0 0.7rem 1.8rem;
  position: relative;
  color: var(--charcoal);
  border-bottom: 1px solid var(--light-gray);
  font-size: 1.05rem;
}
.questions-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--white-green);
}

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.93rem; color: var(--mid-gray); margin: 0; }

/* ---- VIDEO EMBED ---- */
.video-embed {
  position: relative;
  max-width: 760px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-thumb-link {
  display: block;
  text-decoration: none;
}
.video-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video-thumb-link:hover .video-play-btn {
  background: rgba(0,0,0,0.5);
}

/* ---- VIDEO CARDS ---- */
.video-card {
  background: var(--warm-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.video-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.video-thumb {
  background: var(--logo-green);
  color: white;
  font-size: 2.5rem;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-body { padding: 1.5rem; }
.video-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logo-green);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.video-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}
.video-card-body p { font-size: 0.9rem; color: var(--mid-gray); margin: 0; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--mid_green);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: white;
  margin-bottom: 0.8rem;
}
.cta-band p { color: rgba(255,255,255,0.8); max-width: 55ch; margin: 0 auto 1.8rem; }
.cta-band .btn-primary { background: white; color: var(--sage-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ---- ABOUT PAGE ---- */
.about-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.about-portrait {
  border-radius: 12px;
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 480px; object-fit: cover; }
.about-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--logo-green);
  margin-bottom: 1.2rem;
}
.about-text p { color: var(--mid-gray); margin-bottom: 1rem; max-width: 60ch; }

/* ---- CONTACT PAGE ---- */
.contact-wrap {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.contact-wrap h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}
.contact-wrap .lead { color: var(--mid-gray); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--warm-white);
  color: var(--charcoal);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white-green);
}
.form-group textarea { min-height: 150px; resize: vertical; }

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ---- COURSES ---- */
.courses-header {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}
.courses-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}

.course-card {
  background: var(--warm-white);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.course-card-thumb {
  background: var(--white_green);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.course-card-body { padding: 1.5rem; }
.course-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}
.course-card-body p { font-size: 0.92rem; color: var(--mid-gray); margin-bottom: 1rem; }

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--mid-gray);
  background: var(--light-gray);
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
}

/* ---- DEIN WEG PAGE ---- */
.deinweg-hero {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--earth) 100%);
  color: white;
  text-align: center;
  padding: 6rem 1.5rem;
}
.deinweg-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  margin-bottom: 1rem;
}
.deinweg-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

.waystation {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.waystation:last-child { border-bottom: none; }
.waystation-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.waystation h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--logo-green);
  margin-bottom: 0.4rem;
}
.waystation p { color: var(--mid-gray); font-size: 0.95rem; margin: 0; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--warm-gray);
  color: var(--dark-brown);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--near-black);
  line-height: 1.5;
}
.footer-tagline span { font-size: 0.85rem; color: var(--mid-brown); font-family: var(--font-sans); }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: var(--mid-brown); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--near-black); text-decoration: none; }
.footer-social p { margin-bottom: 0.5rem; font-size: 0.88rem; color: var(--mid-brown); }

.btn-youtube {
  display: inline-flex;
  align-items: center;
  color: var(--logo-red) !important;
  text-decoration: none !important;
  transition: color 0.2s;
  line-height: 1;
}
.btn-youtube:hover {
  color: var(--light_burgundy) !important;
  text-decoration: none !important;
}
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mid-brown);
  border-top: 1px solid var(--sand);
  padding-top: 1.2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher { display: flex; align-items: center; }
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--light-gray);
  border-radius: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--white-green);
  color: var(--sage-dark);
  background: var(--cream);
}

/* ---- RESPONSIVE ---- */

/* Tablet: collapse two-col layouts */
@media (max-width: 900px) {
  .two-col, .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col.reverse { direction: ltr; }
  .two-col.reverse > * { direction: ltr; }
  .about-portrait { max-width: 340px; }
  .about-hero { grid-template-columns: 1fr; padding: 2rem 1.5rem; margin: 2rem auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .content-image img { height: 300px; }
  .hero { min-height: 70vh; padding: 5rem 1.5rem; }
}

/* Mobile: everything */
@media (max-width: 640px) {
  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--warm-white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    gap: 1rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  /* Sections */
  :root { --section-pad: 3rem 1.25rem; }
  .section-inner { padding-left: 0; padding-right: 0; }

  /* Hero (home) */
  .hero { min-height: 60vh; padding: 4rem 1.25rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-title-2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .hero-content .btn { margin-top: 2rem; }

  /* Dein Weg hero frosted card */
  .deinweg-hero { padding: 3rem 1rem; }
  .deinweg-hero > div[style] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.25rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .deinweg-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Two-col (already collapses at 900px, reduce gap further on mobile) */
  .two-col { gap: 1.5rem; }
  .content-image img { height: 220px; }

  /* About page */
  .about-hero { padding: 1.5rem 1.25rem; }
  .about-portrait img { height: 280px; }

  /* Cards grid — single column on very small screens */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }

  /* CTA band — shrink the big button */
  .cta-band { padding: 3rem 1.25rem; }
  .cta-band a[style*="font-size:2rem"],
  .cta-band a[style*="font-size: 2rem"] {
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    border-radius: 30px !important;
  }

  /* Section headings */
  .section h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Waystation */
  .waystation { grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .waystation-number { width: 44px; height: 44px; font-size: 1.1rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }

  /* Buttons — prevent overflow */
  .btn { max-width: 100%; white-space: normal; text-align: center; }

  /* Forms — full width inputs */
  input[type="email"], input[type="text"], input[type="url"], textarea {
    width: 100%;
    min-width: 0 !important;
  }

  /* Begleitung connector strip — stack vertically */
  .section-inner > div[style*="display:flex"][style*="align-items:stretch"] {
    flex-direction: column !important;
  }
  .section-inner > div[style*="display:flex"][style*="align-items:stretch"] > div[style*="font-size:1.5rem"] {
    transform: rotate(90deg);
    padding: 0;
  }
  .section-inner > div[style*="display:flex"][style*="align-items:stretch"] > a > div {
    border-radius: 12px !important;
  }
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  text-decoration: none;
  color: white;
}
.whatsapp-float svg {
  flex-shrink: 0;
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--near-black);
  color: rgba(255,255,255,0.88);
  padding: 1.2rem 2rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}
.cookie-banner-text strong {
  font-size: 0.95rem;
  color: white;
  display: block;
  margin-bottom: 0.3rem;
}
.cookie-banner-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
  max-width: none;
}
.cookie-banner-text a {
  color: var(--white_green);
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.cookie-btn-decline:hover {
  border-color: rgba(255,255,255,0.7);
  color: white;
}
.cookie-btn-accept {
  background: var(--logo-green);
  color: white;
}
.cookie-btn-accept:hover {
  background: var(--dark-green);
}
