/* tobi986.de — Startseite und Rechtliches.
 *
 * Bewegung und Anmeldung folgen dem Kundenlogin von app.toob360.com
 * (`Toob360 Software/public/toob-auth.css`): Goldschleier, Drahtgitter-Kugel,
 * ein Blatt, das von unten hereinfährt, ein Rahmen, der sich beim Fokus
 * einzeichnet, und ein Knopf, der sich zum Kreis zusammenzieht. Das Zeichen ist
 * ein eigenes: ein Git-Zweig mit laufendem Licht in einem drehenden Ring.
 */

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --border:    #222222;
  --gold:      #c9a84c;
  --gold-dim:  #a8873a;
  --text:      #f0f0f0;
  --muted:     #6f6f6f;
  --danger:    #ef8a88;

  --sheet:      #121212;
  --sheet-edge: rgba(201,168,76,.30);
  --sheet-shadow: 0 -12px 32px rgba(0,0,0,.5), 0 16px 34px rgba(0,0,0,.45);
  --card:       #101010;
  --card-hi:    #151515;
  --field:      #181818;
  --field-hi:   #1d1d1d;
  --field-line: #2a2a2a;
  --ink:        #f0dda6;
  --btn-fg:     #0a0a0a;
  --btn-ink:    #4a3a05;
  --btn-ink-hi: #241b00;
  --veil:       201,168,76;
  --veil-blend: screen;
  --sphere:     rgba(201,168,76,.09);
  --glow:       rgba(201,168,76,.10);
}

html[data-theme="light"] {
  --bg:         #f6f5f1;
  --bg2:        #ffffff;
  --border:     #e3e1da;
  --gold:       #9c7c2e;
  --gold-dim:   #82661f;
  --text:       #18170f;
  --muted:      #7a776d;
  --danger:     #c2423f;
  --sheet:      #ffffff;
  --sheet-edge: rgba(156,124,46,.45);
  --sheet-shadow: 0 -10px 26px rgba(20,16,4,.07), 0 14px 30px rgba(20,16,4,.10);
  --card:       #ffffff;
  --card-hi:    #fffdf7;
  --field:      #f2f2f5;
  --field-hi:   #ffffff;
  --field-line: #dcdce1;
  --ink:        #e0c47a;
  --btn-fg:     #fff7e4;
  --btn-ink:    #fdf6e0;
  --btn-ink-hi: #fffdf4;
  --veil:       156,124,46;
  --veil-blend: multiply;
  --sphere:     rgba(156,124,46,.16);
  --glow:       rgba(156,124,46,.10);
}

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

/* Die Kugel ragt am Handy über den Rand — ohne Beschnitt ließe sich die Seite
   quer schieben. `hidden` als Rückfall, `clip` lässt senkrechtes Scrollen frei. */
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── Obere Leiste ─────────────────────────────────────────────────────────── */

.topbar {
  position: fixed; z-index: 50;
  top: max(14px, env(safe-area-inset-top, 0px)); left: 14px; right: 14px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 38px; padding: 0 .8rem;
  background: var(--sheet);
  background: color-mix(in srgb, var(--sheet) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--field-line); border-radius: 10px;
  color: var(--muted); font: inherit; font-size: .76rem;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
            stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip.icon-only { width: 38px; padding: 0; justify-content: center; }
.theme-moon { display: none; }
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: block; }

/* ── Kopf: Zeichen, Name, Zeile ───────────────────────────────────────────── */

.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
}

