/* style.css – das Aussehen der Website.
   Dunkles, ruhiges Design wie bei professionellen Schnittprogrammen.
   Schriften: Manrope für Texte, Montserrat für Überschriften und Untertitel-Optik.
   Beide liegen im Ordner "schriften" (selbst gehostet → keine Verbindung zu Google, DSGVO-freundlich). */

@font-face { font-family: "Manrope"; src: url("schriften/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("schriften/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("schriften/Montserrat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("schriften/Montserrat-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Farben und Maße an einer Stelle ---------- */
:root {
    --bg: #0B0E17;
    --flaeche: #121626;
    --flaeche-2: #181D30;
    --flaeche-3: #1F2540;
    --linie: #232941;
    --linie-hell: #323A58;
    --text: #EEF0F7;
    --leise: #A0A6C2;
    --sehr-leise: #6E7494;
    --akzent: #FFD400;
    --akzent-hell: #FFE14D;
    --akzent-text: #14120A;
    --violett: #8B7CF6;
    --violett-weich: rgba(139, 124, 246, 0.16);
    --gruen: #34D399;
    --rot: #F87171;
    --rot-weich: rgba(248, 113, 113, 0.12);

    --radius: 14px;
    --radius-klein: 9px;
    --schatten: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);
    --leiste-hoehe: 60px;
    --seite-breite: 272px;

    --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --schrift-titel: "Montserrat", "Manrope", system-ui, sans-serif;
    --linie-hover: #4B557F;
    --seite-bg: #0D1019;
    --buehne-bg: #0E1120;
    --akzent-schrift: var(--akzent);
    --violett-text: #B9AFFF;
    --gruen-text: #6EE7B7;
    --rot-text: #FCA5A5;
    --gelb-text: #FDE68A;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--akzent-schrift); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--akzent); color: var(--akzent-text); }

.versteckt { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klein { font-size: 13px; color: var(--leise); }
.text { color: var(--leise); }

/* ---------- Marke ---------- */
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.marke:hover { text-decoration: none; }
.marke b { font-weight: 800; }
.marke-zeichen {
    display: inline-block; flex: none;
    width: 30px; height: 30px; border-radius: 8px;
    background: url("/app/logo.svg") center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.18), 0 6px 18px -8px rgba(255, 212, 0, 0.45);
}
.marke-gross { font-size: 17px; }
.marke-gross .marke-zeichen { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }

/* Kurzer Ladebildschirm beim Öffnen */
.start-laden { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.start-laden .marke-zeichen { width: 44px; height: 44px; font-size: 16px; animation: pulsieren 1.2s ease-in-out infinite; }
@keyframes pulsieren { 50% { transform: scale(0.9); opacity: 0.7; } }

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 16px;
    border: 1px solid transparent; border-radius: var(--radius-klein);
    font-weight: 700; font-size: 14px; letter-spacing: -0.005em;
    background: var(--flaeche-3); color: var(--text);
    transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap; text-decoration: none !important;
}
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.55; cursor: progress; }
.knopf-primaer { background: var(--akzent); color: var(--akzent-text); box-shadow: 0 8px 22px -12px rgba(255, 212, 0, 0.7); }
.knopf-primaer:hover { background: var(--akzent-hell); }
.knopf-sekundaer { background: transparent; border-color: var(--linie-hell); }
.knopf-sekundaer:hover { background: var(--flaeche-2); border-color: var(--linie-hover); }
.knopf-leise { background: transparent; color: var(--leise); padding: 0 12px; }
.knopf-leise:hover { background: var(--flaeche-2); color: var(--text); }
.knopf-gefahr:hover { color: var(--rot); background: var(--rot-weich); }
.knopf-gefahr-voll { background: transparent; color: var(--rot); border-color: rgba(248, 113, 113, 0.4); }
.knopf-gefahr-voll:hover { background: var(--rot); color: #1a0606; }
.knopf-gross { min-height: 48px; padding: 0 22px; font-size: 15px; }
.knopf-voll { width: 100%; }
.knopf-reihe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.link-knopf { background: none; border: 0; padding: 0; color: var(--akzent-schrift); font-weight: 700; }
.link-knopf:hover { text-decoration: underline; text-underline-offset: 3px; }
.symbol-knopf { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-klein); background: transparent; }
.symbol-knopf:hover { background: var(--flaeche-2); }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 7px; }
.feld > span:first-child { font-size: 13px; font-weight: 700; color: var(--leise); letter-spacing: 0.01em; }
.feld small { font-size: 12.5px; color: var(--sehr-leise); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--linie-hell);
    border-radius: var(--radius-klein);
    padding: 11px 13px;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--sehr-leise); }
input:hover, textarea:hover { border-color: var(--linie-hover); }
input:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.16); }
input:disabled { color: var(--sehr-leise); background: var(--flaeche); }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.haken { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--leise); line-height: 1.5; cursor: pointer; }
.haken input {
    appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
    width: 19px; height: 19px; border-radius: 5px;
    border: 1.5px solid var(--linie-hell); background: var(--bg);
    display: grid; place-items: center; cursor: pointer;
}
.haken input::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--akzent-text); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.haken input:checked { background: var(--akzent); border-color: var(--akzent); }
.haken input:checked::after { opacity: 1; }

.meldung { font-size: 14px; padding: 10px 13px; border-radius: var(--radius-klein); background: rgba(52, 211, 153, 0.1); color: var(--gruen); }
.meldung.fehler { background: var(--rot-weich); color: var(--rot-text); }
.meldung.info:not(.fehler) { background: rgba(255, 212, 0, 0.1); color: var(--akzent-schrift, var(--text)); border: 1px solid rgba(255, 212, 0, 0.35); }
.formular-fuss { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.formular-fuss .meldung { flex: 1; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Passwort-Stärke */
.pw-staerke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 3px; }
.pw-staerke i { background: var(--linie-hell); border-radius: 2px; transition: background 0.2s; }
.pw-staerke[data-stufe="1"] i:nth-child(1) { background: var(--rot); }
.pw-staerke[data-stufe="2"] i:nth-child(-n+2) { background: var(--akzent); }
.pw-staerke[data-stufe="3"] i { background: var(--gruen); }

/* ---------- Karten ---------- */
.karte {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--schatten);
}
.karte > .text { margin-top: 6px; }
.karte > .formular-fuss { margin-top: 14px; }
.formular.karte > .formular-fuss, .formular.karte > .text { margin-top: 0; }
.karten-titel { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

/* =========================================================
   A) ANMELDUNG
   ========================================================= */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr); }

