/* Raidkrake: Streamer-Seiten der App (/verbinden, /kanal, Ergebnis nach der Twitch-Freigabe).
   Gleiche Welt wie raidkrake.de: Grundlage ist site/seiten.css (Farben, Nachtstadt-Kopf, Route, Fußzeile).
   Die Schriften kommen aus fonts.css.
   Achtung: stylesheet_link_tag :app im Schaltpult-Layout lädt alle Dateien unter app/assets/**,
   also auch diese. Deshalb gilt jede Regel nur unter body.seite (Layout „seite“). Neue Regeln ebenso. */
body.seite{
  color-scheme:dark;
  --bg:#142038; --bg-2:#0E1830; --surface:#1E2D4D; --chat:#101B33; --field:#0B1428;
  --text:#EEF1F7; --text-2:#A9B6CF;
  --lantern:#FFBE4D; --mint:#6ED3B5; --rose:#F29CA3;
  --f-display:"Unbounded",system-ui,sans-serif; --f-body:"Onest",system-ui,sans-serif; --f-cmd:"JetBrains Mono",ui-monospace,monospace;
  --glass:0 1px 0 rgba(255,255,255,.08) inset,0 0 0 1px rgba(169,182,207,.14) inset,0 30px 60px -30px rgba(3,8,20,.9);
  --line:rgba(169,182,207,.16);
  --measure:40rem;
}
body.seite *,body.seite *::before,body.seite *::after{box-sizing:border-box;margin:0}
html:has(> body.seite){-webkit-text-size-adjust:100%;scroll-padding-top:24px}
body.seite{margin:0;background:var(--bg);color:var(--text);font-family:var(--f-body);font-size:1.0625rem;line-height:1.6;overflow-x:hidden}
body.seite a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
body.seite a:hover{color:var(--lantern)}
body.seite :where(a,body.seite button,body.seite summary,body.seite [tabindex]):focus-visible{outline:3px solid var(--lantern);outline-offset:3px;border-radius:8px}
body.seite main:focus{outline:none}
body.seite code,body.seite kbd{font-family:var(--f-cmd);font-weight:700;color:var(--mint);font-size:.92em}
body.seite .visually-hidden{position:absolute!important;clip-path:inset(50%)!important;overflow:hidden!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;white-space:nowrap!important}
body.seite .sprite{position:absolute;width:0;height:0;overflow:hidden}
body.seite .skip{position:absolute;left:16px;top:-80px;z-index:50;background:var(--lantern);color:var(--bg);padding:10px 16px;border-radius:12px;font-weight:700;text-decoration:none}
body.seite .skip:focus{top:16px}
body.seite .skip:hover{color:var(--bg)}

