/* Kreative Zukunfts-Oberfläche. Eigene Umsetzung, keine kopierten Assets. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --grund: #050816;
  --flaeche: rgba(9, 15, 34, .82);
  --text: #edf5ff;
  --muted: #9caecb;
  --cyan: #00e5ff;
  --violett: #9b72ff;
  --pink: #ff4fa8;
  --gruen: #4dffb5;
  --gold: #ffc857;
  --linie: rgba(153, 208, 255, .18);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}
html, body { height: 100%; }
body {
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); overflow: hidden; user-select: none; background: var(--grund);
  -webkit-font-smoothing: antialiased;
}
body[data-klasse="ios"], body[data-klasse="android"] { background: var(--grund); }
.versteckt { display: none !important; }
.falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Kurzprofil in index.html: nur für Crawler und Screenreader, optisch ausgeblendet */
.kurzprofil { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

#welt { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aura { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 70% 45%, transparent 0, rgba(5,8,22,.08) 35%, rgba(5,8,22,.68) 100%);
}
.raster { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .1;
  background-image: linear-gradient(rgba(0,229,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.14) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, #000 45%, transparent);
}

/* Sperrbildschirm mit eigenem Foto; Neon bleibt Desktop und Homescreen */
.sperre { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; padding: 0 16px max(16px, env(safe-area-inset-bottom)); touch-action: none; overflow: hidden; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0) 36%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)), #111 url(/bilder/portrait-architectural.webp) center 28% / cover;
  transition: transform .5s cubic-bezier(.65,0,.2,1), opacity .4s; }
