/* vibits-konto.css – Anmeldung und Einstellungen im vibits-Rahmen (Web). Gegenstück zu VibitsKit.
   Quelle: ~/Claude/Projekte/Vibits/web/ – in jede Web-App kopieren, nicht ändern. Stand 09.11.2026
   Die App setzt nichts; Akzent und Markenfläche kommen per JS aus der Marke (--vb-akzent, --vb-flaeche …). */
:root {
  --vb-grund: #F3F1EC; --vb-karte: #FBFAF7; --vb-vertieft: #E6E2DA; --vb-feld: #FFFFFF;
  --vb-tinte: #262420; --vb-leise: #6B675F; --vb-linie: #DDD8CE; --vb-warn: #8C2219; --vb-auf-flaeche: #FBF8F2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --vb-grund: #1C1B18; --vb-karte: #262420; --vb-vertieft: #33302B; --vb-feld: #2D2A25;
    --vb-tinte: #F3F1EC; --vb-leise: #BDB7AC; --vb-linie: #3A3732; --vb-warn: #F6C2BA;
  }
}
:root[data-thema="dunkel"] {
  --vb-grund: #1C1B18; --vb-karte: #262420; --vb-vertieft: #33302B; --vb-feld: #2D2A25;
  --vb-tinte: #F3F1EC; --vb-leise: #BDB7AC; --vb-linie: #3A3732; --vb-warn: #F6C2BA;
}

