/* ---------- Schrift (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Sarabun"; font-weight: 200; font-display: swap; src: url("../fonts/sarabun-200.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 300; font-display: swap; src: url("../fonts/sarabun-300.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url("../fonts/sarabun-400.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 600; font-display: swap; src: url("../fonts/sarabun-600.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 700; font-display: swap; src: url("../fonts/sarabun-700.woff2") format("woff2"); }

/* ---------- Farben nach adventisten.at ---------- */
:root {
  /* Werte laut CI-Manual DACH 1.4, S. 15 */
  --turquoise: #29b8c5;
  --turquoise-dark: #1f8f99;
  --orange: #f28b0d;
  --text: #565655;
  --heading: #2b2b2b;
  --muted: #7a7a7a;
  --bg: #f0f0f0;
  --surface: #ffffff;
  --dark: #1e2b30;
  --line: #e2e2e2;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Sarabun", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--turquoise-dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); font-weight: 600; white-space: nowrap; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 400; font-size: .95rem; }
.nav a:hover { color: var(--turquoise); }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--turquoise); color: #fff; }
.btn-primary:hover { background: var(--turquoise-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-ghost-dark { border-color: var(--turquoise); color: var(--turquoise-dark); }
.btn-ghost-dark:hover { background: var(--turquoise); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.2rem; }
.btn.is-disabled { background: #c9c9c9; border-color: transparent; color: #fff; cursor: default; pointer-events: none; }
.btn-ghost.is-disabled { background: transparent; border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(26, 194, 212, .55), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(230, 140, 49, .35), transparent 50%),
    var(--dark);
  padding: 80px 0 96px;
}
@media (min-width: 768px) { .hero { padding: 120px 0 140px; } }
.hero-inner > * { max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--turquoise); margin-bottom: 16px; }
.hero h1 { color: #fff; font-weight: 200; font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -.01em; }
.hero h1 strong { font-weight: 600; }
.lead { font-size: 1.2rem; max-width: 640px; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; background: var(--bg); }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: rgba(255,255,255,.85); }
.section-dark .section-title { color: #fff; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-title { font-weight: 200; font-size: clamp(2rem, 5vw, 3.2rem); }
.section-title strong { font-weight: 600; color: var(--turquoise); }
.section-lead { font-size: 1.15rem; max-width: 640px; margin-bottom: 40px; }
.muted { color: var(--muted); }

.grid-2 { display: grid; gap: 24px; }
.grid-4 { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--turquoise); }
.card h3 { font-size: 1.6rem; font-weight: 300; }
.card-test:nth-child(2) { border-top-color: var(--orange); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise-dark); background: rgba(26, 194, 212, .12); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
.tag-orange { color: #b8661c; background: rgba(230, 140, 49, .14); }

.benefit-num { display: block; font-size: 2.6rem; font-weight: 200; color: var(--turquoise); line-height: 1; margin-bottom: 12px; }
.benefit p { font-size: 1rem; }

.notice {
  display: flex; gap: 24px; align-items: center;
  margin-top: 56px; padding: 24px 28px;
  background: var(--bg); border-left: 4px solid var(--turquoise); border-radius: var(--radius);
}
.notice h3 { margin-bottom: .3em; }
.notice p { margin: 0; }
.notice-icon { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; background: var(--turquoise); display: grid; place-items: center; }
.notice-icon img { width: 52px; height: 52px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; padding: 0 0 48px 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px; background: var(--line);
}
.step-head { display: flex; gap: 20px; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--turquoise); color: #fff; font-weight: 600; font-size: 1.2rem;
  position: relative; z-index: 1;
}
.step-head h3 { font-size: 1.5rem; font-weight: 300; margin-top: 6px; }
.step-body { margin: 24px 0 0 64px; display: grid; gap: 24px; }
@media (max-width: 599px) { .step-body { margin-left: 0; } }
@media (min-width: 960px) {
  .step-body { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .step-body .hint { grid-column: 1 / -1; }
}
.hint { font-size: .95rem; background: var(--surface); padding: 14px 18px; border-radius: var(--radius); border-left: 3px solid var(--turquoise); margin: 0; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-empty { background: repeating-linear-gradient(135deg, #e7e7e7 0 12px, #ececec 12px 24px); box-shadow: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.video-placeholder p { margin: 0; font-weight: 400; }
.video-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; position: relative; }
.video-icon::after, .video-play::after {
  content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--muted);
}
.video-consent { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; font: inherit; }
.video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(30, 43, 48, .45); }
.video-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--turquoise); }
.video-play::after { border-color: transparent transparent transparent #fff; border-width: 13px 0 13px 21px; }
.video-note { position: absolute; bottom: 10px; left: 12px; right: 12px; color: #fff; font-size: .8rem; text-align: center; }

/* ---------- Glossar ---------- */
.glossary { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .95rem; }
.glossary div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.glossary div:last-child { border-bottom: 0; }
.glossary dt { font-weight: 600; color: var(--heading); font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.glossary dd { margin: 0; }

/* ---------- Termine ---------- */
.col-title { font-size: 1.5rem; font-weight: 300; }
.termine { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.termin { display: flex; align-items: center; gap: 16px; background: var(--bg); padding: 14px; border-radius: var(--radius); flex-wrap: wrap; }
.termin-date { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--radius); background: var(--turquoise); color: #fff; display: grid; place-content: center; text-align: center; font-size: .75rem; text-transform: uppercase; line-height: 1.1; }
.termin-date span { display: block; font-size: 1.5rem; font-weight: 600; }
.termin-date-orange { background: var(--orange); }
.termin-date-alt { background: var(--dark); }
.termin-date-alt span { font-size: 1.1rem; }
.termin-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.termin-info strong { color: var(--heading); }
.termin-info span { font-size: .95rem; }
.termin.is-past { opacity: .45; }
.termin.is-past .termin-zoom { display: none; }
.termin.is-past .termin-info span::after { content: " · vorbei"; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--heading); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--turquoise); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; }

/* ---------- Kontakt & Footer ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact p { margin: 0; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { background: #fff; border-top: 1px solid var(--line); padding: 24px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--turquoise); }

/* ---------- Für wen ---------- */
.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.audience strong { color: var(--heading); font-size: 1.1rem; margin-top: 12px; }
.audience span:last-child { font-size: .95rem; color: var(--muted); line-height: 1.4; }
.audience-logo { width: 96px; height: 96px; object-fit: contain; }


.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a[aria-current="page"] { color: var(--turquoise-dark); }

/* ---------- Rechtliche Seiten ---------- */
.back-link { text-decoration: none; font-weight: 400; font-size: .95rem; color: var(--text); }
.back-link:hover { color: var(--turquoise); }
.legal { min-height: 70vh; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { overflow-wrap: anywhere; }

/* ---------- Konto-Seite ---------- */
.konto { padding: 32px 0 48px; }
.konto-layout { display: grid; gap: 24px; grid-template-areas: "side" "frame" "extra"; }
.konto-side { grid-area: side; }
.konto-frame { grid-area: frame; }
.konto-extra { grid-area: extra; }
.konto-extra .hint + .hint { margin-top: 12px; }
.konto-side .section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.konto-side > p { font-size: 1rem; }
.konto-help { margin: 20px 0 0; }
.konto-help summary { cursor: pointer; font-weight: 600; color: var(--heading); padding: 6px 0; }
.konto-help .glossary { margin-top: 8px; }
.konto-contact { font-size: .95rem; margin-top: 16px; }
.konto-frame { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.konto-frame iframe { display: block; width: 100%; height: 80vh; min-height: 560px; border: 0; }
@media (min-width: 960px) {
  .konto-layout { grid-template-columns: 340px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "side frame" "extra frame"; align-items: start; gap: 24px 40px; }
  .konto-frame iframe { height: calc(100vh - 128px); min-height: 640px; }
}