.sperre.weg { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.uhr { margin-top: max(8vh, calc(env(safe-area-inset-top) + 36px)); text-align: center; text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.datum { font-size: 20px; font-weight: 600; line-height: 1.2; opacity: .92; }
.zeit { font-size: clamp(84px, 9vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hinweise { margin-top: auto; width: min(370px, 100%); display: flex; flex-direction: column; gap: 8px; }
.hinweis { display: flex; gap: 11px; align-items: center; padding: 11px 14px; border-radius: 20px; text-align: left; cursor: pointer; animation: rein .5s ease both;
  background: rgba(46,46,50,.55); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.hinweis:hover { background: rgba(62,62,68,.65); }
.hinweis-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; overflow: hidden; }
.hinweis-icon svg, .app-symbol svg, .dock-knopf svg { width: 100%; height: 100%; display: block; }
.hinweis b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; color: #fff; }
.hinweis p { margin: 0; font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.88); }
@keyframes rein { from { opacity: 0; transform: translateY(14px); } }
.unlock-knopf { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255,255,255,.85); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; animation: hochwippen 2.4s ease-in-out infinite; }
.sperre-ki { position: absolute; margin: 0; left: 12px; top: max(12px, env(safe-area-inset-top)); padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 500; line-height: 1.2; }
.unlock-knopf svg { width: 22px; height: 9px; }
@keyframes hochwippen { 50% { transform: translateY(-4px); } }

/* Menueleiste: nur echte Bedienelemente */
.desktop { position: fixed; inset: 0; z-index: 3; }
.menueleiste { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #fff; font: 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
.menue-links, .menue-rechts { display: flex; align-items: center; gap: 2px; }
.marke, .aktiv-label { font-weight: 700; padding: 0 8px; }
.menue-app { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.menue-app:hover { background: rgba(255,255,255,.2); }
.menue-rechts { gap: 14px; padding-right: 4px; }
.menue-rechts svg { height: 13px; width: auto; }
@media (max-width: 800px) { .aktiv-label, .menue-rechts svg { display: none; } }
.desktop-claim { position: absolute; top: 15%; left: 6%; pointer-events: none; }
.desktop-claim span { font: 10px/1 var(--mono); letter-spacing: .38em; color: var(--cyan); }
.desktop-claim strong { display: block; margin-top: 15px; font-size: clamp(42px, 6.5vw, 96px); line-height: .9; letter-spacing: -.065em; color: transparent; -webkit-text-stroke: 1px rgba(237,245,255,.55); }
.desktop-claim small { display: block; margin-top: 20px; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .2em; }

/* Fenster */
.fenster-ebene { position: absolute; inset: 26px 0 0; }
.fenster { position: absolute; display: flex; flex-direction: column; overflow: hidden; color: var(--text); background: var(--flaeche); backdrop-filter: blur(28px) saturate(1.4); border: 1px solid rgba(153,208,255,.25); border-radius: 14px; box-shadow: 0 24px 90px rgba(0,0,0,.6), 0 0 40px rgba(0,229,255,.04); }
.fenster.aktiv { border-color: rgba(0,229,255,.6); box-shadow: 0 24px 90px rgba(0,0,0,.6), 0 0 32px rgba(0,229,255,.09); }
.fenster.zoom { border-radius: 0; }
.fenster-kopf { height: 38px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 13px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--linie); cursor: default; }
.ampel { width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; }
.ampel.rot { background: #ff6b81; } .ampel.gelb { background: var(--gold); } .ampel.gruen { background: var(--gruen); }
.fenster-titel { flex: 1; text-align: center; font: 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fenster-inhalt { flex: 1; overflow: auto; padding: 20px; }

/* Dock */
.dock { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 8px; padding: 9px 10px; border-radius: 19px; background: rgba(8,15,32,.6); backdrop-filter: blur(28px); border: 1px solid rgba(153,208,255,.28); box-shadow: 0 12px 50px rgba(0,0,0,.4); }
.dock-knopf { width: 48px; height: 48px; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; display: grid; place-items: center; padding: 0; overflow: hidden; background: rgba(255,255,255,.035); transition: width .08s linear, height .08s linear, border-color .2s, transform .2s; }
.dock-knopf:hover { border-color: var(--cyan); transform: translateY(-4px); }
.dock-knopf.offen { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,229,255,.3); }
.dock-trenner { width: 1px; align-self: stretch; margin: 5px 3px; background: var(--linie); }

/* Mobil */
.mobil { position: fixed; inset: 0; z-index: 3; }
.mobil-marke { margin: 30px 20px 0; font: 10px/1 var(--mono); letter-spacing: .22em; color: var(--cyan); }
.mobil-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 0; padding: 30px 18px; }
.mobil-dock { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; gap: 12px; padding: 10px 13px; border-radius: 18px; background: rgba(8,15,32,.65); border: 1px solid var(--linie); backdrop-filter: blur(24px); }
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.app-symbol { width: 54px; height: 54px; border: 1px solid var(--linie); border-radius: 13px; cursor: pointer; display: grid; place-items: center; padding: 0; overflow: hidden; background: rgba(255,255,255,.035); }
.app-label { font: 9px/1.3 var(--mono); letter-spacing: .06em; color: #b4c8e5; }
.mobil-dock .app-label { display: none; }
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(5,8,22,.94); backdrop-filter: blur(25px); transform: translateY(100%); transition: transform .25s ease; }
.overlay.offen { transform: none; }
.overlay-kopf { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--linie); font: 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.overlay-zurueck { border: 0; background: none; font: inherit; color: var(--cyan); cursor: pointer; }
.overlay-inhalt { flex: 1; overflow: auto; padding: 18px; }

/* Banner / Rechtsfuss */
.banner { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; width: min(370px, 94vw); padding: 12px 15px; border-radius: 20px; cursor: pointer; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  background: rgba(46,46,50,.78); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.banner b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.banner p { margin: 0; font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.88); }
.recht-fuss { position: absolute; left: 15px; bottom: 17px; z-index: 5; }
.recht-fuss-knopf { border: 0; background: none; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .1em; cursor: pointer; }
.recht-fuss-knopf:hover { color: var(--cyan); }

/* Inhalte */
h2 { font-size: 25px; letter-spacing: -.035em; margin-bottom: 10px; }
h3 { font-size: 15px; margin-bottom: 8px; }
p { color: #a9bdd8; font-size: 13px; margin-bottom: 10px; }
.knopf { padding: 10px 18px; border: 1px solid var(--cyan); border-radius: 8px; cursor: pointer; background: var(--cyan); color: #04101e; font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.knopf:hover { box-shadow: 0 0 22px rgba(0,229,255,.3); }
.knopf:disabled { opacity: .35; cursor: default; }
.knopf.zart { background: transparent; color: var(--text); border-color: var(--linie); }
input, textarea, select { padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; font: inherit; background: rgba(255,255,255,.045); color: var(--text); margin-bottom: 8px; width: 100%; }
input::placeholder, textarea::placeholder { color: #7187a7; }
textarea { min-height: 120px; resize: vertical; }
.fehler { color: #ff9eb0; font-size: 12px; min-height: 18px; }
.zaehler { font: 10px/1 var(--mono); color: var(--muted); text-align: right; }
.melde-hinweis, .fenster .melde-hinweis, .overlay .melde-hinweis { margin: 10px 0; font-size: 12px; color: var(--muted); }
.melde-hinweis a { color: inherit; text-decoration: underline; }
.liste { display: grid; gap: 8px; }
.notiz-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.notiz-kopf b { flex: 1; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.zurueck { border: 0; background: none; color: var(--cyan); font: 10px/1 var(--mono); cursor: pointer; padding: 4px 0; }
.ordner { margin: 8px 0 14px; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.ordner-zeile { display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--linie); background: rgba(255,255,255,.03); color: var(--text); padding: 11px 13px; font: inherit; cursor: pointer; }
.ordner-zeile:last-child { border-bottom: 0; }
.ordner-zeile .zahl { color: var(--muted); }
.notiz-zeile { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--linie); background: none; color: var(--text); padding: 10px 0; cursor: pointer; font: inherit; }
.notiz-zeile b { display: block; font-size: 13px; }
.notiz-zeile span { color: var(--muted); font-size: 12px; }
.stift { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--cyan); background: rgba(0,229,255,.12); cursor: pointer; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--linie); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 8px 10px; font: 10px/1 var(--mono); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-pressed="true"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.recht-inhalt h2 { font-size: 20px; }
.recht-inhalt h3 { font: 11px/1 var(--mono); color: var(--cyan); margin: 16px 0 5px; }
.profil-links { display: flex; gap: 10px; margin-top: 14px; }
.profil-link { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; display: block; border: 1px solid var(--linie); }
.profil-link svg { width: 100%; height: 100%; display: block; }

/* Lab */
.lab-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; margin-top: 16px; }
.lab-karte { border: 1px solid var(--linie); background: linear-gradient(145deg, rgba(0,229,255,.055), rgba(155,114,255,.035)); padding: 16px; border-radius: 12px; }
.lab-karte:hover { border-color: var(--cyan); transform: translateY(-2px); }
.lab-icon { width: 32px; height: 32px; margin-bottom: 12px; }
.lab-icon svg { width: 100%; height: 100%; }
.lab-karte b { display: block; font-size: 14px; margin-bottom: 5px; }
.lab-karte p { font-size: 12px; margin-bottom: 10px; }
.lab-karte .stand { font: 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.klein { font: 10px/1.6 var(--mono); color: var(--muted); margin-top: 14px; }
.leistungs-liste { margin-top: 12px; }
.leistungs-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linie); }
.leistungs-zeile b { font-size: 13px; }
.leistungs-zeile span { font: 10px/1.5 var(--mono); color: var(--muted); text-align: right; max-width: 55%; }

/* Fotos */
.fotos { display: flex; flex-direction: column; height: 100%; }
.fotos-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fotos-kopf h2 { font-size: 16px; }
.fotos-bereich { flex: 1; overflow: auto; }
.fotos-bereich h3 { font: 10px/1 var(--mono); color: var(--cyan); margin: 14px 0 6px; }
.foto-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.foto { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; border-radius: 5px; }
.foto.klein { width: 78px; height: 78px; flex: none; }
.foto-reihe { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.album-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.album { position: relative; aspect-ratio: 4/3; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; border-radius: 7px; }
.album-text { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 7px 9px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font: 10px/1 var(--mono); }
.person { border: 1px solid var(--linie); background: rgba(255,255,255,.04); color: var(--text); padding: 8px 12px; border-radius: 7px; cursor: pointer; }
.fotos-leiste { display: flex; gap: 4px; border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 8px; }
.fotos-leiste button { flex: 1; border: 0; background: none; color: var(--muted); font: 10px/1 var(--mono); padding: 6px; cursor: pointer; }
.fotos-leiste button[aria-pressed="true"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.bild-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(3,5,15,.96); display: grid; grid-template-columns: 60px 1fr 60px; grid-template-rows: 1fr auto; align-items: center; }
.bild-gross { grid-column: 2; justify-self: center; position: relative; line-height: 0; }
.bild-gross img { display: block; max-width: calc(100vw - 120px); max-height: 76vh; }
.bild-text { grid-column: 2; text-align: center; padding: 12px; font: 13px/1.6 var(--mono); color: var(--text); }
.bild-text b { color: var(--text); display: block; }
.bild-zu { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.bild-pfeil { border: 0; background: none; color: var(--cyan); font-size: 30px; cursor: pointer; }
.bild-pfeil.links { grid-column: 1; } .bild-pfeil.rechts { grid-column: 3; }

/* ---------- Safari ---------- */
.safari-app { display: flex; flex-direction: column; height: 100%; min-height: 380px; }
.safari-tabs { flex: none; margin: -8px -8px 0; padding: 8px; border: 0; background: #f1f1f3; }
.safari-tabs button { padding: 10px 12px; border-radius: 7px; color: #666; font: 12px/1 -apple-system, sans-serif; letter-spacing: 0; text-transform: none; }
.safari-tabs button[aria-pressed="true"] { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.safari-adresse { display: flex; align-items: center; gap: 9px; margin: 0 -8px; padding: 10px 14px; background: #f1f1f3; color: #777; font: 13px/1 -apple-system, sans-serif; }
.safari-url { flex: 1; padding: 8px 12px; border-radius: 9px; background: #fff; color: #222; }
.safari-extern { color: #333; font-size: 18px; text-decoration: none; }
.safari-beschreibung { flex: none; margin: 0 -8px; padding: 11px 14px; background: #fff; color: #444; }
.safari-rahmen { flex: 1; min-height: 0; margin: 0 -8px -8px; }
.safari-rahmen iframe { display: block; }
.foto { position: relative; }
.ki-label { position: absolute; left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 4px 6px; border-radius: 5px; background: rgba(0,0,0,.85); color: #fff; font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: left; }
.album .ki-label { top: 5px; bottom: auto; }
/* Raster-/78-px-Kacheln: Kurzlabel als randlose Leiste, damit auch „KI-bearbeitet“ in 12 px einzeilig passt */
.foto .ki-label { left: 0; right: 0; bottom: 0; max-width: none; padding: 3px 2px; border-radius: 0 0 5px 5px; text-align: center; white-space: nowrap; }
.bild-gross .ki-label { top: 10px; left: 10px; bottom: auto; max-width: calc(100% - 20px); padding: 6px 9px; font-size: 14px; background: rgba(0,0,0,.75); }
/* Schmale Bildschirme: Panoramabilder sind nur ~110 px hoch, Hinweis kompakt und einzeilig halten */
@media (max-width: 600px) { .bild-gross .ki-label { top: 6px; left: 6px; padding: 3px 6px; font-size: 12px; white-space: nowrap; } }

.herz-animation { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.4)); }
.herz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.herz-titel { position: absolute; z-index: 3; left: 0; right: 0; bottom: 13%; text-align: center; animation: titelEin 2.6s 7.6s cubic-bezier(.16,1,.3,1) both; }
.herz-titel em { display: block; padding: 0 20px; font: italic 400 clamp(28px, 4.4vw, 54px)/1.15 "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif; letter-spacing: .01em;
  color: transparent; background: linear-gradient(100deg, #b38b52 0%, #f7e9cc 22%, #c9a46a 45%, #fff4dc 60%, #b38b52 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.7)); animation: glanz 9s ease-in-out infinite alternate; }
.herz-titel i { display: block; width: 72px; height: 1px; margin: 16px auto; background: linear-gradient(90deg, transparent, #d9b77e, transparent); }
/* Das Foto liegt im Dunkeln, bis sich das Goldherz geschlossen hat (herzen.js, ca. 7 s) */
.bild-overlay:has(.herz-animation) { background: #020204; }
.bild-overlay:has(.herz-animation) .bild-text b { display: none; }
.bild-overlay:has(.herz-animation) .bild-gross { animation: enthuellen 7.4s ease-in both; }
@keyframes enthuellen { 0% { filter: blur(14px) brightness(.18); } 80% { filter: blur(8px) brightness(.38); } 100% { filter: none; } }
@keyframes titelEin { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glanz { to { background-position: 100% 0; } }
.bild-zu, .bild-pfeil, .bild-text { z-index: 4; }


/* Kalender */
.kalender-app { display: flex; flex-direction: column; gap: 8px; }
.kalender-kopf { display: flex; align-items: center; gap: 8px; }
.kalender-kopf h2 { flex: 1; font-size: 15px; }
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.kalender.woche .wt { font: 9px/1 var(--mono); color: var(--muted); padding: 4px 0; }
.kalender .tag { position: relative; border: 0; background: none; color: var(--text); padding: 8px 0; cursor: pointer; font: 11px/1 var(--mono); border-radius: 5px; }
.kalender .tag.fremd { opacity: .3; }
.kalender .tag.heute { background: var(--cyan); color: var(--grund); }
.kalender .tag.gewaehlt { box-shadow: inset 0 0 0 1px var(--cyan); }
.kalender .punkte { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.kalender .punkte i { width: 3px; height: 3px; border-radius: 50%; }
.tag-liste { border-top: 1px solid var(--linie); padding-top: 8px; }
.ereignis { display: flex; justify-content: space-between; width: 100%; border: 0; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.035); color: var(--text); padding: 9px 11px; margin-bottom: 5px; cursor: pointer; font: inherit; text-align: left; }
.ereignis span { color: var(--muted); font: 10px/1.6 var(--mono); }
.kamera-bild { width: 100%; max-height: 300px; object-fit: contain; background: #000; border-radius: 8px; margin-bottom: 10px; }
.kamera-knoepfe { display: flex; gap: 8px; }

/* Spiele */
.spiel-auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spiel-karte { text-align: left; border: 1px solid var(--linie); background: linear-gradient(145deg, rgba(0,229,255,.08), rgba(155,114,255,.08)); color: var(--text); padding: 20px; border-radius: 12px; cursor: pointer; }
.spiel-karte:hover { border-color: var(--cyan); }
.spiel-karte .spiel-glyph { font-size: 30px; display: block; margin-bottom: 12px; }
.spiel-karte b { display: block; font-size: 16px; margin-bottom: 6px; }
.spiel-karte small { color: var(--muted); }
.spiel-status { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font: 11px/1 var(--mono); color: var(--cyan); }
.spiel-status button { margin-left: auto; }
#spiel-canvas { display: block; width: 100%; height: 330px; border: 1px solid var(--linie); border-radius: 10px; background: #050816; touch-action: none; }
.spiel-hilfe { margin-top: 10px; font: 10px/1.5 var(--mono); color: var(--muted); }

@media (max-width: 700px) {
  .desktop-claim { display: none; }
  .dock { gap: 4px; padding: 7px; max-width: 96vw; overflow-x: auto; }
  .dock-knopf { width: 42px; height: 42px; }
  .spiel-auswahl { grid-template-columns: 1fr; }
  .recht-fuss { display: none; }
}
/* Klarere App-Symbole ohne doppelte Icon-Rahmen */
.dock-knopf, .app-symbol { border: 0; background: transparent; border-radius: 14px; }
.app-symbol svg { border-radius: 14px; }
.dock { border-radius: 24px; background: rgba(20,20,24,.5); border-color: rgba(255,255,255,.18); }
.mobil-dock { border-radius: 24px; background: rgba(20,20,24,.5); border-color: rgba(255,255,255,.18); }

/* Mobiler Homescreen als App-Raster, Neon-Welt bleibt dahinter */
.mobil-raster { gap: 26px 0; padding: 28px 14px; }
.app { gap: 6px; }
.app-symbol { width: 60px; height: 60px; }
.app-label { font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.mobil-dock { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); transform: none; justify-content: space-around; padding: 14px 10px; border: 0; border-radius: 32px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); }
.overlay-kopf { display: grid; grid-template-columns: 1fr auto 1fr; padding: max(14px, env(safe-area-inset-top)) 16px 12px; font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.overlay-zurueck { justify-self: start; font-weight: 400; color: #0a84ff; }

/* Fenster und App-Sheets hell; Neon bleibt nur im Hintergrund */
.fenster, .overlay {
  --text: #1d1d1f; --muted: #6e6e73; --linie: rgba(0,0,0,.1); --cyan: #0a84ff; --grund: #fff;
  --mono: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  color: var(--text); font-family: var(--mono);
}
.fenster { background: #fff; border: 1px solid rgba(0,0,0,.3); border-radius: 12px; backdrop-filter: none; box-shadow: 0 22px 70px rgba(0,0,0,.55); }
.fenster.aktiv { border-color: rgba(0,0,0,.3); box-shadow: 0 26px 80px rgba(0,0,0,.65); }
.fenster-kopf { height: 30px; padding: 0 10px; background: #f2f1ed; border-bottom: 1px solid rgba(0,0,0,.08); }
.ampel { width: 12px; height: 12px; }
.fenster:not(.aktiv) .ampel { opacity: .35; }
.fenster-titel { margin-right: 56px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #4a4a4a; }
.fenster p, .overlay p { color: #3a3a3c; }
.fenster h2, .overlay h2 { letter-spacing: -.02em; }
.fenster input, .fenster textarea, .fenster select, .overlay input, .overlay textarea, .overlay select { background: #f2f2f7; border-color: rgba(0,0,0,.08); }
.fenster ::placeholder, .overlay ::placeholder { color: #8e8e93; }
.fenster .knopf, .overlay .knopf { background: #0a84ff; border-color: #0a84ff; color: #fff; font: 600 13px/1 var(--mono); letter-spacing: 0; text-transform: none; }
.fenster .knopf.zart, .overlay .knopf.zart { background: transparent; color: #0a84ff; border-color: rgba(0,0,0,.15); }
.fenster .knopf:hover, .overlay .knopf:hover { box-shadow: none; filter: brightness(1.08); }
.fenster .fehler, .overlay .fehler { color: #d70015; }
.notiz-kopf b, .lab-karte .stand { letter-spacing: 0; text-transform: none; }
.notiz-kopf b { font-size: 13px; font-weight: 600; color: var(--text); }
.lab-karte { background: #f5f5f7; border-color: transparent; }
.kalender .tag.heute { color: #fff; }
.album-text { color: #fff; }
.overlay { background: #fff; backdrop-filter: none; }
.overlay-kopf { background: rgba(249,249,249,.94); }

/* Dock: Laufpunkt unter offenen Apps */
.dock-knopf { position: relative; overflow: visible; }
.dock-knopf svg { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.dock-knopf.offen { box-shadow: none; }
.dock-knopf.offen::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.85); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
