/* ═══ INTELEKTRA — Aussehen der Handy-App ═══
   Alle Farben stehen hier oben: eine Änderung gilt für die ganze App. */
:root {
  --bg: #000000;
  --flaeche: rgba(255,255,255,.055);
  --flaeche2: rgba(255,255,255,.09);
  --linie: rgba(255,255,255,.10);
  --text: #ffffff;
  --text2: #9aa3ad;
  --blau: #38b6ff;
  --blau-hell: #8fd6ff;
  --rot: #ff6b6b;
  --gelb: #ffc65c;
  --gruen: #3ddc97;
  --rund: 999px;          /* Pillen-Knöpfe */
  --karte: 24px;          /* Ecken der Karten */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); }
body { background: transparent; }  /* damit das Atmen hinter dem Inhalt sichtbar ist */
body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.45; min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
/* schwaches blaues Leuchten oben (Raster auf Wunsch von Sales entfernt, 2026-11-12) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 45% at 50% 0%, rgba(56,182,255,.10), transparent 70%);
}
.seite { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)); }
a { color: var(--blau); text-decoration: none; }

/* ── Kopfzeile ── */
.kopf { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 6px; }
.rund-knopf { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); position: relative; }
.rund-knopf svg { width: 20px; height: 20px; }
.punkt-zahl { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--blau); color: #00131f; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ── Schrift ── */
h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.4px; margin: 10px 0 8px; }
h2 { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.2px; margin: 30px 0 12px; }
.unter { color: var(--text2); font-size: 15px; }
.klein { font-size: 14px; color: var(--text2); }