.auth-buehne {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 36px clamp(28px, 5vw, 72px);
    background:
        radial-gradient(1000px 600px at 15% 0%, rgba(139, 124, 246, 0.22), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(255, 212, 0, 0.08), transparent 60%),
        var(--buehne-bg);
    border-right: 1px solid var(--linie);
}
.auth-buehne::before {
    /* feines Raster wie auf einer Schnitt-Oberfläche */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(color-mix(in srgb, var(--text) 2.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 2.5%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
}
.auth-buehne > * { position: relative; }
.auth-mitte { max-width: 620px; }
.auth-schlagzeile {
    font-family: var(--schrift-titel); font-weight: 900;
    font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.035em;
    text-wrap: balance;
}
.auth-unter { margin-top: 18px; max-width: 30em; font-size: 17px; color: var(--leise); }

/* kleine Produkt-Vorschau */
.demo { margin-top: 40px; display: flex; gap: 18px; align-items: stretch; max-width: 560px; }
.demo-handy {
    position: relative; flex: none; width: 148px; aspect-ratio: 9 / 16;
    border-radius: 18px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--text) 12.0%, transparent);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.demo-bild {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 36%, #f4b886 0 13%, transparent 13.5%),
        radial-gradient(ellipse at 50% 78%, #3b4bd6 0 34%, transparent 34.5%),
        linear-gradient(160deg, #6a5cd8, #2a2f6b 55%, #11142a);
    animation: kamera 7s ease-in-out infinite alternate;
}
@keyframes kamera { to { transform: scale(1.12); } }
.demo-untertitel {
    position: absolute; left: 8px; right: 8px; bottom: 24%;
    text-align: center; font-family: var(--schrift-titel); font-weight: 900;
    font-size: 13px; line-height: 1.15; text-transform: uppercase;
    text-shadow: 0 2px 0 #000, 0 0 6px rgba(0,0,0,0.6);
}
.demo-untertitel .wort.aktiv { color: var(--akzent-schrift); }
.demo-seite { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo-prompt {
    background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--linie-hell);
    border-radius: 12px; padding: 12px 14px; font-size: 14px; min-height: 92px;
    backdrop-filter: blur(6px);
}
.demo-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sehr-leise); margin-bottom: 4px; }
.demo-cursor { display: inline-block; width: 2px; height: 1.05em; vertical-align: -2px; background: var(--akzent); margin-left: 1px; animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.demo-spuren {
    position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center;
    background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--linie-hell); border-radius: 12px; padding: 12px;
    backdrop-filter: blur(6px);
}
.demo-spur { display: flex; gap: 3px; height: 22px; }
.demo-spur i { border-radius: 4px; background: linear-gradient(180deg, #4b56a6, #353e7e); flex: 1; }
.demo-bildspur i:nth-child(1) { flex: 2.8; } .demo-bildspur i:nth-child(2) { flex: 1.8; } .demo-bildspur i:nth-child(3) { flex: 3.4; } .demo-bildspur i:nth-child(4) { flex: 2; }
.demo-text { height: 12px; } .demo-text i { background: rgba(255, 212, 0, 0.5); }
.demo-ton { height: 14px; } .demo-ton i { background: repeating-linear-gradient(90deg, var(--violett) 0 2px, transparent 2px 5px); opacity: 0.8; }
.demo-kopf { position: absolute; top: 6px; bottom: 6px; left: 12px; width: 2px; background: var(--akzent); box-shadow: 0 0 10px var(--akzent); animation: abspielen 7s linear infinite; }
@keyframes abspielen { to { left: calc(100% - 14px); } }

.auth-vorteile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 620px; }
.auth-vorteile li { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--linie-hell); font-size: 13px; color: var(--leise); }
.auth-vorteile strong { color: var(--text); font-size: 14px; }

.auth-seite { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 28px 24px; }
.auth-karte { width: 100%; max-width: 410px; }
.reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 28px; }
.reiter button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--leise); }
.reiter button[aria-selected="true"] { background: var(--flaeche-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.auth-titel { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.auth-hilfe { color: var(--leise); margin-top: 4px; }
.auth-wechsel { text-align: center; font-size: 14px; color: var(--leise); }
.auth-vertrauen { font-size: 13px; color: var(--sehr-leise); text-align: center; }
.rechtliches { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.rechtliches a { color: var(--sehr-leise); }
.rechtliches a:hover { color: var(--leise); }
.rechtliches.links { justify-content: flex-start; margin-top: 8px; }

/* =========================================================
   B) APP-RAHMEN
   ========================================================= */
.app {
    min-height: 100vh; min-height: 100dvh;
    display: grid;
    grid-template-columns: var(--seite-breite) minmax(0, 1fr);
    grid-template-rows: var(--leiste-hoehe) minmax(0, 1fr);
    grid-template-areas: "leiste leiste" "seite haupt";
}
.leiste {
    grid-area: leiste; position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--linie);
}
.leiste-titel { flex: 1; min-width: 0; color: var(--leise); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-titel strong { color: var(--text); font-weight: 700; }
.leiste-titel .trenner { color: var(--sehr-leise); margin: 0 8px; }

.konto-menue { position: relative; }
.avatar-knopf { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: transparent; padding: 4px 12px 4px 4px; border-radius: 999px; }
.avatar-knopf:hover, .avatar-knopf[aria-expanded="true"] { background: var(--flaeche-2); border-color: var(--linie); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--violett), #5b4fd6); color: #fff; font-weight: 800; font-size: 13px; }
.avatar-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfeil { width: 7px; height: 7px; border-right: 1.5px solid var(--leise); border-bottom: 1.5px solid var(--leise); transform: rotate(45deg) translateY(-2px); }
.menue {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px;
    background: var(--flaeche-2); border: 1px solid var(--linie-hell); border-radius: 12px;
    padding: 6px; box-shadow: 0 24px 50px -12px rgba(0,0,0,0.75);
    display: flex; flex-direction: column;
}
.menue-kopf { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.menue-kopf span { font-size: 13px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; }
.menue-eintrag { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--text); font-size: 14px; }
.menue-eintrag:hover { background: var(--flaeche-3); text-decoration: none; }

.seitenleiste {
    grid-area: seite; position: sticky; top: var(--leiste-hoehe);
    height: calc(100vh - var(--leiste-hoehe)); height: calc(100dvh - var(--leiste-hoehe));
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px 14px; overflow-y: auto;
    border-right: 1px solid var(--linie); background: var(--seite-bg);
}
.seitenleiste-titel { font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sehr-leise); padding: 8px 8px 0; }
.projektliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.projekt-eintrag {
    display: flex; align-items: center; gap: 11px; padding: 7px 8px;
    border-radius: 10px; color: var(--text); text-decoration: none !important;
    border: 1px solid transparent;
}
.projekt-eintrag:hover { background: var(--flaeche); }
.projekt-eintrag[aria-current="page"] { background: var(--flaeche-2); border-color: var(--linie-hell); }
.projekt-bild {
    flex: none; width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
    background: linear-gradient(135deg, #262d4d, #1a1f36); border: 1px solid var(--linie);
}
.projekt-bild-leer { display: grid; place-items: center; color: var(--sehr-leise); font-size: 13px; }
.projekt-text { display: flex; flex-direction: column; min-width: 0; }
.projekt-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projekt-meta { font-size: 12px; color: var(--sehr-leise); }
.projekt-meta.laeuft { color: var(--akzent-schrift); }
.projekt-meta.laeuft::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); margin-right: 6px; vertical-align: 1px; animation: pulsieren 1s infinite; }
.projektliste-leer { font-size: 13.5px; color: var(--sehr-leise); padding: 4px 8px; }
.seitenleiste-hinweis { margin-top: auto; font-size: 12px; color: var(--sehr-leise); padding: 12px 8px 0; border-top: 1px solid var(--linie); }
.abdunkler { display: none; }

.arbeitsflaeche { grid-area: haupt; min-width: 0; padding: 36px clamp(18px, 3.5vw, 48px) 64px; outline: none; }
.schmal { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.begruessung { color: var(--akzent-schrift); font-weight: 700; font-size: 14px; }
.seiten-titel { font-family: var(--schrift-titel); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.seiten-unter { color: var(--leise); margin-top: -8px; margin-bottom: 6px; }
.ansicht { animation: rein 0.25s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Neues Projekt ---------- */
.schritt-kopf { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.schritt-nr { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--flaeche-3); border: 1px solid var(--linie-hell); font-size: 12px; color: var(--leise); }
.ablage {
    display: block; cursor: pointer; text-align: center;
    border: 1.5px dashed var(--linie-hell); border-radius: 12px;
    padding: 34px 20px; background: color-mix(in srgb, var(--bg) 60%, transparent);
    transition: border-color 0.15s, background 0.15s;
}
.ablage:hover, .ablage.drueber { border-color: var(--akzent); background: rgba(255, 212, 0, 0.04); }
.ablage:focus-within { border-color: var(--akzent); }
.ablage-leer { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ablage-symbol {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 6px;
    background: var(--flaeche-3) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M4 20h16'/%3E%3C/svg%3E");
    border: 1px solid var(--linie-hell);
}
.ablage.kompakt { padding: 12px; }
.ablage.kompakt .ablage-leer { display: none; }
.ablage-mehr { font-weight: 700; font-size: 14px; color: var(--leise); }
.plus { color: var(--akzent-schrift); margin-right: 4px; }

.clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.clip {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px 8px 8px; border-radius: 11px;
    background: var(--flaeche-2); border: 1px solid var(--linie);
}
.clip.wird-vorbereitet { opacity: 0.6; }
.clip-nr { flex: none; width: 22px; text-align: center; font-weight: 800; font-size: 13px; color: var(--sehr-leise); font-variant-numeric: tabular-nums; }
.clip-bild { flex: none; width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: #000; }
.clip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.clip-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-text .klein { font-size: 12.5px; }
.clip-knoepfe { display: flex; gap: 2px; }
.clip-knoepfe button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--leise); }
.clip-knoepfe button:hover:not(:disabled) { background: var(--flaeche-3); color: var(--text); }
.clip-knoepfe button:disabled { opacity: 0.25; cursor: default; }
.clips-klein .clip-bild { width: 40px; height: 30px; }

.ideen { display: flex; flex-wrap: wrap; gap: 7px; }
.idee {
    border: 1px solid var(--linie-hell); background: transparent; color: var(--leise);
    border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600;
    transition: all 0.15s;
}
.idee:hover { color: var(--text); border-color: var(--linie-hover); background: var(--flaeche-2); }
.idee.benutzt { border-color: rgba(255, 212, 0, 0.5); color: var(--akzent-schrift); background: rgba(255, 212, 0, 0.06); }
.idee-musik:hover, .idee-musik.benutzt { border-color: rgba(139, 124, 246, 0.6); color: var(--violett-text); background: var(--violett-weich); }
.idee.erledigt::before { content: "✓ "; color: var(--gruen, #22C55E); font-weight: 800; }
.idee.erledigt::after { content: " ✕"; font-size: 11px; opacity: 0; transition: opacity .15s; }
.idee.erledigt:hover::after, .idee.erledigt:focus-visible::after { opacity: .8; }
.idee.erledigt:not(.benutzt) { border-color: color-mix(in srgb, var(--gruen, #22C55E) 45%, transparent); }
.idee.nur-mehrere { display: none; }
.formular-mehrere .idee.nur-mehrere { display: inline-block; }

.aufklapp { border-top: 1px solid var(--linie); padding-top: 14px; }
.aufklapp summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--leise); list-style: none; display: flex; align-items: center; gap: 10px; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.aufklapp[open] summary::before { transform: rotate(45deg); }
.aufklapp summary .klein { font-weight: 500; color: var(--sehr-leise); }
.aufklapp[open] > *:not(summary) { margin-top: 12px; }
.datei-zeile {
    position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 11px 13px; border: 1px solid var(--linie-hell); border-radius: var(--radius-klein);
    color: var(--leise); font-size: 14px; background: var(--bg);
}
.datei-zeile::before { content: "♪"; color: var(--violett); font-size: 16px; }
.datei-zeile:hover, .datei-zeile:focus-within { border-color: var(--violett); }
.sprache-status { flex: 1; }

/* ---------- Fortschritt ---------- */
.fortschritt-karte { display: flex; flex-direction: column; gap: 20px; text-align: center; align-items: center; padding: 44px 32px; }
.fortschritt-symbol { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.fortschritt-symbol span { width: 7px; height: 30%; border-radius: 4px; background: var(--akzent); animation: welle 1s ease-in-out infinite; }
.fortschritt-symbol span:nth-child(2) { animation-delay: 0.15s; background: var(--akzent-hell); }
.fortschritt-symbol span:nth-child(3) { animation-delay: 0.3s; background: var(--violett); }
.fortschritt-symbol span:nth-child(4) { animation-delay: 0.45s; background: #A99DFB; }
@keyframes welle { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.etappen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; counter-reset: etappe; }
.etappen li { counter-increment: etappe; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--sehr-leise); font-weight: 600; }
.etappen li::before { content: counter(etappe); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--linie-hell); font-size: 12px; font-weight: 800; }
.etappen li.aktiv { color: var(--text); }
.etappen li.aktiv::before { border-color: var(--akzent); color: var(--akzent-schrift); box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.12); }
.etappen li.erledigt { color: var(--leise); }
.etappen li.erledigt::before { content: "✓"; background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.balken { width: 100%; height: 6px; border-radius: 3px; background: var(--flaeche-3); overflow: hidden; }
.balken-fuellung { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--akzent), var(--akzent-hell)); transition: width 0.5s ease; }
.schritt { font-weight: 600; min-height: 1.5em; }

/* ---------- Editor ---------- */
.editor { --video-h: clamp(300px, calc(100vh - 470px), 640px); max-width: 1400px; margin: -14px auto 0; display: flex; flex-direction: column; gap: 16px; }
.editor-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.editor-titel { font-family: var(--schrift-titel); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.editor-oben { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
/* Das Video wird immer KOMPLETT gezeigt (Hochformat mit schwarzen Rändern links/rechts) */
.video-rahmen {
    position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--linie);
    height: var(--video-h);
}
.video-rahmen video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.editor-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; height: var(--video-h); }
/* Große Bildschirme: Panels so hoch wie das Video, der Inhalt scrollt darin – so bleibt die Zeitleiste im Blick */
.editor-info .panel { flex: 1; min-height: 0; overflow-y: auto; scrollbar-color: var(--linie-hell) transparent; }
.info-karte { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.versionen { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: var(--bg); border-radius: 10px; border: 1px solid var(--linie); align-self: flex-start; }
.version { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--leise); }
.version:hover { color: var(--text); }
.version[aria-pressed="true"] { background: var(--flaeche-3); color: var(--text); }
.version-weg { margin-left: auto; font-weight: 600; color: var(--sehr-leise); }
.version-weg:hover { color: var(--rot, #E5484D); }
.wunsch-zitat { font-size: 14px; color: var(--leise); font-style: italic; border-left: 2px solid var(--akzent); padding-left: 10px; overflow-wrap: anywhere; }
.zusammenfassung { font-size: 15px; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 0; }
.eckdaten div { background: var(--bg); border: 1px solid var(--linie); border-radius: 9px; padding: 8px 10px; }
.eckdaten dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sehr-leise); }
.eckdaten dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.hinweis { font-size: 14px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 212, 0, 0.08); color: var(--gelb-text); }

.aenderung { padding: 18px; gap: 12px; }
.markiert { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 8px; background: rgba(255, 212, 0, 0.1); border: 1px solid rgba(255, 212, 0, 0.35); color: var(--akzent-schrift); font-size: 13px; font-weight: 700; }
.markiert button { border: 0; background: transparent; color: var(--akzent-schrift); width: 24px; height: 24px; border-radius: 6px; }
.markiert button:hover { background: rgba(255, 212, 0, 0.15); }
.nachreichen { display: flex; gap: 6px; flex-wrap: wrap; }
.knopf-klein {
    position: relative; display: inline-flex; align-items: center; cursor: pointer;
    min-height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--linie-hell);
    font-size: 13px; font-weight: 700; color: var(--leise);
}
.knopf-klein:hover, .knopf-klein:focus-within { color: var(--text); border-color: var(--linie-hover); }
.knopf-klein.gewaehlt { color: var(--violett-text); border-color: var(--violett); background: var(--violett-weich); }

/* ---------- Zeitleiste ---------- */
.zeitleiste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px 18px; }
.zl-kopf { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.zl-kopf h2 { font-size: 15px; font-weight: 800; }
.zl-rahmen { display: grid; grid-template-columns: 54px minmax(0, 1fr); background: var(--bg); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.zl-namen { display: grid; grid-template-rows: 24px 64px 30px 40px; border-right: 1px solid var(--linie); }
.zl-namen span { display: flex; align-items: center; padding-left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sehr-leise); border-top: 1px solid var(--linie); }
.zl-namen span:first-child { border-top: 0; background: var(--flaeche); }
.zl-scroll { overflow-x: auto; scrollbar-color: var(--linie-hell) transparent; }
.zl-inhalt { position: relative; display: grid; grid-template-rows: 24px 64px 30px 40px; min-width: 100%; cursor: crosshair; }
.zl-lineal { position: relative; background: var(--flaeche); }
.zl-strich { position: absolute; bottom: 0; width: 1px; height: 7px; background: var(--linie-hell); }
.zl-zahl { position: absolute; top: 3px; transform: translateX(-50%); font-size: 10.5px; color: var(--sehr-leise); font-variant-numeric: tabular-nums; }
.zl-zahl.erste { transform: translateX(3px); }
.zl-beat { position: absolute; bottom: 0; width: 1px; height: 4px; background: var(--violett); opacity: 0.8; }
.zl-spur { position: relative; border-top: 1px solid var(--linie); }
.zl-block { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; padding: 0 7px; display: flex; align-items: center; }
.zl-szene { border: 1px solid #3b4473; background: #232a4c; padding: 0; color: #EEF0F7; text-align: left; cursor: pointer; }
.zl-szene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.zl-szene:hover { border-color: #6a75b5; }
.zl-szene:hover img { opacity: 0.8; }
.zl-szene.gewaehlt { border: 2px solid var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.2); z-index: 1; }
.zl-etikett { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; padding: 3px 5px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); overflow: hidden; }
.zl-etikett span { white-space: nowrap; text-shadow: 0 1px 2px #000; }
.zl-fx { color: var(--akzent-schrift); }
.zl-untertitel { background: rgba(255, 212, 0, 0.12); color: rgba(255, 228, 120, 0.85); border: 1px solid rgba(255, 212, 0, 0.22); top: 5px; bottom: 5px; }
.zl-text-block { background: #3a2f00; color: var(--akzent-schrift); border: 1px solid rgba(255, 212, 0, 0.5); top: 5px; bottom: 5px; z-index: 1; }
.zl-ton-block { background: rgba(52, 211, 153, 0.12); color: var(--gruen-text); border: 1px solid rgba(52, 211, 153, 0.25); top: 3px; bottom: 3px; }
.zl-musik { background: var(--violett-weich); color: #C4BBFF; border: 1px solid rgba(139, 124, 246, 0.4); top: 3px; bottom: 3px; }
.zl-ton-geteilt .zl-ton-block { bottom: calc(50% + 1px); }
.zl-ton-geteilt .zl-musik { top: calc(50% + 1px); }
.zl-abspielkopf { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--akzent); pointer-events: none; z-index: 3; }
.zl-abspielkopf::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--akzent); }
.zl-markierung { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; opacity: 0.85; pointer-events: none; z-index: 2; }

/* ---------- Konto ---------- */
.gefahrenzone { border-color: rgba(248, 113, 113, 0.28); }
.gefahrenzone .karten-titel { color: var(--rot-text); }

/* ---------- Dialog & Hinweise ---------- */
.dialog {
    width: min(440px, calc(100vw - 32px)); padding: 24px;
    background: var(--flaeche-2); color: var(--text);
    border: 1px solid var(--linie-hell); border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9);
}
.dialog::backdrop { background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(3px); }
.dialog .formular-fuss { justify-content: flex-end; }
.dialog.gefahr #dialog-ok { background: var(--rot); color: #1a0606; box-shadow: none; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
    background: var(--flaeche-3); border: 1px solid var(--linie-hell); border-radius: 10px;
    padding: 11px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8);
    max-width: calc(100vw - 32px);
}
.neu-laden {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
    background: var(--akzent); color: var(--akzent-text); border-radius: 999px;
    font-size: 14px; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
    width: max-content; max-width: calc(100vw - 24px);
}
.neu-laden button { border: 0; background: var(--akzent-text); color: var(--akzent-schrift); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; }

.nur-mobil { display: none; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
    .editor-oben { grid-template-columns: 1fr; }
    .video-rahmen { height: min(60vh, 560px); }
    .editor-info { height: auto; }
    .editor-info .panel { overflow: visible; }
}
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-buehne { border-right: 0; border-bottom: 1px solid var(--linie); padding: 22px 20px 26px; gap: 22px; }
    .auth-schlagzeile { font-size: clamp(30px, 8vw, 44px); }
    .auth-schlagzeile br { display: none; }
    .auth-unter { font-size: 15px; margin-top: 10px; }
    .demo, .auth-vorteile { display: none; }
    .auth-seite { padding: 28px 16px 24px; justify-content: flex-start; }

    .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "leiste" "haupt"; }
    .nur-mobil { display: grid; }
    .leiste { padding: 0 10px; gap: 8px; }
    .leiste-titel, .avatar-name, .pfeil, .marke-text { display: none; }
    .leiste .marke { flex: 1; }
    .avatar-knopf { padding: 4px; }
    .seitenleiste {
        position: fixed; top: var(--leiste-hoehe); left: 0; bottom: 0; z-index: 30;
        width: min(300px, 85vw); height: auto;
        transform: translateX(-100%); transition: transform 0.22s ease; visibility: hidden;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    .seitenleiste.offen { transform: none; visibility: visible; }
    .abdunkler { display: block; position: fixed; inset: var(--leiste-hoehe) 0 0 0; z-index: 25; background: rgba(5, 7, 12, 0.6); }
    .arbeitsflaeche { padding: 22px 16px 48px; }
    .zwei-spalten { grid-template-columns: 1fr; }
    .karte { padding: 18px; }
}
@media (max-width: 520px) {
    .formular-fuss > .knopf-gross { width: 100%; }
    .editor-kopf .knopf-reihe { width: 100%; }
    .editor-kopf #download { flex: 1; }
    .etappen li { font-size: 11.5px; }
    .clip-bild { width: 48px; height: 34px; }
    .fortschritt-karte { padding: 32px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   Rechtstexte (Impressum, Datenschutz, Nutzungsbedingungen)
   ========================================================= */
.rechts-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--linie); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
.rechtstext { max-width: 740px; margin: 0 auto; padding: 48px 20px 80px; color: var(--leise); }
.rechtstext h1 { font-family: var(--schrift-titel); font-weight: 800; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; }
.rechtstext h2 { font-size: 18px; font-weight: 800; color: var(--text); margin: 36px 0 10px; letter-spacing: -0.01em; }
.rechtstext h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 22px 0 6px; }
.rechtstext p, .rechtstext ul { margin: 0 0 12px; }
.rechtstext ul { padding-left: 20px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext strong { color: var(--text); }
.rechtstext .stand { font-size: 13px; color: var(--sehr-leise); }
.rechtstext .vorlage { margin: 20px 0 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 212, 0, 0.35); background: rgba(255, 212, 0, 0.07); color: var(--gelb-text); font-size: 14px; }
.rechtstext .platzhalter { color: var(--akzent-schrift); }
.rechtstext table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.rechtstext th, .rechtstext td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--linie); }
.rechtstext th { color: var(--text); font-weight: 700; }
@media (max-width: 640px) { .rechtstext table { display: block; overflow-x: auto; } .rechtstext th, .rechtstext td { min-width: 130px; } }