/* ---------- Anmeldung ---------- */
.vb-anmelden { display: grid; grid-template-columns: minmax(340px, 45%) 1fr; min-height: 100vh; min-height: 100dvh; background: var(--vb-karte); color: var(--vb-tinte); }
.vb-anmelden button, .vb-anmelden input { font: inherit; color: inherit; }
.vb-marke { position: relative; overflow: hidden; background: var(--vb-flaeche); color: var(--vb-auf-flaeche); display: flex; flex-direction: column; padding: 56px 40px 36px; max-width: 520px; width: 100%; box-sizing: border-box; justify-self: stretch; }
.vb-anmelden > .vb-marke { max-width: none; }
.vb-marke-name { font-size: 15px; font-weight: 600; opacity: .9; }
.vb-claim { font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; max-width: 380px; position: relative; z-index: 1; }
.vb-claim em { font-style: normal; color: var(--vb-claim); }
.vb-unterzeile { font-size: 16px; opacity: .78; max-width: 380px; margin: 14px 0 0; position: relative; z-index: 1; }
.vb-worte { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.vb-worte span { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.vb-sicher { margin-top: 18px; font-size: 13px; opacity: .8; display: flex; align-items: center; gap: 8px; }
.vb-sicher::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1.5'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1.5'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Grafik: drei gestapelte Karten */
.vb-grafik { position: absolute; right: -40px; top: 46%; width: 400px; height: 290px; transform: translateY(-50%); pointer-events: none; }
.vb-grafik i { position: absolute; width: 62%; height: 63%; border-radius: 26px; display: block; }
.vb-grafik i:nth-child(1) { left: 10%; top: 24%; background: rgba(255,255,255,.10); }
.vb-grafik i:nth-child(2) { left: 22%; top: 13%; background: rgba(255,255,255,.14); }
.vb-grafik i:nth-child(3) { left: 34%; top: 2%; background: var(--vb-akzent); border: 1px solid rgba(255,255,255,.35); }
.vb-grafik b { position: absolute; left: 12%; height: 6.5%; border-radius: 99px; background: rgba(255,255,255,.35); }
.vb-grafik b:nth-of-type(1) { top: 18%; width: 46%; background: rgba(255,255,255,.7); }
.vb-grafik b:nth-of-type(2) { top: 32%; width: 73%; height: 5%; }
.vb-grafik b:nth-of-type(3) { top: 44%; width: 60%; height: 5%; }
.vb-grafik s { position: absolute; left: 74%; top: 66%; width: 19%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.88); }

.vb-rechts { display: flex; flex-direction: column; min-width: 0; }
.vb-formular { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.vb-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.vb-kopf h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.vb-kopf p { font-size: 15px; color: var(--vb-leise); margin: 4px 0 0; }
.vb-kopf p b { color: var(--vb-tinte); }
.vb-feld { display: flex; flex-direction: column; gap: 6px; }
.vb-feld-kopf { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 500; }
.vb-eingabe { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid var(--vb-linie); border-radius: 12px; background: var(--vb-feld); font-size: 15.5px; outline: none; }
.vb-eingabe:focus { border: 2px solid var(--vb-akzent); padding: 0 13px; }
.vb-mit-auge { position: relative; display: block; }
.vb-mit-auge .vb-eingabe { padding-right: 44px; }
.vb-auge { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; cursor: pointer; color: var(--vb-leise); }
.vb-auge::before { content: ""; position: absolute; inset: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M1.5 9S4.5 3.5 9 3.5 16.5 9 16.5 9 13.5 14.5 9 14.5 1.5 9 1.5 9Z'/%3E%3Ccircle cx='9' cy='9' r='2.3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M1.5 9S4.5 3.5 9 3.5 16.5 9 16.5 9 13.5 14.5 9 14.5 1.5 9 1.5 9Z'/%3E%3Ccircle cx='9' cy='9' r='2.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.vb-auge.an { color: var(--vb-akzent); }
.vb-hinweis, .vb-klein { font-size: 13px; color: var(--vb-leise); margin: 0; }
.vb-klein a, .vb-hinweis a { color: var(--vb-akzent); }
.vb-staerke { display: flex; gap: 4px; padding-top: 2px; }
.vb-staerke i { flex: 1; height: 4px; border-radius: 2px; background: var(--vb-linie); }
.vb-staerke[data-stufe="1"] i:nth-child(1) { background: var(--vb-warn); }
.vb-staerke[data-stufe="2"] i:nth-child(-n+2), .vb-staerke[data-stufe="3"] i { background: var(--vb-akzent); }
.vb-haupt { height: 48px; border: 0; border-radius: 14px; background: var(--vb-akzent); color: #fff !important; font-size: 15.5px; font-weight: 600; cursor: pointer; padding: 0 24px; }
.vb-haupt:disabled { opacity: .6; cursor: default; }
.vb-passkey { height: 48px; border: 0; border-radius: 14px; background: var(--vb-tinte); color: var(--vb-grund) !important; font-size: 15.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.vb-passkey::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='7' cy='6' r='3'/%3E%3Cpath d='M2 15c0-2.8 2.2-4.5 5-4.5 1 0 1.9.2 2.6.6M13.5 9.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM13.5 13.5V16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='7' cy='6' r='3'/%3E%3Cpath d='M2 15c0-2.8 2.2-4.5 5-4.5 1 0 1.9.2 2.6.6M13.5 9.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM13.5 13.5V16'/%3E%3C/svg%3E") center/contain no-repeat; }
.vb-passkey:disabled { opacity: .6; }
.vb-symbol { width: 40px; height: 40px; background: var(--vb-akzent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='7' cy='6' r='3'/%3E%3Cpath d='M2 15c0-2.8 2.2-4.5 5-4.5 1 0 1.9.2 2.6.6M13.5 9.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM13.5 13.5V16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='7' cy='6' r='3'/%3E%3Cpath d='M2 15c0-2.8 2.2-4.5 5-4.5 1 0 1.9.2 2.6.6M13.5 9.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM13.5 13.5V16'/%3E%3C/svg%3E") center/contain no-repeat; }
.vb-link { border: 0; background: none; padding: 0; color: var(--vb-akzent) !important; font-weight: 500; font-size: 14px; cursor: pointer; }
.vb-link.leise { color: var(--vb-leise) !important; font-weight: 400; font-size: 12.5px; }
.vb-zurueck { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--vb-akzent) !important; font-weight: 500; font-size: 14px; cursor: pointer; }
.vb-trenner { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--vb-leise); }
.vb-trenner span { flex: 1; height: 1px; background: var(--vb-linie); }
.vb-fehler { color: var(--vb-warn); font-size: 13.5px; margin: 0; }
.vb-fehler:empty { display: none; }
.vb-unten { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--vb-leise); padding-top: 4px; }
.vb-reihe { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vb-neuer-code { font-size: 14px; color: var(--vb-leise); }
.vb-code { position: relative; cursor: text; }
.vb-code-roh { position: absolute; inset: 0; opacity: .01; width: 100%; border: 0; font-size: 16px; }
.vb-kaesten { display: flex; gap: 8px; pointer-events: none; }
.vb-kasten { width: 48px; height: 56px; box-sizing: border-box; border: 1px solid var(--vb-linie); border-radius: 12px; background: var(--vb-feld); display: grid; place-items: center; font-size: 24px; font-weight: 500; }
.vb-kasten.aktiv { border: 2px solid var(--vb-akzent); }
.vb-fuss { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 24px; font-size: 12px; color: var(--vb-leise); }
.vb-fuss a { color: inherit; text-decoration: none; }

@media (max-width: 760px) {
  .vb-anmelden { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .vb-marke { padding: calc(env(safe-area-inset-top, 0px) + 40px) 24px 20px; min-height: 220px; }
  .vb-claim { font-size: 26px; max-width: 240px; }
  .vb-unterzeile, .vb-sicher { display: none; }
  .vb-worte { margin-top: 18px; gap: 8px; }
  .vb-worte span { font-size: 12.5px; padding: 5px 11px; }
  .vb-grafik { width: 200px; height: 150px; right: -30px; top: 40px; transform: none; }
  .vb-grafik i { border-radius: 18px; }
  .vb-formular { align-items: flex-start; padding: 24px; }
  .vb-kasten { width: 44px; height: 52px; }
}

/* ---------- Einstellungen ---------- */
.vb-einstellungen { display: grid; grid-template-columns: 260px 1fr; gap: 32px; max-width: 1180px; color: var(--vb-tinte); }
.vb-einst-nav h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 16px 10px; }
.vb-einst-nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.vb-einst-nav li a, .vb-einst-konto { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--vb-tinte); text-decoration: none; font-size: 15px; }
.vb-einst-nav li a:hover, .vb-einst-konto:hover { background: var(--vb-vertieft); }
.vb-einst-nav li a.aktiv, .vb-einst-konto.aktiv { background: var(--vb-sanft); color: var(--vb-akzent); font-weight: 600; }
.vb-einst-nav li a small { font-size: 11px; font-weight: 600; color: var(--vb-leise); }
.vb-einst-konto { justify-content: flex-start; padding: 10px 12px; }
.vb-einst-unten { border-top: 1px solid var(--vb-linie); margin: 12px 12px 0; padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.vb-abmelden { border: 0; background: none; padding: 0; color: var(--vb-warn); font: inherit; font-weight: 500; cursor: pointer; }
.vb-einst-rechts h2 { font-size: 26px; font-weight: 600; margin: 4px 0 18px; letter-spacing: -0.01em; }
.vb-einst-inhalt { display: flex; flex-direction: column; gap: 20px; }
.vb-karte { background: var(--vb-karte); border: 1px solid var(--vb-linie); border-radius: 28px; padding: 6px 0; }
.vb-karte-titel { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vb-leise); padding: 14px 22px 6px; }
.vb-zeile { display: flex; align-items: center; gap: 16px; padding: 12px 22px; min-height: 30px; border-top: 1px solid var(--vb-linie); }
.vb-karte-titel + .vb-zeile, .vb-karte > .vb-zeile:first-child { border-top: 0; }
.vb-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vb-zeile-text b { font-weight: 500; overflow-wrap: anywhere; }
.vb-zeile-text small { font-size: 13px; color: var(--vb-leise); }
.vb-zeile-rechts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vb-zeile input.vb-eingabe { height: 38px; }
.vb-karte > .vb-klein { padding: 4px 22px 12px; }
.vb-knopf { border: 1px solid var(--vb-linie); background: var(--vb-karte); color: var(--vb-tinte); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.vb-knopf:hover { background: var(--vb-vertieft); }
.vb-knopf.haupt { background: var(--vb-akzent); border-color: var(--vb-akzent); color: #fff; font-weight: 500; }
.vb-knopf:disabled { opacity: .5; cursor: default; }
.vb-wert { color: var(--vb-leise); }
.vb-segment { display: inline-flex; background: var(--vb-vertieft); border-radius: 10px; padding: 2px; }
.vb-segment button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--vb-tinte); }
.vb-segment button.aktiv { background: var(--vb-karte); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vb-leer { color: var(--vb-leise); font-size: 13.5px; padding: 12px 0; }

.vb-initiale { width: 32px; height: 32px; border-radius: 50%; background: var(--vb-akzent, #262420); color: #FBF8F2; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.vb-initiale.gross { width: 44px; height: 44px; font-size: 18px; }
.vb-initiale-knopf { position: relative; display: inline-flex; text-decoration: none; }
.vb-punkt { position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--vb-warn); border: 2px solid var(--vb-grund); }
.vb-konto-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--vb-vertieft); color: var(--vb-tinte); text-decoration: none; }
.vb-konto-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vb-konto-text b { font-size: 13.5px; font-weight: 600; }
.vb-konto-text small { font-size: 12px; color: var(--vb-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-einst-konto .vb-konto-text b { font-size: 15px; }
.vb-pfeil { color: var(--vb-leise); }

@media (max-width: 760px) {
  .vb-einstellungen { grid-template-columns: 1fr; gap: 16px; }
  .vb-einst-nav { display: contents; }
  .vb-einst-nav h1 { order: 1; margin: 0; } .vb-einst-konto { order: 2; } .vb-einst-nav ul { order: 3; margin: 0; }
  .vb-einst-rechts { order: 4; } .vb-einst-unten { order: 5; }
  .vb-einst-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .vb-einst-nav li a { white-space: nowrap; padding: 6px 12px; background: var(--vb-vertieft); }
  .vb-einst-nav li a small { display: none; }
  .vb-einst-unten { margin: 8px 0 0; flex-direction: row; gap: 16px; }
  .vb-zeile { flex-wrap: wrap; padding: 12px 18px; }
  .vb-zeile-rechts { justify-content: flex-start; }
}

/* Hinweis „Schau in dein Postfach“: Briefumschlag statt Person */
.vb-symbol.vb-post { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2' y='4' width='14' height='10' rx='2'/%3E%3Cpath d='m2.5 5 6.5 5 6.5-5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2' y='4' width='14' height='10' rx='2'/%3E%3Cpath d='m2.5 5 6.5 5 6.5-5'/%3E%3C/svg%3E"); }
.vb-gut { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--vb-sanft); color: var(--vb-tinte); font-size: 14px; }
