/* Musterhaus: das Aussehen.
 *
 * Zwei Fassungen davor waren falsch, und zwar aus demselben Grund. Die
 * erste war das Stylesheet der Hauptseite: Bauzeichnung auf Papier, schmale
 * Grotesk, Millimeterraster. Das ist Winfrieds Handschrift, und genau die
 * gehoert hier nicht hin. Das Musterhaus zeigt, was eine Kundin bekommt,
 * also muss es nach ihrer Marke aussehen und nicht nach seiner. Die zweite
 * Fassung war dieselbe Handschrift, nur heller.
 *
 * Was hier steht, ist die Anmutung, die eine Coachin, eine Therapeutin oder
 * eine Embodiment-Lehrerin fuer ihren Mitgliederbereich will:
 *
 *   Warm statt kuehl. Sandton statt Papiergrau, Terrakotta statt Blau, und
 *   eine Serife ueber den Ueberschriften. Ihre Kundinnen kommen wegen etwas,
 *   das mit dem Koerper zu tun hat, nicht wegen einer Tabellenkalkulation.
 *
 *   Apple-Anmutung im Aufbau. Weiche Ecken, grosszuegige Innenabstaende,
 *   gruppierte Listen wie in den iOS-Einstellungen, durchscheinende Kopf-
 *   und Fussleiste, ein Segmentschalter. Das ist nicht Geschmack, sondern
 *   die Formensprache, die jede Besucherin schon bedienen kann, ohne
 *   nachzudenken.
 *
 *   Systemschrift fuer alles Bedienbare. Auf einem iPhone ist das San
 *   Francisco, und nichts wirkt auf einem Apple-Geraet so selbstverstaendlich
 *   wie die Schrift, die es ohnehin benutzt. Fraunces steht nur ueber den
 *   Ueberschriften und gibt der Marke ihre Waerme.
 *
 * Die Variablennamen sind aus der Vorfassung uebernommen, auch wo sie jetzt
 * schief klingen (--papier, --graphit). Sie stehen in app.js an ein paar
 * Stellen direkt im Markup, und ein Umbenennen haette dort stille Fehler
 * erzeugt.
 *
 * Stand: 02.09.2026
 */

:root {
  color-scheme: light only;

  /* Sand, Creme, Tinte. */
  --papier:        #F3EEE8;
  --papier-hell:   #FFFFFF;
  --graphit:       #1F1B18;
  --graphit-weich: #4C443E;
  --stahl:         #8E837A;

  /* Ein Akzent traegt, der zweite setzt Kontrapunkte. Mehr wird unruhig. */
  --akzent:        #B4614A;
  --akzent-tief:   #8F4A37;
  --pflaume:       #7A4A5E;
  --gruen:         #5F7E63;
  --rot:           #A8503F;

  --linie:         rgba(31, 27, 24, 0.08);
  --linie-stark:   rgba(31, 27, 24, 0.14);
  --schatten:      0 1px 2px rgba(31, 27, 24, 0.05), 0 10px 30px rgba(31, 27, 24, 0.045);

  --raster:        16px;
  --rund:          18px;
  --rund-klein:    12px;
  --kopf:          54px;
  --fuss:          62px;

  --schrift: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
             system-ui, sans-serif;
  --serife:  'Fraunces', 'Iowan Old Style', Georgia, serif;
}

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

html { background: var(--papier); -webkit-text-size-adjust: 100%; }
body {
  background: var(--papier);
  color: var(--graphit-weich);
  font-family: var(--schrift);
  font-size: 15px; line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--serife);
  font-weight: 500; color: var(--graphit);
  letter-spacing: -0.015em; line-height: 1.14;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1.02rem; }
