/* ImmoMovie – angemeldeter Bereich. Gleiche Welt, Arbeitsdichte. */

body.app { background: var(--papier); font-size: 16px; }
.app-rahmen { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* Leiste */
.leiste { position: sticky; top: 72px; height: calc(100vh - 72px); background: var(--nacht); color: var(--auf-nacht); display: flex; flex-direction: column; padding: 20px 14px 16px; overflow-y: auto; }
.leiste .marke { display: none; } /* Logo steht im Kopf */
.leiste .marke img { height: 32px; }
.leiste .neu { margin: 0 4px 18px; }
.leiste nav { display: grid; gap: 2px; }
.leiste nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); text-decoration: none; color: var(--auf-nacht-2); font-weight: 600; font-size: 15px; }
.leiste nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.leiste nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.leiste nav a .zaehler { margin-left: auto; background: var(--orange); color: var(--nacht-950); font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.leiste .unten { margin-top: auto; display: grid; gap: 12px; padding-top: 20px; }
.guthaben { padding: 14px; border-radius: var(--r-m); background: var(--nacht-800); border: 1px solid var(--linie-nacht); }
.guthaben .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.guthaben b { font-size: 26px; font-stretch: var(--breit); color: #fff; font-variant-numeric: tabular-nums; }
.guthaben small { color: var(--auf-nacht-3); font-size: 12.5px; }
.guthaben a { color: var(--orange); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.guthaben a:hover { text-decoration: underline; }
.nutzer-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.nutzer-zeile .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--nacht-950); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.nutzer-zeile .avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nutzer-zeile div { min-width: 0; }
.nutzer-zeile b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nutzer-zeile small { color: var(--auf-nacht-3); font-size: 12.5px; }
.nutzer-zeile button { margin-left: auto; background: none; border: 0; color: var(--auf-nacht-3); cursor: pointer; padding: 6px; border-radius: var(--r-s); }
.nutzer-zeile button:hover { color: #fff; background: rgba(255,255,255,.08); }
.vorschau-hinweis { font-size: 11.5px; color: var(--auf-nacht-3); padding: 0 6px; line-height: 1.4; }

@media (max-width: 920px) {
  .app-rahmen { grid-template-columns: minmax(0, 1fr); }
  .leiste { position: fixed; inset: 72px auto 0 0; height: auto; width: 280px; z-index: 45; translate: -100% 0; transition: translate .3s var(--ease); }
  .leiste.offen { translate: 0 0; box-shadow: var(--schatten-3); }
}

/* Inhalt */
.inhalt { padding: clamp(20px, 3vw, 40px) clamp(16px, 3.4vw, 48px) 80px; max-width: 1360px; width: 100%; }
.seitentitel { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin-bottom: 28px; }
.seitentitel h1 { font-size: clamp(28px, 3vw, 38px); }
.seitentitel p { margin: 6px 0 0; color: var(--text-2); }
.seitentitel .aktionen { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.flaeche { background: var(--weiss); border-radius: var(--r-l); box-shadow: var(--schatten-1); }
.flaeche-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--linie-2); }
.flaeche-kopf h2 { font-size: 18px; font-stretch: 110%; letter-spacing: -0.01em; }
.flaeche-kopf .rechts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flaeche-inhalt { padding: 22px; }
.raster-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .raster-2 { grid-template-columns: minmax(0, 1fr); } }
.stapel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.fertig { background: var(--ok-50); color: var(--ok); }
.status.arbeit { background: var(--nacht-50); color: var(--nacht-600); }
.status.arbeit::before { animation: puls 1.4s ease-in-out infinite; }
.status.freigabe { background: var(--orange-50); color: var(--orange-ink); }
@keyframes puls { 50% { opacity: .25; } }

/* Objektliste */
.objektliste { display: grid; }
.objektzeile { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--linie-2); text-decoration: none; color: inherit; }
.objektzeile:last-child { border-bottom: 0; }
.objektzeile:hover { background: var(--nacht-50); }
.objektzeile img { width: 112px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-s); background: var(--nacht-100); }
.objektzeile h3 { font-size: 17px; font-stretch: 106%; letter-spacing: -0.01em; }
.objektzeile .meta { font-size: 14px; color: var(--text-3); margin-top: 3px; }
.objektzeile .rechts { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.fortschritt { height: 6px; background: var(--nacht-100); border-radius: 3px; overflow: hidden; width: 160px; margin-top: 8px; }
.fortschritt i { display: block; height: 100%; background: var(--orange); transition: width .8s var(--ease); }
@media (max-width: 640px) { .objektzeile { grid-template-columns: 80px 1fr; } .objektzeile img { width: 80px; } .objektzeile .rechts { grid-column: 2; align-items: start; } }

/* Leerer Zustand */
.leer { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 12px; }
.leer svg { width: 40px; height: 40px; color: var(--nacht-300); }
.leer h3 { font-size: 20px; }
.leer p { color: var(--text-2); max-width: 46ch; margin: 0; }

/* Erste Schritte */
.erste-schritte { display: grid; gap: 0; }
.erste-schritte a, .erste-schritte div.punkt { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--linie-2); text-decoration: none; color: inherit; font-size: 15px; }
.erste-schritte a:hover { background: var(--nacht-50); }
.erste-schritte .kreis { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--nacht-200); display: grid; place-items: center; }
.erste-schritte .erledigt .kreis { background: var(--ok); border-color: var(--ok); color: #fff; }
.erste-schritte .erledigt span:nth-child(2) { color: var(--text-3); text-decoration: line-through; }
.erste-schritte .kreis svg { width: 14px; height: 14px; }

/* Schrittleiste (Auftrag) */
.schrittleiste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.schrittleiste li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; padding: 10px 0; position: relative; color: var(--text-3); }
.schrittleiste li::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: -8px; width: 2px; background: var(--linie); }
.schrittleiste li:last-child::before { display: none; }
.schrittleiste .punkt { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linie); background: var(--weiss); display: grid; place-items: center; position: relative; z-index: 1; }
.schrittleiste .punkt svg { width: 15px; height: 15px; }
.schrittleiste li.erledigt { color: var(--tinte); }
.schrittleiste li.erledigt .punkt { background: var(--nacht); border-color: var(--nacht); color: #fff; }
.schrittleiste li.erledigt::before { background: var(--nacht); }
.schrittleiste li.aktiv { color: var(--tinte); font-weight: 700; }
.schrittleiste li.aktiv .punkt { border-color: var(--orange); }
.schrittleiste li.aktiv .punkt::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: puls 1.2s ease-in-out infinite; }
.schrittleiste li.warten .punkt { border-color: var(--orange); background: var(--orange); color: var(--nacht-950); }
.schrittleiste small { display: block; font-weight: 500; font-size: 13.5px; color: var(--text-3); }
.schrittleiste .zeit { font-size: 13px; font-variant-numeric: tabular-nums; }

