/* Kundenbereich Rheinmarketing: Erscheinungsbild wie www.rheinmarketing.de
   (weiße Kopfleiste mit Schriftzug, rheingrüne Fläche mit weißer Schrift und hellgrüner Zeile, gelbe Knöpfe mit schwarzem Pfeilkasten) */
@font-face { font-family: "Urbanist"; src: url("/Urbanist-var.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --gruen: #0B2E2C; --gruen-2: #12403C; --hellgruen: #BCFD68; --grasgruen: #80B700; --gelb: #F5FE90;
  --sand: #FAF6F5; --weiss: #FFFFFF; --ink: #0B2E2C; --ink-2: #56625F; --linie: rgba(11, 46, 44, .14);
  --gut: #3B6E00; --gut-bg: rgba(128, 183, 0, .15); --achtung: #8A4B00; --achtung-bg: rgba(245, 166, 35, .16);
  --schrift: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rand: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--sand); color: var(--ink); font: 500 16px/1.5 var(--schrift); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--grasgruen); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.innen { max-width: 1280px; margin: 0 auto; padding-left: var(--rand); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }

/* Kopfleiste */
.kopf { background: var(--weiss); position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf .innen { height: 84px; display: flex; align-items: center; gap: 32px; }
.logo { display: block; width: 206px; height: auto; flex: none; }
.logo img { display: block; width: 100%; height: auto; }
.menue { display: flex; gap: 6px; margin: 0 auto; }
.menue button { background: none; border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--ink); position: relative; }
.menue button:hover { background: var(--sand); }
.menue button[aria-current="page"] { font-weight: 600; }
.menue button[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--hellgruen); }
.menue .schloss { display: inline-block; vertical-align: -2px; margin-left: 5px; opacity: .7; }
.konto { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); flex: none; }
.konto b { color: var(--ink); font-weight: 600; }

