/* BoomBot – Design für Admin-Panel und Website (dunkles Blau, Türkis – wie der Entwurf der Besitzer-Seite) */

:root {
    color-scheme: dark;
    --bg: #0b0e2c;
    --flaeche: #121640;
    --flaeche-2: #181d50;
    --feld: #1a1f52;
    --linie: rgba(255, 255, 255, .09);
    --text: #ffffff;
    --text-2: #b4b9dc;
    --text-3: #7d84b3;
    --akzent: #22b8e6;
    --akzent-hell: #4fcaf0;
    --akzent-dunkel: #0b0e2c;
    --rot: #ff5468;
    --gelb: #ffc94d;
    --gruen: #34d67c;
    --radius: 14px;
    --schrift: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); }
a:hover { color: var(--akzent-hell); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }
p { margin: 0 0 12px; }
code, kbd, pre { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; font-size: .92em; overflow-wrap: anywhere; }
kbd { background: var(--flaeche-2); border: 1px solid var(--linie); border-bottom-width: 3px; padding: 0 6px; border-radius: 6px; font-size: .9em; }
mark.platzhalter { background: var(--gelb); color: #1b1300; border-radius: 4px; padding: 0 3px; }
.leise { color: var(--text-3); font-size: 14px; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.logo-bild { width: 48px; height: 48px; flex: none; }
.logo-text { display: flex; flex-direction: column; font-size: 22px; line-height: 1; letter-spacing: .5px; }
.logo-text span { font-weight: 300; }
.logo-text b { font-weight: 800; }

/* ---------- Kopf + Menü ---------- */
.admin-kopf { display: flex; align-items: center; gap: 14px; padding: 14px 24px; }
.admin-marke { padding: 3px 10px; border-radius: 12px; background: var(--flaeche-2); color: var(--akzent); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.abmelden { margin-left: auto; }

.admin-menue {
    display: flex; gap: 6px;
    padding: 0 24px 12px;
    overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--linie);
}
.admin-menue::-webkit-scrollbar { display: none; }
.admin-menue a {
    flex: none;
    display: flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 16px;
    border-radius: 22px;
    color: var(--text-2); text-decoration: none; font-weight: 700;
}
.admin-menue a:hover { background: var(--flaeche); color: var(--text); }
.admin-menue a.aktiv { background: var(--akzent); color: var(--akzent-dunkel); }

.admin-inhalt { max-width: 920px; margin: 0 auto; padding: 28px 24px 48px; }
.admin-fuss { max-width: 920px; margin: 0 auto; padding: 0 24px 32px; color: var(--text-3); font-size: 13px; }
.einleitung { color: var(--text-2); font-size: 17px; max-width: 70ch; }

/* ---------- Karten, Kästen ---------- */
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; }
.karte > :last-child { margin-bottom: 0; }

.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; background: var(--flaeche-2); border-left: 4px solid var(--akzent); }
.hinweis > div > :last-child { margin-bottom: 0; }
.hinweis-zeichen { font-size: 20px; line-height: 1.2; }
.hinweis-ok { border-left-color: var(--gruen); }
.hinweis-warnung { border-left-color: var(--gelb); }
.hinweis-fehler { border-left-color: var(--rot); }

.hilfe-kasten { margin: 0 0 20px; border: 1px solid var(--linie); border-radius: 12px; }
.hilfe-kasten summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 700; color: var(--text-2); }
.hilfe-kasten > div { padding: 0 16px 14px; color: var(--text-2); }

