/* Startseite: "Die Seite ist ein Bildschirm". Der Hintergrund ist das Hintergrundbild des Desktops (ein Verlauf über die
   ganze Seite), darauf stehen frei die nachgebauten Elemente von BetterShelf (elemente.css), unten sitzt die Leiste
   (leiste.css). Maße der Elemente in px wie die DIP der App. */
.schirm {
  --akzent: #1F6FEB;
  --akzent-rgb: 31, 111, 235;
  --w: rgba(255, 255, 255, .96);
  --w2: rgba(255, 255, 255, .70);
  --w3: rgba(255, 255, 255, .45);
  --strich: rgba(255, 255, 255, .08);
  --hover: rgba(255, 255, 255, .18);
  --gewaehlt: rgba(var(--akzent-rgb), .40);
  --zone: rgba(255, 255, 255, .07);
  --kachel: rgba(255, 255, 255, .10);
  --flyout: rgba(40, 40, 40, .94);
  --leiste-h: 84px;
  color-scheme: dark;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 88% -80px, rgba(127, 170, 245, .55), transparent 62%),
    radial-gradient(900px 700px at -10% 420px, rgba(15, 27, 45, .35), transparent 60%),
    linear-gradient(180deg, #1C63DB 0, #184FB5 26%, #122F66 68%, #0F1B2D 100%) #0F1B2D;
  padding-bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
html:has(.schirm) { scroll-padding-bottom: calc(84px + 32px); scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html:has(.schirm) { scroll-behavior: smooth; } }
.schirm [hidden] { display: none !important; }
.schirm ::selection { background: #FFD600; color: #0F1B2D; }
.schirm :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.schirm button, .schirm input { font: inherit; color: inherit; }
.schirm button { cursor: pointer; }
.sprite { position: absolute; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Kopf: nur Marke und Sprache ---- */
.kopf { padding: 26px 0 0; }
.kopf .marke { font-size: 20px; letter-spacing: -0.01em; }
.kopf .marke svg { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.sprache { display: flex; padding: 3px; gap: 2px; border-radius: 8px; background: rgba(15, 27, 45, .28); font-size: 14px; }
.sprache a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: 4px 12px; border-radius: 6px; }
.sprache a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.sprache a[aria-current] { background: #fff; color: #0F1B2D; font-weight: 600; }

/* ---- Held ---- */
.held {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 92px) 0 clamp(56px, 8vw, 120px);
}
.held h1 {
  font: 600 clamp(42px, 6.2vw, 88px)/.98 var(--display);
  letter-spacing: -0.038em;
  margin: 0;
  max-width: 13.5ch;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 44ch; margin: clamp(22px, 3vw, 36px) 0 0; color: rgba(255, 255, 255, .92); }
.store { display: inline-block; margin-top: 28px; font-weight: 600; padding: 12px 20px; border-radius: 6px; background: #fff; color: #0F1B2D; cursor: default; white-space: nowrap; }
.probier { grid-column: 1 / -1; margin: clamp(8px, 2vw, 32px) 0 0; max-width: 62ch; font-size: 16px; color: rgba(255, 255, 255, .86); }
.probier .kn { margin-left: 6px; vertical-align: middle; }
@media (max-width: 900px) { .held { grid-template-columns: minmax(0, 1fr); } }

/* Bildschirm im Held: Maße in cqw (Prozent der Breite von .hbild), damit er als Ganzes mitwächst.
   .mit = mit BetterShelf: obere Reihe fährt aus, das Fenster rückt hoch, eine Zeile wird markiert und liegt als Karte unten. */
.held-bild { display: grid; justify-items: center; gap: 18px; min-width: 0; }
.hbild { container-type: inline-size; width: min(100%, 560px); }
.hbild-schirm {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2.2cqw; border: 1.3cqw solid #0B1320;
  background: radial-gradient(70% 90% at 80% 10%, #5B8FEF, transparent 70%), linear-gradient(160deg, #2A5FC4, #16305F 70%, #101F3B);
  box-shadow: 0 30px 70px rgba(8, 16, 32, .5), 0 0 0 1px rgba(255, 255, 255, .14);
}
.hbild-fuss { width: 26%; height: 2.6cqw; margin: 0 auto; background: #0B1320; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.hbild-fenster {
  position: absolute; left: 22%; right: 9%; top: 9%; bottom: 13cqw; display: grid; align-content: start; gap: 2.1cqw; padding: 0 4cqw;
  border-radius: 1.4cqw; background: #F5F7FB; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .35); overflow: hidden;
  transition: bottom .5s cubic-bezier(.2, .8, .2, 1);
}
.hbild-fenster.hinten { left: 6%; right: 46%; top: 20%; background: #1B2433; }
.hbild-fenster span { height: 4.4cqw; margin: 0 -4cqw 1.6cqw; background: #E3E8F1; }
.hbild-fenster.hinten span { background: #263247; }
.hbild-fenster b { height: 1.7cqw; border-radius: 1cqw; background: #C9D2E0; }
.hbild-fenster .z1 { width: 46%; height: 2.6cqw; background: #0F1B2D; margin-bottom: 1cqw; }
.hbild-fenster .z3 { width: 72%; transition: background .25s, box-shadow .25s; }
.hbild-fenster .z4 { width: 88%; } .hbild-fenster .z5 { width: 60%; } .hbild-fenster .z6 { width: 80%; }
.hbild-leiste { position: absolute; left: 0; right: 0; bottom: 0; background: #202020; border-top: 1px solid rgba(255, 255, 255, .1); }
.mr.oben { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
.mr.oben > div { min-height: 0; overflow: hidden; display: flex; align-items: center; gap: 1.4cqw; padding: 0 2cqw; }
.mz { display: flex; align-items: center; gap: 1cqw; height: 5cqw; margin: .8cqw 0 0; padding: 0 1cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .08); flex: none; }
.mz i { width: 2.6cqw; height: 2.6cqw; border-radius: .7cqw; background: rgba(255, 255, 255, .5); }
.mz.hk { flex: 1; min-width: 0; overflow: hidden; }
.mz.hk i { flex: none; width: 15cqw; height: 3.4cqw; border-radius: .8cqw; background: rgba(255, 255, 255, .16); }
.mz.hk .neu { width: 0; margin-right: -1cqw; background: #FFD600; transition: width .35s cubic-bezier(.2, .8, .2, 1), margin .35s; }
.mz.hz i { width: 8cqw; background: rgba(255, 255, 255, .28); }
.mr.unten { position: relative; display: flex; align-items: center; justify-content: center; height: 7.4cqw; }
.ma { display: flex; gap: 1.5cqw; }
.ma i { width: 4.2cqw; height: 4.2cqw; border-radius: 1.1cqw; background: #64748B; }
.ma .st { background: #4C8DF6; } .ma .a0 { background: #E8A33D; } .ma .a1 { background: #3B82F6; } .ma .a2 { background: #7C3AED; }
.ma .a3 { background: #0EA5E9; } .ma .a4 { background: #22C55E; } .ma .a5 { background: #EC4899; }
.mu { position: absolute; right: 2.4cqw; display: grid; gap: .9cqw; justify-items: end; }
.mu i { width: 7cqw; height: 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .7); }
.mu i + i { width: 9cqw; background: rgba(255, 255, 255, .4); }
.hbild.mit .mr.oben { grid-template-rows: 1fr; }
.hbild.mit .mr.oben > div { padding-bottom: .2cqw; }
.hbild.mit .hbild-fenster { bottom: 19cqw; }
.hbild.mit .z3 { background: #FFD600; box-shadow: 0 0 0 .7cqw #FFD600; transition-delay: .8s; }
.hbild.mit .mz.hk .neu { width: 15cqw; margin-right: 0; transition-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .hbild *, .hbild.mit * { transition: none !important; } }
.wechsel { display: flex; padding: 3px; gap: 2px; border-radius: 8px; background: rgba(15, 27, 45, .34); font-size: 14px; }
.wechsel button { border: 0; background: none; color: rgba(255, 255, 255, .82); padding: 6px 14px; border-radius: 6px; white-space: nowrap; }
.wechsel button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.wechsel button[aria-pressed="true"] { background: #fff; color: #0F1B2D; font-weight: 600; }

/* ---- Abschnitte: Text und Element nebeneinander ---- */
.ab {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 10vw, 148px) 0;
}
.ab.gespiegelt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ab.gespiegelt .wort { order: 2; }
.ab.breit, .ab-tl, .ab-kop { grid-template-columns: minmax(0, 1fr); }
.ab > .ding { justify-self: center; }
.wort h2 { font: 600 clamp(34px, 4.4vw, 60px)/1.02 var(--display); letter-spacing: -0.028em; margin: 0 0 18px; }
.wort p { margin: 0; max-width: 44ch; color: rgba(255, 255, 255, .88); }
.wort.weit p { max-width: 62ch; }
.wort .kuerzel, .wort .hinweis { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.schirm kbd { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .30); color: #fff; }
@media (max-width: 820px) {
  .ab, .ab.gespiegelt { grid-template-columns: minmax(0, 1fr); }
  .ab.gespiegelt .wort { order: 0; }
  .ab > .ding { justify-self: start; }
}

/* ---- Bausteine der Oberfläche von BetterShelf ---- */
.fly {
  background: var(--flyout); border: 1px solid var(--strich); border-radius: 8px; padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
  color: var(--w); font-size: 13px; line-height: 1.4; max-width: 100%;
}
.kn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--strich); color: var(--w); font-size: 13px; white-space: nowrap;
}
.kn:hover { background: var(--hover); }
.kn.akzent { background: var(--akzent); border-color: transparent; color: #fff; }
.kn.akzent:hover { background: #3B82F6; }
.kn.hell { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); color: #fff; }
.kn.hell:hover { background: rgba(255, 255, 255, .26); }
.kn.stumm { cursor: default; color: var(--w2); }
.kn.stumm:hover { background: rgba(255, 255, 255, .08); }
.sym {
  display: inline-grid; place-items: center; width: 38px; height: 32px; border-radius: 6px; border: 0; background: none; color: var(--w);
}
.sym:hover { background: var(--hover); }
.sym[aria-pressed="true"] { background: var(--gewaehlt); }
.tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tabs [role="tab"] { height: 28px; padding: 0 12px; border-radius: 6px; border: 0; background: none; color: var(--w2); font-size: 13px; white-space: nowrap; position: relative; }
.tabs [role="tab"]:hover { background: var(--hover); color: var(--w); }
.tabs [role="tab"][aria-selected="true"] { background: var(--kachel); color: var(--w); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: var(--akzent); }
.tabs .frei { flex: 1; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 0;
  background: #202020; color: var(--w); font-size: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.pille small { color: var(--w2); font-size: 12px; }
button.pille:hover { background: #2c2c2c; }

/* ---- Außerdem dabei, Schluss, Fuß ---- */
.mehr { padding: clamp(64px, 10vw, 148px) 0 0; }
.mehr h2 { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 36px; }
.mehr dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 40px; margin: 0; }
.mehr dt { font: 600 19px var(--display); }
.mehr dd { margin: 4px 0 0; color: rgba(255, 255, 255, .8); font-size: 16px; }
.mehr dd .pille { display: flex; width: max-content; max-width: 100%; margin-top: 14px; }
.mehr dd .pille[hidden] { display: none; }
.tzeile { display: flex; gap: 6px; margin-top: 14px; }
.mehr dd .tzeile .pille { margin-top: 0; }
.pille .cover { width: 20px; height: 20px; margin: 0; }
.pille .lauf { width: 44px; margin: 0; }
.pille.laeuft .i { color: #7FAAF5; }
.monitore i { width: 22px; height: 14px; border-radius: 2px; background: #151a22; border: 1px solid rgba(255, 255, 255, .25); border-bottom: 3px solid var(--akzent); }
.schluss { font: 600 clamp(30px, 4.4vw, 60px)/1.05 var(--display); letter-spacing: -0.028em; margin: clamp(80px, 12vw, 170px) 0 0; }
.schluss span { display: block; font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--fliess); letter-spacing: 0; color: rgba(255, 255, 255, .8); margin-top: 14px; }
.schirm .fuss { border-top: 0; margin-top: clamp(64px, 9vw, 120px); padding-bottom: 40px; color: rgba(255, 255, 255, .66); }
.schirm .fuss a { color: rgba(255, 255, 255, .8); }
.schirm .fuss a:hover { color: #fff; }