/* Knöpfe nach Website-Maß: 44 px, Ecken 12, Pfeilkasten 30 × 30 */
.knopf { height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 7px 0 18px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.knopf:hover { filter: brightness(.97); }
.knopf:active { transform: translateY(1px); }
.knopf .pfeil { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.knopf-gelb { background: var(--gelb); color: #000; }
.knopf-gelb .pfeil { background: #000; color: var(--gelb); }
.knopf-gruen { background: var(--gruen); color: var(--weiss); }
.knopf-gruen .pfeil { background: var(--gelb); color: #000; }
.knopf-rand { background: transparent; border-color: var(--linie); color: var(--ink); padding: 0 18px; }
.knopf-rand:hover { background: var(--weiss); }
.knopf-klein { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.knopf[disabled] { opacity: .55; cursor: default; }

/* Anmeldung: vollflächig */
.anmeldung { background: var(--gruen); color: var(--weiss); min-height: calc(100svh - 84px - env(safe-area-inset-top, 0px)); display: flex; align-items: center; overflow: hidden; position: relative; }
.anmeldung::before { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 90%; background: radial-gradient(closest-side, rgba(188, 253, 104, .13), transparent); pointer-events: none; }
.anmeldung .innen { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 64px; position: relative; }
.anmeldung h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.08; }
.anmeldung h1 span { color: var(--hellgruen); display: block; }
.anmeldung .unterzeile { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-top: 26px; }
.anmeldung .text { color: rgba(255, 255, 255, .82); max-width: 52ch; margin-top: 12px; font-size: 17px; }
.formular { margin-top: 32px; display: grid; gap: 12px; max-width: 520px; }
.formular label { font-size: 14px; color: rgba(255, 255, 255, .75); }
.formular .reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.formular input { flex: 1 1 260px; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); color: var(--weiss); padding: 0 16px; font-size: 16px; }
.formular input::placeholder { color: rgba(255, 255, 255, .5); }
.formular input:focus { outline: none; border-color: var(--hellgruen); background: rgba(255, 255, 255, .1); }
.formular .knopf { height: 48px; }
.formular .klein { font-size: 14px; color: rgba(255, 255, 255, .65); }
.meldung { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.meldung.gut { background: rgba(188, 253, 104, .14); color: var(--hellgruen); }
.meldung.schlecht { background: rgba(255, 170, 120, .14); color: #FFC9A8; }
.figur { position: relative; justify-self: center; width: min(100%, 420px); }
.figur img { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.blase { position: absolute; z-index: 1; top: 6%; left: -18%; background: var(--weiss); color: var(--ink); border-radius: 16px; padding: 12px 16px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); max-width: 240px; }
.blase::after { content: ""; position: absolute; right: 26px; bottom: -8px; width: 16px; height: 16px; background: var(--weiss); transform: rotate(45deg); border-radius: 3px; }
.vorteile { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.vorteile span::before { content: "✓"; color: var(--hellgruen); margin-right: 7px; font-weight: 700; }

/* Bereich nach der Anmeldung */
.band { background: var(--gruen); color: var(--weiss); }
.band .innen { padding-block: 44px 40px; display: grid; gap: 18px; }
.band .ueber { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.band h1 { font-size: clamp(34px, 4.2vw, 56px); }
.band h1 span { color: var(--hellgruen); }
.stand { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 9px 14px; justify-self: start; }
.stand b { color: var(--weiss); font-weight: 600; }
.stand .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--hellgruen); box-shadow: 0 0 0 4px rgba(188, 253, 104, .18); }
main.inhalt .innen { padding-block: 36px 96px; display: grid; gap: 28px; }
.abschnitt { display: grid; gap: 16px; }
.abschnitt > .kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.abschnitt h2 { font-size: clamp(24px, 2.4vw, 32px); }
.hinweis { font-size: 14px; color: var(--ink-2); }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 24px; display: grid; gap: 16px; min-width: 0; align-content: start; }
.karte h3 { font-size: 20px; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.zwei { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

.kennzahlen { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.kennzahl { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.kennzahl .t { font-size: 14px; color: var(--ink-2); }
.kennzahl .w { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.kennzahl .v { font-size: 14px; color: var(--ink-2); }
.hoch { color: var(--gut); font-weight: 600; }
.runter { color: var(--achtung); font-weight: 600; }

.brief { background: var(--gruen); color: var(--weiss); border-radius: 16px; padding: 28px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.brief .ueber { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--hellgruen); font-weight: 600; }
.brief p { color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.55; max-width: 60ch; white-space: pre-line; }
.brief .von { font-size: 14px; color: rgba(255, 255, 255, .6); }

.liste { display: grid; }
.zeile { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-block: 13px; border-top: 1px solid var(--linie); }
.zeile:first-child { border-top: 0; padding-top: 0; }
.zeile .dt { font-size: 14px; color: var(--ink-2); }
.zeile .tx small { display: block; color: var(--ink-2); font-size: 14px; }
.marke { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--linie); border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.pille { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 3px 10px; white-space: nowrap; }
.pille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-laeuft { background: var(--gut-bg); color: var(--gut); }
.p-arbeit { background: var(--gelb); color: #000; }
.p-pause { background: var(--achtung-bg); color: var(--achtung); }
.p-fertig { background: rgba(11, 46, 44, .07); color: var(--ink-2); }
.leer { color: var(--ink-2); padding: 6px 0; }

.balken svg { width: 100%; height: auto; display: block; }
.balken text { fill: var(--ink-2); font: 500 11px var(--schrift); }

/* Gesperrt: Zahlen nur mit Sichtbar */
.gesperrt { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--linie); background: var(--weiss); }
.gesperrt .dahinter { filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; padding: 24px; display: grid; gap: 16px; }
.gesperrt .davor { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, rgba(250, 246, 245, .2), rgba(11, 46, 44, .55)); }
.angebot { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 26px; max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.angebot > div { display: grid; gap: 12px; align-content: start; }
.angebot img { width: 120px; height: auto; align-self: end; }
.angebot h3 { font-size: 24px; }
.angebot ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 3px; }
.angebot .preis { color: var(--ink-2); font-size: 15px; }
.angebot .preis b { font-size: 30px; color: var(--ink); font-weight: 700; }
.schild { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Dateien */
.galerie { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.kachel { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--weiss); display: grid; text-decoration: none; color: inherit; }
.kachel .bild { aspect-ratio: 4 / 3; background: var(--sand) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-2); font-weight: 700; font-size: 13px; max-width: 100%; }
.kachel .unter { padding: 9px 11px; font-size: 13px; display: grid; gap: 2px; min-width: 0; }
.kachel .unter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel .unter small { color: var(--ink-2); }
.kachel:hover { border-color: var(--gruen); }
.hochladen { border: 2px dashed var(--linie); border-radius: 16px; padding: 26px; background: var(--sand); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; transition: border-color .15s, background .15s; }
.hochladen.drueber { border-color: var(--grasgruen); background: var(--gut-bg); }
.hochladen img { width: 96px; height: auto; }
.hochladen input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hochladen label { cursor: pointer; }
.hochladen label:focus-within { outline: 3px solid var(--grasgruen); outline-offset: 2px; }
.fortschritt { display: grid; gap: 8px; }
.fortschritt .z { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.fortschritt .z span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fortschritt i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(11, 46, 44, .1); overflow: hidden; }
.fortschritt i b { display: block; height: 100%; background: var(--grasgruen); width: 0; transition: width .2s; }

.fuss { border-top: 1px solid var(--linie); }
.fuss .innen { padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.fuss a { color: var(--ink-2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--gruen); color: var(--weiss); padding: 13px 18px; border-radius: 12px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.dialog-hg { position: fixed; inset: 0; background: rgba(11, 46, 44, .55); display: grid; place-items: center; z-index: 45; padding: 16px; }
.laden { padding: 80px 20px; text-align: center; color: var(--ink-2); }

/* Handy: Menü unten wie eine App */
.untenmenue { display: none; }
@media (max-width: 900px) {
  .kopf .innen { height: 68px; }
  .logo { width: 172px; }
  .menue, .konto .name { display: none; }
  .untenmenue { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--weiss); border-top: 1px solid var(--linie); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .untenmenue button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); border-radius: 10px; min-height: 52px; position: relative; }
  .untenmenue button[aria-current="page"] { color: var(--ink); background: rgba(188, 253, 104, .25); }
  .untenmenue .schloss { position: absolute; top: 4px; right: calc(50% - 20px); }
  main.inhalt .innen { padding-bottom: 120px; }
  .fuss { padding-bottom: 70px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .anmeldung { min-height: calc(100svh - 68px - env(safe-area-inset-top, 0px)); align-items: start; }
  .anmeldung .innen { grid-template-columns: 1fr; gap: 8px; padding-block: 40px 48px; text-align: center; }
  .anmeldung .text, .formular { margin-inline: auto; }
  .formular { text-align: left; width: 100%; }
  .formular .knopf { width: 100%; }
  .vorteile { justify-content: center; }
  .figur { order: -1; width: 150px; }
  .blase { display: none; }
  .zwei { grid-template-columns: 1fr; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kennzahl { padding: 16px; }
  .kennzahl .w { font-size: 34px; }
  .zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .zeile .dt { grid-column: 1 / -1; }
  .angebot { grid-template-columns: 1fr; }
  .angebot img { display: none; }
  .hochladen { grid-template-columns: 1fr; }
  .hochladen img { display: none; }
  .hochladen .knopf { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ansicht { animation: ein .25s ease-out; }
  @keyframes ein { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Empfehlung unter schwachen Zahlen */
.empfehlung { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(245, 254, 144, .55), rgba(188, 253, 104, .25)); border: 1px solid rgba(128, 183, 0, .35); border-radius: 16px; padding: 16px 20px; }
.empfehlung img { width: 70px; height: auto; align-self: end; }
.empfehlung > div { display: grid; gap: 10px; }
.empfehlung .ueber { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gut); }
.empfehlung p { max-width: 80ch; }
.empfehlung p b { font-weight: 600; }

/* Bewertungen */
.bewertung { gap: 12px; }
.bewertung .zitat { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.antwort { border-left: 3px solid var(--hellgruen); background: var(--sand); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: 14px; display: grid; gap: 3px; }
.antwort b { font-weight: 600; font-size: 13px; color: var(--gut); }
.antwort p { white-space: pre-line; color: var(--ink-2); }
.antwort.offen b { color: var(--achtung); }

/* Angebote */
.upsell { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 16px; }
.upsell img { width: 64px; height: auto; }
.upsell h3 { font-size: 18px; }
.preisz { font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .empfehlung { grid-template-columns: 1fr; }
  .empfehlung img { display: none; }
  .upsell { grid-template-columns: 1fr; }
  .upsell img { display: none; }
}
.kachel .bildlink { display: block; text-decoration: none; color: inherit; }
.kachel .herunter { margin-top: 8px; width: 100%; height: 34px; }