/* ---------- Knöpfe ---------- */
.knopf, .knopf-zweit, .knopf-leise {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px;
    border-radius: 24px; border: 0;
    font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.knopf { background: var(--akzent); color: var(--akzent-dunkel); }
.knopf:hover { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.knopf-zweit { background: var(--flaeche-2); color: var(--text); border: 1px solid var(--linie); }
.knopf-zweit:hover { border-color: var(--akzent); color: var(--text); }
.knopf-leise { background: none; color: var(--text-2); min-height: 44px; padding: 0 14px; }
.knopf-leise:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; }
.formular h2 { margin-top: 10px; }
.formular h2:first-of-type { margin-top: 0; }
label { font-weight: 700; margin: 10px 0 6px; }
.feld {
    width: 100%; min-height: 48px; padding: 10px 14px;
    background: var(--feld); color: var(--text);
    border: 1px solid var(--linie); border-radius: 10px;
    font: inherit;
}
textarea.feld { min-height: 64px; resize: vertical; }
.feld:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.feld::placeholder { color: var(--text-3); }
.feld-fehler { border-color: var(--rot); }
.feld-hilfe { color: var(--text-3); font-size: 14px; margin: 6px 0 4px; }
.feld-fehlertext { color: var(--rot); font-size: 14px; font-weight: 700; margin: 6px 0 0; }

.vorschlag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; padding: 12px 14px; background: var(--flaeche-2); border-radius: 10px; }
.vorschlag code { font-size: 16px; font-weight: 700; color: var(--akzent-hell); }
.vorschlag .knopf-zweit { min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }

/* ---------- Einfache Seite (Anmeldung, Einrichtung) ---------- */
.einfach { max-width: 520px; margin: 0 auto; padding: 40px 20px 56px; }
.einfach h2 { margin-top: 22px; }
.pruefliste { list-style: none; padding: 0; margin: 0 0 18px; }
.pruefliste li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.pruefliste li.fehlt { color: var(--rot); }
.einfach-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.einfach .formular .knopf { margin-top: 18px; }

/* ---------- Fortschritt ---------- */
.fortschritt-kasten { margin: 0 0 20px; }
.fortschritt-zeile { display: flex; justify-content: space-between; margin-bottom: 8px; }
.balken { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.balken-fuellung { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1a8fbd, var(--akzent)); border-radius: 4px; }
.breite-5 { width: 5%; } .breite-10 { width: 10%; } .breite-15 { width: 15%; } .breite-20 { width: 20%; }
.breite-25 { width: 25%; } .breite-30 { width: 30%; } .breite-35 { width: 35%; } .breite-40 { width: 40%; }
.breite-45 { width: 45%; } .breite-50 { width: 50%; } .breite-55 { width: 55%; } .breite-60 { width: 60%; }
.breite-65 { width: 65%; } .breite-70 { width: 70%; } .breite-75 { width: 75%; } .breite-80 { width: 80%; }
.breite-85 { width: 85%; } .breite-90 { width: 90%; } .breite-95 { width: 95%; } .breite-100 { width: 100%; }

/* ---------- Anleitung: Schritte ---------- */
.schritt, .problem { background: var(--flaeche); border-radius: var(--radius); margin: 0 0 12px; scroll-margin-top: 16px; }
.schritt summary, .problem summary {
    display: flex; align-items: center; gap: 14px;
    min-height: 60px; padding: 12px 18px;
    cursor: pointer; list-style: none;
}
.schritt summary::-webkit-details-marker, .problem summary::-webkit-details-marker { display: none; }
.schritt-nr {
    display: grid; place-items: center; flex: none;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--flaeche-2); color: var(--akzent); font-weight: 800;
}
.schritt[open] .schritt-nr { background: var(--akzent); color: var(--akzent-dunkel); }
.schritt.erledigt .schritt-nr { background: rgba(52, 214, 124, .18); color: var(--gruen); }
.schritt-titel { font-weight: 800; font-size: 17px; flex: 1; min-width: 0; }
.schritt-zustand { flex: none; color: var(--text-3); font-size: 13px; text-align: right; }
.schritt.erledigt .schritt-zustand { color: var(--gruen); }
.schritt-inhalt, .problem-inhalt { padding: 0 18px 18px; border-top: 1px solid var(--linie); padding-top: 16px; }

.marken { display: flex; flex-wrap: wrap; gap: 8px; }
.marke { padding: 3px 10px; border-radius: 12px; background: var(--flaeche-2); font-size: 13px; font-weight: 700; }
.marke-leise { color: var(--text-2); }

.liste-schritte { padding-left: 22px; margin: 0 0 12px; }
.liste-schritte li { margin-bottom: 8px; }
.zwischen { margin-top: 18px; }
.befehl-text { color: var(--text-2); font-size: 15px; }
.fertig { background: rgba(52, 214, 124, .1); border-radius: 10px; padding: 10px 14px; }
.klappt-nicht { margin: 12px 0; }
.klappt-nicht ul { margin: 6px 0 0; padding-left: 22px; }
.schritt-formular { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 4px; }