/* ── Knöpfe (Pillen) ── */
.knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 58px; padding: 0 24px; margin: 10px 0; border-radius: var(--rund); border: 0; cursor: pointer;
  background: #ffffff; color: #05080d; font: inherit; font-size: 17px; font-weight: 650; letter-spacing: .1px;
  transition: transform .12s ease, opacity .12s ease;
}
.knopf:active { transform: scale(.98); opacity: .9; }
.knopf svg { width: 21px; height: 21px; }
.knopf.zweit { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); }
.knopf.text { background: transparent; color: var(--text); min-height: 48px; }
.knopf.blau { background: var(--blau); color: #00131f; }
.knopf.klein { min-height: 44px; font-size: 15px; width: auto; padding: 0 18px; margin: 0; }
.knopf[disabled] { opacity: .35; }
.zeile { display: flex; gap: 10px; }
.zeile > * { flex: 1; }

/* ── Karten ── */
.kachel {
  display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 12px; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.kachel:active { background: var(--flaeche2); }
.kachel .sym { width: 52px; height: 52px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: rgba(56,182,255,.14); color: var(--blau); }
.kachel .sym svg { width: 26px; height: 26px; }
.kachel .titel { font-size: 18px; font-weight: 650; }
.kachel .unter { font-size: 14px; margin-top: 1px; }
.kachel .rechts { margin-left: auto; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.kachel .rechts svg { width: 20px; height: 20px; }
.kachel.haupt { border-color: rgba(56,182,255,.45); box-shadow: 0 0 0 1px rgba(56,182,255,.12), 0 12px 40px rgba(56,182,255,.12); }
.kachel.haupt .sym { background: linear-gradient(135deg, var(--blau-hell), var(--blau)); color: #00131f; }

/* ── Eingabefelder (ebenfalls rund) ── */
label { display: block; font-size: 14px; color: var(--text2); margin: 14px 0 6px 18px; }
input[type=text], input[type=password], input[type=email], select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px 22px; outline: none; -webkit-appearance: none;
}
select { background-image: none; }
input:focus, select:focus { border-color: var(--blau); background: rgba(56,182,255,.06); }
.fehler { color: var(--rot); margin: 12px 0 0 18px; font-size: 15px; }
.erfolg { color: var(--gruen); margin: 12px 0 0 18px; font-size: 15px; }
.hinweis { background: rgba(255,198,92,.08); border: 1px solid rgba(255,198,92,.3); color: var(--gelb);
  border-radius: 20px; padding: 14px 18px; font-size: 15px; margin: 14px 0; }
.info { background: rgba(56,182,255,.08); border: 1px solid rgba(56,182,255,.3); color: #cfeeff;
  border-radius: 20px; padding: 14px 18px; font-size: 15px; margin: 14px 0; }
.info a, .hinweis a { font-weight: 650; }

/* ── Plaketten ── */
.chip { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--rund); white-space: nowrap; }
.chip.fertig { background: rgba(61,220,151,.12); color: var(--gruen); }
.chip.laeuft { background: rgba(56,182,255,.14); color: var(--blau); }
.chip.fehler { background: rgba(255,107,107,.12); color: var(--rot); }
.chip.fotos, .chip.grau { background: var(--flaeche2); color: var(--text2); }
.chip.neu { background: var(--blau); color: #00131f; }

/* ── Fotos ── */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.raster .bild { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--flaeche); }
.raster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raster .weg { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: 16px; line-height: 28px; padding: 0; }
.raster .laedt { display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 13px; }

/* ── Auswahl Günstig/Express ── */
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wahl input { display: none; }
.wahl label { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte); padding: 16px; color: var(--text); }
.wahl label b { display: block; font-size: 17px; margin-bottom: 2px; }
.wahl label span { font-size: 13px; color: var(--text2); }
.wahl input:checked + label { border-color: var(--blau); background: rgba(56,182,255,.08); box-shadow: 0 0 24px rgba(56,182,255,.12); }

/* ── Fortschritt ── */
.schritte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte); padding: 6px 20px; margin-top: 18px; }
.schritt { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--linie); color: var(--text2); }
.schritt:last-child { border: 0; }
.schritt .p { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.schritt.ok { color: var(--text); } .schritt.ok .p { background: var(--blau); border-color: var(--blau); color: #00131f; }
.schritt.jetzt { color: var(--text); font-weight: 650; } .schritt.jetzt .p { border-color: var(--blau); border-top-color: transparent; animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ── Zahlen ── */
.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.zahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte); padding: 16px 18px; }
.zahl b { font-size: 32px; display: block; line-height: 1.1; }
.zahl.warn b { color: var(--gelb); }
.zahl span { font-size: 13px; color: var(--text2); }

/* ── Tabelle ── */
.tabelle-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--karte); margin: 14px 0; background: var(--flaeche); }
table { border-collapse: collapse; font-size: 13px; width: 100%; }
th, td { padding: 10px; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { color: var(--text2); font-weight: 600; font-size: 12px; }
td.warn { color: var(--gelb); font-weight: 700; background: rgba(255,198,92,.07); }

/* ── Liste (Kontakte, Benutzer) ── */
.person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.person:last-child { border: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
  background: rgba(56,182,255,.14); color: var(--blau); }
.person .wer { flex: 1; min-width: 0; }
.person .wer div:last-child { font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.block { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte); padding: 6px 18px; }

/* ── kleine Meldung unten ── */
.meldung { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #fff; color: #05080d; font-weight: 600; padding: 12px 22px; border-radius: var(--rund); font-size: 15px; display: none; z-index: 99; }

/* ═══ Bühne: Startseite, Anmelden, Registrieren ═══ */
.buehne .seite { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.kugel-bereich { flex: 1; display: grid; place-items: center; min-height: 240px; position: relative; }
.kugel-bereich.klein { flex: none; min-height: 190px; }
.kugel-glanz { position: absolute; width: 70%; max-width: 330px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,182,255,.35), transparent 62%); filter: blur(10px); animation: atmen 5s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scale(1.08); opacity: .8; } }
#kugel { position: relative; width: min(64vw, 290px); aspect-ratio: 1; }
.kugel-bereich.klein #kugel { width: 150px; }
#kugel img { width: 100%; filter: drop-shadow(0 0 30px rgba(56,182,255,.5)); }
.markenname { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 5px; color: var(--text2); margin-top: -4px; }
.buehne h1 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; text-transform: uppercase; line-height: 1.05; margin: 8px 0 12px; }
.buehne .unter { font-size: 16px; margin-bottom: 22px; max-width: 420px; }
.unten { padding-bottom: 6px; }