.head {
  position: relative;
  min-height: min(62dvh, 560px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 96px 0 56px;
  text-align: center;
}

.lockup { display: flex; align-items: center; gap: 18px; }
.lockup .mark { width: 76px; height: 76px; flex: none; }

.word {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(3rem, 9vw, 5.2rem); line-height: 1; letter-spacing: .02em;
  /* Ein Lichtstreif zieht langsam durch den Namen — dieselbe Farbe wie das
     Licht in der Acht des TOOB-Zeichens. */
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 40%, var(--ink) 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }

.tag {
  font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}

/* ── Das bewegte Zeichen ──────────────────────────────────────────────────── */
/* Wie beim TOOB-Zeichen dreht nur der Ring, der Zweig steht still. Drei
   verschachtelte Ebenen, weil sich nur so mehrere Drehungen addieren:
     .tm-idle  ruhiges Drehen · .tm-in Auftakt · .tm-ramp/.tm-spin beim Absenden */

.mark { position: relative; }
.mark div, .mark > svg { position: absolute; inset: 0; }
.mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

.tm-idle { animation: tm-turn 24s linear infinite; }
.tm-in   { animation: tm-in 1.1s cubic-bezier(.22,1.28,.52,1) backwards; }
.tm-ramp, .tm-spin { animation: none; }
.mark.is-busy .tm-ramp { animation: tm-ramp .35s cubic-bezier(.5,0,1,1) forwards; }
.mark.is-busy .tm-spin { animation: tm-turn 1.12s linear .35s infinite; }

@keyframes tm-turn { to { transform: rotate(360deg); } }
@keyframes tm-in   { from { transform: rotate(-120deg); } }
@keyframes tm-ramp { to { transform: rotate(56deg); } }

.tm-ring path { fill: none; stroke: var(--tm-ink, var(--gold)); stroke-width: 3.2; stroke-linecap: round; }
.tm-ring circle { fill: var(--tm-ink, var(--gold)); }

.tm-branch { fill: none; stroke: var(--tm-ink, var(--gold)); stroke-linecap: round; stroke-linejoin: round; }
.tm-base {
  stroke-width: 3.6; opacity: .9;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: tm-draw 1.1s cubic-bezier(.22,.9,.3,1) .15s both;
}
.tm-node {
  stroke-width: 3.4;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: tm-draw .7s cubic-bezier(.22,.9,.3,1) calc(.5s + var(--i) * .14s) both;
}
@keyframes tm-draw { to { stroke-dashoffset: 0; } }

/* Lichtstreif IM Strich: dünner und heller als die Linie. */
.tm-dot {
  stroke-width: 2.2; stroke: var(--tm-hi, var(--ink)); opacity: .95;
  stroke-dasharray: 2 98;
  animation: tm-run 2.6s cubic-bezier(.4,.25,.6,.75) calc(var(--i) * .07s - 2.6s) infinite,
             tm-dots-in .45s ease 1.2s backwards;
}
@keyframes tm-run     { to { stroke-dashoffset: -100; } }
@keyframes tm-dots-in { from { opacity: 0; } }

.mark.no-intro .tm-in   { animation: none; }
.mark.no-intro .tm-base,
.mark.no-intro .tm-node { animation: none; stroke-dashoffset: 0; }
.mark.no-intro .tm-dot  { animation-delay: calc(var(--i) * .07s - 2.6s), 0s; }

/* ── Hintergrund: Kugel und Schleier ──────────────────────────────────────── */

.sphere {
  position: absolute; left: 50%; top: 50%;
  width: min(560px, 132vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
  animation: sphere-in 1.6s ease-out backwards;
}
@keyframes sphere-in { from { opacity: 0; transform: translate(-50%,-50%) scale(.82); } }
.sphere svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sphere ellipse { fill: none; stroke: var(--sphere); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* `transform-box: fill-box`, sonst schrumpft die Ellipse zur linken Kante. */
.sphere .sp-mer {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: sp-width 30s linear infinite, sp-face 60s linear infinite;
  animation-delay: calc(var(--i) * -3.75s), calc(var(--i) * -3.75s);
}
@keyframes sp-width {
  0%   { transform: scaleX(1);    } 12.5%{ transform: scaleX(.924); }
  25%  { transform: scaleX(.707); } 37.5%{ transform: scaleX(.383); }
  50%  { transform: scaleX(.004); } 62.5%{ transform: scaleX(.383); }
  75%  { transform: scaleX(.707); } 87.5%{ transform: scaleX(.924); }
  100% { transform: scaleX(1);    }
}
@keyframes sp-face { 0% { opacity: .45; } 25% { opacity: 1; } 50%, 100% { opacity: .45; } }
.sphere .sp-lat { opacity: .55; }

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; display: block;
  left: var(--x); top: var(--y);
  width: min(var(--s), 1100px); aspect-ratio: 1;
  border-radius: 50%; opacity: var(--a);
  background: radial-gradient(circle closest-side,
              rgba(var(--veil), .50) 0%, rgba(var(--veil), .18) 45%, rgba(var(--veil), 0) 100%);
  mix-blend-mode: var(--veil-blend);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.aurora i:nth-child(1) { animation: drift1 19s ease-in-out infinite; }
.aurora i:nth-child(2) { animation: drift2 27s ease-in-out infinite; }
.aurora i:nth-child(3) { animation: drift3 33s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(-50%,-50%); } 33% { transform: translate(-36%,-44%); } 66% { transform: translate(-61%,-55%); } }
@keyframes drift2 { 0%,100% { transform: translate(-50%,-50%); } 40% { transform: translate(-62%,-56%); } 70% { transform: translate(-41%,-45%); } }
@keyframes drift3 { 0%,100% { transform: translate(-50%,-50%); } 35% { transform: translate(-63%,-43%); } 75% { transform: translate(-38%,-57%); } }

/* ── Aufbau: Inhalt links, Anmeldung rechts ───────────────────────────────── */

.layout { display: grid; gap: 56px; align-items: start; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; }
  .login-col { position: sticky; top: 72px; }
}

.section + .section { margin-top: 56px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.7rem; letter-spacing: .03em; line-height: 1.15;
}
.section-note { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Gestaffeltes Erscheinen: aufsteigen, aufklaren, einblenden. */
.in { animation: rise .8s cubic-bezier(.2,.75,.25,1) var(--d, 0s) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ── Projektkarten ────────────────────────────────────────────────────────── */

.projects { display: grid; gap: 16px; }
@media (min-width: 640px) { .projects { grid-template-columns: 1fr 1fr; } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 210px; padding: 22px;
  background: var(--card);
  border: 1px solid var(--field-line); border-radius: 22px;
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.9,.3,1.2), border-color .3s ease, background .3s ease;
}
/* Lichtkegel, der dem Zeiger folgt (Lage aus main.js). */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
/* Goldene Kante an der Oberseite, nach unten auslaufend — wie am Blatt. */
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(to bottom, var(--sheet-edge), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); background: var(--card-hi); border-color: color-mix(in srgb, var(--gold) 35%, var(--field-line)); }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; gap: 14px; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.card-domain { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card-text { font-size: .9rem; color: var(--muted); flex: 1; }
.card-go {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease;
}
.card-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2;
               stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.3,1.3,.4,1); }