/* ---------- Befehls-Block ---------- */
.befehl { position: relative; margin: 10px 0; }
.befehl pre {
    margin: 0; padding: 14px 16px; padding-right: 108px;
    background: #050720; border: 1px solid var(--linie); border-radius: 10px;
    color: #d9f4ff; font-size: 14px; line-height: 1.55;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.befehl pre code { background: none; padding: 0; font-size: inherit; }
.kopieren {
    position: absolute; top: 6px; right: 6px;
    min-height: 40px; padding: 0 14px;
    border: 0; border-radius: 20px;
    background: var(--flaeche-2); color: var(--akzent);
    font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.kopieren:hover { background: var(--akzent); color: var(--akzent-dunkel); }
.kopieren.kopiert { background: var(--gruen); color: #04220f; }
.unsichtbar-kopie { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* ---------- Hilfe ---------- */
.inhalt-liste { margin: 0 0 20px; }
.inhalt-liste ul { columns: 2; column-gap: 28px; padding-left: 20px; margin: 0; }
.inhalt-liste li { margin-bottom: 6px; break-inside: avoid; }
.problem summary { font-weight: 800; font-size: 17px; }
.problem summary::before { content: "🔧"; }
.erkennen { color: var(--text-2); }
.sonst { background: var(--flaeche-2); border-radius: 10px; padding: 10px 14px; }

.tabelle-rahmen { overflow-x: auto; margin: 0 0 12px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { color: var(--text-3); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Übersicht ---------- */
.phasen { list-style: none; padding: 0; margin: 0 0 16px; }
.phasen li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--linie); position: relative; color: var(--text-3); }
.phasen li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-3); }
.phasen li span { font-size: 14px; }
.phasen .phase-fertig { color: var(--text-2); }
.phasen .phase-fertig::before { background: var(--gruen); border-color: var(--gruen); }
.phasen .phase-jetzt { color: var(--text); }
.phasen .phase-jetzt::before { background: var(--akzent); border-color: var(--akzent); box-shadow: 0 0 0 4px rgba(34, 184, 230, .25); }
.kurz-liste { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); }

/* ---------- Protokoll ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 20px; background: var(--flaeche); color: var(--text-2); text-decoration: none; font-weight: 700; }
.filter a.aktiv { background: var(--akzent); color: var(--akzent-dunkel); }
.tag { margin-top: 24px; font-size: 18px; color: var(--text-2); }
.protokoll-liste { list-style: none; padding: 0; margin: 0 0 12px; }
.protokoll-liste li { padding: 10px 12px; border-bottom: 1px solid var(--linie); overflow-wrap: anywhere; }
.protokoll-liste time { color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 6px; }
.protokoll-liste .art-fehler { border-left: 3px solid var(--rot); }
.protokoll-liste .art-warnung { border-left: 3px solid var(--gelb); }
.protokoll-liste .art-ok { border-left: 3px solid var(--gruen); }

/* ---------- Öffentliche Startseite (vorläufig) ---------- */
.start { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; text-align: center; }
.start .logo-bild { width: 96px; height: 96px; }
.start-logo { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.start-logo .logo-text { font-size: 40px; text-align: left; }
.start-sprachen { list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 18px; }
.start-sprachen li { margin: 6px 0; }

/* ---------- Handy ---------- */
@media (max-width: 640px) {
    h1 { font-size: 25px; }
    .admin-kopf { padding: 12px 16px; }
    .admin-menue { padding: 0 16px 10px; }
    .admin-inhalt { padding: 20px 16px 40px; }
    .admin-fuss { padding: 0 16px 28px; }
    .karte { padding: 18px 16px; }
    .schritt summary, .problem summary { padding: 12px 14px; gap: 10px; }
    .schritt-zustand { font-size: 12px; max-width: 34%; }
    .schritt-inhalt, .problem-inhalt { padding: 14px 14px 16px; }
    .befehl pre { padding: 52px 12px 12px; font-size: 13px; }
    .inhalt-liste ul { columns: 1; }
    .knopf, .knopf-zweit { width: 100%; }
}