/* ---------- Diktat (Mikrofon im Textfeld) ---------- */
.mit-mikro { position: relative; display: block; }
.mit-mikro textarea { padding-bottom: 46px; }
.mikro {
    position: absolute; right: 8px; bottom: 8px;
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
    border: 1px solid var(--linie-hell); background: var(--flaeche-2); color: var(--leise);
    font-size: 13px; font-weight: 700; transition: all 0.15s;
}
.mikro:hover { color: var(--text); border-color: var(--linie-hover); background: var(--flaeche-3); }
.mikro-symbol {
    width: 15px; height: 15px; background: currentColor;
    -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5'/%3E%3C/svg%3E");
    mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5'/%3E%3C/svg%3E");
}
.mikro.nimmt-auf { background: var(--rot); border-color: var(--rot); color: #1a0606; box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6); animation: aufnahme 1.4s ease-out infinite; }
.mikro.nimmt-auf .mikro-symbol {
    -webkit-mask: none; mask: none; width: 10px; height: 10px; border-radius: 2px; background: currentColor;
}
@keyframes aufnahme { 70% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); } }
.mikro.erkennt { color: var(--akzent-schrift); border-color: rgba(255, 212, 0, 0.5); cursor: progress; }
.mikro.erkennt .mikro-symbol { -webkit-mask: none; mask: none; background: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen 0.8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.mikro:disabled:not(.erkennt) { opacity: 0.45; cursor: not-allowed; }
.mit-mikro textarea.diktat-neu { animation: diktat-blitz 1.2s ease-out; }
@keyframes diktat-blitz { 0% { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25); } }
.zl-schlagwort { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); z-index: 2; }