.card:hover .card-go { color: var(--gold); }
.card:hover .card-go svg { transform: translateX(4px); }

/* ── Apps ─────────────────────────────────────────────────────────────────── */

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.app {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--field-line); border-radius: 18px;
  text-decoration: none; color: var(--text);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2), border-color .25s ease, background .25s ease;
}
.app:hover { transform: translateY(-3px); background: var(--card-hi); border-color: color-mix(in srgb, var(--gold) 35%, var(--field-line)); }
.app img {
  width: 56px; height: 56px; border-radius: 13px; display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  transition: transform .45s cubic-bezier(.3,1.4,.4,1);
}
.app:hover img { transform: scale(1.07) rotate(-3deg); }
.app-name { font-size: .92rem; font-weight: 500; line-height: 1.25; }
.app-what { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.app-store {
  margin-top: auto; padding-top: 4px;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease;
}
.app-store svg { width: 12px; height: 12px; fill: currentColor; }
.app:hover .app-store { color: var(--gold); }

/* ── Das Blatt (Anmeldung) ────────────────────────────────────────────────── */

.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 30px;
  padding: 26px 24px 24px;
  box-shadow: var(--sheet-shadow);
  display: flex; flex-direction: column; gap: 16px;
  animation: sheet-in .9s cubic-bezier(.19,1.05,.34,1) .35s backwards;
}
.sheet::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(to bottom, var(--sheet-edge), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@keyframes sheet-in { from { transform: translateY(70%); opacity: 0; } }

.sheet-tag {
  display: flex; align-items: center; gap: 8px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.sheet-tag .mark { width: 22px; height: 22px; }
.sheet-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.55rem; letter-spacing: .04em; line-height: 1.2;
}
.sheet-sub { font-size: .82rem; line-height: 1.55; color: var(--muted); margin-top: -8px; }

.fields { display: flex; flex-direction: column; gap: 12px; }

.field {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: text;
  transition: background .25s ease, box-shadow .35s ease;
}
.field:focus-within { background: var(--field-hi); box-shadow: 0 0 18px rgba(201,168,76,.16); }
.field-icon {
  flex: none; width: 18px; height: 18px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color .25s ease, transform .35s cubic-bezier(.3,1.2,.4,1);
}
.field-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
                  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field:focus-within .field-icon { color: var(--gold); transform: scale(1.08); }
.field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.field-label {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .25s ease;
}
.field:focus-within .field-label { color: var(--gold); }
.field input {
  width: 100%; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: .95rem; padding: 1px 0 2px;
}
/* Der goldene Rahmen zeichnet sich beim Fokus einmal rundherum ein. Das <svg>
   liegt eine halbe Strichbreite eingerückt, damit der Strich auf dem grauen
   Rahmen landet; `pathLength` rechnet in Prozent der Länge. */
.field-ring {
  position: absolute; left: .75px; top: .75px;
  width: calc(100% - 1.5px); height: calc(100% - 1.5px);
  overflow: visible; pointer-events: none;
}
.field-ring rect {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .55s cubic-bezier(.3,.9,.3,1);
}
.field:focus-within .field-ring rect { stroke-dashoffset: 0; }

.eye {
  flex: none; background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--muted); line-height: 0; border-radius: 6px;
  transition: color .15s, transform .12s;
}
.eye:hover { color: var(--text); }
.eye:active { transform: scale(.88); }
.eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor;
           stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-off { display: none; }
