/* ============================================================
   LMMeier Academy — community.lmmeier.ch
   Eigenständiges Stylesheet. Palette und Schriften stammen aus
   assets/stil.css der Hauptseite, damit beide Seiten als eine
   Marke gelesen werden — aber ohne die 145 kB der Hauptseite.
   ============================================================ */

:root {
  /* Grund — identisch mit lmmeier.ch */
  --nacht: #070D1A;
  --nacht-2: #0C1628;
  --nacht-3: #122038;
  --nacht-linie: #1C2C47;
  --marine: #143977;
  --marine-2: #1E5198;

  --papier: #EEF3FA;
  --papier-2: #E2EAF5;
  --papier-linie: #CBD7E8;
  --tinte: #0B1526;

  /* Akzent aus dem Logo */
  --cyan: #6CE7FA;
  --koenig: #2959C4;
  --akzent-text: #0F4FA8;
  --akzent-tief: #0B3C82;

  /* Text */
  --auf-nacht: #EAF0F9;
  --auf-nacht-still: #A4B2C8;
  --auf-papier-still: #4C5A70;

  /* Bedienelemente: 3:1 gegen den Grund, nicht --nacht-linie nehmen */
  --taste-linie: #5A6E8C;
  --feld-linie: #3B4B66;
  --platzhalter: #808EA6;

  --schrift: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --anzeige: "Instrument Serif", Georgia, serif;

  --mass: 1140px;
  --luft: clamp(4rem, 8vw, 7.5rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--auf-nacht);
  font-family: var(--schrift);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  overflow-x: hidden;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

/* height:auto ist Pflicht, nicht Kosmetik: die width/height-Attribute im HTML
   gelten als gesetzte Höhe, und dann ignoriert der Browser jedes aspect-ratio.
   Ohne diese Zeile wurde das Heldenbild 2048 px hoch. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--anzeige); font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
h1 em, h2 em { font-style: italic; color: var(--cyan); }
p { margin: 0 0 1.1em; }

.mass { width: min(100% - 2.5rem, var(--mass)); margin-inline: auto; }
@media (max-width: 30rem) { .mass { width: calc(100% - 2rem); } }

.sprung {
  position: absolute; left: -9999px;
  background: var(--cyan); color: var(--tinte);
  padding: .7rem 1.1rem; border-radius: 6px; font-weight: 600; z-index: 99;
}
.sprung:focus { left: 1rem; top: 1rem; }

/* ---------- Tasten ---------------------------------------------------- */

.taste {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #052430;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 30px -14px rgba(108, 231, 250, .85);
}
.taste:hover { transform: translateY(-2px); background: #8BEEFC; }
.taste:active { transform: translateY(0); }

.taste--leer {
  background: transparent;
  color: var(--auf-nacht);
  border-color: var(--taste-linie);
  box-shadow: none;
}
.taste--leer:hover { background: rgba(108,231,250,.08); border-color: var(--cyan); }

.taste--breit { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .taste, .taste:hover { transform: none; transition: none; }
}

/* ---------- Kopf ------------------------------------------------------ */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 13, 26, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nacht-linie);
}
.kopf-in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem;
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marke img { width: 132px; height: auto; }
.marke b {
  font-family: var(--anzeige); font-weight: 400; font-size: 1.15rem;
  color: var(--auf-nacht-still); padding-left: .7rem;
  border-left: 1px solid var(--nacht-linie);
}
@media (max-width: 34rem) {
  .marke img { width: 104px; }
  .marke b { font-size: .95rem; }
  .kopf .taste { padding: .7rem 1.05rem; font-size: .9rem; }
}
@media (max-width: 22.5rem) { .marke b { display: none; } }

/* ---------- Abschnitte ------------------------------------------------ */

.teil { padding-block: var(--luft); position: relative; }
.teil--hell { background: var(--papier); color: var(--tinte); }
.teil--hell h1, .teil--hell h2, .teil--hell h3 { color: var(--tinte); }
.teil--hell h2 em { color: var(--akzent-text); }
.teil--hell .still { color: var(--auf-papier-still); }
.teil--tief { background: var(--nacht-2); }

.still { color: var(--auf-nacht-still); }

.kopfzeile { max-width: 44rem; margin-bottom: 3rem; }
.strich {
  display: block; width: 3.2rem; height: 2px;
  background: var(--cyan); margin-bottom: 1.4rem;
}
.teil--hell .strich { background: var(--akzent-text); }
.kopfzeile p { margin-top: 1.1rem; font-size: 1.08rem; }

/* Überschriften haben margin:0 — ohne das hier klebt der erste Absatz daran. */
h2 + p, h3 + p { margin-top: 1.1rem; }

/* ---------- Auftakt --------------------------------------------------- */

.auftakt {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) 0;
  background:
    radial-gradient(90rem 45rem at 78% -10%, rgba(41, 89, 196, .30), transparent 62%),
    radial-gradient(55rem 32rem at 8% 8%, rgba(108, 231, 250, .10), transparent 60%);
  overflow: hidden;
}
.auftakt-gitter {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .auftakt-gitter { grid-template-columns: 1.15fr .85fr; }
}