h4 { font-weight: 600; font-size: 1rem; color: var(--graphit); }
p { margin-bottom: 0.65em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--graphit); }
a { color: var(--akzent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

/* Die kleinen Beschriftungen. Nicht mehr versal gesperrt wie auf der
 * Bauzeichnung: das liest sich technisch, und technisch ist hier das
 * Gegenteil von dem, was die Marke will. */
.marke, .nav-b span, .kennz-b, .tour-nr, .chip, .fuss-links a {
  font-family: var(--schrift);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
  text-transform: none; color: var(--stahl);
}
.kennz-b { letter-spacing: 0.02em; }

/* --- Kopfzeile ----------------------------------------------------------
 * Durchscheinend mit Weichzeichner, wie eine Navigationsleiste in iOS: was
 * darunter durchlaeuft, bleibt zu ahnen, und die Leiste steht trotzdem. */
.kopf {
  position: sticky; top: 0; z-index: 40;
  height: var(--kopf); display: flex; align-items: center;
  justify-content: space-between; gap: var(--raster);
  padding: 0 calc(var(--raster) * 1.125);
  background: rgba(243, 238, 232, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linie);
}

/* Der Schalter als Segmentsteuerung.
 *
 * Das ist das eine Element, das alles traegt, und es ist bewusst die Form,
 * die jede aus ihrem Telefon kennt: eine Pille, in der ein weisser Reiter
 * sitzt und beim Tippen hinuebergleitet. Wer sie zum ersten Mal sieht,
 * weiss ohne Erklaerung, dass es hier zwei Seiten gibt. */
.schalter {
  display: inline-flex; position: relative; padding: 2px;
  background: rgba(31, 27, 24, 0.06); border-radius: 10px;
}
.schalter button {
  appearance: none; background: none; border: none; cursor: pointer;
  flex: 1 1 0; min-width: 78px; text-align: center;
  padding: 6px 14px; font-size: 13px; font-weight: 590;
  letter-spacing: -0.01em; color: var(--graphit-weich);
  position: relative; z-index: 1;
  transition: color 150ms ease;
}
.schalter button[aria-pressed="true"] { color: var(--graphit); }
.schalter-knopf {
  position: absolute; top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px); background: var(--papier-hell);
  border-radius: 8px; box-shadow: 0 1px 3px rgba(31, 27, 24, 0.14);
  transition: transform 150ms cubic-bezier(.32,.72,0,1);
}
.schalter[data-seite="du"] .schalter-knopf { transform: translateX(100%); }

.marke-rechts { text-align: right; line-height: 1.3; }
.marke { display: block; }
.marke b { color: var(--graphit-weich); font-weight: 600; }

/* --- Grundgeruest ------------------------------------------------------- */
.buehne { display: flex; min-height: calc(100dvh - var(--kopf)); }
.inhalt {
  flex: 1 1 auto; min-width: 0;
  padding: calc(var(--raster) * 1.25) var(--raster);
  padding-bottom: calc(var(--fuss) + var(--raster) * 2);
}
.bahn { max-width: 720px; margin: 0 auto; }
/* Die grosse Ueberschrift oben, wie ein Large Title. */
.titel { margin: calc(var(--raster) * 0.5) 0 calc(var(--raster) * 1.25); }
.titel h1 { font-size: 2rem; letter-spacing: -0.02em; }
.titel p { color: var(--stahl); font-size: 14px; margin-top: 3px; }

/* --- Navigation --------------------------------------------------------- */
.nav-b {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: var(--fuss); display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(243, 238, 232, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-b a, .nav-b button {
  appearance: none; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; text-decoration: none; color: var(--stahl);
  font: inherit; padding: 0;
  transition: color 120ms ease;
}
.nav-b a[aria-current], .nav-b button[aria-current] { color: var(--akzent); }
.nav-b a[aria-current] span, .nav-b button[aria-current] span { color: var(--akzent); }
.nav-b svg { width: 21px; height: 21px; }

/* Die Schublade. */
.lade-grund { position: fixed; inset: 0; z-index: 50;
              background: rgba(31, 27, 24, 0.28);
              backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.lade {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 51;
  background: var(--papier-hell); border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 10px 0 calc(var(--raster) * 0.5);
  padding-bottom: calc(var(--raster) * 0.5 + env(safe-area-inset-bottom));
  animation: lade-rein 240ms cubic-bezier(.32,.72,0,1);
}
@keyframes lade-rein { from { transform: translateY(110%); } to { transform: none; } }
.lade-griff { width: 36px; height: 5px; background: var(--linie-stark);
              margin: 0 auto 10px; border-radius: 3px; }
.lade a, .lade button.lade-punkt {
  appearance: none; background: none; border: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  color: var(--graphit); font: inherit; font-size: 16px; text-align: left;
  padding: 14px calc(var(--raster) * 1.25);
  border-bottom: 1px solid var(--linie);
}
.lade a:last-of-type { border-bottom: none; }
.lade a[aria-current] { color: var(--akzent); font-weight: 590; }
.lade svg { width: 20px; height: 20px; flex: none; color: var(--stahl); }
.lade a[aria-current] svg { color: var(--akzent); }
.lade-fuss { margin-top: 4px; }
.lade-fuss .lade-punkt { border-bottom: none; color: var(--stahl); }

.nav-s { display: none; }
@media (min-width: 860px) {
  .nav-s {
    display: block; flex: 0 0 224px; padding: var(--raster) 10px;
    background: transparent;
  }
  .nav-s a {
    display: flex; align-items: center; gap: 11px; text-decoration: none;
    color: var(--graphit-weich); padding: 9px 12px; border-radius: var(--rund-klein);
    font-size: 14.5px; margin-bottom: 2px;
  }
  .nav-s a:hover { background: rgba(31, 27, 24, 0.04); }
  .nav-s a[aria-current] {
    color: var(--akzent); font-weight: 590; background: rgba(180, 97, 74, 0.09);
  }
  .nav-s svg { width: 18px; height: 18px; flex: none; }
  body[data-seite="du"] .nav-b { display: none; }
  body[data-seite="du"] .inhalt { padding-bottom: calc(var(--raster) * 2); }
  .inhalt { padding: calc(var(--raster) * 1.75) calc(var(--raster) * 1.5); }
}

/* --- Karten und Listen --------------------------------------------------
 * Weiche Ecken, weisse Flaeche, ein Hauch Schatten. Keine Rahmen: eine
 * Karte, die schwebt, braucht keine Linie, die sie festhaelt. */
.karte {
  background: var(--papier-hell); border: none; border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: calc(var(--raster) * 1.25);
  margin-bottom: var(--raster);
}
.karte.eng { padding: var(--raster); }
.gitter { display: grid; gap: var(--raster); }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .g3 { grid-template-columns: repeat(3, 1fr); } }
.g4 { display: grid; gap: var(--raster); grid-template-columns: 1fr 1fr; }
@media (min-width: 620px) { .g4 { grid-template-columns: repeat(4, 1fr); } }

.kennz-w { font-size: 1.85rem; font-weight: 600; color: var(--graphit);
           letter-spacing: -0.03em; line-height: 1.08;
           font-variant-numeric: tabular-nums; }
.kennz-b { display: block; margin-top: 5px; }
.kennz-d { font-size: 12.5px; color: var(--stahl); margin-top: 4px; }

/* --- Knoepfe ------------------------------------------------------------ */
.knopf {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none;
  border: none; background: var(--akzent); color: #fff;
  padding: 11px 20px; border-radius: 980px;
  font-size: 14px; font-weight: 590; letter-spacing: -0.01em;
  transition: background 140ms ease, transform 100ms ease;
}
.knopf:hover { background: var(--akzent-tief); }
.knopf:active { transform: scale(0.98); }
.knopf.gross { width: 100%; padding: 15px 20px; font-size: 15.5px; }
.knopf.leer { background: rgba(180, 97, 74, 0.1); color: var(--akzent); }
.knopf.leer:hover { background: rgba(180, 97, 74, 0.16); }
.knopf.klein { padding: 8px 14px; font-size: 13px; }
.knopf[disabled] { opacity: 0.4; cursor: default; }

/* --- Zeilen, gruppiert wie in den Einstellungen -------------------------- */
.zeile { display: flex; align-items: center; justify-content: space-between;
         gap: var(--raster); padding: 12px 0; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: none; }
.zeile-t { color: var(--graphit); font-weight: 500; }
.zeile-u { font-size: 13.5px; color: var(--stahl); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 6px 12px 10px 0; border-bottom: 1px solid var(--linie);
     font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
     color: var(--stahl); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--linie); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: rgba(31, 27, 24, 0.02); }
.tab-huelle { overflow-x: auto; }
/* Auf dem Telefon fallen zwei Spalten weg. Fuenf passen dort nicht, und was
 * nicht passt, wird zu einer Tabelle, die man seitwaerts schieben muss. Wer
 * es genau wissen will, tippt die Zeile an. */
@media (max-width: 619px) {
  table th:nth-child(3), table td:nth-child(3),
  table th:nth-child(4), table td:nth-child(4) { display: none; }
}

.chip { display: inline-block; padding: 3px 10px; border-radius: 980px;
        background: rgba(31, 27, 24, 0.06); color: var(--stahl); }
.chip.aktiv, .chip.bezahlt { background: rgba(95, 126, 99, 0.14); color: var(--gruen); }
.chip.gekuendigt, .chip.fehlgeschlagen { background: rgba(168, 80, 63, 0.13); color: var(--rot); }

/* --- Formulare ---------------------------------------------------------- */
label.feld { display: block; margin-bottom: var(--raster); }
label.feld > span { display: block; font-size: 12px; font-weight: 500;
  color: var(--stahl); margin-bottom: 6px; }
input[type=text], input[type=date], input[type=time], input[type=url],
input[type=email], select, textarea {
  width: 100%; background: rgba(31, 27, 24, 0.04); border: none;
  border-radius: var(--rund-klein); padding: 12px 14px;
  font-size: 15px; color: var(--graphit);
}
input:focus, select:focus, textarea:focus { background: rgba(31, 27, 24, 0.06); }
textarea { min-height: 100px; resize: vertical; }
.reihe { display: flex; gap: var(--raster); flex-wrap: wrap; }
.reihe > * { flex: 1 1 150px; }

/* Der Schalter aus iOS: Pille, weisser Knopf, gruener Grund wenn an. */
.wippe { display: flex; align-items: center; justify-content: space-between;
         gap: var(--raster); padding: 12px 0; border-bottom: 1px solid var(--linie); }
.wippe:last-child { border-bottom: none; }
.wippe button {
  appearance: none; cursor: pointer; flex: none; width: 50px; height: 30px;
  border: none; border-radius: 980px; background: rgba(31, 27, 24, 0.14);
  position: relative; padding: 0; transition: background 180ms ease;
}
.wippe button::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 27, 24, 0.22);
  transition: transform 180ms cubic-bezier(.32,.72,0,1);
}
.wippe button[aria-pressed="true"], .mail-wippe[aria-pressed="true"] { background: var(--gruen); }
.wippe button[aria-pressed="true"]::after,
.mail-wippe[aria-pressed="true"]::after { transform: translateX(20px); }
/* Der Schalter an einer E-Mail steht nicht in einer Zeile, sondern neben
 * der Ueberschrift. Aussehen und Verhalten sind dieselben. */
