/* HebApp – ein Stylesheet, kein Build-Schritt. Mobil zuerst. made by rceV1 */
:root {
  --akzent: #6b3566; --akzent-dunkel: #4a2347; --akzent-hell: #f3e9f2; --akzent-mittel: #b388ad;
  --papier: #f6f3f7; --karte: #ffffff; --tinte: #241a24; --grau: #6e6472;
  --linie: #e6dee6; --gruen: #1f7a4d; --gruen-hell: #e4f3ea; --rot: #b42f2a; --rot-hell: #fbe8e6;
  --gelb-hell: #fff3d4; --gelb: #8a6410; --blau-hell: #e8eef8; --blau: #2b4f8a;
  --radius: 14px; --schatten: 0 1px 2px rgba(36,26,36,.05), 0 6px 18px -10px rgba(36,26,36,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--papier); color: var(--tinte); font-size: 16px; line-height: 1.45;
  padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
a { color: var(--akzent-dunkel); }
h1 { font-size: 1.55rem; margin: .2rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; margin: 1.3rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0; }
small, .klein { font-size: .86rem; color: var(--grau); }
.stumm { color: var(--grau); }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; position: sticky; top: 0; z-index: 5;
  background: linear-gradient(135deg, #6b3566 0%, #4a2347 100%); color: #fff; box-shadow: 0 2px 10px rgba(36,26,36,.25); }
.marke { display: flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.marke img { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
nav.haupt { display: none; gap: .1rem; flex: 1; margin-left: .5rem; }
nav.haupt a { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: rgba(255,255,255,.85); padding: .4rem .5rem; border-radius: 9px; font-size: .88rem; }
nav.haupt a svg { width: 1.1em; height: 1.1em; opacity: .9; }
nav.haupt a.aktiv, nav.haupt a:hover { background: rgba(255,255,255,.16); color: #fff; }
.suche { display: none; }
.kopf .suche input { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: .4rem .9rem; width: 140px; font: inherit; font-size: .88rem; }
.kopf .suche input::placeholder { color: rgba(255,255,255,.7); }
.kopf .suche input:focus { outline: none; background: rgba(255,255,255,.22); width: 220px; }
.konto { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; background: rgba(255,255,255,.16);
  color: #fff; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; font-weight: 600; }
@media (min-width: 960px) { nav.haupt { display: flex; } .leiste { display: none !important; } body { padding-bottom: 2rem; } }
@media (min-width: 1400px) { .suche { display: flex; } }
@media (min-width: 1500px) { nav.haupt a { font-size: .97rem; padding: .5rem .75rem; gap: .45rem; } .kopf .suche input { width: 190px; } }
.konto span { display: none; }
@media (min-width: 1180px) { .konto span { display: inline; } }

.leiste { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--karte);
  border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); z-index: 5; box-shadow: 0 -4px 16px rgba(36,26,36,.06); }
.leiste a { flex: 1; text-align: center; text-decoration: none; color: var(--grau); font-size: .7rem; padding: .45rem 0 .4rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.leiste a svg { width: 1.45rem; height: 1.45rem; }
.leiste a.aktiv { color: var(--akzent-dunkel); font-weight: 700; }

.inhalt { max-width: 1060px; margin: 0 auto; padding: 1rem; }
.fuss { text-align: center; font-size: .8rem; color: var(--grau); padding: 1.2rem 1rem 1.6rem; }
.fuss a { color: var(--grau); text-decoration: none; }
.fuss b { color: var(--akzent-dunkel); }

.meldung { background: var(--gruen-hell); color: var(--gruen); border: 1px solid #bfe0c9; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.warnung { background: var(--gelb-hell); color: var(--gelb); border: 1px solid #ecd9a0; padding: .7rem 1rem; border-radius: var(--radius); margin: .8rem 0; }
.fehler { background: var(--rot-hell); color: var(--rot); border: 1px solid #efc2c0; padding: .7rem 1rem; border-radius: var(--radius); margin: .8rem 0; }
.hinweis { background: var(--blau-hell); padding: .7rem 1rem; border-radius: var(--radius); margin: .8rem 0; font-size: .92rem; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.karte h2:first-child, .karte h3:first-child { margin-top: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: inherit; box-shadow: var(--schatten); position: relative; overflow: hidden; }
.kachel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--akzent), var(--akzent-mittel)); }
.kachel.warn::after { background: linear-gradient(90deg, var(--rot), #e8a29f); }
.kachel.gut::after { background: linear-gradient(90deg, var(--gruen), #8fd1ac); }
.kachel .zahl { font-size: 1.75rem; font-weight: 800; color: var(--akzent-dunkel); display: block; line-height: 1.1; letter-spacing: -.02em; }
.kachel.warn .zahl { color: var(--rot); } .kachel.gut .zahl { color: var(--gruen); }
.kachel .text { font-size: .84rem; color: var(--grau); }
.schnell { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.zeile { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.rechts { margin-left: auto; }
.spalten { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .spalten { grid-template-columns: 1fr 1fr; } }

/* Diagramm */
.diagramm { display: flex; align-items: flex-end; gap: .6rem; height: 150px; padding-top: 1.2rem; }
.saeule { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.saeule i { display: block; width: 100%; max-width: 46px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--akzent-mittel), var(--akzent)); transition: height .3s; }
.saeule:last-child i { background: linear-gradient(180deg, #8fd1ac, var(--gruen)); }
.saeule .wert { position: absolute; top: -1.1rem; font-size: .72rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.saeule .monat { font-size: .75rem; color: var(--grau); margin-top: .3rem; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste a.titel { font-weight: 600; text-decoration: none; color: var(--tinte); }
.liste .meta { font-size: .86rem; color: var(--grau); }
.liste .rechts { text-align: right; white-space: nowrap; }
.marker { display: inline-block; font-size: .74rem; padding: .12rem .55rem; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.marker.gruen { background: var(--gruen-hell); color: var(--gruen); }
.marker.rot { background: var(--rot-hell); color: var(--rot); }
.marker.gelb { background: var(--gelb-hell); color: var(--gelb); }
.marker.grau { background: #eee9ee; color: var(--grau); }

/* Formulare */
form.formular { display: grid; gap: .9rem; }
label { display: block; font-size: .86rem; color: var(--grau); margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search],
input[type=tel], select, textarea { width: 100%; font: inherit; padding: .66rem .8rem; border: 1px solid #d4cad4; border-radius: 11px; background: #fff; color: var(--tinte); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
textarea { min-height: 5.5rem; resize: vertical; }
.felder { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .felder { grid-template-columns: 1fr 1fr; } .felder .breit { grid-column: 1 / -1; } }
.kreuz { display: flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--tinte); }
.kreuz input { width: 1.2rem; height: 1.2rem; accent-color: var(--akzent); }
button, .knopf { font: inherit; font-weight: 600; padding: .7rem 1.1rem; border-radius: 11px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; transition: transform .06s, background .15s; }
button:hover, .knopf:hover { background: var(--akzent-dunkel); }
button:active, .knopf:active { transform: translateY(1px); }
.knopf.zweit, button.zweit { background: #fff; color: var(--akzent-dunkel); }
.knopf.zweit:hover, button.zweit:hover { background: var(--akzent-hell); }
.knopf.leise, button.leise { background: transparent; border-color: transparent; color: var(--grau); padding: .4rem .6rem; }
.knopf.gefahr, button.gefahr { background: #fff; color: var(--rot); border-color: var(--rot); }
.knopf.gross, button.gross { font-size: 1.15rem; padding: 1rem 1.4rem; width: 100%; }
.knopf.gruen, button.gruen { background: var(--gruen); border-color: var(--gruen); }
.knopf.rot, button.rot { background: var(--rot); border-color: var(--rot); }
.aktionen { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; }
legend { padding: 0 .4rem; font-size: .9rem; color: var(--grau); }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .78rem; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.korrektur td { background: var(--gelb-hell); }
tr.summe td { font-weight: 700; border-top: 2px solid var(--tinte); }

/* Stoppuhr */
.stoppuhr { text-align: center; padding: 1.4rem 1rem; background: linear-gradient(180deg, #fff, var(--akzent-hell)); }
.stoppuhr .anzeige { font-size: 3.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--akzent-dunkel); }
.stoppuhr .takt { font-size: 1rem; color: var(--grau); }
.stoppuhr .takt b { color: var(--tinte); }

/* Kapazitaet */
.balken { height: 10px; background: #ece6ec; border-radius: 999px; overflow: hidden; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--akzent-mittel), var(--akzent)); }
.balken i.voll { background: var(--rot); }

/* Geld-Check */
.befund { border-left: 5px solid var(--linie); }
.befund.geld { border-left-color: var(--rot); }
.befund.achtung { border-left-color: #e0b24a; }
.befund.hinweis { border-left-color: var(--akzent-mittel); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.chat .n { max-width: 85%; padding: .7rem .95rem; border-radius: 16px; white-space: pre-wrap; line-height: 1.45; }
.chat .n.user { align-self: flex-end; background: var(--akzent); color: #fff; border-bottom-right-radius: 4px; }
.chat .n.assistant { align-self: flex-start; background: var(--karte); border: 1px solid var(--linie); border-bottom-left-radius: 4px; box-shadow: var(--schatten); }
.chat .werkzeuge { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.chat .werkzeuge span { font-size: .72rem; background: var(--akzent-hell); color: var(--akzent-dunkel); padding: .1rem .5rem; border-radius: 999px; }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--papier); padding: .5rem 0; }
@media (min-width: 960px) { .chat-form { bottom: 0; } }
.chat-form textarea { min-height: 3rem; flex: 1; }

/* Anmeldung */
.anmeldung { max-width: 420px; margin: 8vh auto; }
.anmeldung h1 { text-align: center; }
pre.code { background: #f1ecf1; padding: .8rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; }
@media print { .kopf, .leiste, .aktionen, button, .knopf, .fuss { display: none !important; } body { padding: 0; background: #fff; } .karte { border: 0; box-shadow: none; } }
