/* ServiceLink – Kundenseiten (Melden, Status). Werte aus design.css, Handy zuerst: Schrift 16 px, Tippflächen 48 px */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seite { max-width: 640px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.kopf { display: flex; align-items: center; gap: 12px; }
.kopf small { display: block; color: var(--muted); font-size: 13px; }
.kachel { width: 48px; height: 48px; border-radius: 11px; background: #0b0d12; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wortmarke { font-size: 19px; font-weight: 600; }
.wortmarke span { color: var(--accent); font-weight: 400; }
.karte { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-size: 22px; line-height: 1.3; }
h2 { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
p { margin: 0; }
.gedaempft { color: var(--muted); }
.klein { font-size: 13px; }
.mitte { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label, .feld .label { font-size: 14px; color: var(--text-2); }
.feld input, .feld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 11px 12px; }
.feld input { height: 48px; }
.feld input:focus, .feld textarea:focus { border-color: var(--accent); outline: 0; }
.feld-haken { flex-direction: row; align-items: center; gap: 10px; }
.feld-haken input { width: 22px; height: 22px; flex: none; }
.hinweis { color: var(--muted); font-size: 13px; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-lg); font: inherit; font-size: 16px; font-weight: 500; background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2); cursor: pointer; text-decoration: none; }
.knopf.haupt { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.knopf.gross { min-height: 56px; font-size: 17px; }
.knopf:disabled { opacity: .6; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.anlage { padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); }
.fotos { display: flex; flex-wrap: wrap; gap: 10px; }
.foto { position: relative; width: 96px; height: 72px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border-2); background: var(--panel-2); cursor: pointer; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto i { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-style: normal; line-height: 22px; text-align: center; }
.turnstile:empty { display: none; }
.link { padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); overflow-wrap: anywhere; font-size: 13px; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.st-neu { background: var(--accent); } .st-termin { background: var(--bus-dali); } .st-arbeit { background: var(--st-mounted); }
.st-wartet { background: var(--warn); } .st-erledigt { background: var(--ok); } .st-geschlossen { background: var(--st-planned); }
.status-jetzt { font-size: 18px; font-weight: 600; display: flex; align-items: center; }
.stufen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stufen li { padding-top: 8px; border-top: 4px solid var(--border-2); font-size: 12px; color: var(--muted); }
.stufen li.erreicht { border-top-color: var(--accent); color: var(--text); }
.fuss { margin-top: 8px; }
.hinweis-leiste { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--highlight); color: var(--text); }
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.verlauf li { padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel-2); }
.verlauf li.sie { background: var(--accent-soft); }
.verlauf small { color: var(--muted); font-size: 12px; }
.verlauf p { white-space: pre-wrap; overflow-wrap: anywhere; }
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.meldung.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.meldung.fehler { border-color: var(--danger); color: var(--danger); }
html[data-look="cyber"] .knopf { text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; }

/* ab 0.2: Kundenbereich /konto */
.seite.breit { max-width: 1180px; }
.wachsen { flex: 1 1 auto; min-width: 0; }
.rund-knopf { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text-2); cursor: pointer; flex: none; }
.knopf.klein { min-height: 40px; padding: 0 14px; font-size: 14px; }
.knopf.zweizeilig { flex-direction: column; gap: 2px; padding: 8px 18px; }
.knopf.zweizeilig small { font-size: 13px; color: var(--muted); font-weight: 400; }
.schmal { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.knopf.schmal { display: flex; }
.oder { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.oder::before, .oder::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }
.feld select { width: 100%; height: 48px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips select { height: 40px; font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--border-2); border-radius: 999px; padding: 0 12px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 15px; background: var(--panel); color: var(--text-2); border: 1px solid var(--border-2); cursor: pointer; }
.chip.aktiv { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.portal { display: flex; flex-direction: column; gap: 16px; }
.liste { display: flex; flex-direction: column; gap: 12px; }
.ticket-karte { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.ticket-karte:hover { border-color: var(--border-2); }
.ticket-karte.aktiv { border-color: var(--accent); }
.ticket-karte.wartet { border-color: var(--warn); }
.ticket-karte .titel { font-size: 17px; line-height: 1.3; }
.ticket-karte .zeile { display: flex; justify-content: space-between; gap: 8px; }
.ticket-karte .status { display: flex; align-items: center; font-size: 15px; font-weight: 500; }
.ticket-karte .klein { color: var(--text-2); overflow-wrap: anywhere; }
.zurueck { color: var(--muted); text-decoration: none; font-size: 15px; }
.detail.leer { align-items: center; justify-content: center; min-height: 240px; }
.antwort { display: flex; flex-direction: column; gap: 10px; }
.hilfe-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--panel); color: var(--text); padding: 0; box-shadow: var(--shadow); }
.hilfe-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.hilfe-dialog form { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.hilfe-dialog h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--text); }
.hilfe-dialog h3 { margin: 8px 0 0; font-size: 15px; }
.hilfe-dialog p { color: var(--text-2); font-size: 15px; }
.hilfe-dialog .knopf { margin-top: 10px; }
@media (min-width: 900px) {
  .portal { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
  .portal > .detail { position: sticky; top: 16px; }
}