.mail-wippe {
  appearance: none; cursor: pointer; flex: none; width: 50px; height: 30px;
  border: none; border-radius: 980px; background: rgba(31, 27, 24, 0.14);
  position: relative; padding: 0; transition: background 180ms ease;
}
.mail-wippe::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 27, 24, 0.22);
  transition: transform 180ms cubic-bezier(.32,.72,0,1);
}

/* --- Fortschritt, Verlauf ----------------------------------------------- */
.balken { height: 6px; background: rgba(31, 27, 24, 0.07); margin-top: 10px;
          border-radius: 980px; overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--akzent);
            border-radius: 980px; transition: width 220ms ease; }

.verlauf { display: flex; align-items: flex-end; gap: 6px; height: 140px;
           margin-top: var(--raster); }
.verlauf div { flex: 1; background: rgba(180, 97, 74, 0.28);
               border-radius: 6px 6px 2px 2px; }
.verlauf div:last-child { background: var(--akzent); }
.verlauf-b { display: flex; gap: 6px; margin-top: 8px; }
.verlauf-b span { flex: 1; text-align: center; font-size: 10.5px;
                  color: var(--stahl); }

/* --- Kurse, Player ------------------------------------------------------ */
.kachel { display: block; width: 100%; text-align: left;
          background: var(--papier-hell); border: none; border-radius: var(--rund);
          box-shadow: var(--schatten);
          padding: calc(var(--raster) * 1.25); cursor: pointer;
          transition: transform 140ms ease; }
