/* ===== WinWin – Smartphone-App-Prototyp ===== */
:root {
  /* Helles „Mint"-Theme – ruhig, freundlich, 2026 */
  --bg: #edf4ee;        /* Mint-Grund */
  --bg-alt: #f3f8f4;    /* leicht heller Grund */
  --surface: #ffffff;   /* Karten */
  --surface-2: #f4f8f5;
  --border: #dde8e0;    /* zarte Linien */
  --text: #12291f;      /* dunkles Grün-Navy */
  --muted: #62796d;
  --navy: #12291f;
  --brand: #3f9e1e;     /* etwas tiefer für Kontrast auf Weiss */
  --brand-2: #6cbf3a;
  --brand-ink: #ffffff; /* Text auf grünem Button */
  --accent: #c9822a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 26px -14px rgba(20, 60, 40, 0.18);
  --appbar-h: 56px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: #dfe7e1;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

/* ===== Bühne + Phone-Frame ===== */
.stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }
.stage__note { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
.stage__note strong { color: var(--text); }

.device {
  width: 100%;
  max-width: 412px;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
@media (min-width: 480px) {
  .device {
    height: 860px;
    max-height: calc(100vh - 64px);
    border-radius: 46px;
    border: 12px solid #05070a;
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 2px #1a2330;
  }
  /* Notch */
  .device::before {
    content: "";
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 140px; height: 24px;
    background: #05070a;
    border-radius: 0 0 16px 16px;
    z-index: 60;
  }
}
@media (max-width: 479px) {
  .stage { padding: 0; gap: 0; }
  .stage__note { display: none; }
}

.screen { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

/* ===== App-Bar (oben) ===== */
.appbar {
  height: var(--appbar-h);
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  z-index: 20;
}
@media (min-width: 480px) { .appbar { padding-top: 8px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.brand__mark { height: 30px; width: auto; display: block; }
.chooser__logo { display: block; width: min(260px, 72%); height: auto; margin: 0 auto 22px; }
.cart-hint { color: var(--accent); font-size: 0.8rem; margin: -8px 0 14px; font-weight: 600; }
.cart-hint[hidden] { display: none; }
.brand__name span { color: var(--brand); }
.appbar__login {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px;
}

/* ===== App-Body (scrollt) ===== */
.appbody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ===== Tab-Leiste (unten) – App-Navigation ===== */
.tabbar {
  height: var(--tabbar-h);
  flex: none;
  display: flex;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 0.68rem; font-weight: 600;
  transition: color 0.15s;
}
.tab-item .ti { font-size: 1.25rem; line-height: 1; }
.tab-item.is-active { color: var(--brand); }
.tab-item:active { transform: scale(0.95); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.12s ease, opacity 0.2s; cursor: pointer; border: 1px solid transparent; font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* ===== Start / Rollenwahl ===== */
.chooser {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px 22px 36px; position: relative; overflow: hidden;
}
.chooser::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 80% 5%, rgba(140,198,63,0.14), transparent 70%),
    radial-gradient(55% 45% at 10% 95%, rgba(92,177,44,0.14), transparent 70%);
  pointer-events: none;
}
.chooser h1 { position: relative; font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.chooser .lead { position: relative; color: var(--muted); font-size: 1rem; margin: 0 0 28px; }
.choices { position: relative; display: flex; flex-direction: column; gap: 16px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 20px;
  transition: transform 0.15s, border-color 0.15s;
}
.choice:active { transform: scale(0.99); border-color: var(--brand); }
.choice__icon { font-size: 2rem; margin-bottom: 12px; }
.choice h2 { font-size: 1.25rem; margin-bottom: 6px; }
.choice p { color: var(--muted); margin: 0 0 18px; font-size: 0.92rem; }
.choice .btn { margin-top: auto; }
.chooser__hint { position: relative; margin-top: 26px; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* ===== App-Screens (Empfänger / Helfer) ===== */
.app__map { position: relative; height: 240px; flex: none; border-bottom: 1px solid var(--border); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--surface); }
.leaflet-container { background: var(--surface) !important; font-family: inherit !important; }

.app__panel { padding: 22px 20px 28px; }
.role-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand);
  background: rgba(92, 177, 44, 0.12); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.app__panel h1 { font-size: 1.45rem; margin-bottom: 4px; }
.app__panel .sub { color: var(--muted); margin: 0 0 20px; font-size: 0.92rem; }

/* ===== Formular ===== */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input:focus, select.input:focus { outline: none; border-color: var(--brand); }
.input::placeholder { color: #5d6b7c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Adress-Autocomplete */
.field--addr { position: relative; }
.suggest {
  list-style: none; margin: 6px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
}
.suggest__item {
  padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--text);
  cursor: pointer; line-height: 1.35;
}
.suggest__item:hover { background: var(--surface); color: var(--brand); }

.range-wrap { display: flex; align-items: center; gap: 12px; }
input[type="range"] { flex: 1; accent-color: var(--brand); }
.range-val { font-weight: 800; color: var(--brand); min-width: 52px; text-align: right; }

.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.segmented button.is-active { background: rgba(92, 177, 44, 0.14); border-color: var(--brand); color: var(--brand); }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }
.summary__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); padding: 4px 0; }
.summary__row strong { color: var(--text); }
.summary__total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 1rem; }
.summary__total strong { color: var(--brand); font-size: 1.15rem; }