/* =========================================================
   Schnittplatz: Werkzeug-Panels und bearbeitbare Zeitleiste
   ========================================================= */
.panel-reiter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 3px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 11px; }
.panel-reiter button { border: 0; background: transparent; padding: 8px 4px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--leise); white-space: nowrap; }
.panel-reiter button:hover { color: var(--text); }
.panel-reiter button[aria-selected="true"] { background: var(--flaeche-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.ki-stern { color: var(--akzent-schrift); }
.editor-info .panel { display: flex; flex-direction: column; gap: 16px; }
.editor-info .panel.versteckt { display: none !important; }

.ungespeichert {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 10px 10px 10px 14px; border-radius: 11px;
    background: rgba(255, 212, 0, 0.08); border: 1px solid rgba(255, 212, 0, 0.4); color: var(--gelb-text); font-size: 14px;
}
.ungespeichert .klein { color: #E9D77A; }

.werkzeug-panel { padding: 6px 16px 16px; gap: 0 !important; }
.wz-titel { display: flex; flex-direction: column; gap: 1px; padding: 12px 0 8px; position: sticky; top: -6px; background: var(--flaeche); z-index: 1; border-bottom: 1px solid var(--linie); }
.wz-gruppe { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.wz-gruppe:last-child { border-bottom: 0; }
.wz-gruppe h3 { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sehr-leise); }
.wz-reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.wz-reihe > .feld { flex: 1 1 120px; min-width: 0; }
.wz-leer { color: var(--leise); padding: 16px 0; font-size: 14px; }
.feld-klein { gap: 5px; }
.feld-klein > span:first-child { font-size: 12px; }
.feld-klein input[type="text"], .feld-klein input[type="search"], .feld-klein input[type="number"], .feld-klein select { padding: 7px 9px; font-size: 14px; }
select, input[type="number"] {
    width: 100%; background: var(--bg); border: 1px solid var(--linie-hell); border-radius: 8px; color: var(--text);
    padding: 9px 10px; font: inherit; font-size: 14px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A0A6C2' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px; }
select:focus, input[type="number"]:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.16); }
.feld-farbe input[type="color"] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--linie-hell); border-radius: 8px; background: var(--bg); cursor: pointer; }

.regler { display: flex; flex-direction: column; gap: 4px; }
.regler-kopf { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--leise); }
.regler-kopf output { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--linie-hell); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--linie-hell); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); margin-top: -6px; border: 3px solid var(--flaeche); box-shadow: 0 0 0 1px var(--linie-hell); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 3px solid var(--flaeche); }
input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--akzent); }
input[type="range"]:hover::-webkit-slider-thumb { background: var(--akzent); }

.schalter { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--text); }
.schalter input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--linie-hell); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.schalter input:checked { background: var(--akzent); }
.schalter input:checked::after { transform: translateX(14px); background: var(--akzent-text); }
.wz-reihe > .schalter { flex: 1 1 160px; padding: 6px 0; }

