/* So funktionieren unsere Apps · Farben, Schrift und Gerät wie auf der Startseite (samples/neu/neu.css) */
:root {
  --koralle: #F2704A; --lila: #A259B5;
  --feder: cubic-bezier(.22, 1, .36, 1);
  --rand: clamp(16px, 4vw, 40px);
}
:root, [data-thema="nacht"] {
  --grund: #0A0A0C; --karte: #16161B; --karte-hoch: #1C1C22;
  --linie: #26262E; --linie-stark: #34343E;
  --text: #F5F5F7; --leise: #A1A1AB; --sehr-leise: #74747F;
  --akzent: #F2704A; --akzent-text: #F2704A;
  --glas: rgba(20, 20, 26, .62); --glas-rand: rgba(255, 255, 255, .09);
  --pillen-grund: rgba(255, 255, 255, .09);
  --geraet-schatten: rgba(0, 0, 0, .7);
  color-scheme: dark;
}
[data-thema="tag"] {
  --grund: #F4F4F7; --karte: #FFFFFF; --karte-hoch: #FAFAFC;
  --linie: #E1E1E8; --linie-stark: #CFCFD9;
  --text: #111116; --leise: #55555F; --sehr-leise: #85858F;
  --akzent-text: #B8431E;
  --glas: rgba(255, 255, 255, .72); --glas-rand: rgba(10, 10, 25, .08);
  --pillen-grund: rgba(10, 10, 25, .06);
  --geraet-schatten: rgba(40, 28, 70, .35);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
h1, h2 { font-family: "Outfit", ui-sans-serif, sans-serif; font-weight: 500; margin: 0; text-wrap: balance; }
a { color: inherit; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-marke { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ── Kopfzeile ── */
.kopfzeile {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) var(--rand) 10px;
  background: var(--glas); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--glas-rand);
}
.zurueck { display: inline-flex; align-items: center; gap: 4px; justify-self: start; text-decoration: none; font-size: 15px; color: var(--leise); padding: 8px 10px 8px 4px; border-radius: 999px; }
.zurueck:hover { color: var(--text); }
.marke { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 19px/1 "Outfit", sans-serif; letter-spacing: -.01em; }
.thema { justify-self: end; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--pillen-grund); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.thema .mond, [data-thema="tag"] .thema .sonne { display: none; }
[data-thema="tag"] .thema .mond { display: block; }

/* ── Auftakt ── */
.auftakt { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 9vw, 104px) var(--rand) clamp(24px, 4vw, 40px); text-align: center; }
.ueber { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--pillen-grund); color: var(--akzent-text); font-size: 14px; font-weight: 500; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin: 0 auto; }
.unter { margin: 18px auto 0; max-width: 46ch; color: var(--leise); font-size: clamp(16px, 1.4vw, 19px); }
.leiste {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px;
}
.leiste a {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  text-decoration: none; font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--linie);
  transition: background-color .2s, box-shadow .2s;
}
.leiste a:hover, .leiste a[aria-current="true"] { background: var(--karte-hoch); box-shadow: inset 0 0 0 1px var(--linie-stark); }
.leiste img { width: 30px; height: 30px; border-radius: 8px; }

/* ── Je App ── */
.app {
  max-width: 1040px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--rand);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center;
  border-top: 1px solid var(--linie);
}
.auftakt + .app { border-top: 0; }
.geraet { position: relative; justify-self: center; }
.kopf { display: flex; align-items: center; gap: 14px; }
.kopf img { width: 56px; height: 56px; border-radius: 14px; }
h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.status { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 999px; font-size: 13px; color: var(--leise); box-shadow: inset 0 0 0 1px var(--linie); }
.bald-status { color: var(--akzent-text); }
.satz { margin: 20px 0 0; font: 500 clamp(22px, 2.2vw, 28px)/1.2 "Outfit", sans-serif; letter-spacing: -.02em; }

