/* Anmeldeseiten 1:1 nach Jonys Entwurf docs/ux/entwuerfe/login-v3.html (Regel Frank 28.11., 15:44).
   Eigene Datei, nur im Anmelde-Rahmen geladen (anmeldung/rahmen.html), nach stratego.css; alle Regeln hängen an
   body.anmeldung und überschreiben dort die gemeinsamen Regeln. Werte wie im Entwurf. Keine dunkle Fassung.
   Abgleich und begründete Abweichungen: docs/ux/anmeldung-abgleich.md. */

body.anmeldung { font-size:16px; line-height:normal; background:var(--tief); color:#fff; }
body.anmeldung :focus-visible { outline:3px solid var(--orange); outline-offset:3px; }

/* Bühne */
body.anmeldung .buehne { min-height:calc(100vh - 52px); position:relative; overflow:hidden;
  background:radial-gradient(1200px 700px at 15% 10%, #22406F 0%, var(--blau) 45%, var(--tief) 100%);
  display:grid; grid-template-columns:1fr 460px; grid-template-rows:auto 1fr; align-content:stretch; gap:0 72px; padding:40px 72px 48px; }
body.anmeldung .buehne .ring.r1 { width:720px; height:720px; right:-240px; top:-260px; border:110px solid rgba(255,255,255,.035); }
body.anmeldung .buehne .ring.r2 { display:block; width:340px; height:340px; right:300px; bottom:120px; border:56px solid rgba(246,146,30,.10); }
body.anmeldung .buehne .ring.r3 { display:block; width:160px; height:160px; left:44%; top:90px; border:26px solid rgba(92,201,82,.10); }

/* Kopf: Logo links, rechts Sprachwahl (und, wenn angemeldet, wer) */
body.anmeldung .buehne .kopf { grid-column:1 / -1; grid-row:1; display:flex; align-items:center; justify-content:space-between;
  gap:16px; position:relative; z-index:3; margin:0; }
body.anmeldung .kopf .logo { font-size:30px; font-weight:800; letter-spacing:-.5px; line-height:normal; }
body.anmeldung .kopf-rechts { display:flex; align-items:center; gap:16px; min-width:0; }
body.anmeldung .sprachwahl { display:flex; gap:2px; margin:0; }
body.anmeldung .kopf .sprachwahl button { font:inherit; font-size:12px; font-weight:600; border:0; background:none; min-height:0;
  color:rgba(255,255,255,.7); padding:6px 8px; cursor:pointer; border-radius:4px; line-height:normal; }
body.anmeldung .kopf .sprachwahl button:hover { background:none; }
body.anmeldung .kopf .sprachwahl button[aria-pressed="true"] { color:#fff; text-decoration:underline; text-underline-offset:4px; }

/* Links: Aussage, Satz, Strecke 1–12 */
body.anmeldung .buehne .links { grid-column:1; grid-row:2; display:flex; flex-direction:column; justify-content:center;
  position:relative; z-index:1; padding-top:24px; }
body.anmeldung .story { position:relative; }
body.anmeldung .buehne .marke { font-size:11px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; color:var(--orange);
  margin:0 0 24px; grid-row:auto; }
body.anmeldung .buehne .aussage { display:block; font-size:clamp(48px, 6.4vw, 96px); font-weight:800; line-height:1.0; letter-spacing:-2px;
  margin:0 0 28px; color:#fff; }
body.anmeldung .buehne .aussage span { display:block; }
body.anmeldung .buehne .aussage em { font-style:normal; color:var(--orange); }
body.anmeldung .sub { font-size:17px; font-weight:300; line-height:1.7; color:rgba(255,255,255,.72); max-width:560px; margin:0; }
body.anmeldung .sub strong { color:var(--orange); font-weight:700; }
body.anmeldung .buehne .strecke { position:relative; z-index:1; margin-top:48px; }
body.anmeldung .zellen { display:grid; grid-template-columns:repeat(12, 1fr); gap:6px; }
body.anmeldung .zellen span { height:44px; border-radius:6px; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; transform-origin:left; }
body.anmeldung .zellen .s { background:rgba(255,255,255,.14); color:rgba(255,255,255,.85); }
body.anmeldung .phasen { display:grid; grid-template-columns:6fr 3fr 3fr; gap:6px; margin-top:14px; font-size:inherit;
  font-weight:inherit; letter-spacing:normal; text-transform:none; }
body.anmeldung .phase b { display:block; font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:6px; }
body.anmeldung .phase.s b { color:#fff; } body.anmeldung .phase.t b { color:var(--orange); } body.anmeldung .phase.g b { color:var(--gruen-hell); }
body.anmeldung .phase p { font-size:12px; line-height:1.55; color:rgba(255,255,255,.62); padding-right:12px; margin:0; }
body.anmeldung .powered { margin:28px 0 0; font-size:11px; color:rgba(255,255,255,.62); }

/* Karte */
body.anmeldung .buehne main.flaeche { grid-column:2; grid-row:2; align-self:center; background:#fff; color:var(--blau);
  border-radius:16px; padding:44px 40px 36px; position:relative; z-index:2; box-shadow:0 30px 80px rgba(0,0,0,.35);
  font-size:16px; line-height:normal; }
body.anmeldung .flaeche > * + * { margin-top:0; }
body.anmeldung .flaeche p { margin:0; }
body.anmeldung .flaeche .label { font-size:11px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--orange-text); margin-bottom:12px; }
body.anmeldung .flaeche h2 { font-size:28px; font-weight:700; line-height:1.2; margin:0 0 8px; }
body.anmeldung .flaeche .lead { font-size:14px; line-height:normal; color:var(--mitte); margin-bottom:30px; }
body.anmeldung .flaeche .lead strong { color:var(--blau); font-weight:600; }
body.anmeldung .flaeche form { margin:0; }
body.anmeldung .flaeche form > p { margin:0; }
body.anmeldung .fg { display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
body.anmeldung .flaeche .fg label { display:block; font-size:12px; font-weight:600; letter-spacing:.3px; margin:0; color:var(--blau); }
body.anmeldung .ctl { position:relative; }
body.anmeldung .flaeche .fg input[type=email], body.anmeldung .flaeche .fg input[type=text], body.anmeldung .flaeche .fg input[type=password] {
  width:100%; height:50px; min-height:0; margin:0; border:1.5px solid var(--rand); border-radius:8px; padding:0 16px; font:inherit;
  font-size:15px; color:var(--blau); background:var(--hell); outline:none; }
body.anmeldung .flaeche .fg input::placeholder { color:#6B778A; }
body.anmeldung .flaeche .fg input:focus { border-color:var(--blau); background:#fff; }
body.anmeldung .flaeche .fg input:focus-visible { outline:3px solid var(--blau); outline-offset:2px; }
body.anmeldung .flaeche .fg input[readonly] { background:#fff; border-style:dashed; color:var(--mitte); }
body.anmeldung .flaeche .fg .ctl input[type] { padding-right:96px; }
body.anmeldung .flaeche .fg .err, body.anmeldung .flaeche span.fehler { display:block; font-size:12px; color:var(--fehler); margin:0;
  padding:0; background:none; border:0; }
body.anmeldung .flaeche .fg input[aria-invalid=true] { border-color:var(--fehler); }
body.anmeldung .flaeche .hint { display:block; font-size:12px; line-height:1.5; color:var(--mitte); }
body.anmeldung .flaeche button.toggle { position:absolute; right:8px; top:9px; height:32px; min-height:0; padding:0 8px; border:0; background:none;
  font:inherit; font-size:12px; font-weight:600; color:var(--blau); cursor:pointer; width:auto; }
body.anmeldung .flaeche .meta { display:flex; justify-content:flex-start; align-items:center; gap:12px; flex-wrap:wrap; margin:4px 0 26px; }
body.anmeldung .flaeche .check { display:flex; gap:8px; align-items:flex-start; font-size:13px; font-weight:400; letter-spacing:0;
  line-height:normal; color:var(--mitte); cursor:pointer; margin:0; }
body.anmeldung .flaeche .check input[type=checkbox] { width:18px; height:18px; margin:2px 0 0; flex-shrink:0; accent-color:var(--blau); }
body.anmeldung .flaeche .check a { color:var(--blau); }
body.anmeldung .flaeche .meta .hint, body.anmeldung .flaeche .meta .err { flex-basis:100%; margin-left:26px; }

/* Knöpfe: .btn blau mit Pfeil, .btn.ghost hell mit Rand */
body.anmeldung .flaeche .btn, body.anmeldung .flaeche a.btn { width:100%; height:54px; min-height:0; border:0; border-radius:8px;
  background:var(--blau); color:#fff; font:inherit; font-size:16px; font-weight:600; cursor:pointer; display:flex;
  align-items:center; justify-content:center; gap:10px; padding:0 16px; text-decoration:none; border-bottom:0; line-height:normal; }
body.anmeldung .flaeche .btn:hover { background:var(--blau-dunkel); }
body.anmeldung .flaeche .btn::after { content:none; }
body.anmeldung .flaeche .btn .arrow { transition:transform .2s; }
body.anmeldung .flaeche .btn:hover .arrow { transform:translateX(4px); }
body.anmeldung .flaeche .btn[disabled] { opacity:.75; cursor:progress; }
body.anmeldung .flaeche .btn.ghost { background:#fff; color:var(--blau); border:1.5px solid var(--rand); margin-top:12px; }
body.anmeldung .flaeche .btn.ghost:hover { background:var(--hell); }
body.anmeldung .flaeche .btn:focus-visible, body.anmeldung .flaeche a:focus-visible { outline:3px solid var(--blau); outline-offset:2px; }

/* Meldungen */
body.anmeldung .flaeche .alert { border-radius:8px; padding:12px 14px; font-size:13px; line-height:1.5; margin-bottom:18px;
  background:var(--fehler-grund); color:var(--fehler); border:1px solid #F4C7C3; }
body.anmeldung .flaeche .status { border-radius:8px; padding:12px 14px; font-size:13px; line-height:1.5; margin:12px 0 0;
  background:var(--hell); border-left:4px solid var(--orange); color:var(--blau); }
body.anmeldung .flaeche .scope { background:var(--hell); border-radius:8px; padding:16px 18px; margin-bottom:24px; font-size:13px; line-height:1.6; }
body.anmeldung .flaeche .scope ul, body.anmeldung .flaeche .scope ol { margin:8px 0 0 18px; padding:0; }
body.anmeldung .flaeche .scope li { margin:0 0 4px; }
body.anmeldung .flaeche .scope .btn.ghost { margin-top:12px; height:44px; font-size:14px; }
body.anmeldung .flaeche .scope.nach { margin:24px 0 0; }

/* „oder“, Hilfe, Rückweg */
body.anmeldung .flaeche .or { display:flex; align-items:center; gap:12px; margin:26px 0 18px; }
body.anmeldung .flaeche .or::before, body.anmeldung .flaeche .or::after { content:''; flex:1; height:1px; background:var(--linie); }
body.anmeldung .flaeche .or span { font-size:11px; color:var(--mitte); text-transform:uppercase; letter-spacing:1px; }
body.anmeldung .flaeche .help { text-align:center; font-size:13px; color:var(--mitte); line-height:1.6; }
body.anmeldung .flaeche .help.ausweg { margin-top:12px; } /* Domain-Bestätigung: Fokusrahmen des Knopfs berührt den Satz nicht (Jony, alles-34) */
body.anmeldung .flaeche .help a, body.anmeldung .flaeche .back a, body.anmeldung .flaeche .rueckweg a, body.anmeldung .flaeche .who a {
  color:var(--blau); font-weight:600; text-decoration:none; border-bottom:1px solid var(--blau); }
body.anmeldung .flaeche .back, body.anmeldung .flaeche .rueckweg { font-size:13px; margin-top:8px; }
body.anmeldung .flaeche .rueckweg { margin-top:24px; }
body.anmeldung .flaeche .icon { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:24px; margin-bottom:20px; background:var(--hell); color:var(--blau); }
body.anmeldung .flaeche .icon.warn { background:var(--warn-grund); color:var(--orange-text); }
body.anmeldung .flaeche .rechtstext { font-size:14px; line-height:1.6; color:var(--blau); margin-bottom:12px; }

/* Rahmen „Mit Claude verbinden“ (Willkommen, angemeldet) in der Form von .scope */
body.anmeldung .flaeche section.claude-verbinden { margin-top:24px; background:var(--hell); border-radius:8px; padding:16px 18px;
  font-size:13px; line-height:1.6; }
body.anmeldung .flaeche section.claude-verbinden > * + * { margin-top:8px; }
body.anmeldung .flaeche section.claude-verbinden h2 { font-size:17px; margin:0; }
body.anmeldung .flaeche section.claude-verbinden label { display:block; font-size:12px; font-weight:600; margin:8px 0 6px; }
body.anmeldung .flaeche section.claude-verbinden input { min-height:44px; margin:0; font-size:13px; background:#fff; }
body.anmeldung .flaeche section.claude-verbinden ol { margin:8px 0 0 18px; padding:0; }
body.anmeldung .flaeche section.claude-verbinden .knoepfe button { min-height:44px; }
body.anmeldung .flaeche .karte { margin-top:0; }

/* Testsystem-Leiste oben (nicht im Entwurf; Pflicht im Testsystem) */
body.anmeldung .testsystem { font-size:12px; line-height:1.5; }

/* Einmalige Bewegung beim Laden (Entwurf); die Karte bleibt sichtbar (Befund Jony 5: nur Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  body.anmeldung .aussage span { opacity:0; transform:translateY(24px); animation:anm-rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  body.anmeldung .aussage span:nth-child(2) { animation-delay:.25s; }
  body.anmeldung .aussage span:nth-child(3) { animation-delay:.5s; }
}
@keyframes anm-rise { to { opacity:1; transform:none; } }

/* Laptop niedrig */
@media (max-height:820px) and (min-width:1101px) {
  body.anmeldung .buehne { padding-top:28px; padding-bottom:28px; }
  body.anmeldung .buehne .aussage { font-size:clamp(44px, 5.4vw, 80px); }
  body.anmeldung .buehne .strecke { margin-top:28px; }
}
/* Tablet und Smartphone: Aussage, dann Karte, dann Satz und Strecke */
@media (max-width:1100px) {
  body.anmeldung .buehne { grid-template-columns:1fr; grid-template-rows:none; align-content:start; padding:20px 20px 40px; gap:0; }
  body.anmeldung .buehne .kopf { margin-bottom:24px; align-items:center; }
  body.anmeldung .buehne .links { display:contents; }
  body.anmeldung .story { grid-row:2; margin-bottom:24px; }
  body.anmeldung .buehne .marke { margin:0 0 14px; }
  body.anmeldung .buehne .aussage, body.anmeldung .buehne .aussage:not(.start) { display:block; font-size:clamp(36px, 10vw, 64px);
    letter-spacing:-1px; margin:0; }
  body.anmeldung .buehne main.flaeche { grid-column:1; grid-row:3; padding:36px 24px 28px; }
  body.anmeldung .sub { grid-row:4; margin-top:40px; }
  body.anmeldung .buehne .strecke { grid-row:5; margin-top:32px; }
  body.anmeldung .buehne .ring.r1 { width:420px; height:420px; right:-200px; top:-160px; border-width:64px; }
  body.anmeldung .buehne .ring.r2, body.anmeldung .buehne .ring.r3 { display:none; }
  body.anmeldung .zellen { grid-template-columns:repeat(12, 1fr); }
  body.anmeldung .zellen span { height:34px; font-size:10px; }
  body.anmeldung .phasen { grid-template-columns:1fr; gap:14px; }
  body.anmeldung .band-unten { flex-direction:column; height:auto; min-height:0; }
  body.anmeldung .band-unten div { flex:none; height:40px; padding:0 8px; font-size:11px; }
}
/* Angemeldet am Handy: Kopf mit Name, Abmelden und Sprachwahl (Befund Jony 11, Funktion bleibt) */
@media (max-width:900px) {
  body.anmeldung .kopf-rechts { gap:8px; }
  /* angemeldet: Sprachwahl über Name und Abmelden, damit der Name Platz hat (Befund Jony H1) */
  body.anmeldung .kopf-rechts:has(.wer) { flex-direction:column-reverse; align-items:flex-end; gap:2px; }
  body.anmeldung .kopf-rechts .wer { max-width:100%; }
  body.anmeldung .kopf:has(.wer) .logo { font-size:24px; }
}
@media (max-width:359px) {
  body.anmeldung .kopf .logo { font-size:22px; }
}