.knopf-mini { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.knopf-mini.knopf-gefahr-voll { border-color: rgba(248, 113, 113, 0.4); }
.quelle-video { width: 100%; max-height: 220px; background: #000; border-radius: 9px; border: 1px solid var(--linie); }
.quelle-zeit { margin-left: auto; align-self: center; font-variant-numeric: tabular-nums; }
.listen-eintrag { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--linie); }
.listen-eintrag > .feld { flex: 1 1 110px; }
.listen-eintrag-gross { flex-direction: column; align-items: stretch; }
.listen-eintrag-gross > * { flex: none; }
.listen-weg { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--linie-hell); background: transparent; color: var(--leise); align-self: flex-end; }
.listen-weg:hover { color: var(--rot); border-color: var(--rot); }
.anker { align-self: center; color: var(--akzent-schrift); }
.logo-vorschau { display: grid; place-items: center; padding: 12px; border-radius: 10px; background: repeating-conic-gradient(#1b2033 0 25%, #141829 0 50%) 0 0 / 16px 16px; border: 1px solid var(--linie); }
.logo-vorschau img { max-height: 70px; max-width: 100%; object-fit: contain; }

/* Werkzeugleiste der Zeitleiste */
.zl-kopf { justify-content: space-between; align-items: center; }
.zl-werkzeuge { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wz {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
    border: 1px solid var(--linie-hell); border-radius: 8px; background: var(--flaeche-2); color: var(--leise);
    font-size: 13px; font-weight: 700;
}
.wz:hover:not(:disabled) { color: var(--text); border-color: var(--linie-hover); }
.wz:disabled { opacity: 0.35; cursor: default; }
.wz-gefahr:hover:not(:disabled) { color: var(--rot); border-color: rgba(248, 113, 113, 0.6); }
.wz-trenner { width: 1px; height: 22px; background: var(--linie-hell); margin: 0 4px; }
.wz-schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--leise); padding: 0 6px; cursor: pointer; }
.wz-schalter input { accent-color: var(--akzent); }
.wz-zeit { margin-left: 6px; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--linie); border-radius: 7px; padding: 5px 9px; }
.wz-i { width: 15px; height: 15px; background: currentColor; -webkit-mask: center / contain no-repeat var(--icon); mask: center / contain no-repeat var(--icon); }
.i-zurueck { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E"); }
.i-vor { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 14 5-5-5-5'/%3E%3Cpath d='M20 9H9a5 5 0 0 0 0 10h3'/%3E%3C/svg%3E"); }
.i-schere { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4 8.1 15.9M14.5 14.5 20 20M8.1 8.1 12 12'/%3E%3C/svg%3E"); }
.i-kopie { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E"); }
.i-pause { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M10 8v8M14 8v8'/%3E%3C/svg%3E"); }
.i-muell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14'/%3E%3C/svg%3E"); }
.zl-hilfe { margin: -4px 0 10px; }

/* Bearbeitbare Szenen */
.zl-szene { touch-action: none; user-select: none; -webkit-user-select: none; }
.zl-szene.zieht { opacity: 0.75; z-index: 5; box-shadow: 0 10px 24px rgba(0,0,0,0.6); }
.zl-griff { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2; cursor: ew-resize; background: var(--akzent); display: grid; place-items: center; }
.zl-griff::after { content: ""; width: 2px; height: 40%; border-left: 1px solid var(--akzent-text); border-right: 1px solid var(--akzent-text); opacity: 0.7; }
.zl-griff-links { left: 0; border-radius: 4px 0 0 4px; }
.zl-griff-rechts { right: 0; border-radius: 0 4px 4px 0; }
.zl-szene.gewaehlt .zl-etikett { padding-left: 16px; }
.zl-einfuegen { position: absolute; top: 24px; bottom: 0; width: 3px; margin-left: -1px; background: var(--akzent); z-index: 6; pointer-events: none; box-shadow: 0 0 10px var(--akzent); }
.zl-spur.veraltet { opacity: 0.4; }
.zl-bauchbinde { background: rgba(139, 124, 246, 0.25); color: #D2CBFF; border-color: rgba(139, 124, 246, 0.6); }
.zl-sfx { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4px; background: #F472B6; transform: rotate(45deg); border-radius: 2px; z-index: 2; box-shadow: 0 0 0 2px var(--bg); }

/* Transkript-Dialog */
.dialog-breit { width: min(720px, calc(100vw - 32px)); }
.transkript-liste { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.transkript-clip { font-size: 13px; font-weight: 800; color: var(--leise); margin: 10px 0 2px; }
.transkript-zeile { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; }
.transkript-zeit { font-size: 12px; color: var(--sehr-leise); font-variant-numeric: tabular-nums; }
.transkript-zeile input { padding: 8px 10px; font-size: 14px; }

@media (max-width: 1100px) {
    .werkzeug-panel { max-height: none; }
}
@media (max-width: 640px) {
    .wz-text { display: none; }
    .zl-kopf { flex-direction: column; align-items: flex-start; }
    .panel-reiter button { font-size: 12px; padding: 8px 2px; }
}

/* ---------- Schrift-Vorschau (Untertitel-Schriften) ---------- */
@font-face { font-family: "Anton"; src: url("schriften/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("schriften/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins Video"; src: url("schriften/Poppins-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("schriften/PermanentMarker-Regular.ttf") format("truetype"); font-display: swap; }
.schrift-probe {
    padding: 14px 12px; border-radius: 10px; text-align: center; font-size: 22px; line-height: 1.2;
    background: linear-gradient(135deg, #2a2f55, #141829); color: #fff;
    text-shadow: 0 2px 0 #000, 0 0 3px #000;
}
.schrift-montserrat { font-family: var(--schrift-titel); font-weight: 900; }
.schrift-anton { font-family: "Anton", sans-serif; letter-spacing: 0.01em; }
.schrift-bebas { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: 0.02em; }
.schrift-poppins { font-family: "Poppins Video", sans-serif; font-weight: 800; }
.schrift-marker { font-family: "Permanent Marker", cursive; }

/* ---------- Bereich im Video aufziehen ---------- */
.zeichenflaeche { position: absolute; inset: 0; z-index: 4; cursor: crosshair; background: rgba(5, 7, 12, 0.25); touch-action: none; }
.zeichen-hinweis {
    position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
    display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 90%, transparent); border: 1px solid var(--linie-hell); font-size: 13px; font-weight: 600; cursor: default;
}
.zeichen-hinweis button { border: 0; border-radius: 999px; padding: 5px 10px; background: var(--flaeche-3); font-size: 12px; font-weight: 700; }
.zeichen-rechteck { position: absolute; border: 2px dashed var(--akzent); background: rgba(255, 212, 0, 0.15); border-radius: 4px; pointer-events: none; }

/* ---------- Voiceover ---------- */
.vo-laeuft { animation: aufnahme 1.4s ease-out infinite; }

/* ---------- Export-Dialog ---------- */
.export-gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.export-gitter select, .export-titelbild select {
    width: 100%; background: var(--bg); border: 1px solid var(--linie-hell); border-radius: var(--radius-klein);
    padding: 9px 11px; font-size: 14px;
}
.export-titelbild {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--bg);
}
.export-titelbild > div { flex: 1; min-width: 200px; }
.export-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.export-liste:empty { display: none; }
.export-eintrag { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--linie); }
.export-eintrag img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.export-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.export-text strong { font-size: 14px; }
.export-laeuft .export-text .klein::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); margin-right: 6px; animation: pulsieren 1s infinite; }
.export-fehler .export-text .klein { color: var(--rot-text); }
@media (max-width: 560px) { .export-gitter { grid-template-columns: 1fr; } }
.zl-voiceover { background: rgba(248, 113, 113, 0.16); color: var(--rot-text); border: 1px solid rgba(248, 113, 113, 0.45); top: 3px; bottom: 3px; z-index: 1; }
.zl-ton-geteilt .zl-voiceover { bottom: calc(50% + 1px); }
.dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* =========================================================
   Einstieg: Vorlagen, Beispiel, Einfach/Profi, Ein-Klick, Tour
   ========================================================= */
.vorlagen { display: flex; flex-direction: column; gap: 10px; }
.vorlagen-titel { font-size: 15px; font-weight: 800; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vorlagen-titel .klein { font-weight: 500; }
.vorlagen-gitter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vorlage {
    display: flex; align-items: flex-start; gap: 10px; text-align: left;
    padding: 12px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche);
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.vorlage:hover { border-color: var(--linie-hover); background: var(--flaeche-2); }
.vorlage:active { transform: translateY(1px); }
.vorlage[aria-pressed="true"] { border-color: var(--akzent); background: rgba(255, 212, 0, 0.07); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12); }
.vorlage-symbol { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--flaeche-3); font-size: 15px; color: var(--akzent-schrift); }
.vorlage-text { display: flex; flex-direction: column; min-width: 0; }
.vorlage-text strong { font-size: 13.5px; }
.vorlage-text span { font-size: 12px; color: var(--sehr-leise); line-height: 1.35; }

.beispiel-karte {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 14px;
    border: 1px solid rgba(139, 124, 246, 0.45); background: linear-gradient(120deg, rgba(139, 124, 246, 0.16), rgba(139, 124, 246, 0.04));
}
.beispiel-karte > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }

.modus-schalter { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--linie); margin-right: 6px; }
.modus-schalter button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--leise); }
.modus-schalter button[aria-pressed="true"] { background: var(--flaeche-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.schnell-karte { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.schnell-titel { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sehr-leise); }
.schnell-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.schnell {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
    border-radius: 10px; border: 1px solid var(--linie); background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--leise);
    transition: all 0.15s;
}
.schnell:hover { color: var(--text); border-color: var(--linie-hover); background: var(--flaeche-2); }
.schnell.an { border-color: rgba(52, 211, 153, 0.45); color: var(--gruen-text); }
.schnell-symbol { font-size: 18px; line-height: 1; }

/* Einfach-Modus: nur das Wichtigste */
.modus-einfach .panel-reiter,
.modus-einfach .zl-werkzeuge,
.modus-einfach .zl-griff,
.modus-einfach .ideen[aria-label="Ideen für Änderungen"] { display: none !important; }
.modus-profi .schnell-karte { display: none; }

/* Tour */
.tour { position: fixed; inset: 0; z-index: 80; }
.tour-licht {
    position: fixed; border-radius: 12px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(5, 7, 12, 0.72), 0 0 0 2px var(--akzent);
    transition: all 0.25s ease;
}
.tour-blase {
    position: fixed; padding: 18px; border-radius: 14px;
    background: var(--flaeche-2); border: 1px solid var(--linie-hell); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.85);
    display: flex; flex-direction: column; gap: 6px; transition: top 0.25s ease, left 0.25s ease;
}
.tour-schritt { font-size: 12px; font-weight: 800; color: var(--akzent-schrift); letter-spacing: 0.04em; }
.tour-titel { font-size: 18px; font-weight: 800; }
.tour-text { color: var(--leise); font-size: 14.5px; }
.tour-knoepfe { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

@media (max-width: 900px) { .vorlagen-gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .schnell-gitter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .modus-schalter { order: -1; width: 100%; }
    .modus-schalter button { flex: 1; }
}

.modus-einfach .nur-profi, .modus-profi .nur-einfach { display: none !important; }
body:not(.modus-einfach):not(.modus-profi) .nur-einfach { display: none; }
/* Einfach-Modus: rechte Spalte wächst mit statt zu scrollen */
@media (min-width: 1101px) {
    .modus-einfach .editor-info { height: auto; }
    .modus-einfach .editor-info .panel { overflow: visible; }
}

/* Schnelle Vorschau */
.vorschau-plakette {
    position: absolute; top: 10px; left: 10px; z-index: 3; max-width: calc(100% - 20px);
    padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--linie-hell); color: var(--leise); pointer-events: none;
}
.vorschau-plakette.fertig { color: var(--gruen-text); border-color: rgba(52, 211, 153, 0.5); }
.vorschau-plakette.laeuft, .vorschau-plakette.wartet { color: var(--akzent-schrift); border-color: rgba(255, 212, 0, 0.45); }
.vorschau-plakette.laeuft::before, .vorschau-plakette.wartet::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; animation: pulsieren 1s infinite; }
.vorschau-plakette.fehler { color: var(--rot-text); border-color: rgba(248, 113, 113, 0.5); }