.schritte { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.schritte button {
  position: relative; width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px 14px; border: 0; border-radius: 16px; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  transition: background-color .3s var(--feder);
}
.schritte button:hover { background: var(--pillen-grund); }
.schritte button[aria-current="true"] { background: var(--karte-hoch); box-shadow: inset 0 0 0 1px var(--linie); }
.nr { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--leise); box-shadow: inset 0 0 0 1px var(--linie-stark); transition: background-color .3s, color .3s, box-shadow .3s; }
[aria-current="true"] .nr { background: var(--akzent); color: #140A06; box-shadow: none; }
.was b { display: block; font-weight: 600; font-size: 16px; line-height: 1.35; padding-top: 3px; }
.was small { display: block; color: var(--leise); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.balken { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--linie); opacity: 0; transition: opacity .3s; }
[aria-current="true"] .balken { opacity: 1; }
.balken i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--koralle), var(--lila)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.laden { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 15px; border-radius: 999px; white-space: nowrap;
  background: var(--text); color: var(--grund); text-decoration: none; transition: transform .2s var(--feder);
}
.store:hover { transform: translateY(-1px); }
.store span { display: grid; line-height: 1.15; font-weight: 600; font-size: 16px; }
.store small { font-size: 10.5px; font-weight: 500; opacity: .7; }
.bald { color: var(--leise); font-size: 15px; }

/* ── Gerät (wie auf der Startseite) ── */
.iphone {
  --b: clamp(220px, 24vw, 290px);
  --m1: #6f6f75; --m2: #e9e9ee; --m3: #c6c6cc; --m4: #93939a; --m5: #d8d8de;
  position: relative; width: var(--b); height: calc(var(--b) * 2.0923);
  padding: calc(var(--b) * .017); border-radius: calc(var(--b) * .1235);
  background: linear-gradient(100deg, var(--m1) 0%, var(--m2) 5%, var(--m3) 11%, var(--m4) 20%, var(--m5) 47%, var(--m4) 68%, var(--m2) 86%, var(--m1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 6px rgba(6, 8, 15, .18), 0 calc(var(--b) * .16) calc(var(--b) * .3) calc(var(--b) * -.12) var(--geraet-schatten);
}
.iphone-schirm { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f4efea; border-radius: calc(var(--b) * .1065); }
.iphone-schirm video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone-insel { position: absolute; z-index: 2; left: 50%; top: calc(var(--b) * .044); width: calc(var(--b) * .29); height: calc(var(--b) * .085); translate: -50% 0; border-radius: 999px; background: #000; }
.iphone-glanz { position: absolute; z-index: 3; inset: calc(var(--b) * .017); border-radius: calc(var(--b) * .1065); pointer-events: none; background: linear-gradient(104deg, transparent 30%, rgba(255, 255, 255, .09) 44%, transparent 58%); }

.spielen {
  position: absolute; z-index: 4; right: -14px; bottom: 28px; width: 48px; height: 48px; border-radius: 999px; border: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--glas); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--glas-rand), 0 10px 24px -10px rgba(0, 0, 0, .5);
  transition: transform .2s var(--feder);
}
.spielen:active { transform: scale(.94); }
.spielen .ic { width: 20px; height: 20px; }
.spielen.laeuft .ic { fill: currentColor; stroke: none; }

.fuss { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 48px var(--rand) calc(48px + env(safe-area-inset-bottom)); color: var(--sehr-leise); font-size: 14px; border-top: 1px solid var(--linie); }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); }

@media (max-width: 760px) {
  /* Handy: Name und Satz oben, darunter Gerät und Schritte NEBENEINANDER, Store-Knöpfe unten.
     .text löst sich dafür in das Raster der App auf (display: contents). */
  .app {
    grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: center;
    grid-template-areas: "kopf kopf" "satz satz" "geraet schritte" "laden laden";
  }
  .text { display: contents; }
  .kopf { grid-area: kopf; }
  .satz { grid-area: satz; margin: 14px 0 22px; font-size: 22px; }
  .geraet { grid-area: geraet; }
  .schritte { grid-area: schritte; margin: 0; gap: 2px; }
  .laden { grid-area: laden; margin-top: 24px; }
  .iphone { --b: min(42vw, 200px); }
  .schritte button { grid-template-columns: 22px 1fr; gap: 9px; padding: 8px 8px 11px; border-radius: 12px; }
  .nr { width: 22px; height: 22px; font-size: 11.5px; }
  .was b { font-size: 14px; line-height: 1.3; padding-top: 1px; }
  .was small { font-size: 12.5px; line-height: 1.35; }
  .balken { left: 8px; right: 8px; bottom: 4px; }
  .spielen { right: 8px; bottom: 14px; width: 40px; height: 40px; }
  .spielen .ic { width: 17px; height: 17px; }
  .leiste { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); }
  .leiste::-webkit-scrollbar { display: none; }
  .leiste a { flex: none; }
  .spielen { right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 370px) {
  .was small { display: none; }
}
