/* ============================================================
   ELECTRIZZ · shared.css
   Gemeinsame Basis für alle Klick-Mockups.
   CI-Farben als CSS-Variablen, Handy-Rahmen für die Desktop-
   Präsentation, wiederverwendbare Bausteine (appbar, btn …).
   Wird später Basis für Livewire-4-Komponenten – daher sauber
   getrennt und ohne Screen-spezifische Regeln.
   ============================================================ */

:root {
  /* Corporate Identity */
  --brand:      #1156C6;   /* Primär / Akzent – aus electrizz-logo.svg */
  --brand-600:  #0E49A8;   /* gedrückt / Hover-Ersatz */
  --brand-050:  #EAF1FC;   /* sehr helle Fläche */
  --ink:        #0B1220;   /* Text: schwarz bis sehr dunkles Grau */
  --muted:      #5B6472;   /* Sekundärtext */
  --bg:         #FFFFFF;   /* Standard-Hintergrund hell (NICHT schwarz) */
  --surface:    #FFFFFF;   /* Kartenfläche */
  --line:       #E6EAF1;   /* Trennlinien / Rahmen */

  /* Maße */
  --radius:     16px;
  --device-w:   430px;     /* schmale, zentrierte Spalte = zugleich Handy-Layout */
  --pad:        20px;
}

* { box-sizing: border-box; }

/* Muss gegen display:flex aus .row & Co. gewinnen – sonst zeigen sich
   ausgeblendete Zeilen (Rabatte, Erstattungen) trotz hidden-Attribut. */
[hidden] { display: none !important; }

html { background: #EEF2F8; }

body {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sichtbarer Tastatur-Fokus (Briefing) */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   Handy-Rahmen
   Mobil: volle Breite, kein Rahmen (das echte Gerät IST der Rahmen).
   Ab md: dezenter Geräterahmen, mittig auf ruhigem Verlauf.
   ------------------------------------------------------------ */
.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device {
  position: relative;
  width: 100%;
  max-width: var(--device-w);
  min-height: 100dvh;
  background: var(--surface);
}

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  html {
    background:
      radial-gradient(120% 60% at 50% 0%, #EAF1FC 0%, #EEF2F8 55%, #E7ECF4 100%)
      fixed;
  }
  .stage { padding: 40px 16px 64px; }

  .device {
    min-height: 900px;
    border-radius: 44px;
    border: 1px solid var(--line);
    box-shadow:
      0 2px 4px rgba(11, 18, 32, .04),
      0 28px 64px -22px rgba(11, 18, 32, .30);
    overflow: hidden;
  }
  /* dezenter Lautsprecher-/Kamera-Steg statt lauter Notch */
  .device::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    border-radius: 99px;
    background: #D5DCE7;
    z-index: 6;
  }
  .screen { min-height: 900px; }
  .screen--framed { padding-top: 34px; }  /* Platz unter dem Steg */
}

/* ------------------------------------------------------------
   Wiederverwendbare Bausteine
   ------------------------------------------------------------ */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
}
.appbar__logo { height: 30px; width: auto; display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .72rem;
  color: var(--brand);
}

.content { flex: 1; padding: 24px var(--pad); }

/* Tippbare Elemente ≥ 44 px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:active { background: var(--brand-600); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--block { display: flex; width: 100%; }
.btn.is-disabled {
  background: #DDE4EF;
  border-color: #DDE4EF;
  color: #8C97A8;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Demo-Hilfe: von jedem Screen zurück zur Übersicht.
   Nur für die Vorführung – fliegt im echten Projekt raus.
   Sitzt über der CTA-Leiste, damit es nichts Wichtiges verdeckt.
   ------------------------------------------------------------ */
.demobar {
  position: fixed;
  z-index: 55;
  left: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 99px;
  background: rgba(11, 18, 32, .74);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -10px rgba(11, 18, 32, .7);
}
@media (min-width: 768px) {
  .demobar { left: 20px; bottom: 20px; }
}

/* ------------------------------------------------------------
   Screen-Karten der Übersicht
   ------------------------------------------------------------ */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: rgba(17, 86, 198, .4); box-shadow: 0 18px 40px -24px rgba(11, 18, 32, .35); }
.card__head { display: flex; align-items: center; justify-content: space-between; }
.card__n { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 12px 0 0; }
.card__desc { font-size: .875rem; color: var(--muted); line-height: 1.55; margin: 6px 0 0; }
.card__cta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px; font-size: .875rem; font-weight: 700; color: var(--brand);
}

/* Status-Badges (Übersicht) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.badge--placeholder { color: #94623B; background: #FBF1E7; border-color: #F0DCC6; }
.badge--progress    { color: #1156C6; background: var(--brand-050); border-color: #CFE0F8; }
.badge--done        { color: #1E7A46; background: #E9F6EE; border-color: #C7E9D4; }

/* ------------------------------------------------------------
   Formulare
   ------------------------------------------------------------ */