.result { margin-top: 20px; }
.match-card {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 11px; animation: fade 0.35s ease;
}
.match-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.match-card__body { flex: 1; min-width: 0; }
.match-card__body h4 { margin: 0 0 2px; font-size: 0.98rem; }
.match-card__body p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.match-card__meta { text-align: right; font-size: 0.78rem; flex: none; }
.match-card__meta .earn { color: var(--brand); font-weight: 800; font-size: 1rem; }
.tag-route { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--brand); background: rgba(92,177,44,0.12); padding: 2px 8px; border-radius: 6px; margin-top: 6px; }

.searching { text-align: center; padding: 22px; color: var(--muted); font-size: 0.9rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 12px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.note-soon { margin-top: 22px; font-size: 0.8rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 8px 0 8px 13px; }

/* ===== Konzept-Screen ===== */
.kpage { padding: 24px 20px 32px; }
.kpage > .eyebrow { margin-top: 6px; }
.kpage h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.kpage .lead { color: var(--muted); font-size: 0.96rem; margin: 0 0 8px; }
.kpage .lead strong { color: var(--text); }

.ksection { margin-top: 32px; }
.ksection > h2 { font-size: 1.25rem; margin-bottom: 6px; }
.ksection > .intro { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.step__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; font-size: 0.9rem; }
.step h3 { font-size: 1rem; margin-bottom: 5px; }
.step p { color: var(--muted); margin: 0; font-size: 0.88rem; }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px; }
.card__icon { font-size: 1.7rem; margin-bottom: 10px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.card__badge { font-size: 0.8rem; font-weight: 800; color: var(--brand); background: rgba(92, 177, 44, 0.12); border-radius: 8px; padding: 3px 8px; }

.tabs__nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 9px 14px; border-radius: 999px; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); border-color: transparent; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; animation: fade 0.35s ease; }
.panel__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
.panel p { color: var(--muted); margin: 0 0 12px; font-size: 0.9rem; }
.panel p:last-child { margin-bottom: 0; }

.open-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.open-points li { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; }
.open-points h3 { font-size: 1rem; margin-bottom: 6px; }
.open-points p { color: var(--muted); margin: 0; font-size: 0.88rem; }