.wimpel {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .9rem .42rem .55rem;
  border: 1px solid var(--nacht-linie);
  background: rgba(18, 32, 56, .7);
  border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  color: var(--auf-nacht-still);
  margin-bottom: 1.5rem;
}
.wimpel .punkt {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(108, 231, 250, .16);
}

.fuehrung {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: var(--auf-nacht-still);
  max-width: 36rem;
  margin-top: 1.6rem;
}
.auftakt-tun {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 2.1rem;
}
@media (max-width: 26rem) {
  .auftakt-tun { flex-direction: column; align-items: stretch; }
  .auftakt-tun .taste { width: 100%; }
}
.unter-taste { margin-top: 1.1rem; font-size: .9rem; color: var(--auf-nacht-still); }

.auftakt-bild { margin: 0; position: relative; }
.auftakt-bild img {
  width: 100%; border-radius: 18px;
  border: 1px solid var(--nacht-linie);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
}
.auftakt-bild figcaption {
  margin-top: .8rem; font-size: .88rem; color: var(--auf-nacht-still);
}

/* Kennzahlen unter dem Auftakt — nur belegbare Angaben */
.leiste {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--nacht-linie);
  border-bottom: 1px solid var(--nacht-linie);
  background: rgba(12, 22, 40, .5);
}
.leiste-gitter {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 48rem) { .leiste-gitter { grid-template-columns: repeat(4, 1fr); } }
.leiste-zelle {
  padding: 1.6rem 1.2rem;
  border-right: 1px solid var(--nacht-linie);
  border-bottom: 1px solid var(--nacht-linie);
}
.leiste-zelle:nth-child(2n) { border-right: 0; }
@media (min-width: 48rem) {
  .leiste-zelle { border-bottom: 0; }
  .leiste-zelle:nth-child(2n) { border-right: 1px solid var(--nacht-linie); }
  .leiste-zelle:last-child { border-right: 0; }
}
.leiste-zelle b {
  display: block; font-family: var(--anzeige); font-weight: 400;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); line-height: 1.1;
  color: var(--auf-nacht);
}
.leiste-zelle span { display: block; font-size: .87rem; color: var(--auf-nacht-still); margin-top: .35rem; }

/* ---------- Karten ---------------------------------------------------- */

.gitter { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .gitter--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 44rem) { .gitter--2 { grid-template-columns: repeat(2, 1fr); } }

.karte {
  padding: 1.9rem 1.6rem;
  border: 1px solid var(--nacht-linie);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 32, 56, .78), rgba(12, 22, 40, .5));
}
.karte h3 { margin-bottom: .6rem; }
.karte p:last-child { margin-bottom: 0; }
.karte .fuer { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; display: block; margin-bottom: .8rem; }

.teil--hell .karte {
  background: #fff;
  border-color: var(--papier-linie);
  box-shadow: 0 1px 2px rgba(11, 21, 38, .05);
}
.teil--hell .karte .fuer { color: var(--akzent-text); }

/* ---------- Zwei Spalten mit Bild ------------------------------------- */

.paar {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 56rem) { .paar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .paar--umgekehrt > figure { order: 2; } }
.paar figure { margin: 0; }
.paar img {
  width: 100%; border-radius: 16px;
  aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--nacht-linie);
}
.teil--hell .paar img { border-color: var(--papier-linie); }

/* ---------- Lehrplan -------------------------------------------------- */

.plan { border-top: 1px solid var(--papier-linie); }
.modul { border-bottom: 1px solid var(--papier-linie); }
.modul > summary {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.35rem .25rem;
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.06rem;
}
.modul > summary::-webkit-details-marker { display: none; }
.modul .nr {
  font-family: var(--anzeige); font-size: 1.35rem;
  color: var(--akzent-text); min-width: 2.1rem; flex-shrink: 0;
}
.modul .titel { flex: 1; }
.modul .pfeil {
  flex-shrink: 0; width: 1.4rem; height: 1.4rem;
  border: 1px solid var(--papier-linie); border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  color: var(--auf-papier-still); align-self: center;
  transition: transform .2s ease;
}
.modul[open] .pfeil { transform: rotate(45deg); }
.modul-inhalt {
  padding: 0 .25rem 1.5rem calc(2.1rem + 1rem);
  color: var(--auf-papier-still);
  max-width: 52rem;
}
.modul-inhalt p:last-child { margin-bottom: 0; }
@media (max-width: 30rem) {
  .modul-inhalt { padding-left: .25rem; }
  .modul > summary { font-size: 1rem; gap: .7rem; }
}

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

.preis-gitter { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 52rem) { .preis-gitter { grid-template-columns: repeat(3, 1fr); } }

