/* Fahrmodus – Designsprache Phuong (Mastermind: 04 Wissen/Designsprache Phuong): Licht statt Effekte, ein Tiefenmittel,
   Bernstein nur für die Hauptaktion. Im Auto zählt: groß, ruhig, nachts dunkel (blendet nicht). */
@font-face { font-family: "Jost"; src: url("jost.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
:root {
  --bg: #f4f4f1; --ink: #161616; --mid: #4a4a47; --soft: #7a7a76; --line: #e3e3de; --amber: #f2a93b;
  --licht-hoert: 168, 226, 205; --licht-denkt: 242, 169, 59; --licht-spricht: 160, 196, 240; --licht-weg: 232, 150, 140;
  --schatten: 0 40px 80px -30px rgba(30,30,30,.18), 0 2px 8px rgba(30,30,30,.03);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0c; --ink: #e9e9e4; --mid: #a3a39e; --soft: #6c6c68; --line: #232325;
          --schatten: 0 0 0 1px rgba(255,255,255,.07), 0 0 26px rgba(255,255,255,.04); }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
  font: 400 20px/1.45 Jost, "Futura PT", Helvetica, sans-serif; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input { font: inherit; color: inherit; background: none; border: 0; }
main { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
       padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); text-align: center; }
.label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
h1 { font-weight: 400; font-size: 34px; letter-spacing: -.01em; }
.hinweis { color: var(--mid); font-size: 18px; max-width: 22em; }

/* Der eine große Knopf. Licht (weicher Farbball) zeigt den Zustand – erkennbar aus dem Augenwinkel. */
#knopf { width: min(68vw, 300px); aspect-ratio: 1; border-radius: 50%; position: relative; cursor: pointer;
         background: var(--bg); box-shadow: var(--schatten); -webkit-tap-highlight-color: transparent; }
#knopf .kern { position: absolute; inset: 18%; border-radius: 50%; transition: background .5s, opacity .5s, transform .6s;
               background: radial-gradient(circle at 50% 45%, rgba(var(--licht), .95), rgba(var(--licht), .0) 70%);
               filter: blur(6px); opacity: .9; }
body { --licht: 200, 200, 195; }
body[data-zustand="aus"] #knopf .kern { background: radial-gradient(circle, var(--amber) 0 22%, rgba(242,169,59,.0) 62%); filter: blur(2px); }
body[data-zustand="bereit"], body[data-zustand="hoert"] { --licht: var(--licht-hoert); }
body[data-zustand="denkt"], body[data-zustand="laedt"] { --licht: var(--licht-denkt); }
body[data-zustand="denkt"] #knopf .kern { animation: atmen 1.4s ease-in-out infinite; }
body[data-zustand="spricht"] { --licht: var(--licht-spricht); }
body[data-zustand="weg"] { --licht: var(--licht-weg); }
body[data-zustand="pause"] #knopf .kern, body[data-zustand="beendet"] #knopf .kern { opacity: .25; }
@keyframes atmen { 50% { transform: scale(.82); opacity: .6; } }

.zustand { font-size: 30px; font-weight: 400; letter-spacing: -.005em; min-height: 1.4em; }
.worte { min-height: 6.5em; max-width: 26em; display: flex; flex-direction: column; gap: 10px; }
.du { color: var(--soft); font-size: 17px; }
.er { color: var(--mid); font-size: 19px; }
nav { display: flex; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .4s; }
body.an nav { opacity: 1; pointer-events: auto; }
.leise { padding: 16px 24px; border-radius: 999px; border: 1px solid var(--line); font-size: 18px; color: var(--mid); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .leise { border-color: #3a3a3c; } }
.info { color: var(--soft); font-size: 14px; letter-spacing: .04em; min-height: 1.2em; }
form { display: flex; flex-direction: column; gap: 14px; width: min(90vw, 340px); }
input { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 20px; background: rgba(255,255,255,.04); -webkit-user-select: text; user-select: text; }
.haupt { border-radius: 14px; padding: 16px; font-size: 20px; background: var(--amber); color: #1a1a1a; }