.kachel:hover { transform: translateY(-1px); }
.kachel h3 { margin-bottom: 4px; }
.player { background: linear-gradient(150deg, #2E2521, #4A382F);
          aspect-ratio: 16 / 9; display: flex; align-items: center;
          justify-content: center; position: relative;
          border-radius: var(--rund); overflow: hidden; }
.player button { appearance: none; cursor: pointer; border: none;
                 background: rgba(255,255,255,.18);
                 backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
                 width: 62px; height: 62px; border-radius: 50%; color: #fff;
                 display: grid; place-items: center;
                 transition: transform 120ms ease; }
.player button:active { transform: scale(0.94); }
.player .zeitleiste { position: absolute; left: 14px; right: 14px; bottom: 12px;
                      height: 4px; border-radius: 980px;
                      background: rgba(255,255,255,.25); overflow: hidden; }
.player .zeitleiste i { display: block; height: 100%; width: 0; background: #fff; }

.lektion { display: flex; align-items: center; gap: 13px; padding: 12px 0;
           border-bottom: 1px solid var(--linie); cursor: pointer; }
.lektion:last-child { border-bottom: none; }
.haken { flex: none; width: 22px; height: 22px; border-radius: 50%;
         border: 1.5px solid var(--linie-stark);
         display: grid; place-items: center; color: transparent;
         transition: background 140ms ease, border-color 140ms ease; }
.lektion[data-gesehen="1"] .haken { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.lektion[data-gesehen="1"] .lektion-t { color: var(--stahl); }
.lektion-t { color: var(--graphit); }

/* --- Kalender ----------------------------------------------------------- */
.kal-kopf { display: flex; align-items: center; justify-content: space-between;
            margin-bottom: var(--raster); }
.kal-kopf span { font-family: var(--serife); font-size: 1.1rem; color: var(--graphit); }
.kal-pfeil { appearance: none; cursor: pointer; background: rgba(31, 27, 24, 0.05);
             border: none; width: 32px; height: 32px; border-radius: 50%;
             font-size: 18px; line-height: 1; color: var(--graphit-weich); }
.kal-pfeil[disabled] { opacity: 0.3; cursor: default; }
.kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal span.wt { text-align: center; font-size: 11px; color: var(--stahl);
               padding-bottom: 6px; }
.kal button { appearance: none; cursor: pointer; aspect-ratio: 1; border: none;
              background: rgba(31, 27, 24, 0.03); border-radius: var(--rund-klein);
              color: var(--graphit-weich); font-size: 13.5px;
              display: grid; place-items: center; position: relative; }
.kal button.kuenftig { color: var(--stahl); opacity: 0.35; cursor: default;
                       background: none; }
.kal button.leer { background: none; cursor: default; }
.kal button[data-stimmung]::after { content: ''; position: absolute; bottom: 5px;
              width: 5px; height: 5px; border-radius: 50%; background: var(--pflaume); }
.kal button[data-stimmung="hoch"]::after { background: var(--gruen); }
.kal button[data-stimmung="tief"]::after { background: var(--akzent); }
.kal button[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.kal button[aria-pressed="true"]::after { background: #fff; }

/* --- Dialog ------------------------------------------------------------- */
.dialog-grund {
  position: fixed; inset: 0; z-index: 60; background: rgba(31, 27, 24, 0.3);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: var(--raster);
}
.dialog {
  background: var(--papier-hell); border-radius: var(--rund);
  box-shadow: 0 20px 60px rgba(31, 27, 24, 0.22);
  padding: calc(var(--raster) * 1.5); max-width: 400px; width: 100%;
  text-align: center;
}
.dialog h2 { margin-bottom: 8px; }
.dialog .knopf-reihe { display: flex; gap: 10px; margin-top: calc(var(--raster) * 1.25); }
.dialog .knopf-reihe .knopf { flex: 1; }

/* --- Geführter Weg ------------------------------------------------------ */
.tour {
  position: fixed; z-index: 70; left: var(--raster); right: var(--raster);
  bottom: calc(var(--fuss) + var(--raster) * 0.75); max-width: 380px; margin: 0 auto;
  background: rgba(31, 27, 24, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; border-radius: var(--rund);
  box-shadow: 0 12px 40px rgba(31, 27, 24, 0.28);
  padding: calc(var(--raster) * 1.125) calc(var(--raster) * 1.25);
}
@media (min-width: 860px) { .tour { left: auto; right: var(--raster); bottom: var(--raster); margin: 0; } }
.tour-nr { color: rgba(255, 255, 255, 0.45); display: block; margin-bottom: 6px; }
.tour p { color: #fff; font-size: 15px; }
.tour-fuss { display: flex; align-items: center; justify-content: space-between;
             gap: var(--raster); margin-top: var(--raster); }
.tour-fuss button.weiter {
  appearance: none; cursor: pointer; background: #fff; border: none;
  color: var(--graphit); padding: 9px 18px; border-radius: 980px;
  font-size: 13.5px; font-weight: 590;
}
.tour-fuss button.weg {
  appearance: none; cursor: pointer; background: none; border: none;
  color: rgba(255, 255, 255, 0.55); font-size: 13.5px; padding: 0;
}
.zeigt-drauf { position: relative; z-index: 71;
               box-shadow: 0 0 0 3px rgba(180, 97, 74, 0.5); border-radius: 12px; }

/* --- Die Anmeldung ------------------------------------------------------
 *
 * Der Zahlencode tippt sich selbst in die Kaestchen, dann geht die Tuer
 * auf. Kein Passwort, weil es in der echten Anwendung auch keins gibt:
 * dort kommt ein Code per Mail und sonst nichts. Eine Attrappe, die sich
 * anders anmeldet als das Original, zeigt an der ersten Stelle etwas
 * Falsches.
 *
 * Der Grund fuer die Vorfuehrung ist nicht Schmuck. Wer ohne Vorlauf
 * mitten in einem fremden Mitgliederbereich steht, weiss im ersten Moment
 * nicht, was er da sieht. Der Anmeldebildschirm sagt es in einem Bild: das
 * hier ist der geschlossene Teil, und Du bist gerade hineingegangen. */
.tuer {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(170deg, #F7F2EC 0%, #EFE4DA 100%);
  display: grid; place-items: center; padding: var(--raster);
}
.tuer-innen { width: 100%; max-width: 330px; text-align: center; }
.tuer-marke { font-family: var(--serife); font-size: 2rem; font-weight: 500;
              color: var(--graphit); letter-spacing: -0.02em; margin-bottom: 8px; }
.tuer-unter { color: var(--stahl); font-size: 14px; line-height: 1.5;
              margin-bottom: calc(var(--raster) * 2); }
.tuer-unter b { color: var(--graphit-weich); font-weight: 500; }

.tuer-code { display: flex; gap: 9px; justify-content: center;
             margin-bottom: calc(var(--raster) * 1.75); }
.tuer-code span {
  flex: 1 1 0; max-width: 48px; aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.8); border-radius: var(--rund-klein);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1.3rem; font-weight: 590; color: var(--graphit);
  font-variant-numeric: tabular-nums;
  transition: box-shadow 160ms ease, background 160ms ease;
}
.tuer-code span[data-dran] {
  background: #fff; box-shadow: inset 0 0 0 2px var(--akzent);
}
.tuer-code span[data-dran]::after {
  content: ''; width: 2px; height: 1.15em; border-radius: 2px;
  background: var(--akzent); animation: strich 900ms steps(1) infinite;
}
@keyframes strich { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.tuer-knopf {
  width: 100%; background: var(--akzent); color: #fff; border: none;
  padding: 14px; border-radius: 980px;
  font-size: 15.5px; font-weight: 590; cursor: pointer;
  transition: transform 120ms ease, opacity 160ms ease, background 160ms ease;
}
.tuer-knopf[disabled] { background: rgba(31, 27, 24, 0.12); color: var(--stahl); cursor: default; }
.tuer-knopf[data-gedrueckt] { transform: scale(0.97); background: var(--akzent-tief); }
.tuer-weg {
  display: block; margin: var(--raster) auto 0; background: none; border: none;
  color: var(--stahl); font-size: 13.5px; cursor: pointer;
}
.tuer-hinweis { color: var(--stahl); font-size: 12px;
                margin-top: calc(var(--raster) * 2); }
.tuer.geht-auf { animation: tuer-auf 300ms ease-in forwards; }
@keyframes tuer-auf { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }

/* --- Fuss und Kleinkram -------------------------------------------------
 * Der Satz ueber den Fusszeilenlinks ist der wichtigste Satz der ganzen
 * Anwendung, und deshalb steht er drin und nicht nur auf der Rahmenseite:
 * wer das Musterhaus im Vollbild oeffnet und herumklickt, sieht die
 * Rahmenseite gerade nicht. */
.massarbeit {
  max-width: 62ch; margin: calc(var(--raster) * 2) auto 0;
  padding: 0 var(--raster); color: var(--stahl); font-size: 13px;
  line-height: 1.55; text-align: center;
}

.fuss-links {
  padding: var(--raster) var(--raster);
  padding-bottom: calc(var(--fuss) + var(--raster));
  border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap;
  gap: calc(var(--raster) * 0.75) var(--raster); align-items: center;
}
.fuss-links a { text-decoration: none; }
.fuss-links a:hover { color: var(--graphit); }
@media (min-width: 860px) {
  body[data-seite="du"] .fuss-links { padding-bottom: var(--raster); }
}

.hinweis { font-size: 13px; color: var(--stahl); margin-top: calc(var(--raster) * 0.75); }
.erfolg { background: rgba(95, 126, 99, 0.1); color: var(--graphit);
          border-radius: var(--rund-klein); padding: 12px 15px;
          margin-top: var(--raster); font-size: 14.5px; }
.leer-hinweis { color: var(--stahl); font-size: 14px; padding: var(--raster) 0;
                text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
