/* ============================================================
   Meiyi Zhao – Klavier- & Gesangsunterricht
   Design-Tokens und Stilregeln nach den Brand Guidelines
   ============================================================ */

:root {
  --ivory: #fcfaf7;
  --sand: #f5efe7;
  --beige: #dccebe;
  --taupe: #a58f7b;
  --taupe-deep: #86705d;   /* abgedunkeltes Taupe fuer Fokus/Hover mit genug Kontrast */
  --charcoal: #2b2724;
  --charcoal-lift: #453d36; /* warme Aufhellung fuer Button-Hover */
  --ink-soft: rgba(43, 39, 36, 0.76);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-text: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --section-pad: clamp(64px, 9vh, 104px);
}

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

html { color-scheme: light; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Zugaenglichkeit ------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus-visible { left: 16px; }

:focus-visible {
  outline: 2px solid var(--taupe-deep);
  outline-offset: 3px;
}
.band-dark :focus-visible { outline-color: var(--beige); }

/* --- Buttons (Brand-Stil: Pill, Versalien, Pfeil) ------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 17px 28px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn .arrow { flex: none; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--charcoal-lift); }

.btn-secondary {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  padding: 16px 27px;
}
.btn-secondary:hover { background: var(--sand); }
.band-sand .btn-secondary:hover { background: var(--ivory); }

.btn-text {
  padding: 8px 2px;
  border-radius: 4px;
  color: var(--charcoal);
}
.btn-text:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--taupe); }

.band-dark .btn-primary { background: var(--ivory); color: var(--charcoal); }
.band-dark .btn-primary:hover { background: var(--sand); }

/* --- Kopfbereich ---------------------------------------------------- */

.hero-band {
  position: relative;
  overflow: clip;
}

.site-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand {
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.site-nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--taupe);
}

/* --- Hero: Text links, Foto laeuft bis an den rechten Rand ---------- */

/* Vier Spuren: flexible Aussenraender zentrieren die beiden Inhaltsspalten
   (zusammen = Container-Breite); das Foto greift zusaetzlich in den rechten
   Aussenrand und laeuft so bis an den Bildschirmrand. Kein 100vw noetig. */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--container) / 2 - var(--gutter)))
    minmax(0, calc(var(--container) / 2 - var(--gutter)))
    minmax(var(--gutter), 1fr);
  min-height: clamp(520px, 66vh, 680px);
}

.hero-copy {
  grid-column: 2;
  align-self: center;
  max-width: 620px;
  padding-block: clamp(32px, 5vh, 56px) clamp(44px, 7vh, 80px);
  padding-right: clamp(28px, 4.5vw, 76px);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero-copy .lead {
  margin: 0 0 36px;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Foto im Bogenrahmen mit feiner Kontur-Linie (Passepartout) */
.hero-media {
  grid-column: 3;
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(100%, 430px);
}
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--beige);
  opacity: 0.55;
  left: -17%;
  bottom: -5%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--beige);
  border-radius: 50% 50% 30px 30px / 37% 37% 30px 30px;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  border-radius: 50% 50% 26px 26px / 37% 37% 26px 26px;
}

/* --- Lauftext (bewegt sich langsam nach rechts) ---------------------- */

.marquee {
  background: var(--sand);
  border-block: 1px solid var(--beige);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-row {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee-row li {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-block: 17px;
  padding-right: 34px;
  white-space: nowrap;
  font-size: 15px;
  color: var(--ink-soft);
}
.marquee-row svg { color: var(--taupe); flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-drift 38s linear infinite; }
}
@keyframes marquee-drift {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* --- Abschnitte (allgemein) ----------------------------------------- */

.section { padding-block: var(--section-pad); }
.band-sand { background: var(--sand); }
.band-dark { background: var(--charcoal); color: var(--ivory); }

.section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section .intro {
  margin: 0 0 28px;
  max-width: 36em;
  color: var(--ink-soft);
}
.band-dark .intro { color: rgba(252, 250, 247, 0.74); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

/* --- Ueber mich ------------------------------------------------------ */

.about-media { width: min(100%, 440px); }
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px 140px 26px 26px;
}
.about-copy p { max-width: 34em; }
.about-copy .btn { margin-top: 10px; }

/* --- Ueber den Unterricht ------------------------------------------- */

.facets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  margin-block: 10px 34px;
}
.facets-two { grid-template-columns: 1fr 1fr; max-width: 920px; }
.facet {
  border-top: 1px solid var(--beige);
  padding-top: 22px;
}
.facet p a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); }
.facet p a:hover { text-decoration-color: var(--charcoal); }
.band-sand .facet { border-top-color: rgba(165, 143, 123, 0.45); }
.facet svg { display: block; margin-bottom: 14px; color: var(--taupe-deep); }
.facet h3 {
  margin: 0 0 8px;
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 500;
}
.facet p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* --- Preise-Teaser ---------------------------------------------------- */