.preis {
  display: flex; flex-direction: column;
  padding: 2rem 1.7rem;
  border: 1px solid var(--nacht-linie); border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 32, 56, .8), rgba(12, 22, 40, .45));
}
.preis--betont {
  border-color: rgba(108, 231, 250, .55);
  background: linear-gradient(180deg, rgba(30, 81, 152, .34), rgba(12, 22, 40, .6));
  box-shadow: 0 24px 60px -34px rgba(108, 231, 250, .6);
}
.preis .name { font-family: var(--anzeige); font-size: 1.55rem; }
.preis .satz { color: var(--auf-nacht-still); font-size: .95rem; margin: .5rem 0 1.4rem; }
.preis .zahl {
  font-family: var(--anzeige); font-size: 2.9rem; line-height: 1;
  display: flex; align-items: baseline; gap: .35rem;
}
.preis .zahl small { font-size: 1rem; font-family: var(--schrift); color: var(--auf-nacht-still); }
.preis .frueher {
  font-size: .9rem; color: var(--auf-nacht-still); margin-top: .5rem;
}
.preis .frueher s { color: var(--platzhalter); }
.preis ul { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: .65rem; }
.preis li { padding-left: 1.6rem; position: relative; font-size: .96rem; color: var(--auf-nacht-still); }
.preis li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .55rem; height: .3rem;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
/* Heißt bewusst NICHT .fuss: die Fußzeile der Seite trägt diese Klasse schon,
   und `.fuss a` hat die Textfarbe der Taste hier überschrieben — auf Cyan
   war die Beschriftung dadurch fast unlesbar. */
.preis-fuss { margin-top: auto; }
.merker {
  align-self: flex-start;
  display: inline-block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700;
  color: #052430; background: var(--cyan);
  padding: .2rem .6rem; border-radius: 999px; margin-bottom: .9rem;
}

.preis-hinweis {
  margin-top: 2rem; padding: 1.2rem 1.4rem;
  border: 1px dashed var(--taste-linie); border-radius: 12px;
  font-size: .93rem; color: var(--auf-nacht-still);
}

/* ---------- Formular -------------------------------------------------- */

.form-block {
  border: 1px solid var(--nacht-linie); border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background: linear-gradient(180deg, rgba(18, 32, 56, .85), rgba(12, 22, 40, .55));
  max-width: 34rem;
}
.feld { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.feld label { font-size: .92rem; font-weight: 500; }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem;
  color: var(--auf-nacht);
  background: rgba(7, 13, 26, .72);
  border: 1px solid var(--feld-linie);
  border-radius: 10px;
  padding: .82rem .95rem;
  width: 100%;
}
.feld textarea { min-height: 5.5rem; resize: vertical; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--platzhalter); }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--cyan); }
.feld .hilfe { font-size: .82rem; color: var(--auf-nacht-still); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zustimmung {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .87rem; color: var(--auf-nacht-still);
  margin: 1.3rem 0 1.5rem;
}
.zustimmung input { margin-top: .22rem; width: 1.05rem; height: 1.05rem; flex-shrink: 0; accent-color: var(--cyan); }

.meldung { margin-top: 1rem; font-size: .95rem; border-radius: 10px; padding: .85rem 1rem; display: none; }
.meldung[data-an] { display: block; }
.meldung--gut { background: rgba(108, 231, 250, .12); border: 1px solid rgba(108, 231, 250, .45); }
.meldung--schlecht { background: rgba(255, 138, 138, .10); border: 1px solid rgba(255, 138, 138, .45); color: #FFC9C9; }

/* ---------- FAQ ------------------------------------------------------- */

.faq { border-top: 1px solid var(--nacht-linie); max-width: 48rem; }
.frage { border-bottom: 1px solid var(--nacht-linie); }
.frage > summary {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.25rem .25rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
.frage > summary::-webkit-details-marker { display: none; }
.frage .pfeil { flex-shrink: 0; color: var(--cyan); transition: transform .2s ease; }
.frage[open] .pfeil { transform: rotate(45deg); }
.frage .antwort { padding: 0 .25rem 1.4rem; color: var(--auf-nacht-still); }
.frage .antwort p:last-child { margin-bottom: 0; }

/* ---------- Fuß ------------------------------------------------------- */

.fuss {
  border-top: 1px solid var(--nacht-linie);
  padding-block: 3rem 2.5rem;
  background: var(--nacht-2);
  font-size: .92rem;
}
.fuss-in { display: grid; gap: 1.6rem; }
@media (min-width: 44rem) { .fuss-in { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.fuss nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.fuss nav a, .fuss p a { color: var(--auf-nacht-still); }
.fuss nav a:hover, .fuss p a:hover { color: var(--cyan); }
.fuss .klein { color: var(--platzhalter); font-size: .84rem; margin-top: 1.2rem; }

/* ---------- Einblenden -----------------------------------------------
   Regel aus dem Website-Projekt: Inhalt ist im CSS SICHTBAR. Erst das
   JS setzt .js-an auf <html> und blendet ihn aus, um ihn danach beim
   Scrollen wieder einzublenden. Ohne JS (oder in Headless-Renderern,
   die kein IntersectionObserver-Ereignis auslösen) bleibt alles da.
   -------------------------------------------------------------------- */

.js-an [data-zeig] { opacity: 0; transform: translateY(14px); }
.js-an [data-zeig].sichtbar {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js-an [data-zeig] { opacity: 1; transform: none; }
}