/* Hinweis-Leiste (z.B. E-Mail bestätigen) */
.hinweis-leiste {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    max-width: 1320px; margin: -12px auto 20px; padding: 10px 10px 10px 16px; border-radius: 12px;
    border: 1px solid rgba(255, 212, 0, 0.35); background: rgba(255, 212, 0, 0.07); font-size: 14px;
}
.hinweis-leiste .symbol-knopf { width: 32px; height: 32px; }
.email-status { color: var(--gelb-text); }
.email-status.ok { color: var(--gruen-text); }

/* Hilfe-Menü, Erklärungen, Feedback */
.hilfe-knopf { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linie-hell); font-weight: 800; color: var(--leise); }
.hilfe-knopf:hover, .hilfe-knopf[aria-expanded="true"] { color: var(--text); background: var(--flaeche-2); }
.hilfe-menue .menue { min-width: 240px; }
.erklaer {
    display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; vertical-align: 1px;
    border-radius: 50%; border: 1px solid var(--linie-hell); background: transparent; color: var(--sehr-leise);
    font-size: 11px; font-weight: 800; line-height: 1; padding: 0; text-transform: none; letter-spacing: 0;
}
.erklaer:hover, .erklaer:focus-visible { color: var(--akzent-schrift); border-color: var(--akzent); }
.erklaer-blase {
    position: fixed; z-index: 90; display: none; padding: 10px 12px; border-radius: 10px;
    background: var(--flaeche-3); border: 1px solid var(--linie-hell); color: var(--text);
    font-size: 13px; line-height: 1.5; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.8);
}
.feedback-arten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feedback-arten label { cursor: pointer; }
.feedback-arten input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-arten span { display: block; text-align: center; padding: 9px 4px; border-radius: 9px; border: 1px solid var(--linie-hell); font-size: 13px; font-weight: 700; color: var(--leise); }
.feedback-arten input:checked + span { border-color: var(--akzent); color: var(--text); background: rgba(255, 212, 0, 0.08); }
.feedback-arten input:focus-visible + span { outline: 2px solid var(--akzent); }
#benachrichtigen { align-self: center; }

/* Hilfe-Seite */
.hilfe-inhalt { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.hilfe-inhalt a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linie-hell); font-size: 13px; color: var(--leise); }
.hilfe-inhalt a:hover { color: var(--text); text-decoration: none; border-color: var(--linie-hover); }
.hilfe details { border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); margin-bottom: 8px; }
.hilfe summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.hilfe summary::-webkit-details-marker { display: none; }
.hilfe summary::after { content: "+"; color: var(--akzent-schrift); font-weight: 800; }
.hilfe details[open] summary::after { content: "–"; }
.hilfe details > *:not(summary) { padding: 0 14px; }
.hilfe details > *:last-child { padding-bottom: 12px; }
.hilfe th { width: 120px; }

/* Handy: Zeitleiste mit dem Finger bedienbar */
@media (pointer: coarse) {
    .zl-szene { touch-action: pan-x; }
    .zl-griff { width: 18px !important; touch-action: none; }
    .wz { min-height: 40px; }
    .schnell { padding: 12px 6px; }
}
@media (max-width: 700px) {
    .editor-kopf .knopf-reihe { gap: 4px; }
    .editor-kopf .knopf-leise { padding: 0 8px; }
    .zl-werkzeuge { flex-wrap: wrap; row-gap: 6px; }
    .zl-werkzeuge .wz-text { display: none; }
    .feedback-arten { grid-template-columns: repeat(2, 1fr); }
    .hinweis-leiste { margin-top: 0; }
}

/* Tarif & Nutzung */
.tarif-karte { display: flex; flex-direction: column; gap: 14px; border-color: rgba(255, 212, 0, 0.3); }
.tarif-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tarif-kopf > div { flex: 1; min-width: 220px; }
#tarif-name { color: var(--akzent-schrift); }
.nutzung { display: flex; flex-direction: column; gap: 10px; }
.nutzung-zeile { display: flex; flex-direction: column; gap: 5px; }
.nutzung-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--leise); }
.nutzung-text strong { color: var(--text); font-variant-numeric: tabular-nums; }
.nutzung-balken { height: 6px; border-radius: 3px; background: var(--flaeche-3); overflow: hidden; }
.nutzung-balken i { display: block; height: 100%; background: var(--gruen); border-radius: 3px; }
.nutzung-zeile.fast .nutzung-balken i { background: var(--akzent); }
.nutzung-zeile.voll .nutzung-balken i { background: var(--rot); }
.seitenleiste-nutzung { display: block; font-size: 12.5px; color: var(--leise); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--linie); background: var(--flaeche); text-decoration: none !important; }
.seitenleiste-nutzung:hover { color: var(--text); border-color: var(--linie-hell); }
.seitenleiste-nutzung.knapp { color: var(--akzent-schrift); border-color: rgba(255, 212, 0, 0.4); }
.tarif-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tarif-vergleich.tarif-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarif-spalte .knopf { margin-top: auto; }
.tarif-spalte ul { flex: 1; }
.tarif-aktuell { margin-top: auto; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--flaeche-3); color: var(--leise); font-size: 12.5px; font-weight: 700; }
.laufzeit-wahl { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--flaeche-3); justify-self: start; }
.laufzeit-wahl button { border: 0; border-radius: 8px; padding: 7px 14px; background: transparent; color: var(--leise); font: 700 13.5px var(--schrift); cursor: pointer; }
.laufzeit-wahl button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.laufzeit-wahl .spar { color: var(--gruen-text); margin-left: 4px; }
.tarif-spalte { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--linie); background: var(--bg); }
.tarif-spalte ul { margin: 8px 0 0; padding-left: 18px; color: var(--leise); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.tarif-pro { border-color: var(--akzent); background: rgba(255, 212, 0, 0.05); }
.tarif-preis { font-size: 20px; font-weight: 800; }
@media (max-width: 720px) { .tarif-vergleich, .tarif-vergleich.tarif-drei { grid-template-columns: 1fr; } }

/* Beschreibung & Hashtags, Marken-Paket */
.export-beschreibung { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--bg); }
.export-beschreibung-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.export-beschreibung-kopf > div:first-child { flex: 1; min-width: 200px; }
.export-beschreibung select, #marke-karte select { background: var(--bg); border: 1px solid var(--linie-hell); border-radius: var(--radius-klein); padding: 8px 10px; font-size: 14px; }
#beschreibung-ergebnis { display: flex; flex-direction: column; gap: 8px; }
.marke-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.marke-gitter select { width: 100%; }
.marke-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.marke-logo-bild img { max-height: 48px; max-width: 140px; object-fit: contain; }
.marke-anwenden { align-self: flex-start; }
@media (max-width: 640px) { .marke-gitter { grid-template-columns: 1fr; } }

/* ---------- Meine Daten ---------- */
.daten-inhalt { display: grid; gap: 18px; margin: 6px 0 14px; }
.daten-inhalt h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leise); margin: 0 0 8px; }
.daten-tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.daten-tabelle th { text-align: left; font-weight: 500; color: var(--leise); padding: 6px 12px 6px 0; width: 42%; vertical-align: top; }
.daten-tabelle td { padding: 6px 0; overflow-wrap: anywhere; }
.daten-tabelle tr + tr th, .daten-tabelle tr + tr td { border-top: 1px solid color-mix(in srgb, var(--text) 6.0%, transparent); }
.daten-projekt { border: 1px solid color-mix(in srgb, var(--text) 8.0%, transparent); border-radius: 12px; padding: 10px 14px; }
.daten-projekt summary { cursor: pointer; font-weight: 600; }
.daten-projekt summary span { font-weight: 400; color: var(--leise); margin-left: 6px; font-size: 0.85rem; }
.daten-projekt ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.9rem; }
.daten-projekt li { margin: 4px 0; }
.daten-projekt .zitat { color: var(--leise); font-style: italic; }
.daten-datei { border-top: 1px solid color-mix(in srgb, var(--text) 8.0%, transparent); padding-top: 12px; }
.daten-datei summary { cursor: pointer; font-size: 0.9rem; color: var(--leise); }
.daten-datei .knopf { margin-top: 8px; }

