/* Die Bühnen: die App-Oberfläche als Hero und Scroll-Kapitel, der Mac auf der Installationsseite.
   Karten, Stapel und Knöpfe folgen sortless/web/index.html. */

/* Hero: eine Aussage, ein Kaufknopf, dahinter das Chaos */
.hero-innen { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 84px 32px; }
.hero-innen { background: radial-gradient(ellipse min(760px, 90vw) min(420px, 46vh) at 50% 52%, rgba(24, 9, 50, .72), rgba(24, 9, 50, .46) 55%, transparent); }  /* Schatten ohne Kante hinter dem Text */
.hero-innen :is(h1, .hero-lead, .hero-fein) { text-shadow: 0 1px 3px rgba(16, 6, 36, .55), 0 2px 28px rgba(16, 6, 36, .6); }
.hero-innen h1 { font-size: clamp(38px, 5.8vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
.hero-innen h1 .zeile { display: block; }
.hero-lead { margin: 20px auto 0; max-width: 40em; }
.kauf-pille { display: inline-flex; align-items: center; gap: 20px; margin-top: 32px; padding: 6px 6px 6px 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 16px; font-weight: 500;
  background: rgba(16, 6, 36, .55); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.kauf-pille .btn { padding-inline: 40px; }
@media (prefers-reduced-transparency: reduce) { .kauf-pille { background: var(--flaeche); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.hero-fein { margin-top: 16px; font-size: 15px; }

/* App-Bühne */
.app-buehne { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; min-height: clamp(460px, calc(100vh - 340px), 680px); isolation: isolate; }
.app-panel { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 14px; border-radius: 24px; background: var(--glas); transition: opacity .4s; }
.app-panel.blende { opacity: 0; }
.app-karten { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(84px, 1fr); gap: 12px; }
.app-karten:empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 240px; }
.app-karten:empty::before { content: ""; width: 104px; height: 84px; background: url(/static/img/ordner.svg) center / contain no-repeat; filter: drop-shadow(0 14px 28px rgba(216, 27, 114, .4)); }
.app-karten:empty::after { content: "Hier entstehen deine Ordner."; font-size: 15px; color: var(--leise); }
.app-rechts { position: relative; min-height: 0; }
.app-leer { position: absolute; inset: 0 0 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.app-leer[hidden] { display: none; }
.app-titel { font: 300 clamp(26px, 3vw, 38px)/1.1 var(--sans); letter-spacing: -.01em; }
.app-sub { color: var(--leise); font-size: 16px; }
.app-unten { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3; }
.app-fortschritt { width: min(300px, 70%); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.app-fortschritt i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--ordnerblau); transition: width .25s; }
.app-status { min-height: 1.5em; font-size: 15px; color: var(--leise); font-variant-numeric: tabular-nums; }
.kapitel-buehne .app-status { min-height: 44px; }  /* Platz für den großen Analyse-Satz, damit der Balken nicht springt */
.app-status.denkt { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: transparent; background: linear-gradient(100deg, #fff 35%, #C9A8FF 50%, #fff 65%) 100% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: denken 1.8s linear infinite; }
@keyframes denken { to { background-position: 0 0; } }
.app-sortieren { font: 600 16px/1.2 var(--sans); color: var(--tinte); padding: 10px 30px; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer; background: #C21062; transition: opacity .3s, transform .12s; }
.app-sortieren:disabled { opacity: 0; cursor: default; }  /* nur im Moment des Klicks sichtbar, sonst wirkt er kaputt */
.app-sortieren.gedrueckt { transform: scale(.95); background: #A80B54; }
.app-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.app-pause { position: absolute; right: 8px; top: 8px; z-index: 4; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; color: var(--tinte); background: rgba(255, 255, 255, .1); border: 1px solid var(--linie); }
.app-pause svg, .mac-pause svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.karte { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); transition: opacity .5s; }
.karte.leer { opacity: .35; }
.karte.neu { animation: karte-ein .5s ease-out; }
@keyframes karte-ein { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.app-buehne.laeuft .karte.leer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%) 0 0 / 200% 100%; animation: schimmer 1.6s linear infinite; }
@keyframes schimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.kopf { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.kopf .emoji { flex: none; font-size: 16px; line-height: 1; }
.kopf .name { overflow: hidden; text-overflow: ellipsis; }
.kopf .n { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 12px; font-variant-numeric: tabular-nums; }
.stapel { position: relative; flex: 1; min-height: 30px; margin-top: 12px; }
.mini { position: absolute; top: 50%; padding: 2px; border-radius: 18%; background: #fff; border: 1px solid rgba(0, 0, 0, .16); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); }
.mini i { display: block; width: 100%; height: 100%; border-radius: 16%; background: center / cover; }
.stichwort { position: absolute; right: 12px; bottom: 10px; z-index: 1; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; color: var(--tinte); background: rgba(44, 20, 86, .9); border: 1px solid var(--linie); animation: stichwort 1.3s ease-out forwards; }
@keyframes stichwort { 0% { opacity: 0; transform: translateY(6px); } 18%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 759px) {
  .app-buehne { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 1fr) auto; gap: 8px; }
  .app-rechts { order: -1; min-height: 300px; }
  .app-leer { inset: 0 0 90px; }
  .app-panel { padding: 8px; border-radius: 18px; }
  .app-karten { gap: 8px; grid-auto-rows: 72px; }
  .karte { padding: 8px 10px; border-radius: 12px; }
  .kopf { font-size: 12px; gap: 5px; }
  .kopf .n { min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; }
  .stapel { margin-top: 6px; min-height: 22px; }
}

/* Scroll-Kapitel „So geht's“ */
.abschnitt:has(> .kapitel) { padding: 0; }
.kapitel { position: relative; height: 760vh; height: 760svh; }
.kapitel-sticky > .hero-innen { position: absolute; inset: 0; z-index: 3; min-height: 0; max-width: none; }
.kapitel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; padding: 104px max(40px, calc((100% - 1360px) / 2)) 28px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 36px; align-items: stretch; overflow: hidden; }
.kapitel-text { position: relative; z-index: 6; text-align: left; }
.kapitel-text h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.kapitel-schritte { list-style: none; padding: 0; display: grid; gap: 26px; }
.kapitel-schritte li:not(.aktiv) { display: none; }
.kapitel-schritte h3 { font: 600 clamp(30px, 3.8vw, 54px)/1.05 var(--sans); letter-spacing: -.03em; }
.kapitel-schritte p { margin-top: 10px; max-width: 38em; color: var(--leise); }
@media (min-width: 900px) { .kapitel-schritte li:last-child p { max-width: 21em; } }
.kapitel-buehne { min-height: 0; }
.kapitel-buehne .karte { transition: none; }
.kapitel-buehne .app-panel { background: none; overflow: visible; padding: 0; }
.kapitel-buehne .app-karten { position: relative; }  /* die Karten tragen sich selbst, sonst steht vor dem Sortieren eine leere Fläche da */

/* Das Such-Board: volle Breite, große Treffer */
.such-board { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none; }
.such-kopf { display: flex; align-items: center; gap: 12px; }
.such-feld { flex: 1; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: 28px; font-size: 20px; font-weight: 500; background: rgba(255, 255, 255, .12); border: 1px solid var(--linie); }
.such-feld svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.such-text { white-space: pre; }
.such-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--ordnerblau); }
.such-filter { display: flex; gap: 8px; }
.such-filter i { font-style: normal; font-size: 15px; padding: 10px 18px; border-radius: 22px; background: rgba(255, 255, 255, .08); }
.such-info { padding-inline: 8px; font-size: 15px; color: var(--leise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.such-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.such-raster img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 20px; background: var(--flaeche); opacity: 0; }
.such-raster img:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.such-raster img:nth-child(2) { grid-column: span 4; }
.such-raster img:nth-child(3) { grid-column: span 3; }
.such-raster img:nth-child(4) { grid-column: span 2; }
.such-raster img:nth-child(5) { grid-column: span 3; }
.such-raster img:nth-child(6) { grid-column: span 2; }

/* Die Lightbox wie in der App: Hochformat, gekippte Nachbarn, Infoleiste; dahinter das Board weichgezeichnet */
.lb-grund { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; background: rgba(14, 4, 30, .45); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
@media (prefers-reduced-transparency: reduce) { .lb-grund { background: var(--grund); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.lb { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 84px 0 24px 26%; /* links bleibt die Spalte für die Überschrift */ opacity: 0; visibility: hidden; pointer-events: none; }
.lb-stufe { position: relative; min-height: 0; display: flex; justify-content: center; }
.lb-mitte { position: relative; z-index: 2; align-self: center; height: 100%; max-height: 50vw; aspect-ratio: 3 / 4; }
.lb-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: var(--flaeche); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 90px -30px rgba(0, 0, 0, .8); }
.lb-ecke { position: absolute; z-index: 20; right: 12px; top: 12px; display: flex; gap: 8px; }
.lb-ecke i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #F5F5F7; background: rgba(20, 8, 40, .5); border: 1px solid rgba(255, 255, 255, .25); }
.lb-ecke svg, .lb-wahl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .lb { grid-template-rows: auto auto; align-content: center; padding-left: 30%; }
  .lb-mitte { height: min(calc(100vh - 300px), 38vw); height: min(calc(100svh - 300px), 38vw); max-height: none; }
}
.lb-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; width: min(820px, calc(100% - 48px)); margin-inline: auto; padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(60, 28, 110, .45); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.lb-kopf { font-size: 13px; font-weight: 600; color: rgba(245, 245, 247, .75); font-variant-numeric: tabular-nums; }
.lb-kopf b { margin-left: 10px; font-weight: 500; color: #F5F5F7; }
.lb-text { grid-column: 1; font-size: 15px; line-height: 1.4; }
.lb-aktionen { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; }
.lb-aktionen i { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: 14px; font-weight: 500; white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid var(--linie); }
.lb-aktionen .lb-wahl { font-weight: 400; color: var(--leise); border-radius: 20px; }

@media (max-width: 899px) {
  .kapitel-sticky { padding: 80px 20px 12px; }
  .kapitel-buehne { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .kapitel-buehne .app-rechts { order: -1; }
  .kapitel-buehne .app-rechts { min-height: 220px; }
  .kapitel-buehne .app-karten { grid-auto-rows: 62px; }
  .such-filter { display: none; }
  .such-feld { height: 48px; font-size: 17px; padding: 0 16px; }
  .such-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.4fr 1fr 1fr; gap: 8px; }
  .such-raster img, .such-raster img:nth-child(n) { grid-column: auto; grid-row: auto; border-radius: 14px; }
  .such-raster img:nth-child(1) { grid-column: span 2; }
  .such-raster img:nth-child(n + 6) { display: none; }
  .lb { padding: 186px 0 12px; }
  .lb-mitte { max-height: none; max-width: 62vw; }
  .lb-ecke i { width: 32px; height: 32px; }
  .lb-info { grid-template-columns: minmax(0, 1fr); width: calc(100% - 24px); padding: 10px 12px; }
  .lb-aktionen { grid-column: 1; grid-row: auto; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .lb-aktionen i { font-size: 12px; padding: 6px 10px; }
}

@media (min-width: 760px) and (max-width: 899px) { .kapitel-sticky { padding-inline: 40px; } }

/* Die Geschichte nach dem Kapitel: Ohne JS stehen Text und Bild untereinander, mit JS wird jede Szene gepinnt und geschrubbt. */
.szene { padding: 96px 0; }
.szene-sticky { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 20px; display: grid; gap: 28px; }
.takt h2, .takt h3 { font: 600 clamp(30px, 3.8vw, 54px)/1.05 var(--sans); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.takt p { margin: 10px 0 0; max-width: 38em; color: var(--leise); }
.takte { display: grid; gap: 32px; text-align: left; }
.szene-bild { position: relative; min-width: 0; min-height: 0; }
.szene.an { padding: 0; height: calc(var(--laenge) * 1vh); height: calc(var(--laenge) * 1svh); }
.szene.an .szene-sticky { max-width: none; position: sticky; top: 0; height: 100vh; height: 100svh; padding: 104px max(20px, calc((100% - 1360px) / 2)) 28px; grid-template-rows: auto minmax(0, 1fr); gap: 36px; overflow: hidden; }
.szene.an .takt { grid-area: 1 / 1; opacity: 0; }
@media (min-width: 900px) {
  .szene-sticky { padding-inline: 40px; }
  .szene.an .szene-sticky { padding-inline: max(40px, calc((100% - 1360px) / 2)); }
  .szene.zweispaltig .szene-sticky { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); gap: 48px; align-items: center; }
  .szene.zweispaltig.spiegel .szene-sticky { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .szene.zweispaltig.spiegel .takte { order: 2; }
  .szene.zweispaltig .szene-bild { height: 100%; }
}
.szene-feld { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 24px; font-size: 17px; font-weight: 500; background: rgba(255, 255, 255, .12); border: 1px solid var(--linie); }
.szene-feld svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Videos: ein Clip zerfällt in vier Bilder, darunter der Text des Gesprochenen */
.video-bild { display: flex; flex-direction: column; justify-content: center; gap: 18px; width: 100%; height: 100%; }
.clip-reihe { position: relative; z-index: 2; display: flex; gap: 1.33%; }
.clip-bild { position: relative; flex: 1; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: url(/static/img/gross/freunde-familie-9.jpg) 50% 72% / cover no-repeat var(--flaeche); box-shadow: 0 20px 40px -24px rgba(8, 0, 28, .9); transform-origin: center; }
.clip-bild:nth-child(2) { background-image: url(/static/img/gross/reisen-15.jpg); background-position: 50% 82%; }
.clip-bild:nth-child(3) { background-image: url(/static/img/gross/natur-14.jpg); background-position: 50% 42%; }
.clip-bild:nth-child(4) { background-image: url(/static/img/gross/natur-8.jpg); background-position: 50% 78%; }
.clip-marke { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: rgba(16, 6, 36, .7); display: none; }
.clip-marke::after { content: ""; position: absolute; left: 38%; top: 28%; border-style: solid; border-width: .9em 0 .9em 1.5em; border-color: transparent transparent transparent #fff; font-size: clamp(6px, .9vw, 12px); }
.szene.an .clip-marke { display: block; }
.clip-name { font-size: 15px; color: var(--leise); }
.sprech { position: relative; padding: 22px 26px; border-radius: 20px; background: rgba(255, 255, 255, .07); }
.sprech-text { font: 500 clamp(19px, 2.2vw, 30px)/1.3 var(--sans); letter-spacing: -.01em; }
.sprech-text mark { color: inherit; background: none; border-radius: 6px; }
.sprech-text mark.an { background: rgba(124, 196, 255, .34); box-shadow: 0 0 0 4px rgba(124, 196, 255, .34); }
.welle { display: none; align-items: center; gap: 3px; height: 34px; margin-bottom: 10px; }
.welle i { flex: 1; min-width: 0; border-radius: 2px; background: var(--ordnerblau); }
.szene.an .welle { display: flex; }
.video-suche { display: flex; align-items: center; gap: 14px; }
.video-suche .szene-feld { flex: 1; }
.video-treffer { font-size: 15px; color: var(--leise); white-space: nowrap; }
.tipp::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ordnerblau); }

/* Art des Clips: wird als Stichwort geführt und ist durchsuchbar */
.clip-arten { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-arten i { font-style: normal; font-size: 15px; padding: 8px 16px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid var(--linie); transition: background-color .2s; }
.clip-arten i.an { background: rgba(124, 196, 255, .34); }

/* Analysetiefe: Regler wie in den Einstellungen der App, die Stichwörter werden mit jeder Stufe feiner */
.tiefe-bild { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.tiefe-foto { width: 100%; flex: 1 1 0; min-height: 0; height: auto; max-height: 460px; object-fit: cover; border-radius: 20px; }
.szene:not(.an) .tiefe-foto { flex: none; aspect-ratio: 16 / 9; }
.tiefe-tags { min-height: 1.5em; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.tiefe-panel { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--linie); background: rgba(60, 28, 110, .45); }
.tiefe-titel { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.tiefe-spur { position: relative; height: 6px; margin-inline: 11px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.tiefe-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; border-radius: 3px; background: #F06BAA; }
.tiefe-knopf { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tiefe-stufen { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--leise); }
.tiefe-stufen .an { color: var(--tinte); font-weight: 600; }
.tiefe-text { margin-top: 10px; min-height: 3em; font-size: 15px; line-height: 1.4; }

/* Deine Ordner: umbenennen, rückgängig, Spotlight */
.ord-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ord-raster .karte { transform-origin: 0 0; padding: 16px 18px; min-height: 124px; }
.ord-raster .kopf { font-size: 16px; }
.ord-raster .stapel { display: flex; align-items: center; margin-top: 14px; }
.ord-raster .mini { position: static; flex: none; width: clamp(60px, 7vw, 104px); aspect-ratio: 1; height: auto; margin-right: calc(clamp(60px, 7vw, 104px) * -.38); }
.szene.an .ord-raster { height: 100%; grid-auto-rows: minmax(0, 1fr); }
.ord-name.umbenennen { outline: 2px solid var(--ordnerblau); outline-offset: 3px; border-radius: 4px; }
.fenster-dialog { position: relative; z-index: 3; width: min(92%, 420px); padding: 26px 28px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; color: #fff; background: linear-gradient(160deg, rgba(88, 48, 150, .88), rgba(44, 20, 86, .94)); backdrop-filter: blur(36px) saturate(1.5); -webkit-backdrop-filter: blur(36px) saturate(1.5); box-shadow: 0 30px 70px -20px rgba(8, 0, 28, .9); }  /* wie dialog.modal in der App */
.fenster-dialog b { display: block; padding-right: 40px; font: 400 clamp(20px, 1.7vw, 24px)/1.2 var(--sans); }
.fenster-dialog p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--leise); }
.fenster-dialog em { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.fenster-dialog em svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.fenster-dialog span { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.fenster-dialog span i { font-style: normal; font-size: 15px; font-weight: 500; padding: 9px 18px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.fenster-dialog span i:last-child { font-weight: 600; background: linear-gradient(180deg, #E8338A, #C21062); }
.fenster-dialog span i.gedrueckt { transform: scale(.95); background: linear-gradient(180deg, #C21062, #A80B54); }
.szene.an .fenster-dialog { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; opacity: 0; }
.szene:not(.an) .fenster-dialog, .szene:not(.an) .spot { margin: 20px auto 0; }
.szene:not(.an) .szene-bild, .szene:not(.an) .raeumen { height: auto; }  /* ohne Pinning gibt es keine feste Höhe, sonst ragt der Dialog in den nächsten Abschnitt */
.spot { z-index: 3; width: min(100%, 620px); border-radius: 22px; overflow: hidden; color: #1c1c1e; background: rgba(250, 250, 252, .97); box-shadow: 0 30px 70px -20px rgba(8, 0, 28, .9); }
.szene.an .spot { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.spot-feld { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-size: 22px; border-bottom: 1px solid #ddd; }
.spot-feld svg { flex: none; width: 24px; height: 24px; fill: none; stroke: #666; stroke-width: 2; stroke-linecap: round; }
.spot-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 22px; font-size: 16px; }
.spot-feld + .spot-zeile { background: #0A66E0; color: #fff; }
.spot-zeile img { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.spot-zeile em { margin-left: auto; font-style: normal; font-size: 14px; opacity: .7; }

/* Ordner aufräumen: links die Originale, rechts die geprüften Kopien */
.raeumen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: center; height: 100%; }
.raeum-fenster { min-width: 0; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .07); }
.raeum-titel { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.raeum-titel em { font-style: normal; font-weight: 400; color: var(--leise); font-variant-numeric: tabular-nums; }
.raeum-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.raeum-raster i { position: relative; aspect-ratio: 1; border-radius: 10px; background: center / cover; }
.raeum-raster i.ok::after { content: "✓"; position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; display: grid; place-items: center; font: 700 12px/1 var(--sans); font-style: normal; color: #fff; border-radius: 50%; background: #2E9E5B; }
.raeum-korb { grid-column: 1 / -1; text-align: center; font-size: 15px; color: var(--leise); }

@media (max-width: 899px) {
  .ord-raster .karte { padding: 10px 12px; min-height: 84px; }
  .fenster-dialog { padding: 20px; }
  .fenster-dialog span { flex-wrap: wrap; }
  .fenster-dialog span i { padding: 8px 12px; font-size: 14px; }
  .ord-raster .mini { width: 42px; margin-right: -16px; }
  .ord-raster .kopf { font-size: 13px; }
  .raeum-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .raeum-raster i { border-radius: 6px; }
  .raeum-raster i.ok::after { width: 14px; height: 14px; font-size: 9px; right: 2px; bottom: 2px; }
  .raeumen { grid-template-columns: minmax(0, 1fr); }
  .raeum-fenster { padding: 10px; }
  .video-treffer { display: none; }
  .clip-arten { gap: 4px; }
  .clip-arten i { font-size: 12px; padding: 4px 9px; }
  .sprech { padding: 14px 16px; }
}

/* Anwendungsfälle: je ein Bildschirm, ohne Pinning */
.fall { padding: 72px 0; }
.fall-innen { display: grid; gap: 32px; }
.fall-text h2 { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; margin-bottom: 16px; }
.fall-text p { color: var(--leise); max-width: 36em; }
.fall-marke { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.fall-text .fall-marke { color: var(--ordnerblau); }
.fall-text .fall-grenze { margin-top: 14px; font-size: 16px; }
.fall-raster .karte { min-height: 150px; }
.fall-raster .mini { position: relative; top: auto; }
.fall-raster.clips .mini::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -40% -50%; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
@media (min-width: 900px) {
  .fall { padding: 96px 0; }
  .fall-innen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .fall.spiegel .fall-innen { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fall.spiegel .fall-text { order: 2; }
  .fall-raster .karte { min-height: 190px; }
}

/* Datenschutz: die Grenze des Macs. Ohne JS steht der Endzustand da. */
.grenze { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.g-seite { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; padding-inline: 28px; }
.g-mac { padding-left: 0; }
.g-abo { padding-right: 0; border-left: 1px solid rgba(255, 255, 255, .45); }
.g-titel { font-size: 16px; font-weight: 600; }
.g-inhalt { flex: 1; min-height: 0; }
.g-mac .g-inhalt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.g-abo .g-inhalt { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.g-original { position: relative; margin: 0; min-height: 0; }
.g-original img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.szene.an .g-original img { aspect-ratio: auto; }
.g-original figcaption, .g-daumen figcaption { font-size: 14px; font-weight: 500; }
.g-original figcaption { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 10px; background: rgba(44, 20, 86, .9); }
.g-daumen { position: relative; z-index: 3; margin: 0; width: clamp(110px, 12vw, 180px); transform-origin: center; }
.g-daumen img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.g-daumen figcaption { margin-top: 6px; }
.g-satz { order: -1; position: relative; z-index: 3; padding: 10px 14px; border-radius: 14px; background: rgba(44, 20, 86, .9); font-size: clamp(14px, 1.5vw, 20px); line-height: 1.35; font-weight: 500; }  /* steht über dem Vorschaubild, damit sein Flug es nicht kreuzt */
.g-spalte { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.g-karte { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); font-size: 14px; }
.g-ton .welle { margin-bottom: 0; }
.g-kopie { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.g-tags { position: relative; z-index: 3; color: var(--leise); }
.aussage-text { padding-block: 72px 96px; }
@media (min-width: 900px) { .aussage-text { padding-block: 96px 160px; } }
@media (max-width: 899px) {
  .grenze { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
  .g-seite { padding-inline: 0; gap: 8px; }
  .g-abo { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 10px; }
  .g-mac .g-inhalt { gap: 8px; }
  .g-abo .g-inhalt { flex-direction: row; align-items: center; gap: 14px; }
  .g-daumen { flex: none; width: 72px; }
  .g-satz { order: 0; padding: 8px 10px; }
  .g-daumen figcaption { font-size: 12px; }
  .g-spalte { gap: 8px; }
  .g-karte { padding: 8px 10px; font-size: 12px; gap: 4px; }
  .g-karte .kopf { font-size: 12px; }
  .g-kopie { width: 36px; height: 36px; }
  .g-ton .welle { height: 22px; }
}

/* Vertrauenssatz mit Lesefront */
.kernsatz { font: 500 clamp(22px, 2.4vw, 32px)/1.3 var(--sans); letter-spacing: -.01em; max-width: 34em; margin: 0 0 32px; }

/* Installationsseite */
.legal .inst-kopf, .legal .inst-rest { max-width: 1440px; }
.inst-kopf > *, .inst-rest > * { max-width: 760px; }
.legal .inst-raster { max-width: 1440px; display: grid; gap: 24px; }
.inst-text { min-width: 0; }
.inst-schritt { padding-bottom: 24px; scroll-margin-top: 90px; }
.inst-schritt li { transition: color .25s; }
.inst-schritt li.inst-aktiv { color: var(--tinte); border-radius: 6px; background: rgba(124, 196, 255, .13); box-shadow: 0 0 0 6px rgba(124, 196, 255, .13); }
.inst-schritt li.inst-aktiv::marker { color: var(--ordnerblau); font-weight: 700; }
.inst-details { margin-top: 8px; font-size: 15px; }
.inst-details summary { cursor: pointer; color: var(--leise); width: fit-content; }
.inst-halter { display: none; position: sticky; top: 72px; z-index: 5; align-self: start; padding: 10px 0; background: rgba(36, 16, 79, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); order: -1; }
.inst-halter[data-an] { display: block; }
.mac-leiste { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.mac-leiste button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--tinte); font: 500 14px var(--sans); background: rgba(255, 255, 255, .08); border: 1px solid var(--linie); cursor: pointer; }
.mac-leiste button[aria-current="step"] { background: rgba(124, 196, 255, .28); border-color: var(--ordnerblau); }
.mac-pause { margin-right: 8px; }
@media (min-width: 1000px) {
  .legal .inst-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 48px; }
  .inst-halter { order: 0; grid-column: 2; grid-row: 1; top: 88px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
  .inst-text { grid-column: 1; grid-row: 1; }
}

/* Der Mac: 1em entspricht 10 logischen Pixeln bei 960 Breite (installation.js setzt die Schriftgröße) */
.mac { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); color: #1c1c1e; font-family: var(--sans); line-height: 1.3; box-shadow: 0 40px 80px -30px rgba(8, 0, 28, .9);
  background: radial-gradient(70% 90% at 80% 10%, #E0559C, transparent 60%), radial-gradient(90% 90% at 10% 90%, #3F35C8, transparent 60%), linear-gradient(135deg, #2A1466, #6A1F96); }
.mac p, .mac li { color: inherit; margin: 0; }
.m-menue { display: flex; gap: 1.4em; align-items: center; height: 2.6em; padding: 0 1.2em; font-size: 1.2em; color: #fff; background: rgba(20, 8, 40, .32); }
.m-menue b { font-weight: 700; }
.m-flaeche { position: absolute; inset: 3.1em 0 0; }
.m-zeiger { position: absolute; left: 0; top: 0; z-index: 30; width: 2em; transition: transform .7s cubic-bezier(.45, 0, .2, 1); pointer-events: none; }
.m-zeiger[hidden] { display: none; }
.m-zeiger svg { display: block; width: 1.5em; height: auto; fill: #111; stroke: #fff; stroke-width: 1.1; filter: drop-shadow(0 .1em .2em rgba(0, 0, 0, .5)); }
.m-ring { position: absolute; left: -1.4em; top: -1.4em; width: 2.8em; height: 2.8em; border-radius: 50%; border: .25em solid var(--ordnerblau); animation: m-ring .5s ease-out forwards; }
@keyframes m-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.m-geist { position: absolute; left: .8em; top: .8em; width: 4.4em; height: 4.4em; max-width: none; border-radius: 22%; }
.m-stapel-geist { position: absolute; left: .8em; top: .8em; }
.m-stapel-geist i { display: block; width: 6em; height: 6em; border-radius: .8em; background: center / cover; border: .2em solid #fff; box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .5); }
.m-stapel-geist b { position: absolute; right: -.8em; top: -.8em; min-width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 1.1em; background: #E5484D; color: #fff; font-size: 1.1em; }

.m-fenster { position: absolute; left: 8em; right: 8em; top: 2.5em; bottom: 3em; overflow: hidden; border-radius: 1.3em; background: #fff; box-shadow: 0 2.4em 6em -1.2em rgba(8, 0, 28, .75); animation: m-ein .28s ease-out; }
@keyframes m-ein { from { opacity: 0; transform: scale(.97); } }
.m-ampel { display: flex; gap: .55em; margin-bottom: 1.6em; }
.m-ampel i { width: 1.1em; height: 1.1em; border-radius: 50%; background: #FF5F57; }
.m-ampel i + i { background: #FEBC2E; }
.m-ampel i + i + i { background: #28C840; }
.m-finder, .m-einst { display: grid; grid-template-columns: 20em 1fr; }
.m-seite { padding: 1.4em 1.1em; background: #EFEEF5; }
.m-seitenzeile { padding: .5em .8em; border-radius: .7em; font-size: 1.5em; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-seitenzeile.an { background: rgba(0, 0, 0, .08); color: #0060DF; font-weight: 500; }
.m-einst .m-seitenzeile.an { background: #0A66E0; color: #fff; }
.m-seitenzeile.ziel { outline: .2em solid #0A84FF; background: rgba(10, 132, 255, .2); }
.m-liste, .m-panel { min-width: 0; padding: 1.5em 1.8em; overflow: hidden; }
.m-titel { font-size: 2em; font-weight: 600; margin-bottom: .7em; }
.m-kopfzeile { font-size: 1.15em; color: #888; padding: .3em .8em; border-bottom: .08em solid #ddd; margin-bottom: .3em; }
.m-zeile { display: flex; align-items: center; gap: .8em; padding: .5em .8em; border-radius: .6em; font-size: 1.6em; }
.m-zeile.an { background: #0A66E0; color: #fff; }
.m-zeile.neu { animation: m-ein .3s ease-out; }
.m-zeile.gedrueckt { background: rgba(10, 102, 224, .25); }
.m-ico { flex: none; width: 1.7em; height: 1.7em; border-radius: .4em; background: #C9CDD6; overflow: hidden; }
.m-ico img { width: 100%; height: 100%; }
.m-ico.zip { background: #F1F1F4; border: .08em solid #bbb; }
.m-ico.prog { background: linear-gradient(135deg, #8EC5FF, #5E7BF0); }
.m-ico.ordner { background: #7CC4FF; }

.m-panel { position: relative; }
.m-roller { transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.m-reihe { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em .9em; font-size: 1.45em; border-bottom: .06em solid #eee; }
.m-reihe em { font-style: normal; color: #777; }
.m-roller h6 { font-size: 1.4em; font-weight: 600; margin: 1.2em 0 .4em; }
.m-block { background: #F5F5F7; border-radius: .6em; }

.m-dialog { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 10; width: 36em; padding: 1.6em; border-radius: 2em; background: rgba(250, 250, 252, .97); box-shadow: 0 2.4em 7em -1em rgba(8, 0, 28, .8); animation: m-ein .22s ease-out; }
.m-dialog h5 { font-size: 1.7em; font-weight: 600; margin: .4em 0 .35em; }
.m-dialog p { font-size: 1.4em; color: #333; margin-bottom: .5em; }
.m-warn { display: block; width: 3.6em; height: 3.6em; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #555 26%, #BDBDC4 28%, #E2E2E8 100%); position: relative; }
.m-warn::after { content: "!"; position: absolute; right: -.6em; bottom: -.3em; width: 1.6em; height: 1.5em; font: 700 1.3em/1.6em var(--sans); text-align: center; background: #FFCC00; color: #111; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.m-finger { display: block; width: 3.4em; height: 3.4em; border-radius: 50%; background: conic-gradient(#FF3B6B, #FF9F0A, #FF3B6B); }
.m-btn { display: block; width: 100%; margin-top: .5em; padding: .55em 1em; border: 0; border-radius: 2em; font: 500 1.5em/1.3 var(--sans); color: #1c1c1e; background: #E7E7EC; pointer-events: none; transition: transform .1s, filter .1s; }
.m-btn.blau { background: #0A84FF; color: #fff; }
.m-btn.schwarz { background: #141414; color: #fff; border-radius: .6em; }
.m-btn.haupt { width: auto; display: inline-block; color: #fff; border-radius: .9em; padding: .65em 1.8em; background: linear-gradient(180deg, #E8338A, #C21062); box-shadow: 0 .8em 2em -.4em rgba(232, 51, 138, .7); }
.m-btn.gedrueckt { transform: scale(.96); filter: brightness(.85); }
.m-block .m-btn { width: auto; margin: 0; flex: none; border-radius: .6em; font-size: 1em; }

.m-browser { display: flex; flex-direction: column; left: 4em; right: 4em; background: #F4F2F8; }
.m-tabs { display: flex; align-items: center; gap: .6em; padding: .9em 1.2em .5em; }
.m-tabs .m-ampel { margin: 0 1em 0 0; }
.m-tab { padding: .4em 1.1em; border-radius: .7em; font-size: 1.35em; background: rgba(0, 0, 0, .05); color: #555; }
.m-tab.an { background: #fff; color: #111; box-shadow: 0 .1em .4em rgba(0, 0, 0, .15); }
.m-adresse { margin: .1em 1.2em .7em; padding: .3em 1em; font-size: 1.05em; color: #666; border-radius: 1em; background: rgba(0, 0, 0, .05); }
.m-inhalt { position: relative; flex: 1; min-height: 0; overflow: hidden; color: #fff; background: linear-gradient(135deg, #24104F, #3E1474 50%, #5A1880); }
.m-app { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6em; height: 100%; padding: 1.6em; }
.m-app-links { min-height: 0; padding: 1em; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 1fr); gap: .8em; border-radius: 1.6em; background: rgba(255, 255, 255, .07); border: .08em solid rgba(255, 255, 255, .1); }
.m-app-rechts { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7em; text-align: center; }
.m-app-titel { font-size: 2.7em; font-weight: 300; line-height: 1.1; }
.m-app-sub { font-size: 1.4em; color: rgba(255, 255, 255, .78); }
.m-app .m-btn { margin-top: .9em; }
.m-sort { position: absolute; bottom: .4em; z-index: 3; }
.m-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.m-app-karten .karte { padding: .7em .9em; border-radius: 1em; }
.m-app-karten .kopf { font-size: 1.1em; }
.m-app-karten .kopf .n { min-width: 1.8em; height: 1.8em; padding: 0 .4em; font-size: .95em; }
.m-app-karten .stapel { margin-top: .4em; min-height: 0; }

.m-konsens { position: absolute; inset: 0; color: #1c1c1e; background: #fff; padding: 2em 9em; text-align: center; overflow: hidden; }
.m-konsens h5 { font-size: 2em; font-weight: 500; margin-bottom: .9em; }
.m-konsens p { font-size: 1.5em; color: #555; }
.m-konsens ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: block; text-align: left; font-size: 1.4em; }
.m-konsens li { padding: .35em 0 .35em 1.6em; position: relative; color: #333; }
.m-konsens li::before { content: "✓"; position: absolute; left: 0; color: #2E9E5B; }
.m-haken { display: block; width: 4em; height: 4em; margin: 2em auto 1em; border-radius: 50%; background: #2E9E5B; position: relative; }
.m-haken::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4em; color: #fff; }

.m-blatt { position: absolute; left: 50%; top: 1em; translate: -50% 0; width: 48em; bottom: 2em; z-index: 5; padding: 1.5em; display: flex; flex-direction: column; color: #1c1c1e; background: #fff; border-radius: 1.4em; box-shadow: 0 2em 5em -1em rgba(8, 0, 28, .8); animation: m-ein .25s ease-out; }
.m-blatt > p { font-size: 1.5em; font-weight: 500; margin-bottom: .8em; }
.m-blatt-liste { flex: 1; min-height: 0; border: .08em solid #e5e5e5; border-radius: .8em; padding: .5em; }
.m-blatt-fuss { display: flex; justify-content: space-between; gap: 1em; margin-top: 1em; }
.m-blatt-fuss .m-btn { width: auto; margin: 0; }

.m-mini-finder { left: 6em; right: auto; top: 7em; bottom: auto; width: 34em; padding: 1.3em; z-index: 6; transition: opacity .35s; }
.m-mini-finder .m-ampel { margin-bottom: 1em; }
.m-mini-finder.m-weg { opacity: .35; }
.m-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.m-raster i { aspect-ratio: 1; border-radius: .5em; background: center / cover; outline: .2em solid #0A84FF; }

@media (prefers-reduced-motion: reduce) {
  .m-fenster, .m-dialog, .m-blatt, .m-zeile.neu, .m-roller, .karte.neu { animation: none; transition: none; }
  .m-zeiger { transition: none; }
}