.eye.is-shown .eye-on  { display: none; }
.eye.is-shown .eye-off { display: block; }

.shake { animation: shake .4s linear; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  16% { transform: translateX(9px); }  33% { transform: translateX(-9px); }
  50% { transform: translateX(7px); }  66% { transform: translateX(-5px); }
  83% { transform: translateX(3px); }
}

.msg { display: none; align-items: flex-start; gap: 7px; font-size: .78rem; line-height: 1.45; }
.msg.is-on { display: flex; animation: rise .35s ease backwards; }
.msg svg { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.err { color: var(--danger); }

.submit-row { display: flex; justify-content: center; }
/* Beim Absenden wird der Knopf zum Kreis mit drehendem Zeichen. Die Breite
   setzt main.js in Pixeln — `100%` → `52px` ist ein Einheitenwechsel. */
.submit {
  position: relative; width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--btn-fg); border: none; border-radius: 10px;
  font-family: inherit; font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 8px 22px rgba(201,168,76,.16);
  transition: width .5s cubic-bezier(.3,1.05,.4,1), border-radius .5s cubic-bezier(.3,1.05,.4,1),
              transform .12s ease, box-shadow .25s ease, filter .18s ease;
}
.submit:hover:not(:disabled) { filter: brightness(1.06); }
.submit:active:not(:disabled) { transform: scale(.985); }
.submit.is-busy { border-radius: 26px; cursor: default; }
.submit-label { transition: opacity .2s ease, transform .25s ease; }
.submit.is-busy .submit-label { opacity: 0; transform: scale(.82); }
.submit .mark {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  --tm-ink: var(--btn-ink); --tm-hi: var(--btn-ink-hi);
  opacity: 0; transform: scale(.55);
  transition: opacity .2s ease, transform .3s cubic-bezier(.3,1.3,.4,1);
}
.submit.is-busy .mark { opacity: 1; transform: scale(1); }

.links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .74rem; color: var(--muted);
  text-decoration: none; transition: color .15s;
}
.link:hover { color: var(--gold); }

.clone {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--field-line); border-radius: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .72rem; color: var(--muted);
  overflow-x: auto; white-space: nowrap;
}
.clone b { color: var(--gold); font-weight: 400; }

/* Bereits angemeldet: statt der Felder ein Gruß und der Weg hinein. */
.signed-in { display: none; flex-direction: column; gap: 14px; }
.sheet.is-signed-in .signed-in { display: flex; animation: rise .5s ease backwards; }
.sheet.is-signed-in .login-form { display: none; }

/* ── Fuß ──────────────────────────────────────────────────────────────────── */

.foot {
  margin-top: 72px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--muted);
}
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* ── Rechtliche Seiten ────────────────────────────────────────────────────── */

.legal { max-width: 720px; margin: 0 auto; padding: 96px 0 24px; }
.legal h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2.4rem; margin-bottom: 8px; }
.legal h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.4rem; margin: 32px 0 8px; color: var(--gold); }
.legal p, .legal li { color: var(--muted); font-size: .95rem; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2rem; margin-top: 8px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--gold); }

/* ── Kleine Bildschirme ───────────────────────────────────────────────────── */

@media (max-width: 479px) {
  .page { padding-inline: 16px; }
  .head { padding-top: 84px; gap: 14px; }
  .lockup { gap: 12px; }
  .lockup .mark { width: 54px; height: 54px; }
  .sheet { padding: 22px 18px 20px; border-radius: 26px; }
}

/* ── Weniger Bewegung ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tm-idle, .tm-in, .tm-ramp, .tm-spin, .sphere, .aurora i, .word,
  .sheet, .in, .msg.is-on, .shake, .sheet.is-signed-in .signed-in { animation: none !important; }
  .tm-base, .tm-node { animation: none; stroke-dashoffset: 0; }
  .tm-dot { display: none; }
  /* Angehalten statt abgeschaltet: jede Ellipse behält ihre Phase. */
  .sphere .sp-mer { animation-play-state: paused; }
  .field-ring rect, .card, .app, .app img { transition: none; }
}