/* ---------- Profi: Keyframes, Masken, Grafiken ---------- */
.zeichen-rechteck.rund { border-radius: 50%; }
.zeichen-pfad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zeichen-pfad polyline { fill: rgba(255, 212, 0, 0.15); stroke: var(--akzent); stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.zl-kf { position: absolute; bottom: 4px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--akzent); transform: rotate(45deg); border: 1px solid #141414; pointer-events: none; z-index: 2; }
.kf-eintrag.kf-hier { border-color: var(--akzent); }
.zl-grafik { background: rgba(255, 212, 0, 0.16); color: var(--gelb-text); border-color: rgba(255, 212, 0, 0.55); }
.grafik-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.grafik-wahl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--text) 10.0%, transparent); background: color-mix(in srgb, var(--text) 3.0%, transparent); color: inherit; font: inherit; cursor: pointer; }
.grafik-wahl:hover, .grafik-wahl:focus-visible { border-color: var(--akzent); background: rgba(255, 212, 0, 0.08); }
.grafik-symbol { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--akzent-schrift); }
.grafik-name { font-size: 0.72rem; text-align: center; line-height: 1.2; }
.grafik-titel_3d .grafik-symbol { text-shadow: 2px 2px 0 #6b5a00; }
.grafik-neon .grafik-symbol { text-shadow: 0 0 8px var(--akzent); }
.grafik-herz .grafik-symbol { color: #FF324B; }
.grafik-abonnieren .grafik-symbol { color: #E60000; }
.such-reihe { display: flex; gap: 6px; margin-top: 6px; }
.such-feld { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--text) 14.0%, transparent); background: color-mix(in srgb, var(--text) 4.0%, transparent); color: inherit; font: inherit; font-size: 0.88rem; }

/* ---------- Aktuell im Video ---------- */
.aktuell-titel { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leise); margin: 14px 0 6px; }
.aktuell-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.aktuell-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: rgba(255, 212, 0, 0.1); border: 1px solid rgba(255, 212, 0, 0.35); color: var(--gelb-text); }
.aktuell-chip::before { content: "✓"; font-weight: 800; color: var(--akzent-schrift); }
.schnell.an .schnell-symbol { color: #34D399; font-weight: 800; }

/* ---------- Thumbnail-Vorschläge ---------- */
.thumb-oeffnen { margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--akzent) 7%, var(--flaeche-2)); border: 1px solid color-mix(in srgb, var(--akzent) 28%, transparent); border-radius: 12px; transition: border-color .15s, background .15s, transform .15s; }
.thumb-oeffnen:hover, .thumb-oeffnen:focus-visible { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 13%, var(--flaeche-2)); }
.thumb-oeffnen:active { transform: scale(0.99); }
.thumb-oeffnen-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--akzent); color: var(--akzent-text); }
.thumb-oeffnen-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.thumb-oeffnen-text strong { font-size: 14px; }
.thumb-oeffnen-text span { font-size: 12.5px; color: var(--leise); }
.thumb-oeffnen-pfeil { flex: none; color: var(--leise); transition: transform .15s, color .15s; }
.thumb-oeffnen:hover .thumb-oeffnen-pfeil { transform: translateX(2px); color: var(--akzent); }
@media (prefers-reduced-motion: reduce) { .thumb-oeffnen, .thumb-oeffnen-pfeil { transition: none; } }
.thumb-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
.thumb-kachel { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; line-height: 0; }
.thumb-kachel img { width: 100%; height: auto; display: block; }
.thumb-kachel:hover, .thumb-kachel:focus-visible { border-color: rgba(255, 212, 0, 0.6); }
.thumb-kachel.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25); }
.thumb-bearbeiten { border-top: 1px solid color-mix(in srgb, var(--text) 8.0%, transparent); padding-top: 4px; display: grid; gap: 10px; }
.thumb-bilder { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.thumb-bild { flex: none; width: 76px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; line-height: 0; }
.thumb-bild img { width: 100%; height: 48px; object-fit: cover; }
.thumb-bild.gewaehlt { border-color: var(--akzent); }
.thumb-laden { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--leise); }
.thumb-laden .drehen { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 212, 0, 0.25); border-top-color: var(--akzent); animation: thumb-drehen 0.8s linear infinite; }
@keyframes thumb-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .thumb-laden .drehen { animation: none; } }