.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.teaser h2 { margin-bottom: 12px; }
.teaser .intro { margin-bottom: 0; }

/* --- Zeitstrahl (Werdegang) ------------------------------------------ */

.timeline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 26px;
  border-inline-start: 1px solid var(--beige);
  max-width: 760px;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px 22px;
  padding-block: 14px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--taupe);
}
.tl-years {
  font-size: 15px;
  font-weight: 500;
  color: var(--taupe-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-text { margin: 0; font-size: 16px; line-height: 1.6; }

/* --- Bilder-Stapel (Einblicke in den Unterricht) --------------------- */

.deck {
  max-width: 500px;
  margin-inline: auto;
}
.deck-stack {
  position: relative;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  aspect-ratio: 4 / 5;
}
/* Faecher: vorn das aktive Bild, links das vorherige, rechts das naechste */
.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--beige);
  background: var(--sand);
  opacity: 0;
  translate: 0 2%;
  scale: 0.9;
  rotate: 0deg;
  transform-origin: 50% 100%;
  z-index: 1;
}
.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deck-card.is-front { opacity: 1; translate: 0 0;        rotate: 0deg;     scale: 1;     z-index: 5; }
.deck-card.is-r1    { opacity: 1; translate: 14% 1%;     rotate: 3.5deg;   scale: 0.965; z-index: 4; }
.deck-card.is-l1    { opacity: 1; translate: -14% 1%;    rotate: -3.5deg;  scale: 0.965; z-index: 4; }
.deck-card.is-r2    { opacity: 1; translate: 26% 2.5%;   rotate: 7deg;     scale: 0.92;  z-index: 3; }
.deck-card.is-l2    { opacity: 1; translate: -26% 2.5%;  rotate: -7deg;    scale: 0.92;  z-index: 3; }

@media (prefers-reduced-motion: no-preference) {
  .deck-card {
    transition: translate 0.5s cubic-bezier(0.2, 0.6, 0.2, 1),
                scale 0.5s cubic-bezier(0.2, 0.6, 0.2, 1),
                rotate 0.5s cubic-bezier(0.2, 0.6, 0.2, 1),
                opacity 0.35s ease;
  }
}

.deck-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.deck-btn {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, scale 0.15s ease;
}
.deck-btn:hover { background: var(--sand); }
.deck-btn:active { scale: 0.92; }
.deck-btn svg { display: block; }
.deck-btn-prev svg { transform: scaleX(-1); }
.deck-caption {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.deck-count {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--taupe-deep);
  font-variant-numeric: tabular-nums;
}

/* --- Video im Passepartout ------------------------------------------- */