/* ===== Menü in der App-Bar ===== */
.appbar__menu {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  height: 36px; padding: 0 13px; border-radius: 10px; font-family: inherit;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.appbar__menu:hover { border-color: var(--brand); color: var(--brand); }
.menu {
  position: absolute; top: calc(var(--appbar-h) + 4px); right: 12px; z-index: 80;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; min-width: 230px;
  display: flex; flex-direction: column; gap: 2px; animation: fade 0.18s ease;
}
.menu[hidden] { display: none; }
.menu a { padding: 11px 14px; border-radius: 9px; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.menu a:hover { background: var(--surface); color: var(--brand); }
.menu a.is-active { color: var(--brand); background: rgba(92, 177, 44, 0.1); }
.menu__login { margin-top: 4px; padding-top: 12px !important; border-top: 1px solid var(--border); color: var(--muted) !important; }
.menu__login .nav__soon { font-size: 0.62rem; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); }

/* ===== Wochentage / Strecken-Planung (Helfer) ===== */
.days { display: flex; gap: 6px; }
.days button {
  flex: 1; padding: 9px 0; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all 0.15s;
}
.days button.is-active { background: rgba(92, 177, 44, 0.14); border-color: var(--brand); color: var(--brand); }
.presets { display: flex; gap: 6px; margin-top: 8px; }
.presets button {
  flex: 1; padding: 7px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-family: inherit; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.presets button:hover { color: var(--brand); border-color: var(--brand); }

/* Gespeicherte Strecken */
.saved { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.saved:empty { display: none; }
.saved__head { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.saved__item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
}
.saved__item h5 { margin: 0 0 2px; font-size: 0.9rem; }
.saved__item p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.saved__badge { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--brand); background: rgba(92,177,44,0.12); padding: 2px 8px; border-radius: 6px; margin-top: 4px; }
.saved__del { background: none; border: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; line-height: 1; padding: 4px; }
.saved__del:hover { color: #ff6b6b; }

/* ===== Leaflet – dunkle Controls ===== */
.leaflet-control-layers, .leaflet-bar {
  background: var(--surface-2) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-radius: 10px !important;
}
.leaflet-control-layers-expanded { padding: 10px 12px !important; }
.leaflet-control-layers label { font-size: 0.82rem; }
.leaflet-bar a { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-bar a:hover { background: var(--surface) !important; }
.leaflet-control-attribution { background: rgba(255,255,255,0.82) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--brand) !important; }

/* ===== Liquiditäts-Indikator ("Helfer in der Nähe") ===== */
.nearby {
  display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
  background: rgba(92, 177, 44, 0.1); border: 1px solid rgba(92, 177, 44, 0.3);
  color: var(--text); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; font-weight: 600;
}
.nearby[hidden] { display: none; }
.nearby .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 177, 44, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(92, 177, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 177, 44, 0); }
}

/* ===== Produkt hinzufügen + Warenkorb ===== */
.add-row { display: grid; grid-template-columns: 1fr 62px 46px; gap: 8px; }
.qty-input { text-align: center; padding-left: 6px; padding-right: 6px; }
.add-btn { padding: 0; font-size: 1.4rem; line-height: 1; }

.cart { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cart:empty { display: none; }
.cart__item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; animation: fade 0.25s ease; }
.cart__name { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; }
.cart__name small { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; }
.cart__qty { display: flex; align-items: center; gap: 7px; }
.cart__qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; line-height: 1; }
.cart__qty button:hover { border-color: var(--brand); color: var(--brand); }
.cart__qty span { min-width: 16px; text-align: center; font-weight: 700; font-size: 0.88rem; }
.cart__line { font-weight: 700; font-size: 0.86rem; min-width: 52px; text-align: right; }
.cart__del { background: none; border: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; padding: 0 2px; line-height: 1; }
.cart__del:hover { color: #ff6b6b; }

/* ===== Aufpreis-Coach ===== */
.coach { margin-top: 12px; }
.coach__meter { display: flex; gap: 5px; margin-bottom: 7px; }
.coach__seg { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); transition: background 0.25s; }
.coach.lv1 .coach__seg:nth-child(1) { background: #ff8a5b; }
.coach.lv2 .coach__seg:nth-child(-n+2) { background: var(--accent); }
.coach.lv3 .coach__seg { background: var(--brand); }
.coach__text { font-size: 0.82rem; color: var(--muted); }
.coach__text strong { color: var(--text); }

/* ===== Übergabe-Flow (ETA / Chat / Bestätigung) ===== */
.handover { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 12px; animation: fade 0.35s ease; }
.handover__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.handover__head .match-card__avatar { width: 40px; height: 40px; }
.eta { text-align: right; margin-left: auto; }
.eta__big { font-size: 1.4rem; font-weight: 800; color: var(--brand); line-height: 1; }
.eta__lbl { font-size: 0.72rem; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 168px; overflow-y: auto; padding: 4px 2px; margin-bottom: 10px; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 0.85rem; animation: fade 0.2s ease; }
.bubble--them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble--me { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-input .input { flex: 1; }
.chat-input .btn { padding: 0 16px; }

/* ===== Leerer Zustand + Benachrichtigung ===== */
.empty { text-align: center; padding: 24px 18px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); margin-top: 12px; animation: fade 0.35s ease; }
.empty__icon { font-size: 2.1rem; margin-bottom: 8px; }
.empty h4 { margin: 0 0 6px; font-size: 1.05rem; }
.empty p { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }
.is-notifying { background: rgba(92,177,44,0.14) !important; border-color: var(--brand) !important; color: var(--brand) !important; }

/* ===== Konzept – Ablauf-Visual ===== */
.flow { display: flex; align-items: stretch; gap: 6px; margin: 20px 0 4px; }
.flow__step { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; text-align: center; }
.flow__step .ic { font-size: 1.6rem; }
.flow__step h4 { font-size: 0.84rem; margin: 6px 0 2px; }
.flow__step p { font-size: 0.7rem; color: var(--muted); margin: 0; }
.flow__arrow { align-self: center; color: var(--brand); font-weight: 800; font-size: 1rem; }

/* ===== Linien-Icons (Ersatz für Emojis) ===== */
.role-pill svg { width: 15px; height: 15px; }
.choice__icon, .card__icon, .flow__step .ic { line-height: 0; }
.choice__icon svg { width: 30px; height: 30px; stroke: var(--brand); }
.card__icon svg { width: 26px; height: 26px; stroke: var(--brand); }
.flow__step .ic svg { width: 24px; height: 24px; stroke: var(--brand); }
.match-card__avatar svg { width: 22px; height: 22px; color: var(--brand); }
.empty__icon { line-height: 0; }
.empty__icon svg { width: 34px; height: 34px; stroke: var(--brand); display: inline-block; }
.suggest__item { display: flex; align-items: center; gap: 8px; }
.suggest__pin { line-height: 0; color: var(--muted); flex: none; }
.suggest__pin svg { width: 15px; height: 15px; }

/* ===== Status-Timeline (Empfänger) ===== */
.timeline { list-style: none; margin: 0 0 16px; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; color: var(--muted); font-size: 0.92rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.active { color: var(--text); font-weight: 700; }
.timeline li.active::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(92, 177, 44, 0.22); }

/* Übergabe-Code */
.code-box { text-align: center; background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.code-box .code { font-size: 2rem; font-weight: 800; letter-spacing: 0.3em; color: var(--brand); }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; text-align: center; letter-spacing: 0.2em; font-weight: 700; }
.code-row .btn { padding: 0 16px; }

/* ===== Kategorie-Chips (Helfer: „Was bietest du an?") ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 600;
  font-size: 0.82rem; cursor: pointer; transition: all 0.15s;
}
.chip.is-active { background: rgba(92, 177, 44, 0.14); border-color: var(--brand); color: var(--brand); }

/* Freitext-Auftrag + Zeichenzähler */
textarea.input { resize: vertical; min-height: 46px; line-height: 1.4; }
#char-count { font-weight: 500; color: var(--muted); font-size: 0.74rem; }

/* Karte: hellerer Ladehintergrund (helle Tiles) */
.leaflet-container { background: #e6ebf0 !important; }

/* ===== Login: 6-Ziffern-Code ===== */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 6px 0 16px; }
.otp {
  width: 46px; height: 54px; text-align: center; font-size: 1.4rem; font-weight: 800;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.otp:focus { outline: none; border-color: var(--brand); }
#step-register, #step-verify { width: 100%; max-width: 340px; position: relative; }

/* Chat im Auftrags-Kontext */
.match-card .chat { max-height: 190px; }

/* ===== Landing (Start-Seite) ===== */
.landing .hero-land { text-align: center; padding: 18px 0 8px; }
.landing .hero-land h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 12px; }
.landing .hero-land .lead { color: var(--muted); font-size: 1rem; margin: 0 0 22px; }
.hero-auth { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }
.hero-auth[hidden] { display: none; }
.landing .choices { margin-top: 4px; }
.landing .chooser__hint { margin-top: 18px; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* ===== hidden zuverlässig durchsetzen (schlägt display:grid/flex) ===== */
[hidden] { display: none !important; }

/* ===== Passwort-Feld mit Auge ===== */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 0;
}
.pw-eye:hover { color: var(--brand); }
.pw-eye svg { width: 20px; height: 20px; }

/* ===== Zweistufiger Match: Profil-Lupe, Match-Hinweis, Bewertung ===== */
.match-hit {
  border: 1px solid var(--brand); border-radius: 14px;
  background: rgba(92, 177, 44, 0.08); padding: 14px; margin-top: 4px;
}
.match-hit__row { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; }
.match-hit__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(92,177,44,.2); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* Aufklappbares Mini-Profil (Lupe) */
.peek { margin: 10px 0 2px; border: 1px solid var(--line, #23405c); border-radius: 12px; background: var(--bg-alt); overflow: hidden; }
.peek > summary { list-style: none; cursor: pointer; padding: 9px 12px; font-size: 0.86rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.peek > summary::-webkit-details-marker { display: none; }
.peek > summary:hover { color: var(--brand); }
.peek__mag { display: inline-flex; }
.peek__mag svg { width: 16px; height: 16px; }
.peek[open] > summary { border-bottom: 1px solid var(--line, #23405c); }
.peek-body { padding: 12px; }
.peek__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.peek__avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(18,41,31,.05); display: grid; place-items: center; flex: none; }
.peek__avatar svg { width: 22px; height: 22px; color: var(--muted); }
.peek__verify { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.peek__verify.is-ok { color: var(--brand); }
.peek__stats { font-size: 0.86rem; color: var(--muted); }
.peek__jobs { color: #d7e3ef; font-weight: 600; }

/* Sterne */
.stars { letter-spacing: 1px; }
.stars .star { color: #c6d3ca; }
.stars .star.on { color: #f7c948; }
.stars small, .peek__stats small { color: var(--muted); }

/* Interaktive Bewertung */
.rate-wrap { margin-top: 12px; }
.rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.rate__lbl { font-weight: 600; }
.rate-star { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #c6d3ca; padding: 0 1px; }
.rate-star:hover, .rate-star:hover ~ .rate-star { color: #c6d3ca; }
.rate__stars:hover .rate-star { color: #f7c948; }
.rate__stars .rate-star:hover ~ .rate-star { color: #c6d3ca; }
.rate--done { color: var(--brand); }

/* ===== Bottom-Tabs: SVG-Icons ===== */
.tab-item .ti svg { width: 22px; height: 22px; display: block; }
.tab-item { text-decoration: none; }

/* ===== Landing: Kategorie-Zeile (statisch, ruhig) ===== */
.cat-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 22px; }
.chip--static { pointer-events: none; opacity: 0.75; font-size: 0.76rem; padding: 6px 12px; }

/* ===== Profil-Seite ===== */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.profile-head__info { display: flex; flex-direction: column; gap: 3px; }
.profile-head__info strong { font-size: 1.15rem; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden;
  background: rgba(18,41,31,.05); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted); font-weight: 800;
}
.avatar--lg { width: 76px; height: 76px; font-size: 1.5rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 40px; height: 40px; font-size: 0.95rem; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pstat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px 6px; text-align: center; }
.pstat strong { display: block; font-size: 1.05rem; }
.pstat span { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.trust-chip {
  display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted); width: fit-content;
}
.trust-chip.lv-bronze { color: #d99a5b; border-color: #d99a5b55; }
.trust-chip.lv-silber { color: #c3ced9; border-color: #c3ced955; }
.trust-chip.lv-gold { color: #f7c948; border-color: #f7c94855; }
.reviews { margin-top: 18px; }
.reviews h3 { font-size: 0.95rem; margin-bottom: 8px; }
.review-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 0.86rem; }
.review-item small { color: var(--muted); display: block; margin-top: 2px; }

/* ===== Bewertung: Kommentar + Senden ===== */
.rate { flex-direction: column; align-items: flex-start; }
.rate__stars { display: inline-flex; }
.rate__extra { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.rate__extra .input { flex: 1; padding: 10px 12px; font-size: 0.88rem; }
.rate__extra .btn { padding: 10px 16px; font-size: 0.85rem; }
.rate-star.on { color: #f7c948; }

/* ===== Helfer: Verdienst-Zeile & Hinweis-Banner ===== */
.earn-note { margin: 8px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--brand); }
.earn-note small { color: var(--muted); font-weight: 500; }
.jobs-banner {
  display: block; text-decoration: none; margin-bottom: 4px;
  border: 1px solid var(--brand); border-radius: 12px; padding: 11px 14px;
  background: rgba(92, 177, 44, 0.08); color: var(--brand); font-weight: 700; font-size: 0.88rem;
}

/* ===== Rollen-Badge auf Auftragskarten ===== */
.role-badge {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.role-badge--h { color: var(--brand); }

/* ===== Onboarding-Overlay (einmalig / „Wie funktioniert's?") ===== */
.ob { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center;
  background: rgba(18, 41, 31, 0.42); backdrop-filter: blur(3px); padding: 0 14px calc(14px + env(safe-area-inset-bottom,0)); animation: obfade .2s ease; }
.ob[hidden] { display: none; }
@keyframes obfade { from { opacity: 0; } to { opacity: 1; } }
.ob__card { width: 100%; max-width: 412px; background: var(--surface); border-radius: 24px 24px 20px 20px;
  padding: 22px 20px 20px; box-shadow: 0 -10px 40px -12px rgba(20,60,40,.35); animation: obup .28s cubic-bezier(.2,.8,.2,1); }
@keyframes obup { from { transform: translateY(20px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.ob__title { font-size: 1.15rem; margin-bottom: 14px; }
.ob__steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ob__steps li { display: flex; gap: 12px; align-items: flex-start; }
.ob__n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(63,158,30,.12); color: var(--brand); font-weight: 800; font-size: .85rem; }
.ob__steps strong { font-size: .95rem; }
.ob__steps p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }

/* ===== Profil: ruhige Zusammenfassungs-Zeile ===== */
.profil-line { font-size: .9rem; color: var(--muted); font-weight: 600; display: block; margin: 2px 0 3px; }
.profil-line .trust-chip { vertical-align: middle; }

/* ===== Marken-Lockup (Hero): W-Mark + „Weeva" + Slogan „Win-Win" ===== */
.brandlock { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px auto 18px; }
.brandlock__mark { width: 84px; height: 84px; object-fit: contain; }
.brandlock__word { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.brandlock__word span { color: var(--brand); }
.brandlock__tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); }
.brandlock--sm .brandlock__mark { width: 60px; height: 60px; }
.brandlock--sm .brandlock__word { font-size: 1.9rem; }
.brandlock--sm .brandlock__tag { font-size: 0.7rem; letter-spacing: 0.2em; }

/* ===== „Aktuellen Standort verwenden"-Knopf ===== */
.geo-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; background: none; border: none;
  color: var(--brand); font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; padding: 4px 0; }
.geo-btn svg { width: 16px; height: 16px; }
.geo-btn:disabled { opacity: 0.6; cursor: default; }

/* ===== Rechtstexte (Impressum / Datenschutz / AGB) ===== */
.kpage.legal { text-align: left; }
.kpage.legal h1 { font-size: 1.7rem; margin: 6px 0 4px; }
.kpage.legal h2 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.kpage.legal p { color: var(--text); line-height: 1.6; margin: 0 0 10px; font-size: 0.94rem; }
.kpage.legal a { color: var(--brand); font-weight: 600; }
.legal-draft { background: #fff6e6; border: 1px solid #efd7a6; color: #7a5410;
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.86rem; line-height: 1.5;
  margin: 4px 0 18px; }
.legal-list { margin: 0 0 12px; padding-left: 20px; }
.legal-list li { color: var(--text); line-height: 1.55; margin: 0 0 7px; font-size: 0.94rem; }
.legal-links { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.9rem; color: var(--muted); }

/* ===== Einwilligungszeile im Registrierformular ===== */
.consent-line { font-size: 0.78rem; line-height: 1.45; color: var(--muted); margin: 2px 0 12px; text-align: center; }
.consent-line a { color: var(--brand); font-weight: 600; }