.field { display: block; margin-top: 18px; }
.field__label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input::placeholder { color: #9AA3B2; }
.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 86, 198, .15);
}
.field__hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------
   Wählbare Optionskarten (Buchung)
   ------------------------------------------------------------ */
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  margin-top: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.option:active { background: #FBFCFE; }
.option__radio {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 99px;
  border: 2px solid #C7D2E4;
  position: relative;
  transition: border-color .15s ease;
}
.option__body { flex: 1; min-width: 0; }
.option__title { display: block; font-weight: 700; }
.option__sub { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.option__price { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.option.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 86, 198, .12);
}
.option.is-selected .option__radio { border-color: var(--brand); }
.option.is-selected .option__radio::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 99px;
  background: var(--brand);
}
/* Dauer als Ladestand: --w pro Option (15 Min kurz, Wochenende voll) */
.option__charge {
  display: block;
  margin-top: 8px;
  height: 4px;
  border-radius: 99px;
  background: #EAF0F9;
  overflow: hidden;
}
.option__charge i {
  display: block;
  height: 100%;
  width: var(--w, 20%);
  border-radius: 99px;
  background: var(--brand);
  opacity: .35;
  transition: opacity .15s ease;
}
.option.is-selected .option__charge i { opacity: 1; }

/* ------------------------------------------------------------
   Zahlarten-Liste (Bezahlen)
   ------------------------------------------------------------ */
.pay {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-top: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pay.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 86, 198, .12); }
.pay__icon { flex: none; width: 40px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pay__label { flex: 1; font-weight: 600; text-align: left; }
.pay__radio { flex: none; width: 20px; height: 20px; border-radius: 99px; border: 2px solid #C7D2E4; position: relative; }
.pay.is-selected .pay__radio { border-color: var(--brand); }
.pay.is-selected .pay__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 99px; background: var(--brand); }

/* ------------------------------------------------------------
   Kaution-Erklärbox
   ------------------------------------------------------------ */
.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-050);
  border: 1px solid #CFE0F8;
  margin-top: 16px;
}
.note__icon { flex: none; color: var(--brand); margin-top: 1px; }
.note__text { font-size: .86rem; line-height: 1.5; color: #24406E; }

/* ------------------------------------------------------------
   Schrittanzeige (Verifizierung)
   ------------------------------------------------------------ */
.steps { display: flex; align-items: center; gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; }
.step__dot {
  width: 26px; height: 26px; border-radius: 99px;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
  border: 2px solid var(--line); color: var(--muted); background: #fff;
}
.step.is-active .step__dot { border-color: var(--brand); color: var(--brand); }
.step.is-done .step__dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.step__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.step.is-active .step__label { color: var(--ink); }
.step__bar { width: 22px; height: 2px; background: var(--line); border-radius: 2px; }

/* Upload-/Kamera-Zone */
.capture {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  padding: 28px 20px;
  border: 1.5px dashed #C7D2E4;
  border-radius: 14px;
  background: #FBFCFE;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
}
.capture.is-done { border-style: solid; border-color: #C7E9D4; background: #F1FAF4; color: #1E7A46; }

/* ------------------------------------------------------------
   Sticky-Fußleiste mit CTA
   ------------------------------------------------------------ */
.cta-bar {
  position: sticky;
  bottom: 0;
  padding: 14px var(--pad);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   Abhak-Liste (Rückgabe)
   ------------------------------------------------------------ */
.check {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin-top: 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.check__box {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 2px solid #C7D2E4;
  display: grid; place-items: center;
  color: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.check__box svg { opacity: 0; transition: opacity .15s ease; }
.check__title { display: block; font-weight: 700; font-size: .95rem; }
.check__sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.check.is-done { border-color: #C7E9D4; background: #F4FBF7; }
.check.is-done .check__box { border-color: #1E7A46; background: #1E7A46; }
.check.is-done .check__box svg { opacity: 1; }

/* ------------------------------------------------------------
   Rabatt-Angebot (19 % Beitrag, 10 % sauber)
   ------------------------------------------------------------ */
.offer {
  border: 1.5px solid #CFE0F8;
  background: var(--brand-050);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}
.offer__pct {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brand);
}
.offer__title { font-weight: 700; margin-top: 8px; }
.offer__text { font-size: .84rem; color: #24406E; line-height: 1.5; margin-top: 4px; }
.offer.is-claimed { border-color: #C7E9D4; background: #F1FAF4; }
.offer.is-claimed .offer__pct { color: #1E7A46; }
.offer.is-claimed .offer__text { color: #1E5B39; }

/* Teilen-Ziele */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1.5px solid #CFE0F8;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.share__icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }

/* Listenzeilen (Dashboard, Zusammenfassung) */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
