/* quik Sites: Darstellung wählen (public/js/darstellung.js). Segment im Konto, Kacheln mit Miniatur im Onboarding,
   einmalige Karte auf der Startseite. Nur Variablen: Die Miniaturen stehen in .t-light bzw. .t-dark (app.css) und
   zeigen damit die echten Farben beider Darstellungen. Regeln: docs/GESTALTUNG.md Abschnitt 15. */
.dt-seg > button > span { white-space: nowrap; }

.dt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dt-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 6px 6px 8px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface); text-align: left; transition: border-color .15s, background .15s; }
.dt-tile:hover { border-color: var(--line-strong); }
.dt-tile.on { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.dt-pic { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.dt-half { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.dt-l { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: var(--fs-sm); font-weight: 550; color: var(--ink-soft); min-width: 0; }
.dt-l > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-tile.on .dt-l { color: var(--fg); }

/* Miniatur der App */
.dt-mini { position: absolute; inset: 0; display: grid; grid-template-columns: 26% 1fr; background: var(--bg); }
.dt-mini i { display: block; border-radius: 99px; }
.dt-m-sb { display: flex; flex-direction: column; gap: 9%; padding: 16% 14% 0; background: var(--bg-2); border-right: 1px solid var(--line-soft); }
.dt-m-sb i { height: 4px; background: var(--surface-3); }
.dt-m-sb i.on { background: var(--ink-faint); }
.dt-m-main { display: flex; flex-direction: column; gap: 9%; padding: 9% 9% 0; min-width: 0; }
.dt-m-h { width: 46%; height: 5px; background: var(--fg); }
.dt-m-card { flex: 1; display: flex; flex-direction: column; gap: 12%; padding: 9% 9% 0; border-radius: 6px 6px 0 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.dt-m-card i { height: 4px; background: var(--surface-3); }
.dt-m-card i:nth-child(2) { width: 68%; }
.dt-m-card .dt-m-btn { width: 34%; height: 7px; background: var(--fg); }

/* Einmalige Frage auf der Startseite: kleines Popover am Titel (darstellungKarte, GESTALTUNG Abschnitt 17) */
.dt-pop { padding: 12px 12px 10px; }
.dt-pop-b { display: flex; flex-direction: column; gap: 10px; }
.dt-pop-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dt-pop-t b { font-size: var(--fs-base); font-weight: 600; color: var(--fg); }
.dt-pop .dt-seg { width: 100%; }
.dt-pop .dt-seg > button { flex: 1 1 0; justify-content: center; }
.dt-pop-x { font-size: var(--fs-xs); color: var(--ink-faint); }

/* Karte auf der Startseite (frühere Form, nicht mehr in Gebrauch) */
.dt-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: center; gap: 16px 24px; padding: 16px 52px 16px 20px; margin-bottom: 16px; }
.dt-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-card-t b { font-size: var(--fs-md); font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.dt-x { position: absolute; top: 10px; right: 10px; }
/* Übersicht des Teams (.ku) setzt die Abstände über gap: dort kein eigener Abstand, sonst steht die Karte doppelt so weit ab */
.ku > .dt-card { margin-bottom: 0; }
@media (max-width: 720px) { .dt-card { grid-template-columns: minmax(0, 1fr); padding: 16px; } .dt-card-t { padding-right: 36px; } }

/* Konto: Zeile „Darstellung“ */
.acc-look .dt-seg { flex: none; }
@media (max-width: 520px) { .acc-look .adm-srow, .acc-look .set-row { flex-wrap: wrap; } .acc-look .dt-seg { width: 100%; } .acc-look .dt-seg > button { flex: 1 1 0; } }

/* „Marke anlegen“ (public/js/willkommen.js): Schritt Darstellung */
.wk-look { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; }
.wk-look > .wk-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* Dunkel: einzelne Stellen, die bewusst hell bleiben. Das Logo für helle Flächen liegt auch im Dunkeln auf Papier. */
:root[data-theme="dark"] .mk-thumb:not(.on-dark):not(.sq) { background: var(--paper-2); color: var(--paper-soft); }
:root[data-theme="dark"] .mk-thumb:not(.on-dark):not(.sq) .faint { color: inherit; }
/* Zähler im aktiven Segment: Im Dunkeln ist der aktive Schalter heller als jede Fläche, die Markenfarbe trüge dort nicht */
:root[data-theme="dark"] :is(.on, [aria-selected="true"]) > .tab-n { background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); }
