/* wertox.app Login-Bereich (25.9.2026), Richtung „Übersicht 1 · Wochenbrief".
   Farben und Radien wie in der App (mobile/src/utils/theme.js, tokens.js).
   Schriften selbst gehostet: keine Anfrage an Google (LG München 3 O 17493/20). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/public/fonts/PlusJakartaSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/public/fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/public/fonts/PlusJakartaSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/public/fonts/PlusJakartaSans_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url("/public/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }

:root {
  --bg: #F7F7FA; --bg2: #EFEFF4; --karte: #FFFFFF; --rand: #E6E6EE; --rand2: #D8D9E4;
  --text: #16171D; --text2: #43454F; --text3: #7C7E8A;
  --akzent: #3A56E4; --akzent-dunkel: #2A3FB8; --akzent-bg: rgba(58, 86, 228, 0.08);
  --gruen: #1E9E5A; --gold: #C77D0A; --rot: #D53A2B;
  --schatten: 0 2px 6px rgba(22, 23, 29, 0.04), 0 18px 44px rgba(22, 23, 29, 0.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-dunkel); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
.display { font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing: -0.02em; }
.laden { padding: 80px 16px; text-align: center; color: var(--text3); }
.leise { color: var(--text3); }
.fehler { color: var(--rot); font-weight: 600; }

/* ── Kopf ── */
.kopf { background: var(--karte); border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; color: var(--text); }
.logo i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--akzent); color: #fff; font-size: 16px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text2); font-weight: 600; font-size: 14.5px; padding: 8px 15px; border-radius: 999px; white-space: nowrap; }
.nav a.aktiv { color: var(--akzent-dunkel); background: var(--akzent-bg); }
.ich { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; object-fit: cover; flex-shrink: 0; }
.avatar.gross { width: 72px; height: 72px; font-size: 28px; }
@media (max-width: 760px) {
  .kopf-innen { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .ich span { display: none; }
}

/* ── Inhalt ── */
.seite { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 22px; }
.seite.breit { max-width: 1040px; }
@media (max-width: 760px) { .seite { padding: 24px 16px 48px; } }
.ueber { font-size: 14px; color: var(--text3); font-weight: 600; }
.titel { font-family: "Bricolage Grotesque", sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 4px; }
@media (max-width: 760px) { .titel { font-size: 32px; } }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 22px; padding: 22px 24px; }
.karte.schatten { box-shadow: var(--schatten); }
.karte h2 { font-size: 16px; font-weight: 700; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 18px; }
.kachel .k { font-size: 13px; color: var(--text3); font-weight: 600; }
.kachel .w { font-size: 28px; font-weight: 800; margin-top: 6px; line-height: 1.15; }
.kachel .z { font-size: 13px; color: var(--text2); }
.plus { color: var(--gruen); font-weight: 700; }
.minus { color: var(--gold); font-weight: 700; }
.coach { display: flex; gap: 16px; align-items: flex-start; }
.coach-bild { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; }
.coach p { margin: 6px 0 0; font-size: 17px; line-height: 1.6; }
.tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.tag .l { font-size: 12.5px; color: var(--text3); font-weight: 600; }
.tag .p { margin: 8px auto 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg2); }
.tag .p.ok { background: var(--gruen); }
.tag .p.halb { background: var(--gold); }
.tag .p.offen { background: transparent; border: 2px solid var(--rand2); }
.tag .u { font-size: 12px; color: var(--text2); margin-top: 6px; overflow-wrap: anywhere; }
.tag.heute .l, .tag.heute .u { color: var(--text); font-weight: 700; }
.zeile { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--bg2); font-size: 14.5px; }
.zeile:first-of-type { border-top: 0; }
.app-hinweis { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }
.app-hinweis svg { flex-shrink: 0; }
.diagramm { width: 100%; height: auto; display: block; }