/* Konfigurator */
.konfig { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1140px) { .konfig { grid-template-columns: minmax(0, 1fr); } }
.modus-schalter { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--weiss); border-radius: var(--r-l); box-shadow: var(--schatten-1); gap: 4px; }
.modus-schalter button { border: 0; background: transparent; padding: 10px 18px; border-radius: var(--r-m); cursor: pointer; text-align: left; display: grid; gap: 1px; }
.modus-schalter button b { font-size: 15.5px; }
.modus-schalter button small { color: var(--text-3); font-size: 12.5px; }
.modus-schalter button[aria-pressed="true"] { background: var(--nacht); color: #fff; }
.modus-schalter button[aria-pressed="true"] small { color: var(--auf-nacht-2); }
.block { background: var(--weiss); border-radius: var(--r-l); box-shadow: var(--schatten-1); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; }
.block + .block { margin-top: 18px; }
.block-kopf { display: flex; align-items: baseline; gap: 14px; }
.block-kopf .nr { width: 30px; height: 30px; border-radius: 50%; background: var(--nacht); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; translate: 0 4px; font-variant-numeric: tabular-nums; }
.block-kopf h2 { font-size: 22px; letter-spacing: -0.015em; }
.block-kopf p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.block.experte-nur { background: var(--weiss); box-shadow: var(--schatten-1), inset 0 0 0 1px var(--nacht-100); }
.block.experte-nur .block-kopf .nr { background: var(--orange); color: var(--nacht-950); }
body:not(.expertenmodus) .experte-nur { display: none !important; }

.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.wahl.breit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl label { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r-m); border: 1.5px solid var(--linie); background: var(--weiss); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; min-height: 64px; }
.wahl label:hover { border-color: var(--nacht-300); }
.wahl input:checked + label { border-color: var(--nacht); background: var(--nacht-50); box-shadow: inset 0 0 0 1px var(--nacht); }
.wahl input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.wahl label b { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.wahl label small { color: var(--text-3); font-size: 13.5px; line-height: 1.4; }
.wahl label .preis-tag { position: absolute; top: 12px; right: 12px; font-size: 13px; font-weight: 800; color: var(--nacht); font-variant-numeric: tabular-nums; }
.wahl label svg { width: 20px; height: 20px; color: var(--nacht); }
.wahl label .palette { display: flex; height: 26px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.wahl label .palette i { flex: 1; }
.wahl label img.bild { width: calc(100% + 28px); margin: -14px -14px 8px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-m) var(--r-m) 0 0; max-width: none; }
.wahl label .empf { position: absolute; top: -9px; left: 12px; }

/* Upload */
.ablage { border: 2px dashed var(--nacht-200); border-radius: var(--r-l); padding: 26px; text-align: center; background: var(--nacht-50); display: grid; justify-items: center; gap: 8px; transition: border-color .15s, background-color .15s; cursor: pointer; }
.ablage:hover, .ablage.ziehen { border-color: var(--orange); background: var(--orange-50); }
.ablage svg { width: 32px; height: 32px; color: var(--nacht); }
.ablage b { font-size: 16px; }
.ablage small { color: var(--text-3); }
.fotoraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.foto { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--nacht-100); aspect-ratio: 4/3; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .pruefung { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: var(--r-s); background: rgba(255,255,255,.94); }
.foto .pruefung.gut { color: var(--ok); } .foto .pruefung.warn { color: var(--warn); }
.foto .pruefung svg { width: 13px; height: 13px; }
.foto .weg { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(8,26,44,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.foto .weg svg { width: 15px; height: 15px; }
.foto .nr { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--nacht); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.foto.clip::after { content: "Verwandlung"; position: absolute; top: 6px; left: 34px; background: var(--orange); color: var(--nacht-950); font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: var(--r-s); }
.unterlagen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unterlage { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: var(--r-m); background: var(--weiss); cursor: pointer; }
.unterlage:hover { border-color: var(--nacht-300); }
.unterlage .ico { width: 40px; height: 40px; border-radius: var(--r-m); background: var(--nacht-50); display: grid; place-items: center; color: var(--nacht); }
.unterlage b { display: block; font-size: 15px; }
.unterlage small { color: var(--text-3); font-size: 13px; }
.unterlage.da { border-color: var(--ok); }
.unterlage.da .ico { background: var(--ok-50); color: var(--ok); }
@media (max-width: 640px) { .unterlagen { grid-template-columns: minmax(0, 1fr); } }
.import-zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.import-zeile .feld { flex: 1 1 220px; }

/* Szenen (Experte) */
.szenen { display: grid; gap: 8px; }
.szene { display: grid; grid-template-columns: 24px 88px minmax(0, 1fr) 150px 150px auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--linie); border-radius: var(--r-m); background: var(--weiss); }
.szene.zieh { opacity: .5; }
.szene .griff { color: var(--text-3); cursor: grab; display: grid; place-items: center; }
.szene img { width: 88px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-s); }
.szene .eingabe { min-height: 38px; padding: 6px 10px; font-size: 14.5px; }
.szene select.eingabe { padding-right: 30px; background-position: right 10px center; }
.szene .clip-knopf { border: 1.5px solid var(--linie); background: var(--weiss); border-radius: var(--r-s); padding: 6px 10px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.szene .clip-knopf[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--nacht-950); }
@media (max-width: 900px) { .szene { grid-template-columns: 24px 72px 1fr; } .szene img { width: 72px; } .szene > :nth-child(n+4) { grid-column: 3; } }

.licht-vorschau { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.licht-vorschau img { width: 100%; height: 100%; object-fit: cover; transition: filter .8s var(--ease); }
.licht-vorschau .licht { position: absolute; inset: 0; mix-blend-mode: soft-light; transition: background-color .8s, opacity .8s; opacity: 0; }
.licht-vorschau[data-licht="morgen"] img { filter: saturate(.92) brightness(1.06) hue-rotate(-6deg); }
.licht-vorschau[data-licht="morgen"] .licht { background: #9EC3FF; opacity: .45; }
.licht-vorschau[data-licht="tag"] img { filter: brightness(1.04) contrast(1.03); }
.licht-vorschau[data-licht="gold"] img { filter: saturate(1.15) sepia(.18) brightness(1.02); }
.licht-vorschau[data-licht="gold"] .licht { background: #FFB15C; opacity: .55; }
.licht-vorschau[data-licht="abend"] img { filter: brightness(.72) saturate(1.1) sepia(.28) contrast(1.08); }
.licht-vorschau[data-licht="abend"] .licht { background: #FF8A3D; opacity: .5; }
.licht-vorschau .kennung { top: 10px; left: 10px; }

/* Bestellschein */
.bestellschein { position: sticky; top: 96px; background: var(--weiss); border-radius: var(--r-l); box-shadow: var(--schatten-2); overflow: hidden; }
.bestellschein .kopfzeile { background: var(--nacht); color: #fff; padding: 18px 22px; box-shadow: inset 0 -6px 0 var(--orange); }
.bestellschein .kopfzeile h2 { font-size: 19px; color: #fff; }
.bestellschein .kopfzeile p { margin: 4px 0 4px; color: var(--auf-nacht-2); font-size: 14px; }
.bestellschein .posten { padding: 14px 22px; display: grid; gap: 8px; border-bottom: 1px solid var(--linie-2); font-size: 15px; }
.bestellschein .posten div { display: flex; justify-content: space-between; gap: 12px; }
.bestellschein .posten span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bestellschein .posten .null { color: var(--text-3); }
.bestellschein .summe { padding: 16px 22px; display: flex; justify-content: space-between; align-items: baseline; }
.bestellschein .summe b { font-size: 32px; font-stretch: var(--breit); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bestellschein .details { padding: 0 22px 14px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.bestellschein .details div { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.bestellschein .details svg { width: 16px; height: 16px; margin-top: 2px; color: var(--nacht); }
.bestellschein .abschluss { padding: 16px 22px 22px; display: grid; gap: 12px; background: var(--nacht-50); }
.bestellschein .btn { width: 100%; }

/* Freigabe */
.freigabe-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.freigabe-bild { border-radius: var(--r-m); overflow: hidden; background: var(--weiss); border: 1px solid var(--linie); }
.freigabe-bild .bildbox { position: relative; aspect-ratio: 3/2; background: var(--nacht-100); }
.freigabe-bild .bildbox img { width: 100%; height: 100%; object-fit: cover; }
.freigabe-bild .bildbox .kennung { top: 8px; left: 8px; font-size: 10.5px; }
.freigabe-bild .leiste-unten { display: flex; gap: 8px; padding: 10px; align-items: center; }
.freigabe-bild .leiste-unten span { font-weight: 700; font-size: 14.5px; margin-right: auto; }
.freigabe-bild.neu .bildbox img { filter: blur(6px) saturate(.6); }
.freigabe-bild.neu .bildbox::after { content: "Wird neu eingerichtet …"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; background: rgba(8,26,44,.45); }

/* Dateien / Videothek */
.dateiliste { display: grid; }
.datei { display: grid; grid-template-columns: 26px 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--linie-2); }
.datei:last-child { border-bottom: 0; }
.datei .bild { width: 96px; aspect-ratio: 16/10; border-radius: var(--r-s); overflow: hidden; background: var(--nacht-900); position: relative; }
.datei .bild img, .datei .bild video { width: 100%; height: 100%; object-fit: cover; }
.datei .bild .dauer { position: absolute; right: 4px; bottom: 4px; background: rgba(8,26,44,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.datei h3 { font-size: 15.5px; font-stretch: 104%; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datei .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--text-3); margin-top: 3px; align-items: center; }
.datei .aktionen { display: flex; gap: 6px; }
.datei input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--nacht); }
.icon-knopf { width: 38px; height: 38px; border-radius: var(--r-m); border: 1px solid var(--linie); background: var(--weiss); color: var(--nacht); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.icon-knopf:hover { background: var(--nacht-50); border-color: var(--nacht-300); }
.icon-knopf svg { width: 18px; height: 18px; }
.format-tag { font-size: 11.5px; font-weight: 800; padding: 2px 6px; border-radius: 3px; background: var(--nacht-50); color: var(--nacht); border: 1px solid var(--nacht-100); font-variant-numeric: tabular-nums; }
.wolke-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.wolke-tag svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .datei { grid-template-columns: 22px 72px minmax(0, 1fr); padding: 12px 16px; } .datei .bild { width: 72px; } .datei .aktionen { grid-column: 2 / -1; } }

.werkzeugleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--linie-2); }
.werkzeugleiste .suche { position: relative; flex: 1 1 240px; max-width: 360px; }
.werkzeugleiste .suche svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--text-3); width: 18px; height: 18px; }
.werkzeugleiste .suche input { padding-left: 38px; min-height: 42px; }
.werkzeugleiste select.eingabe { min-height: 42px; width: auto; }
.auswahlleiste { position: sticky; bottom: 16px; z-index: 30; margin: 16px auto 0; width: fit-content; max-width: calc(100% - 32px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px 10px 18px; background: var(--nacht); color: #fff; border-radius: var(--r-l); box-shadow: var(--schatten-3); }
.auswahlleiste[hidden] { display: none; }

.player { border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: var(--schatten-2); }
.player video { width: 100%; aspect-ratio: 16/9; background: #000; }
.format-reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.format-reiter button { border: 1.5px solid var(--linie); background: var(--weiss); padding: 7px 12px; border-radius: var(--r-m); font-weight: 700; font-size: 14px; cursor: pointer; }
.format-reiter button[aria-pressed="true"] { background: var(--nacht); color: #fff; border-color: var(--nacht); }

dl.daten { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
dl.daten dt { color: var(--text-3); }
dl.daten dd { margin: 0; font-weight: 600; }

/* Seitenschublade (Cloud) */
dialog.schublade { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); border: 0; padding: 0; background: var(--weiss); box-shadow: var(--schatten-3); }
dialog.schublade::backdrop { background: rgba(8, 26, 44, .5); }
dialog.schublade[open] { animation: rein .35s var(--ease); }
@keyframes rein { from { translate: 40px 0; opacity: 0; } }
.schublade .kopf-s { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--linie-2); }
.schublade .kopf-s h2 { font-size: 21px; }
.schublade .kopf-s button { margin-left: auto; }
.schublade .rumpf { padding: 22px 24px; display: grid; gap: 18px; overflow-y: auto; max-height: calc(100vh - 160px); }
.schublade .fuss-s { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 24px; border-top: 1px solid var(--linie-2); display: flex; gap: 10px; background: var(--weiss); }
.ziele { display: grid; gap: 8px; }
.ziel { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: var(--r-m); cursor: pointer; background: var(--weiss); }
.ziel:has(input:checked) { border-color: var(--nacht); background: var(--nacht-50); box-shadow: inset 0 0 0 1px var(--nacht); }
.ziel input { position: absolute; opacity: 0; }
.ziel .ico { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.ziel b { display: block; font-size: 15px; }
.ziel small { color: var(--text-3); font-size: 13px; }
.ziel .verb { font-size: 12.5px; font-weight: 700; }
.ziel .verb.ja { color: var(--ok); } .ziel .verb.nein { color: var(--text-3); }
.hochladen-fortschritt { display: grid; gap: 8px; }
.hochladen-fortschritt .zeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.hochladen-fortschritt .balken { grid-column: 1 / -1; height: 6px; background: var(--nacht-100); border-radius: 3px; overflow: hidden; }
.hochladen-fortschritt .balken i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s linear; }
.hochladen-fortschritt .zeile.fertig .balken i { background: var(--ok); }

/* Meldung */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 100; background: var(--nacht-950); color: #fff; padding: 12px 18px; border-radius: var(--r-m); box-shadow: var(--schatten-3); display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; animation: hoch .35s var(--ease); max-width: calc(100vw - 32px); }
.toast svg { color: var(--orange); }
@keyframes hoch { from { translate: -50% 16px; opacity: 0; } }

/* Konto */
.konto-raster { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.konto-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.konto-nav a { padding: 9px 12px; border-radius: var(--r-m); text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.konto-nav a:hover { background: var(--weiss); color: var(--tinte); }
@media (max-width: 900px) { .konto-raster { grid-template-columns: minmax(0, 1fr); } .konto-nav { position: static; display: flex; flex-wrap: wrap; } }
.logo-feld { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.logo-box { aspect-ratio: 2/1; border-radius: var(--r-m); border: 1.5px dashed var(--nacht-200); background: repeating-conic-gradient(var(--nacht-50) 0 25%, var(--weiss) 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; padding: 12px; }
.logo-box img { max-height: 100%; object-fit: contain; }
.farben { display: flex; gap: 10px; flex-wrap: wrap; }
.farbe-feld { display: grid; gap: 6px; justify-items: center; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.farbe-feld input[type=color] { width: 56px; height: 56px; border: 0; padding: 0; border-radius: var(--r-m); cursor: pointer; background: none; }
.farbe-feld input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.farbe-feld input[type=color]::-webkit-color-swatch { border: 1px solid var(--linie); border-radius: var(--r-m); }
.abspann-vorschau { border-radius: var(--r-m); aspect-ratio: 16/9; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 7% 8%; color: #fff; position: relative; overflow: hidden; }
.abspann-vorschau .name { font-size: clamp(16px, 2vw, 24px); font-weight: 800; font-stretch: var(--breit); line-height: 1.15; }
.abspann-vorschau .kontakt { font-size: clamp(11px, 1.2vw, 14px); opacity: .85; margin-top: 8px; }
.abspann-vorschau .qr { width: clamp(60px, 9vw, 104px); aspect-ratio: 1; background: #fff; border-radius: 6px; padding: 6px; }
.abspann-vorschau .balken { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.abspann-vorschau .logo-klein { max-height: 34px; max-width: 140px; background: #fff; padding: 4px 8px; border-radius: 4px; margin-bottom: 14px; }
@media (max-width: 640px) { .logo-feld { grid-template-columns: minmax(0, 1fr); } }
.team-tabelle td { vertical-align: middle; }

/* Anmeldung: Video bleibt ganz und ohne Scrollen sichtbar, das Formular läuft daneben */
.anmelde-seite { --kopf-h: 73px; --bild-rand: clamp(20px, 2.6vw, 44px); min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; padding-top: var(--kopf-h); background: var(--papier); }
.anmelde-bild { position: sticky; top: var(--kopf-h); height: calc(100vh - var(--kopf-h)); height: calc(100dvh - var(--kopf-h)); display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 24px); padding: var(--bild-rand); min-width: 0; }
.anmelde-film { position: relative; width: min(100%, calc((100vh - var(--kopf-h) - 2 * var(--bild-rand) - 110px) * 16 / 9)); aspect-ratio: 16 / 9; align-self: center; overflow: hidden; border-radius: var(--r-s); background: var(--nacht-900); box-shadow: 0 6px 0 var(--orange), 0 24px 50px -28px rgba(21, 23, 28, .55); }
.anmelde-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.anmelde-bild .ueber { width: min(100%, calc((100vh - var(--kopf-h) - 2 * var(--bild-rand) - 110px) * 16 / 9)); align-self: center; padding-top: 6px; }
.anmelde-bild .ueber p { font-size: clamp(20px, 1.9vw, 30px); font-weight: 800; font-stretch: var(--breit); letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--tinte); }
.anmelde-form { display: grid; justify-items: center; padding: clamp(16px, 3vh, 36px) var(--rand) 32px; min-width: 0; }
body[data-seite="anmelden"] .kopf { position: fixed; top: 0; left: 0; right: 0; }
body[data-seite="anmelden"] .kopf .rechts .btn { display: none; }
.anmelde-form .karte { width: 100%; max-width: 540px; display: grid; gap: 14px; }
.anmelde-form h1 { font-size: clamp(24px, 2.3vw, 32px); }
.anmelde-form .reiter { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.anmelde-felder { display: grid; gap: 12px; min-width: 0; }
.anmelde-felder .feld { gap: 5px; align-content: start; min-width: 0; }
.anmelde-felder .eingabe { min-height: 44px; padding-block: 9px; }
.feld-paar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.anmelde-felder .wahl.typwahl label { padding: 10px 12px; }
.typwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trenner { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13.5px; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
@media (max-height: 600px) { .anmelde-bild .ueber { display: none; } .anmelde-film, .anmelde-bild .ueber { width: min(100%, calc((100vh - var(--kopf-h) - 2 * var(--bild-rand)) * 16 / 9)); } }
@media (max-width: 860px) { .anmelde-seite { grid-template-columns: minmax(0, 1fr); } .anmelde-bild { position: static; height: auto; padding: 16px var(--rand) 0; } .anmelde-film, .anmelde-bild .ueber { width: 100%; } .anmelde-form { padding-top: 20px; } }

/* Kopf in der App: volle Breite, Logo steht über der Leiste */
body.app .kopf .wrap { max-width: none; padding-left: 24px; padding-right: clamp(16px, 3.4vw, 48px); }

/* Anmeldung: Zugang ohne Konto (Vorschau) */
.demo-zugang { display: grid; gap: 8px; justify-items: center; text-align: center; padding-top: 14px; border-top: 1px solid var(--linie-2); }
.demo-zugang p { margin: 0; }
.demo-zugang .btn { width: 100%; }
.ziel-hinweis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; align-items: center; padding: 12px 14px; background: var(--orange-50); border: 1px solid #F7CDB9; border-radius: var(--r-m); }
.ziel-hinweis p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.ziel-hinweis p b { display: block; color: var(--tinte); font-size: 15.5px; margin-bottom: 1px; }
.ziel-hinweis .btn { width: 100%; --h: 46px; padding: 0 14px; font-size: 15px; }