/* Reine Kontur, keine Fuellung */
.video-frame {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--taupe);
  border-radius: 24px;
  padding: clamp(12px, 1.8vw, 18px);
}
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--charcoal);
}
.video-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Thumbnail-Karte: Bild zoomt, Verlauf traegt Titel, Play-Button frosted */
.video-thumb {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  text-decoration: none;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  transition: scale 0.35s ease;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 39, 36, 0.68), rgba(43, 39, 36, 0) 55%);
  pointer-events: none;
}
.video-thumb-text {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(16px, 2.6vw, 26px);
  text-align: left;
  color: var(--ivory);
}
.video-thumb-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
}
.video-thumb-desc {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(252, 250, 247, 0.82);
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(252, 250, 247, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(252, 250, 247, 0.4);
  display: grid;
  place-items: center;
  color: var(--ivory);
  scale: 1;
  transition: background-color 0.2s ease, scale 0.2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .video-thumb:hover img { scale: 1.05; }
  .video-thumb:hover .video-play { scale: 1.1; background: rgba(252, 250, 247, 0.34); }
}
.video-thumb:active .video-play { scale: 0.95; }
.video-note {
  margin: 14px 4px 2px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* Lightbox */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(43, 39, 36, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-modal[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .video-modal { animation: modal-fade 0.25s ease; }
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.video-modal-inner {
  width: min(100%, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.video-modal-inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(252, 250, 247, 0.14);
  color: var(--ivory);
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}
.video-modal-close:hover { background: rgba(252, 250, 247, 0.28); }

/* --- Kontakt ---------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.contact-intro p {
  margin: 0 0 22px;
  max-width: 28em;
  color: rgba(252, 250, 247, 0.74);
}
.contact-mail { font-size: 15px; }
.contact-mail a {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--taupe);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(252, 250, 247, 0.86);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--ivory);
  background: rgba(252, 250, 247, 0.055);
  border: 1px solid rgba(252, 250, 247, 0.24);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(252, 250, 247, 0.38); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(252, 250, 247, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--beige);
  background: rgba(252, 250, 247, 0.09);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23F5EFE7' stroke-opacity='.7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field select:invalid { color: rgba(252, 250, 247, 0.45); }
.field textarea { min-height: 128px; resize: vertical; }

/* Lesbarkeit: native Widgets (Dropdown-Liste, Autofill) duerfen nie
   helle Schrift auf hellem Grund zeigen. */
.band-dark .field input,
.band-dark .field select,
.band-dark .field textarea {
  color-scheme: dark;
  caret-color: var(--ivory);
}
.field select option { color: var(--charcoal); background: #ffffff; }
.band-dark .field input:-webkit-autofill,
.band-dark .field input:-webkit-autofill:hover,
.band-dark .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ivory);
  -webkit-box-shadow: 0 0 0 1000px #3a342e inset;
  transition: background-color 9999999s ease-out;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(252, 250, 247, 0.7);
}
.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--taupe);
}
.consent a { color: rgba(252, 250, 247, 0.9); }

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.form-status { margin: 0; font-size: 14px; color: var(--beige); }

/* --- Preisuebersicht (interaktive Paketwahl) ------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  align-items: stretch;
  margin-top: 36px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  translate: 0 0;
  scale: 1;
  transition: scale 0.25s cubic-bezier(0.2, 0.6, 0.2, 1),
              translate 0.25s cubic-bezier(0.2, 0.6, 0.2, 1),
              border-color 0.2s ease;
}
.plan-popular { border: 1.5px solid var(--charcoal); }
@media (min-width: 921px) {
  .plan-popular { translate: 0 -12px; }
}

/* Waechst bei Maus-Hover, bei Beruehrung und bei jeder Auswahl-Aktion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan:hover { scale: 1.025; border-color: var(--taupe); }
  .plan-popular:hover { border-color: var(--charcoal); }
  .plan-toggle button:not([aria-pressed="true"]):hover {
    background: rgba(43, 39, 36, 0.07);
    scale: 1.05;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plan:active { scale: 1.02; }
  .plan-toggle button { transition: background-color 0.15s ease, color 0.15s ease, scale 0.15s ease; }
  .plan-toggle button:active { scale: 0.94; }
  .plan.pulse { animation: plan-pulse 0.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
}
@keyframes plan-pulse {
  0% { scale: 1; }
  45% { scale: 1.035; }
  100% { scale: 1; }
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  background: var(--taupe);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.plan h3 {
  margin: 0 0 16px;
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 500;
}
.plan-toggle {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
  background: var(--sand);
}
.plan-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.plan-toggle button[aria-pressed="true"] {
  background: var(--charcoal);
  color: var(--ivory);
}
.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.plan-amount { font-variant-numeric: tabular-nums; }
.plan-currency { font-size: 0.55em; color: var(--ink-soft); }
.plan-sub { margin: 7px 0 0; font-size: 14px; color: var(--ink-soft); }
.plan-save { margin: 10px 0 0; font-size: 13.5px; color: var(--taupe-deep); }
.plan-feats {
  list-style: none;
  margin: 20px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--beige);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-feats li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.plan-feats svg { flex: none; margin-top: 3px; color: var(--taupe-deep); }
.plan-cta { margin-top: auto; width: 100%; justify-content: center; }

/* --- Stundenablauf (Unterricht-Seite) -------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  margin: 10px 0 0;
}
.step {
  border-top: 1px solid var(--beige);
  padding-top: 18px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--taupe);
}
.step h3 {
  margin: 10px 0 6px;
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 500;
}
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* --- Unterseiten ------------------------------------------------------ */

.page-head { padding-block: clamp(36px, 6vh, 64px) clamp(8px, 2vh, 16px); }
.page-head h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.page-head .lead {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38em;
}
.page-main { padding-bottom: var(--section-pad); overflow-x: clip; }
.page-main .section { padding-block: clamp(40px, 6vh, 64px) 0; }

.wip {
  display: inline-block;
  margin-top: 26px;
  border: 1px solid var(--beige);
  border-radius: 14px;
  background: var(--sand);
  padding: 16px 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* --- Impressum / Rechtstexte ----------------------------------------- */

.imprint { max-width: 640px; }
.imprint p { margin: 0 0 10px; }
.imprint h2 {
  font-size: 22px;
  margin: 34px 0 10px;
}
.imprint a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); }
.imprint a:hover { text-decoration-color: var(--charcoal); }

/* --- Download-Liste --------------------------------------------------- */

.doc-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--beige);
  max-width: 760px;
}
.doc-list li { border-bottom: 1px solid var(--beige); }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 12px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.doc-list a:hover { background: var(--sand); }
.doc-ico { flex: none; color: var(--taupe-deep); }
.doc-name { font-weight: 500; font-size: 16px; line-height: 1.45; }
.doc-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  white-space: nowrap;
}