/* ── Knöpfe, Reiter ── */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px; background: var(--akzent); color: #fff; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf.leise { background: var(--karte); color: var(--text); border: 1.5px solid var(--rand2); }
.knopf.leise:hover { background: var(--bg); color: var(--text); }
.knopf.gefahr { background: var(--karte); color: var(--rot); border: 1.5px solid var(--rand2); }
.knopf:disabled { opacity: 0.55; cursor: default; }
.reiter { display: inline-flex; gap: 4px; background: var(--bg2); border-radius: 999px; padding: 4px; align-self: flex-start; flex-wrap: wrap; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.reiter a { color: var(--text2); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; }
.reiter a.aktiv { background: var(--karte); color: var(--text); box-shadow: 0 1px 3px rgba(22, 23, 29, 0.08); }
.reiter button { border: 0; background: transparent; color: var(--text2); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; min-height: 36px; }
.reiter button.aktiv { background: var(--karte); color: var(--text); box-shadow: 0 1px 3px rgba(22, 23, 29, 0.08); }

/* ── Feed ── */
.beitrag { display: flex; flex-direction: column; gap: 12px; }
.beitrag-kopf { display: flex; align-items: center; gap: 12px; }
.beitrag-kopf b { display: block; font-size: 15px; }
.beitrag-kopf a { color: var(--text); }
.beitrag-text { margin: 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.medien { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.medien img, .medien video { width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; background: var(--bg2); }
.werte { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.werte .k { font-size: 12.5px; color: var(--text3); }
.werte b { font-size: 16px; }
.geteilt { font-size: 13px; color: var(--text3); font-weight: 600; }
.original { border: 1px solid var(--rand); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pille { border: 1px solid var(--rand); background: var(--karte); border-radius: 999px; padding: 8px 14px; min-height: 40px; color: var(--text); font-weight: 600; font-size: 14px; }
.pille.an { border-color: var(--akzent); background: var(--akzent-bg); color: var(--akzent-dunkel); }
.emojis { display: inline-flex; gap: 4px; }
.emojis button { border: 1px solid var(--rand); background: var(--karte); border-radius: 999px; width: 40px; height: 40px; font-size: 18px; }
.emojis button.an { border-color: var(--akzent); background: var(--akzent-bg); }
.kommentare { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--bg2); padding-top: 12px; }
.kommentar { font-size: 14.5px; }
.kommentar b { margin-right: 6px; }
.eingabe { display: flex; gap: 8px; }
.eingabe input, .feld input { flex: 1; min-height: 44px; border: 1.5px solid var(--rand2); border-radius: 12px; padding: 10px 14px; font: inherit; background: var(--karte); color: var(--text); }
.eingabe input:focus, .feld input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: transparent; }

/* ── Profil ── */
.profil-kopf { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profil-kopf .name { font-family: "Bricolage Grotesque", sans-serif; font-size: 30px; font-weight: 800; }
.zahlen { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--text2); }
.zahlen b { display: block; font-size: 20px; color: var(--text); }

/* ── Pläne ── */
.plan-tag h3 { font-size: 16px; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.marke { font-size: 12px; font-weight: 700; color: var(--akzent-dunkel); background: var(--akzent-bg); border-radius: 999px; padding: 3px 9px; }
.mahlzeit { padding: 10px 0; border-top: 1px solid var(--bg2); }
.mahlzeit summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.mahlzeit summary::-webkit-details-marker { display: none; }
.mahlzeit ul { margin: 8px 0 0; padding-left: 18px; color: var(--text2); font-size: 14px; }
.posten { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bg2); font-size: 14.5px; }
.posten.erledigt { color: var(--text3); text-decoration: line-through; }
.posten small { display: block; color: var(--text3); font-size: 12.5px; text-decoration: none; }
.frost { background: rgba(47, 107, 235, 0.08); color: #1F4FB8; border-radius: 14px; padding: 12px 14px; font-size: 14px; }

/* ── Anmelden ── */
.anmelden { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.anmelden .karte { width: 100%; max-width: 420px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text2); }
.link-knopf { border: 0; background: none; color: var(--akzent); font-weight: 600; padding: 4px 0; align-self: flex-start; min-height: 32px; }

/* ── Drucken (Einkaufsliste) ── */
@media print {
  .kopf, .reiter, .kein-druck { display: none !important; }
  body { background: #fff; }
  .seite { padding: 0; max-width: none; }
  .karte { border: 0; padding: 0; break-inside: avoid; }
}
