/* Kundenportal «Ruhiges Wasser» – hell, still, gross lesbar. Einzige Bewegung: der Füllstand im Gefäss. */
:root { --papier: #F4FAF9; --weiss: #FFFFFF; --ink: #0D2A30; --ink2: #43605F; --teal: #0E7C7B; --teal-hell: #E3F4F1; --linie: #D6E8E6; --linie2: #B9CFCF; --ok: #1E7A4C; --ok-bg: #E3F2E8; --err: #B3261E; --err-bg: #FDECEA; --warn: #8A5300; --warn-bg: #FFF3E0;
  --display: "Instrument Serif", Georgia, serif; --ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.portal { margin: 0; background: var(--papier); color: var(--ink); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.pt-band { background: var(--warn-bg); color: var(--warn); font-size: 13px; text-align: center; padding: 7px 16px; }
.pt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(244,250,249,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.pt-marke { display: inline-flex; align-items: center; gap: 9px; font: 400 24px/1 var(--display); text-decoration: none; }
.tropfen { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #3FD0C5, #FFB86B); }
.pt-proj { margin-right: auto; display: flex; flex-direction: column; line-height: 1.25; font-size: 14.5px; padding-left: 16px; border-left: 1px solid var(--linie); }
.pt-proj span { color: var(--ink2); font-size: 13px; }
.pt-save { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); padding: 7px 12px; border-radius: 99px; background: var(--weiss); border: 1px solid var(--linie); white-space: nowrap; }
.pt-save i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.pt-save[data-s="speichert"] i { background: var(--teal); animation: atmen 1.2s ease-in-out infinite; }
.pt-save[data-s="offline"] i { background: #D98E04; } .pt-save[data-s="fehler"] i { background: var(--err); }
@keyframes atmen { 50% { opacity: .3; } }
@media (max-width: 640px) { .pt-top { gap: 10px; padding: 10px 14px; } .pt-marke { font-size: 0; gap: 0; } .pt-marke .tropfen { width: 16px; height: 16px; } .pt-proj { padding-left: 10px; font-size: 14px; } .pt-save { font-size: 12px; padding: 6px 10px; } }

/* ---------- Rahmen mit Gefäss ---------- */
.pt-rahmen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(14px, 4vw, 40px) 140px; align-items: start; }
.pt-wasser { position: sticky; top: 96px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.gef svg { width: 150px; height: 200px; filter: drop-shadow(0 24px 30px rgba(13,42,48,.1)); }
.gef.klein svg { width: 86px; height: 115px; }
.pegel { transition: transform 1.4s cubic-bezier(.3,.7,.2,1); transform: translateY(150px); }
.welle { animation: welle 7s linear infinite; }
@keyframes welle { to { transform: translateX(60px); } }
.pt-prozent { font: 400 40px/1 var(--display); color: var(--teal); }
.pt-stand-text { font-size: 15px; color: var(--ink2); }
.pt-hilfe { font-size: 13.5px; color: var(--ink2); margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--linie); }
.platzhalter { display: inline-block; background: var(--warn-bg); color: var(--warn); padding: 0 6px; border-radius: 6px; font-size: 12.5px; }
@media (max-width: 860px) {
  .pt-rahmen { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .pt-wasser { position: static; grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 14px; background: var(--weiss); border-radius: 18px; padding: 12px 16px; border: 1px solid var(--linie); }
  .pt-wasser .gef svg { width: 54px; height: 72px; }
  .pt-prozent { font-size: 28px; }
  .pt-hilfe { display: none; }
}

/* ---------- Karten und Typografie ---------- */
.pt-main { min-width: 0; }
.pt-card { background: var(--weiss); border-radius: 24px; padding: clamp(22px, 3.6vw, 44px); box-shadow: 0 24px 60px rgba(13,42,48,.07), 0 0 0 1px rgba(13,42,48,.05); }
.pt-kicker { font: 600 12px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.pt-h1 { font: 400 clamp(34px, 4.4vw, 54px)/1.04 var(--display); margin-bottom: 16px; text-wrap: balance; }
.pt-h1 em { color: var(--teal); }
.pt-h2 { font: 400 clamp(30px, 3.4vw, 42px)/1.08 var(--display); margin-bottom: 10px; }
.pt-sub { color: var(--ink2); max-width: 62ch; margin-bottom: 22px; }
.pt-hint { font-size: 14px; color: var(--ink2); margin-top: 10px; }
.pt-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.pt-list li { display: flex; gap: 14px; align-items: center; }
.pt-list b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--teal-hell); color: var(--teal); font-size: 14px; }
.pt-trust { font-size: 14px; color: var(--ink2); margin-top: 16px; }
.pt-facts { margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.pt-facts div { background: var(--papier); border-radius: 14px; padding: 12px 14px; }
.pt-facts dt { font-size: 12px; color: var(--ink2); text-transform: uppercase; letter-spacing: .1em; }
.pt-facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent; font: 600 16px var(--ui); text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s; }
.btn.gross { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn.klein { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn-accent { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(14,124,123,.25); }
.btn-accent:hover { background: #0B6A69; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #163B42; }
.btn-ghost { background: var(--weiss); color: var(--ink); border-color: var(--linie2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Schritte ---------- */
.pt-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pt-steps button { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 14px; background: var(--weiss); color: var(--ink2); font-size: 14px; cursor: pointer; text-align: left; }
.pt-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--linie2); font-size: 13px; }
.pt-steps li.fertig b { background: var(--teal); border-color: var(--teal); color: #fff; font-size: 0; }
.pt-steps li.fertig b::before { content: "✓"; font-size: 13px; }
.pt-steps li.ist button { border-color: var(--teal); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 3px rgba(14,124,123,.12); }
.pt-steps li.ist b { border-color: var(--teal); color: var(--teal); }
@media (max-width: 760px) { .pt-steps span { display: none; } .pt-steps button { justify-content: center; } }

/* ---------- Felder ---------- */
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pt-field { display: grid; gap: 7px; align-content: start; }
.pt-field.wide { grid-column: 1 / -1; }
.pt-field label, .pt-legend { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; }
.pt-field input, .pt-field textarea { width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--linie2); background: var(--weiss); color: var(--ink); font: 400 17px var(--ui); }
.pt-field textarea { min-height: 110px; resize: vertical; }
.pt-field input:focus, .pt-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,124,123,.15); }
.pt-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.pt-src { font-size: 12px; font-weight: 500; color: var(--teal); background: var(--teal-hell); padding: 2px 8px; border-radius: 99px; }
.pt-src.leer { color: var(--warn); background: var(--warn-bg); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chips label { position: relative; cursor: pointer; }
.pt-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pt-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--linie2); font-size: 15.5px; background: var(--weiss); }
.pt-chips input:checked + span { border-color: var(--teal); background: var(--teal-hell); color: var(--ink); font-weight: 600; }
.pt-chips input:checked + span::before { content: "✓"; color: var(--teal); }
.pt-chips input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.pt-color { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
@media (max-width: 640px) { .pt-grid2 { grid-template-columns: 1fr; } }

/* ---------- Bilder ---------- */
.pt-rights { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--teal-hell); margin-bottom: 18px; font-size: 15.5px; cursor: pointer; }
.pt-rights input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.pt-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-zone { border: 2px dashed var(--linie2); border-radius: 18px; padding: 18px; transition: border-color .2s, background .2s, opacity .2s; }
.pt-zone h3 { font: 600 17px var(--ui); margin-bottom: 4px; }
.pt-zone p { font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.pt-zone.gesperrt { opacity: .5; }
.pt-zone.drag { border-color: var(--teal); background: var(--teal-hell); }
.pt-pick { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.pt-zone.gesperrt .pt-pick { background: var(--linie2); cursor: not-allowed; }
.pt-pick input { position: absolute; inset: 0; opacity: 0; cursor: inherit; }
.pt-pick:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.pt-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pt-file { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; background: var(--papier); border-radius: 12px; padding: 8px; }
.pt-file img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--linie); }
.pt-file [data-n] { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-file small { display: block; color: var(--ink2); }
.pt-bar { height: 5px; border-radius: 99px; background: var(--linie); overflow: hidden; margin-top: 5px; }
.pt-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.pt-st { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.pt-st.ok { background: var(--ok-bg); color: var(--ok); }
.pt-st.lauf { background: var(--teal-hell); color: var(--teal); }
.pt-st.err { background: var(--err-bg); color: var(--err); }
.pt-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linie2); background: var(--weiss); cursor: pointer; font-size: 16px; line-height: 1; }
@media (max-width: 760px) { .pt-zones { grid-template-columns: 1fr; } }

/* ---------- Vorschau ---------- */
.pt-preview { border-radius: 18px; overflow: hidden; background: #1A2A2E; box-shadow: 0 0 0 1px var(--linie); }
.pt-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: #D6E8E6; font-size: 14px; }
.pt-preview-bar a { color: #D6E8E6; }
.pt-seg { display: flex; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.1); }
.pt-seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: #D6E8E6; cursor: pointer; font-size: 13.5px; }
.pt-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pt-prev-frame { position: relative; height: 460px; background: #fff; overflow: hidden; display: grid; justify-items: center; }
.pt-prev-frame iframe { border: 0; height: 100%; width: 100%; background: #fff; }
.pt-prev-frame.phone iframe { width: 390px; max-width: 100%; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
@media (max-width: 640px) { .pt-prev-frame { height: 400px; } .pt-preview-bar > span { display: none; } }

/* ---------- Zusammenfassung, Bestätigung, Meldungen ---------- */
.pt-sum { display: grid; gap: 14px; margin-bottom: 20px; }
.pt-sum section { border: 1px solid var(--linie); border-radius: 16px; padding: 16px 18px; }
.pt-sum h3 { font: 600 17px var(--ui); display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pt-sum h3 button { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linie2); background: var(--weiss); cursor: pointer; font-size: 14px; }
.pt-sum dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 14px; font-size: 15px; }
.pt-sum dt { color: var(--ink2); } .pt-sum dd { margin: 0; overflow-wrap: anywhere; }
.pt-sum em { color: var(--warn); font-style: normal; }
@media (max-width: 560px) { .pt-sum dl { grid-template-columns: 1fr; } .pt-sum dd { margin-bottom: 6px; } }
.pt-confirm { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 2px solid var(--teal); background: var(--teal-hell); font-size: 16px; cursor: pointer; }
.pt-confirm input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.pt-msg { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: 15.5px; }
.pt-msg.err { background: var(--err-bg); color: var(--err); }
.pt-msg.info { background: var(--teal-hell); color: var(--teal); }

/* ---------- Erfolg ---------- */
.pt-done { text-align: center; }
.pt-done .pt-sub { margin-inline: auto; }
.pt-done-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 0 0 10px var(--teal-hell); }
.pt-done-ico svg { width: 40px; height: 40px; }
.pt-nr { display: inline-block; margin: 6px 0 12px; padding: 8px 14px; border-radius: 99px; background: var(--papier); border: 1px solid var(--linie); font-size: 14.5px; }
.pt-done .btn { margin-top: 18px; }
.pt-tools { margin-top: 26px; font-size: 13.5px; color: var(--ink2); }
.pt-tools button { border: 0; background: none; color: var(--teal); text-decoration: underline; cursor: pointer; font-size: 13.5px; }

/* ---------- Navigation unten ---------- */
.pt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px clamp(14px, 4vw, 40px) max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--linie); }
.pt-nav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-nav small { color: var(--ink2); font-size: 13.5px; text-align: center; }
@media (max-width: 560px) { .pt-nav small { display: none; } .pt-nav .btn { flex: 1; } }

/* ---------- Kundenbereich ---------- */
.db-main { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(14px, 4vw, 40px) 80px; }
.db-kopf { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.db-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.db-tabs button { min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--linie2); background: var(--weiss); color: var(--ink2); cursor: pointer; font-size: 15px; }
.db-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.db-time { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.db-time li { display: flex; gap: 14px; padding: 10px 0; color: var(--ink2); }
.db-time li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linie2); flex: none; margin-top: 2px; background: var(--weiss); }
.db-time li.fertig::before { background: var(--teal); border-color: var(--teal); }
.db-time li.ist { color: var(--ink); }
.db-time li.ist::before { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,124,123,.15); }
.db-time b { display: block; font-weight: 600; color: var(--ink); }
.db-time span { font-size: 14.5px; }
.db-kv { margin: 18px 0 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; font-size: 15.5px; }
.db-kv dt { color: var(--ink2); } .db-kv dd { margin: 0; }
.db-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.db-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 8px 10px; border-bottom: 2px solid var(--linie); }
.db-table td { padding: 12px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.db-tabelle-wrap { overflow-x: auto; }
.db-tabelle-wrap .db-table { min-width: 560px; }
.db-bsp { display: inline-block; font-size: 11.5px; background: var(--warn-bg); color: var(--warn); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
form[data-ticket] { display: grid; gap: 14px; }
@media (max-width: 860px) { .db-grid { grid-template-columns: 1fr; } .db-kopf { gap: 14px; } .db-kv { grid-template-columns: 1fr; gap: 2px; } .db-kv dd { margin-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