/* --- Fussbereich ---------------------------------------------------- */

.site-foot {
  background: var(--charcoal);
  color: var(--ivory);
}
.band-dark + .site-foot .inner { border-top: 1px solid rgba(252, 250, 247, 0.14); }
.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 34px;
}
.foot-brand {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.foot-tag {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: rgba(252, 250, 247, 0.66);
}
.foot-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: rgba(252, 250, 247, 0.66);
}
.foot-meta a { color: inherit; text-decoration: none; }
.foot-meta a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 5px; }

/* --- Eine orchestrierte Lade-Sequenz (nur Hero) ---------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    translate: 0 14px;
    animation: rise 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-media {
    opacity: 0;
    animation: reveal 0.7s 0.15s ease forwards;
  }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes reveal { to { opacity: 1; } }

/* --- Sanftes Erscheinen beim Scrollen -------------------------------- */
/* Nur aktiv, wenn JS laeuft (html.js) und keine reduzierte Bewegung
   gewuenscht ist. Kurze Wege, kurze Dauer – kein Ausbremsen. */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  html.js .reveal.in-view {
    opacity: 1;
    translate: 0 0;
  }
  html.js .reveal-late { transition-delay: 0.07s; }
  html.js .facets .facet:nth-child(2) { transition-delay: 0.06s; }
  html.js .facets .facet:nth-child(3) { transition-delay: 0.12s; }
  html.js .doc-list li:nth-child(2) a { transition-delay: 0.05s; }
  html.js .doc-list li:nth-child(3) a { transition-delay: 0.1s; }
  html.js .doc-list li:nth-child(4) a { transition-delay: 0.15s; }
  html.js .timeline li:nth-child(2) { transition-delay: 0.05s; }
  html.js .timeline li:nth-child(3) { transition-delay: 0.1s; }
  html.js .timeline li:nth-child(4) { transition-delay: 0.15s; }
  html.js .plans .plan:nth-child(2) { transition-delay: 0.06s; }
  html.js .plans .plan:nth-child(3) { transition-delay: 0.12s; }
  html.js .steps .step:nth-child(2) { transition-delay: 0.05s; }
  html.js .steps .step:nth-child(3) { transition-delay: 0.1s; }
  html.js .steps .step:nth-child(4) { transition-delay: 0.05s; }
  html.js .steps .step:nth-child(5) { transition-delay: 0.1s; }
  html.js .steps .step:nth-child(6) { transition-delay: 0.15s; }
}

/* --- Responsiv ------------------------------------------------------ */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    grid-column: 1;
    max-width: none;
    padding-inline: var(--gutter);
    padding-block: clamp(24px, 4vh, 40px) clamp(36px, 5vh, 52px);
  }
  .hero-media {
    grid-column: 1;
    justify-self: center;
    width: min(74vw, 400px);
    margin-bottom: clamp(40px, 6vh, 56px);
  }

  .split, .contact { grid-template-columns: 1fr; }
  .about-media { width: min(70vw, 380px); }
  .facets { grid-template-columns: 1fr 1fr; }
  .teaser { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-head { flex-wrap: wrap; row-gap: 10px; }
  .site-nav { order: 3; flex-basis: 100%; }
  .btn-primary, .btn-secondary { padding: 16px 24px; }

  .facets { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .deck-stack { width: calc(100% - 92px); margin-inline: auto; }
  .deck-card.is-r1 { translate: 12% 1%; }
  .deck-card.is-l1 { translate: -12% 1%; }
  .deck-card.is-r2 { translate: 21% 2.5%; rotate: 6deg; }
  .deck-card.is-l2 { translate: -21% 2.5%; rotate: -6deg; }
  .doc-list a { flex-wrap: wrap; gap: 10px 14px; padding-inline: 4px; }
  .doc-meta { margin-left: 38px; }

  .timeline { padding-left: 22px; }
  .timeline li { grid-template-columns: 1fr; padding-block: 12px; }
  .timeline li::before { left: -27px; top: 22px; }
  .video-play { width: 64px; height: 64px; }
}