/* ═══ Menü nach dem Anmelden ═══ */
.menu { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; }
.gruss { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px 0; }
.gruss-text { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.6px; }
.neuigkeit { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px; border-radius: var(--rund);
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); font-size: 15px; font-weight: 600; }
.neuigkeit .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--blau); box-shadow: 0 0 10px var(--blau); }
.karussell { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -20px; padding: 10px calc(50% - 82px) 6px; scrollbar-width: none; }
.karussell::-webkit-scrollbar { display: none; }
.wischkarte { flex: none; width: 164px; min-height: 178px; scroll-snap-align: center; border-radius: 28px; padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie); transition: transform .25s ease, opacity .25s ease, border-color .25s;
  transform: scale(.9); opacity: .6; }
.wischkarte.mitte { transform: scale(1); opacity: 1; border-color: rgba(56,182,255,.45); box-shadow: 0 14px 40px rgba(56,182,255,.14); }
.wischkarte .sym { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(56,182,255,.14); color: var(--blau); }
.wischkarte.mitte .sym { background: linear-gradient(135deg, var(--blau-hell), var(--blau)); color: #00131f; }
.wischkarte .sym svg { width: 27px; height: 27px; }
.wischkarte .titel { font-size: 16px; font-weight: 700; line-height: 1.2; }
.wischkarte .unter { font-size: 13px; }
.karussell-punkte { display: flex; justify-content: center; gap: 0; margin: 8px 0 0; }
/* Punkte anklickbar (PC): Polster = grössere Klickfläche, sichtbar bleibt der kleine Punkt */
.karussell-punkte i { width: 6px; height: 6px; padding: 6px 3px; background-clip: content-box; border-radius: 9px; cursor: pointer;
  background-color: rgba(255,255,255,.2); transition: width .2s, background-color .2s; }
.karussell-punkte i.an { width: 18px; background-color: var(--blau); }

/* ── Schnellknöpfe Tableau-Titel ── */
.titel-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.titel-chip { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: var(--rund);
  background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); cursor: pointer; }
.titel-chip.an { background: #fff; color: #05080d; border-color: #fff; }

/* Menü: stiller, sehr dezenter Verlauf von oben (hellblau → tiefblau → schwarz), keine Animation */
.menu-verlauf { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(110,185,230,.17) 0%,
    rgba(50,125,195,.12) 22%,
    rgba(25,75,145,.07) 45%,
    rgba(8,25,60,.03) 65%,
    transparent 82%); }

/* Rauch-Struktur (nach unten weg)  */
.menu-rauch { position: absolute; inset: 0; background: url("rauch.png") center top / cover no-repeat; opacity: .06;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.35) 60%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.35) 60%, transparent 85%); }

/* Blitze-Stand unter der Begrüssung (App-Währung) */
.blitze-stand { margin-top: 14px; color: var(--text2); font-size: 15px; font-weight: 600; text-decoration: none; }

/* INTELEKTRA oben in der Mitte jeder Seite: antippen = Hauptmenü */
.kopf-marke { margin: 0; padding: 12px 8px; text-decoration: none; }
.kopf-marke:active { opacity: .6; }

/* Menü: verschwommenes Logo hinter der Begrüssung (Wunsch Sales 2026-11-13) */
.gruss { position: relative; isolation: isolate; }
.gruss-logo { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(72vw, 340px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  background: url("symbol-gross.png") center / contain no-repeat;
  filter: blur(16px); opacity: .5; }