/* ---------- Himmel und Dächer oben ---------- */
body.seite .night{position:relative;background:linear-gradient(180deg,#0E1830 0%,#172646 70%,var(--bg) 100%);overflow:hidden}
body.seite .night::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.8;background-image:radial-gradient(1.5px 1.5px at 12% 22%,#EEF1F7 60%,transparent),radial-gradient(1px 1px at 28% 12%,#EEF1F7 60%,transparent),radial-gradient(1.5px 1.5px at 47% 30%,#A9B6CF 60%,transparent),radial-gradient(1px 1px at 63% 10%,#EEF1F7 60%,transparent),radial-gradient(2px 2px at 71% 36%,#FFE3A6 60%,transparent),radial-gradient(1px 1px at 88% 16%,#EEF1F7 60%,transparent),radial-gradient(1px 1px at 37% 44%,#A9B6CF 60%,transparent),radial-gradient(1.5px 1.5px at 6% 48%,#EEF1F7 60%,transparent),radial-gradient(1px 1px at 96% 42%,#A9B6CF 60%,transparent)}
body.seite .moon{position:absolute;top:92px;right:18%;width:54px;height:54px;border-radius:50%;background:radial-gradient(circle at 38% 35%,#FFF6DD,#FFE3A6 55%,#E8B964);box-shadow:0 0 70px 16px rgba(255,190,77,.14)}
body.seite .bar{position:relative;z-index:2;max-width:72rem;margin:0 auto;padding:22px 32px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}
body.seite .brand{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 16px 6px 8px;border-radius:16px;background:rgba(14,24,48,.82);box-shadow:var(--glass);font:800 1.125rem var(--f-display);letter-spacing:.01em;color:var(--text);text-decoration:none}
body.seite .brand svg{width:40px;height:40px}
body.seite .back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:14px;box-shadow:0 0 0 1.5px rgba(169,182,207,.5) inset;font-weight:600;text-decoration:none}
body.seite .back:hover{box-shadow:0 0 0 1.5px var(--lantern) inset}
body.seite .back svg{width:16px;height:16px}
body.seite .title{position:relative;z-index:2;max-width:72rem;margin:0 auto;padding:72px 32px 0}
body.seite .title h1{font:700 2.75rem/1.08 var(--f-display);letter-spacing:-.025em;text-wrap:balance;max-width:16em}
body.seite .title .lead{margin-top:18px;font-size:1.1875rem;line-height:1.55;color:var(--text-2);max-width:34em}
body.seite .title .lead strong{color:var(--text);font-weight:700}
body.seite .roofs{position:relative;display:block;width:100%;height:150px;margin-top:-8px}
body.seite .perch{position:absolute;z-index:3;width:112px;height:auto;right:max(32px,calc(50% - 36rem + 32px));bottom:34px;filter:drop-shadow(0 18px 20px rgba(3,8,20,.55))}

/* ---------- Inhalt ---------- */
body.seite main{background:var(--bg)}
body.seite .sheet{max-width:72rem;margin:0 auto;padding:40px 32px 96px}

/* Schritte als senkrechtes Band mit Laternen-Nummern (wie Verbinden-Info) */
body.seite .route{list-style:none;padding:0;position:relative;max-width:46rem}
body.seite .route::before{content:"";position:absolute;left:26px;top:30px;bottom:60px;width:14px;border-radius:8px;background:repeating-linear-gradient(180deg,#46608F 0 46px,#3E5584 46px 48px);box-shadow:5px 0 0 #34497A}
body.seite .route li{position:relative;padding-left:100px;padding-bottom:52px}
body.seite .route li:last-child{padding-bottom:0}
body.seite .route .num{position:absolute;left:0;top:0;display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:var(--lantern);color:#142038;font:800 1.5rem var(--f-display);box-shadow:0 -4px 0 rgba(0,0,0,.16) inset,0 0 0 6px var(--bg),0 0 36px rgba(255,190,77,.35)}
body.seite .route h2{font:700 1.375rem/1.25 var(--f-display);letter-spacing:-.01em;padding-top:14px;margin-bottom:10px;text-wrap:balance}
body.seite .route p{color:var(--text-2);max-width:34em;margin-bottom:12px}
body.seite .route .cmdline{display:inline-block;padding:8px 12px;border-radius:10px;background:var(--field);box-shadow:0 0 0 1px rgba(110,211,181,.35) inset}
body.seite .connect{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:18px 0 10px}

/* Abzweig „nur austragen“: gestrichelter Weg vom Band weg, keine Laterne, weil kein vierter Schritt */
body.seite .sidepath{position:relative;max-width:46rem;margin-top:72px;padding-left:100px}
body.seite .sidepath::before{content:"";position:absolute;left:31px;top:-56px;height:calc(100% + 40px);border-left:3px dashed rgba(110,211,181,.55)}
body.seite .sidepath::after{content:"";position:absolute;left:26px;top:12px;width:13px;height:13px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 3px var(--mint)}
body.seite .sidepath h2{font:700 1.25rem/1.3 var(--f-display);letter-spacing:-.01em;margin-bottom:10px;text-wrap:balance}
body.seite .sidepath p{color:var(--text-2);max-width:34em}
body.seite .aside{max-width:46rem;margin-top:48px;padding-left:100px}

/* Kanalseite: zwei Bedienfelder */
body.seite .panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
body.seite .panel{padding:28px;border-radius:16px;background:rgba(30,45,77,.55);box-shadow:var(--glass)}
body.seite .panel h2{font:700 1.375rem/1.25 var(--f-display);letter-spacing:-.01em;margin-bottom:12px}
body.seite .panel p{color:var(--text-2);margin-bottom:14px}
body.seite .panel form{margin:0}
body.seite .state{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;color:var(--text)}
body.seite .state span:not(.visually-hidden){color:var(--text)}
body.seite .pill{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;font:800 .9375rem/1 var(--f-display);letter-spacing:.01em}
body.seite .pill.is-on{background:var(--lantern);color:#142038;box-shadow:0 0 28px -4px rgba(255,190,77,.55)}
body.seite .pill.is-off{color:var(--text-2);box-shadow:0 0 0 1.5px rgba(169,182,207,.5) inset}
body.seite .signout{margin-top:32px}

/* ---------- App-Bausteine, nur in diesem Layout (das Schaltpult nutzt dieselben Klassen) ---------- */
body.seite .button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border:0;border-radius:14px;background:var(--lantern);color:#142038;font:700 1rem/1.2 var(--f-body);text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:0 -4px 0 rgba(0,0,0,.16) inset,0 0 0 1px rgba(255,255,255,.3) inset,0 0 40px -6px rgba(255,190,77,.55)}
body.seite .button:hover{background:#FFC968;color:#142038}
body.seite .button:active{transform:translateY(1px)}
body.seite .button-quiet{background:transparent;color:var(--text);box-shadow:0 0 0 1.5px rgba(169,182,207,.5) inset}
body.seite .button-quiet:hover{background:transparent;color:var(--text);box-shadow:0 0 0 1.5px var(--lantern) inset}
body.seite .button-danger{background:transparent;color:var(--rose);box-shadow:0 0 0 1.5px var(--rose) inset}
body.seite .button-danger:hover{background:var(--rose);color:#142038}
body.seite .link-button{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--text);font:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;cursor:pointer}
body.seite .link-button:hover{color:var(--lantern)}
body.seite form.button_to{margin:0}
body.seite .raid-note{color:var(--text-2);font-size:.9375rem}
body.seite .raid-note a{color:var(--text)}
body.seite .raid-reply{max-width:46rem;margin:0 0 32px;padding:16px 20px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px rgba(110,211,181,.45) inset;color:var(--text);font-size:1.0625rem}
body.seite .result .raid-reply{margin-bottom:8px}
body.seite .result.is-error .raid-reply{box-shadow:0 0 0 1px rgba(242,156,163,.6) inset}
body.seite .status{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0 0 16px}
body.seite .status dt{font-weight:700;color:var(--text)}
body.seite .status dd{margin:0;color:var(--text-2)}

/* ---------- Fußzeile wie Startseite ---------- */
body.seite footer{border-top:1px solid rgba(169,182,207,.14);color:var(--text-2);font-size:.9375rem;background:var(--bg)}
body.seite footer .wrap{max-width:72rem;margin:0 auto;padding:40px 32px 56px}
body.seite footer .row{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;color:var(--text)}
body.seite footer .row a{display:inline-flex;align-items:center;min-height:44px}
body.seite footer .ai{color:var(--lantern);font-weight:700}
body.seite footer small{display:block;margin-top:14px;font-size:.8125rem;max-width:60em}

@media (max-width:900px){
  body.seite .panels{grid-template-columns:1fr}
}
@media (max-width:640px){
  body.seite{font-size:1rem}
  body.seite .bar{padding:14px 16px 0}
  body.seite .brand{font-size:1rem;padding:4px 12px 4px 6px}
  body.seite .brand svg{width:34px;height:34px}
  body.seite .back{padding:0 12px;font-size:.9375rem}
  body.seite .title{padding:48px 16px 0}
  body.seite .title h1{font-size:1.875rem;line-height:1.12}
  body.seite .title .lead{font-size:1.0625rem}
  body.seite .moon{top:78px;right:10%;width:40px;height:40px}
  body.seite .perch{width:76px;right:16px;bottom:20px}
  body.seite .roofs{height:112px}
  body.seite .sheet{padding:28px 16px 72px}
  body.seite .route::before{left:19px;width:10px;box-shadow:4px 0 0 #34497A}
  body.seite .route li{padding-left:68px;padding-bottom:40px}
  body.seite .route .num{width:48px;height:48px;font-size:1.125rem;box-shadow:0 -3px 0 rgba(0,0,0,.16) inset,0 0 0 5px var(--bg),0 0 28px rgba(255,190,77,.35)}
  body.seite .route h2{font-size:1.125rem;padding-top:10px}
  body.seite .sidepath{margin-top:56px;padding-left:68px}
  body.seite .sidepath::before{left:22px;top:-44px;height:calc(100% + 28px)}
  body.seite .sidepath::after{left:17px}
  body.seite .sidepath h2{font-size:1.125rem}
  body.seite .aside{padding-left:68px;margin-top:40px}
  body.seite .panel{padding:20px}
  body.seite .panel h2{font-size:1.125rem}
  body.seite .button{display:flex;width:100%;white-space:normal;text-align:center;padding:12px 18px}
  body.seite .status{grid-template-columns:1fr;gap:2px}
  body.seite .status dd{margin-bottom:8px}
  body.seite footer .wrap{padding:32px 16px 48px}
}
@media (prefers-reduced-motion:reduce){body.seite *{transition:none!important}}