/* ---------- Clips als Kacheln zum Ziehen ---------- */
#clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#clips .clip { position: relative; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 6px 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: auto; }
#clips .clip:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
#clips .clip-bild { width: 100%; height: auto; aspect-ratio: 16 / 10; pointer-events: none; }
#clips .clip-nr { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; z-index: 1; }
#clips .clip-knoepfe { position: absolute; top: 8px; right: 8px; z-index: 1; }
#clips .clip-knoepfe button { background: rgba(0, 0, 0, 0.65); color: #fff; width: 28px; height: 28px; }
#clips .clip-text { padding: 0 4px; }
.clip-griff { display: none; }
#clips .clip-griff, #neue-clips .clip-griff { display: flex; align-items: center; justify-content: center; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; color: var(--leise); touch-action: none; cursor: grab; }
#neue-clips .clip { position: relative; cursor: grab; user-select: none; -webkit-user-select: none; }
#neue-clips .clip-griff { position: static; margin-left: 2px; }
.clip.ausgeblendet { display: none; }
.clip.zieht { position: fixed; left: 0; top: 0; margin: 0; list-style: none; z-index: 1000; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; pointer-events: none; cursor: grabbing; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); border-color: var(--akzent); opacity: 0.95; }
.clip-platz { list-style: none; border: 2px dashed rgba(255, 212, 0, 0.6); border-radius: 11px; background: rgba(255, 212, 0, 0.06); }
body.sortiert, body.sortiert * { cursor: grabbing !important; }
.clips-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.clips-leiste-knoepfe { display: flex; gap: 6px; }
@media (pointer: fine) { #clips .clip-griff { opacity: 0.5; } }
@media (max-width: 520px) { #clips { grid-template-columns: repeat(2, 1fr); } }
.clip.zieht .clip-bild { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.clip.zieht .clip-nr { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; }
.clip.zieht .clip-knoepfe, .clip.zieht .clip-griff { display: none; }

/* ---------- Admin-Ansicht ---------- */
.admin-ansicht { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 212, 0, 0.35); display: grid; gap: 10px; }
.admin-ansicht .knopf { justify-self: start; }
.hinweis-vorschau { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; background: rgba(255, 212, 0, 0.1); color: var(--gelb-text); border: 1px solid rgba(255, 212, 0, 0.35); }

.admin-warteliste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.admin-warteliste span { margin-right: auto; color: var(--leise); }

/* ---------- Darstellung: Hell / Dunkel / System ---------- */
.menue-thema { padding: 8px 12px 10px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 4px 0; }
.menue-thema > span { display: block; font-size: 12px; font-weight: 700; color: var(--sehr-leise); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.thema-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--flaeche-3); }
.thema-wahl button {
    border: 0; border-radius: 8px; padding: 7px 6px; background: transparent; color: var(--leise);
    font: 600 13px/1 var(--schrift); cursor: pointer;
}
.thema-wahl button:hover { color: var(--text); }
.thema-wahl button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.thema-knopf {
    display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
    border-radius: 10px; border: 1px solid var(--linie-hell); background: transparent; color: var(--leise);
    font-size: 17px; line-height: 1; cursor: pointer;
}
.thema-knopf:hover { color: var(--text); background: var(--flaeche-2); }
.rechts-kopf .kopf-rechts { display: flex; align-items: center; gap: 10px; }

.thumb-kachel { position: relative; }
.thumb-art { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; background: rgba(11, 14, 23, 0.72); color: #EEF0F7; }
.thumb-art.neu { background: var(--akzent); color: var(--akzent-text); }

/* ---------- Hellmodus: automatisch nach Betriebssystem oder fest gewählt ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F5F9;
    --flaeche: #FFFFFF;
    --flaeche-2: #F1F3F8;
    --flaeche-3: #E7EAF2;
    --linie: #E1E4ED;
    --linie-hell: #CDD2DF;
    --linie-hover: #A3AAC0;
    --seite-bg: #ECEEF4;
    --buehne-bg: #EAECF5;
    --text: #13162B;
    --leise: #4C536E;
    --sehr-leise: #737A95;
    --akzent: #FFD400;
    --akzent-hell: #FFE14D;
    --akzent-text: #14120A;
    --akzent-schrift: #8A6A00;
    --violett: #6B57E8;
    --violett-weich: rgba(107, 87, 232, 0.12);
    --violett-text: #5541D4;
    --gruen: #0E9F6E;
    --gruen-text: #047857;
    --rot: #DC2626;
    --rot-weich: rgba(220, 38, 38, 0.08);
    --rot-text: #B91C1C;
    --gelb-text: #7A5C00;
    --schatten: 0 1px 2px rgba(19, 22, 43, 0.06), 0 18px 40px -24px rgba(19, 22, 43, 0.25);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
    --bg: #F4F5F9;
    --flaeche: #FFFFFF;
    --flaeche-2: #F1F3F8;
    --flaeche-3: #E7EAF2;
    --linie: #E1E4ED;
    --linie-hell: #CDD2DF;
    --linie-hover: #A3AAC0;
    --seite-bg: #ECEEF4;
    --buehne-bg: #EAECF5;
    --text: #13162B;
    --leise: #4C536E;
    --sehr-leise: #737A95;
    --akzent: #FFD400;
    --akzent-hell: #FFE14D;
    --akzent-text: #14120A;
    --akzent-schrift: #8A6A00;
    --violett: #6B57E8;
    --violett-weich: rgba(107, 87, 232, 0.12);
    --violett-text: #5541D4;
    --gruen: #0E9F6E;
    --gruen-text: #047857;
    --rot: #DC2626;
    --rot-weich: rgba(220, 38, 38, 0.08);
    --rot-text: #B91C1C;
    --gelb-text: #7A5C00;
    --schatten: 0 1px 2px rgba(19, 22, 43, 0.06), 0 18px 40px -24px rgba(19, 22, 43, 0.25);
    color-scheme: light;
}

/* Thumbnail-Editor: große Live-Vorschau links, Einstellungen rechts */
.thumb-bearbeiten { border-top: 0; padding-top: 0; }
.thumb-zurueck { justify-self: start; }
.thumb-editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.thumb-vorschau-spalte { position: sticky; top: 0; display: grid; gap: 8px; }
.thumb-vorschau { position: relative; line-height: 0; display: grid; place-items: center; }
.thumb-vorschau img { max-width: 100%; width: auto; height: auto; max-height: 62vh; display: block; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
.thumb-vorschau-laden { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 14, 23, 0.35); border-radius: 12px; }
.thumb-vorschau-laden .drehen { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 212, 0, 0.3); border-top-color: var(--akzent); animation: thumb-drehen 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .thumb-vorschau-laden .drehen { animation: none; } }
.thumb-aktionen { gap: 8px; }
.thumb-regler { display: grid; gap: 12px; min-width: 0; }
.thumb-farbe-feld { flex: 0 0 auto; }
.motiv-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.motiv-tab { border: 1px solid var(--linie-hell, rgba(127, 127, 127, 0.3)); background: transparent; color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.motiv-tab.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 700; }
.motiv-suche { width: 100%; margin-top: 6px; }
.motiv-eigen-kopf { display: grid; gap: 4px; margin-top: 6px; }
.motiv-hochladen { justify-self: start; cursor: pointer; }
.motiv-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; margin-top: 6px; padding: 2px; }
.motiv-gruppe { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--leise); }
.motiv-leer { grid-column: 1 / -1; margin: 6px 0; }
.motiv-kachel { aspect-ratio: 1; padding: 6px; border: 2px solid transparent; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); cursor: pointer; display: grid; place-items: center; }
.motiv-kachel:hover, .motiv-kachel:focus-visible { border-color: rgba(255, 212, 0, 0.6); }
.motiv-kachel.gewaehlt { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.motiv-kachel img { width: 100%; height: 100%; object-fit: contain; }
.motiv-kachel img.rund { border-radius: 50%; object-fit: cover; }
.motiv-kachel img.karte { border-radius: 6px; object-fit: cover; }
.motiv-zeichen { font-family: Anton, Impact, sans-serif; font-size: 24px; color: var(--akzent); line-height: 1; }
@media (max-width: 820px) {
  .thumb-editor { grid-template-columns: 1fr; }
  .thumb-vorschau-spalte { position: sticky; top: -1px; z-index: 2; background: var(--flaeche, #11131a); padding: 4px 0 6px; }
  .thumb-vorschau img { max-height: 38vh; }
}
#thumb-dialog.dialog-breit { width: min(1120px, calc(100vw - 32px)); }
/* Einstellungen im Thumbnail-Editor dürfen nie breiter als ihre Spalte werden */
.thumb-regler > *, .thumb-regler .feld, .thumb-editor > * { min-width: 0; max-width: 100%; }
/* Bilder aus dem Video: umbrechendes Raster mit fester Größe (kein Springen beim Laden) */
.thumb-regler .thumb-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; overflow: visible; padding-bottom: 0; }
.thumb-regler .thumb-bild { width: auto; aspect-ratio: 16 / 10; }
.thumb-regler .thumb-bild img { width: 100%; height: 100%; object-fit: cover; }

/* Ein-Klick-Änderungen: erst auswählen, dann übernehmen */
.schnell.gewaehlt { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--text); box-shadow: 0 0 0 1px var(--akzent) inset; }
.schnell.gewaehlt .schnell-symbol { color: var(--akzent-schrift, var(--akzent)); font-weight: 800; }
.schnell-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.schnell-leiste.versteckt { display: none; }
.schnell-anzahl { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }

/* Rückfrage der KI bei mehrdeutigen Wünschen */
.rueckfrage { display: grid; gap: 8px; padding: 12px 13px; border-radius: var(--radius-klein); background: rgba(139, 124, 246, 0.1); border: 1px solid rgba(139, 124, 246, 0.4); }
.rueckfrage.versteckt { display: none; }
.rueckfrage-text { margin: 0; font-size: 14px; color: var(--text); }
.rueckfrage-optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.sticker-vorschau { width: 34px; height: 34px; object-fit: contain; flex: none; }

/* Admin: Einladungscodes */
.admin-einladungen { margin: 10px 0; }
.admin-einladungen summary { cursor: pointer; }
.einladungen-liste { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.einladungen-liste li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.einladungen-liste code { font-size: 13px; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.einladungen-liste li.genutzt code { text-decoration: line-through; opacity: 0.6; }

/* Touch-Geräte: größere Tippflächen */
@media (pointer: coarse) {
    .link-knopf { min-height: 44px; padding: 0 6px; }
    .sprache, #sprache-knopf { min-height: 44px; min-width: 44px; }
    .formular input[type="checkbox"] { width: 22px; height: 22px; }
}

/* Projekte auswählen und zusammen löschen */
.seitenleiste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seitenleiste-kopf .seitenleiste-titel { margin: 0; }
.seitenleiste-kopf .auswahl-knopf { padding: 8px 8px 0; }
.auswahl-knopf { font-size: 13px; }
.projekt-eintrag.waehlbar { position: relative; }
.auswahl-haken { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--linie-hell, #9aa3b2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; order: -1; }
.projekt-eintrag.gewaehlt { outline: 2px solid var(--akzent, #FFD400); outline-offset: -2px; }
.projekt-eintrag.gewaehlt .auswahl-haken { background: var(--akzent, #FFD400); border-color: var(--akzent, #FFD400); color: #111; }
.auswahl-leiste { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 8px; background: var(--seite-bg); border-top: 1px solid var(--linie, rgba(0,0,0,.1)); }
.auswahl-leiste #auswahl-anzahl { flex: 1; font-size: 13px; }

/* Musik-Tipps */
.musik-oeffnen { margin-top: 8px; }
.musik-ergebnis { display: grid; gap: 16px; margin-top: 4px; }
.musik-urteil { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche-2); }
.musik-urteil.ja { border-color: color-mix(in srgb, var(--akzent) 45%, var(--linie)); }
.musik-urteil.nein strong { color: var(--text); }
.musik-abschnitt { display: grid; gap: 8px; }
.musik-abschnitt h3 { margin: 0; font-size: 15px; }
.musik-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie); }
.musik-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
.musik-info strong { overflow-wrap: anywhere; }
.musik-chip { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--flaeche-2); color: var(--leise); }
.musik-quelle { color: var(--leise); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.musik-hoeren { width: 100%; max-width: 320px; height: 32px; margin-top: 4px; }
.musik-begriffe { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .musik-zeile { flex-direction: column; align-items: stretch; } }

.musik-nachweis { margin-top: 12px; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--akzent) 55%, var(--linie)); background: color-mix(in srgb, var(--akzent) 7%, transparent); }
.musik-nachweis code { font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.musik-nachweis .knopf { justify-self: start; }

/* Handy: Änderungs-Eingabe unten angeheftet, Video kompakter */
.aendern-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; gap: 8px; align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--flaeche); border-top: 1px solid var(--linie);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.aendern-dock input {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--linie-hell); background: var(--bg); color: var(--text); font: 16px var(--schrift);
}
.aendern-dock input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.aendern-dock .knopf { height: 44px; padding: 0 16px; flex: none; }
body.mit-dock .arbeitsflaeche { padding-bottom: 96px; }
@media (min-width: 761px) { .aendern-dock { display: none !important; } }
@media (max-width: 700px) {
    .video-rahmen { height: min(42vh, 380px); }
}

.einladung-hinweis { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 212, 0, 0.12); border: 1px solid rgba(255, 212, 0, 0.4); color: var(--text); font-size: 14px; }

.vorlagen-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vorlagen-art { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--flaeche-3); }
.vorlagen-art button { border: 0; border-radius: 8px; padding: 6px 12px; background: transparent; color: var(--leise); font: 700 13px var(--schrift); cursor: pointer; }
.vorlagen-art button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }

/* Für alle Kanäle */
.kanaele-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.kanal-karte { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--linie); background: var(--bg); min-width: 0; }
.kanal-kopf { display: flex; gap: 12px; align-items: center; }
.kanal-kopf > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kanal-form { display: block; flex: none; height: 44px; max-width: 64px; border-radius: 5px; border: 2px solid var(--akzent); background: rgba(255, 212, 0, .08); }
.kanal-video { min-height: 32px; display: flex; align-items: center; }
.kanal-text { display: flex; flex-direction: column; gap: 6px; }
.kanal-text textarea { width: 100%; resize: vertical; font: 13px/1.45 var(--schrift); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--linie-hell); background: var(--flaeche); color: var(--text); }
.kanal-text .knopf { align-self: flex-start; }
.fehler-text { color: var(--rot); }
@media (max-width: 760px) { .kanaele-gitter { grid-template-columns: 1fr; } }

/* Weitere Spuren (Profi-Modus) */
.zl-ebene-spur { background: rgba(139, 124, 246, 0.04); }
.zl-ebene { border: 1px solid #6d5fd6; background: #3b2f86; color: #EEF0F7; padding: 0 8px; cursor: grab; text-align: left; touch-action: none; }
.zl-ebene:hover { border-color: #a99cff; }
.zl-ebene.gewaehlt { border: 2px solid var(--akzent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.2); z-index: 2; }
.zl-ebene-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.zl-ebene-leer { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--sehr-leise); pointer-events: none; white-space: nowrap; }
.zl-namen .zl-ebene-name { color: #a99cff; }
.knopf-links { justify-content: flex-start; text-align: left; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-spur-plus { font-weight: 800; font-size: 15px; line-height: 1; }

.kanal-hinweise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.kanal-hinweis { font-size: 12.5px; line-height: 1.4; padding-left: 20px; position: relative; color: var(--leise); }
.kanal-hinweis::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.kanal-ok::before { content: "✓"; color: var(--gruen-text); }
.kanal-info::before { content: "i"; color: var(--violett-text); font-style: italic; left: 4px; }
.kanal-warnung { color: var(--text); }
.kanal-warnung::before { content: "!"; color: var(--rot); left: 4px; }
