/* ============================================
   MA-Onboarding-Funnel · Shared Styles
   Design-System: CSS Custom Properties für Brand
   Mobile-first, DSGVO-konform (keine externen Fonts)
   ============================================ */

:root {
  /* Kunden-spezifisch (kann überschrieben werden im HTML via inline style) */
  --brand: #00713a;
  --brand-dark: #004d27;
  --brand-ink: #282828;
  --accent-bg: #f5f1e8;

  /* System */
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --border: #e8e4dc;
  --border-strong: #c8c2b5;

  /* Typo */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;

  /* Spacing (8px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Widths */
  --w-content: 680px;
  --w-wide: 960px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadows */
  --shadow-1: 0 2px 8px rgba(40, 40, 40, 0.06);
  --shadow-2: 0 8px 28px rgba(40, 40, 40, 0.12);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  margin: 0 0 var(--s-4);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
@media (min-width: 720px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

p { margin: 0 0 var(--s-4); }

/* Skip Link (A11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--s-3) var(--s-4);
  background: var(--brand);
  color: #fff;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container--wide { max-width: var(--w-wide); }

section {
  padding: var(--s-7) 0;
}
@media (min-width: 720px) {
  section { padding: var(--s-8) 0; }
}

.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  padding: var(--s-4) 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.site-header__logo {
  height: 36px;
  width: auto;
}
.site-header__motto {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  display: none;
}
@media (min-width: 560px) {
  .site-header__motto { display: block; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--s-7) 0 var(--s-8);
  background: linear-gradient(180deg, var(--accent-bg) 0%, #fff 100%);
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-4);
}
.hero__kicker--large {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  padding: var(--s-2) var(--s-4);
  background: rgba(0, 113, 58, 0.15);
  color: #6fd28c;
  border-radius: 999px;
  margin-bottom: var(--s-5);
}
.section--soft .hero__kicker--large,
.timeline-sticky .hero__kicker--large {
  background: rgba(0, 113, 58, 0.1);
  color: var(--brand);
}
.hero__headline {
  font-size: 2.25rem;
  margin-bottom: var(--s-4);
}
@media (min-width: 720px) {
  .hero__headline { font-size: 3.25rem; }
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--s-6);
}
.hero__image-wrap {
  margin-top: var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--s-6);
  background: var(--bg-soft);
  color: var(--text-muted);
  text-align: center;
}
.hero__image-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-3);
  opacity: 0.4;
}

/* ============================================
   MENTOR CARD
   ============================================ */
.mentor {
  background: var(--bg);
}
.mentor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
@media (min-width: 640px) {
  .mentor-card {
    flex-direction: row;
    align-items: flex-start;
    padding: var(--s-7);
  }
}
.mentor-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 600;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(40, 40, 40, 0.12);
}
.mentor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
@media (min-width: 640px) {
  .mentor-card__photo { width: 140px; height: 140px; }
}
.mentor-card__body { flex: 1; }
.mentor-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 var(--s-1);
  color: var(--brand-ink);
}
.mentor-card__role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 var(--s-4);
}
.mentor-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 var(--s-5);
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding-left: var(--s-4);
}
.mentor-card__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.mentor-card__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--accent-bg);
  border-radius: var(--r-md);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s;
}
.mentor-card__contact:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
.mentor-card__contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   TIMELINE STICKY (Einarbeitung)
   Sidebar left (sticky), cards right (scroll)
   ============================================ */
.timeline-sticky .timeline-sticky__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 860px) {
  .timeline-sticky .timeline-sticky__grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
    gap: var(--s-8);
  }
}

.timeline-sticky__sidebar { align-self: start; }
@media (min-width: 860px) {
  .timeline-sticky__sidebar {
    position: sticky;
    top: calc(var(--s-4) + 72px);
  }
}
.timeline-sticky__heading h2 { margin-bottom: var(--s-4); }
.timeline-sticky__heading .lede { color: var(--text-muted); }

.timeline-sticky__items {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}

.timeline-item {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
}
.timeline-item__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--accent-bg);
}
.timeline-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-item__body { padding: var(--s-6); }
@media (min-width: 640px) {
  .timeline-item__body { padding: var(--s-7); }
}
.timeline-item__phase {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
  padding: 4px 12px;
  background: rgba(0, 113, 58, 0.1);
  border-radius: 999px;
}
.timeline-item__title {
  font-size: 1.35rem;
  margin: 0 0 var(--s-4);
  line-height: 1.25;
}
@media (min-width: 640px) {
  .timeline-item__title { font-size: 1.5rem; }
}
.timeline-item__body p { margin: 0 0 var(--s-4); color: var(--text); }
.timeline-item__body p:last-child { margin-bottom: 0; }
.timeline-item__reassurance {
  margin: var(--s-4) 0 0 !important;
  padding: var(--s-4) var(--s-5);
  background: var(--accent-bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.95rem;
  color: var(--brand-ink) !important;
}

/* ============================================
   STANDORT / MAP
   ============================================ */
.standort__address {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--accent-bg);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.standort__address svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.standort__address strong {
  display: block;
  color: var(--brand-ink);
  margin-bottom: var(--s-1);
}
.standort__address a {
  display: inline-block;
  margin-top: var(--s-2);
  font-size: 0.9rem;
  font-weight: 500;
}
.standort__note {
  padding: var(--s-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text);
}
.standort__note strong { color: var(--brand-ink); }

/* ============================================
   UNTERKUNFT HIGHLIGHT
   ============================================ */
.unterkunft {
  padding-top: 0;
}
.unterkunft__card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-5);
  box-shadow: 0 12px 40px rgba(0, 113, 58, 0.2);
}
@media (min-width: 720px) {
  .unterkunft__card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: var(--s-7) var(--s-8);
    gap: var(--s-7);
  }
}
.unterkunft__icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.unterkunft__icon svg { width: 44px; height: 44px; }
.unterkunft__body { flex: 1; }
.unterkunft__body h2 {
  color: #fff;
  margin: 0 0 var(--s-4);
}
.unterkunft__body .lede {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}
.unterkunft__body .hero__kicker--large {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: var(--s-4);
}

/* ============================================
   VIDEO HERO (mit Bild + Play-Overlay)
   ============================================ */
.video-hero {
  padding: 0;
  background: var(--brand-ink);
}
.video-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  overflow: hidden;
  background: var(--brand-ink);
}
@media (min-width: 640px) {
  .video-hero__media { aspect-ratio: 16 / 9; max-height: 620px; }
}
.video-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.05);
  display: block;
}
.video-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0.65;
  transition: transform 0.2s, opacity 0.2s;
}
@media (min-width: 640px) {
  .video-hero__play { width: 104px; height: 104px; }
}
.video-hero__play svg {
  width: 36%;
  height: 36%;
  margin-left: 6%;
}
.video-hero__badge {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
@media (min-width: 560px) {
  .video-hero__badge {
    top: var(--s-4);
    right: var(--s-4);
    padding: var(--s-2) var(--s-4);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }
}
.video-hero__body {
  padding: var(--s-7) 0 var(--s-8);
  background: var(--brand-ink);
  color: #fff;
  text-align: center;
}
.video-hero__body h2 { color: #fff; }
.video-hero__body .lede { color: rgba(255, 255, 255, 0.85); max-width: 580px; margin: 0 auto; }

/* ============================================
   CHECKLIST (anklickbar mit localStorage)
   ============================================ */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 var(--s-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.checklist li {
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist label {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  user-select: none;
  min-height: 56px;
  transition: background 0.12s;
}
.checklist label:hover { background: var(--bg-soft); }
.checklist input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checklist__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--brand);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.checklist__check::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.checklist input[type="checkbox"]:checked ~ .checklist__check {
  background: var(--brand);
}
.checklist input[type="checkbox"]:checked ~ .checklist__check::after {
  opacity: 1;
  transform: scale(1);
}
.checklist input[type="checkbox"]:checked ~ .checklist__label {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(40, 40, 40, 0.35);
}
.checklist input[type="checkbox"]:focus-visible ~ .checklist__check {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.checklist__label { transition: color 0.15s; }
.checklist__hint {
  padding: var(--s-4);
  background: var(--accent-bg);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--brand-ink);
}

/* Mentor-Kontakt-Chips: Mobile full-width stapeln */
@media (max-width: 560px) {
  .mentor-card__contacts {
    flex-direction: column;
    gap: var(--s-2);
  }
  .mentor-card__contact {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* ============================================
   SOCIAL
   ============================================ */
.social {
  text-align: center;
}
.social__links {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s, transform 0.15s;
}
.social__link:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.social__link svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--s-6) 0;
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
@media (min-width: 720px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.site-footer__brand {
  color: #fff;
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.site-footer__motto {
  font-style: italic;
  opacity: 0.85;
  font-size: 0.85rem;
}
.site-footer__meta {
  font-size: 0.8rem;
  opacity: 0.6;
}
.site-footer a { color: #fff; }

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--text); }

/* ============================================
   STANDORT HERO IMAGE (über Adress-Card)
   ============================================ */
.standort__hero {
  margin: 0 0 var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.standort__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   TEAM-FINAL (Peak-End vor Footer)
   Großes Bild + Overlay-Card mit Quote
   ============================================ */
.team-final {
  position: relative;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.team-final__media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.team-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 77, 39, 0.92) 100%
  );
  z-index: 1;
}
.team-final__overlay {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-7) 0 var(--s-6);
  color: #fff;
}
.team-final__overlay h2 {
  color: #fff;
  margin: 0 0 var(--s-4);
}
.team-final__overlay .lede {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--s-5);
  max-width: 580px;
}
.team-final__overlay .hero__kicker--large {
  color: rgba(255, 255, 255, 0.85);
}
.team-final__signature {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 1rem;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 420px;
}
.team-final__signature span {
  font-weight: 600;
  color: #fff;
}
.team-final__signature a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.team-final__signature a:hover {
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 720px) {
  .team-final { min-height: 640px; }
  .team-final__overlay { min-height: 640px; padding: var(--s-9) 0 var(--s-7); }
}

/* ============================================
   STANDORT MAP (Google Maps Embed, Schwarz-Weiß)
   ============================================ */
.standort__map {
  position: relative;
  margin: 0 0 var(--s-5);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.standort__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.05);
  display: block;
}
@media (min-width: 720px) {
  .standort__map { aspect-ratio: 21 / 9; }
}
