/* HM Webdesign Partnerbereich – gleiche Farben und Schriften wie die Website */
:root {
  --paper: #EDEEEA;
  --paper-2: #E1E3DD;
  --paper-3: #D5D7D0;
  --weiss: #F7F8F5;
  --ink: #151614;
  --ink-2: #4A4D48;
  --line: #C2C5BD;
  --accent: #F2B600;
  --ok: #1F6B3A;
  --ok-flaeche: #DDEBDF;
  --fehler: #9E2A1C;
  --fehler-flaeche: #F3DDD7;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 8px; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.nums, .zahlspalte { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.haupt { padding-top: 24px; padding-bottom: 64px; min-height: 60vh; }
.schmal { max-width: 560px; }

/* Kopf */
.kopf { background: var(--ink); color: var(--paper); }
.kopf__innen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.marke { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.marke__name { font-weight: 800; font-stretch: 115%; font-size: 1.25rem; letter-spacing: -0.02em; }
.marke__rest { font-weight: 560; }
.marke__name { white-space: nowrap; }
.marke__name i { display: inline-block; width: 0.42em; height: 0.42em; background: var(--accent); margin-left: 0.12em; }
.marke__zusatz { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #B3B6AE; }
.nav { order: 3; width: 100%; overflow-x: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav a:hover { background: #202220; }
.zahl { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-left: 4px; background: var(--accent); color: var(--ink); font-size: 0.75rem; font-weight: 700; text-align: center; border-radius: 9px; }
.konto { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; }
.konto__name { color: #B3B6AE; }
.konto form { margin: 0; }
button.link { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; }
}

/* Fuß */
.fuss { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 0.8125rem; color: var(--ink-2); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Hinweise */
.hinweis { padding: 12px 14px; border-left: 4px solid var(--ok); background: var(--ok-flaeche); border-radius: var(--radius); }
.hinweis--fehler { border-left-color: var(--fehler); background: var(--fehler-flaeche); }
.leer { padding: 18px; background: var(--paper-2); color: var(--ink-2); border-radius: var(--radius); }
.warnung { color: var(--fehler); }
.marke-ok { color: var(--ok); font-weight: 600; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 700; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: transform .15s cubic-bezier(.2,.8,.2,1), background-color .15s; }
.knopf:hover { background: #2A2C29; text-decoration: none; }
.knopf:active { transform: translateY(1px); }
.knopf--zweit { background: transparent; color: var(--ink); }
.knopf--zweit:hover { background: var(--paper-2); }
.knopf--leise { background: transparent; color: var(--ink-2); border-color: var(--line); font-weight: 600; }
.knopf--leise:hover { background: var(--paper-2); color: var(--ink); }
.knopf--gross { min-height: 52px; padding: 12px 24px; font-size: 1.0625rem; }
.knopf.ist-scharf { background: var(--fehler); border-color: var(--fehler); color: #fff; }
form.inline { display: inline-block; margin: 0; }

/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 16px 0 28px; }
.kz { background: var(--weiss); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kz__titel { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.kz__wert { font-size: 1.5rem; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.kz__zusatz { font-size: 0.8125rem; color: var(--ink-2); }

/* Blöcke */
.block { margin: 28px 0; }
.block > h2, .block__kopf { margin-bottom: 12px; }
.block__kopf { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.zurueck { margin-bottom: 12px; font-size: 0.9375rem; }
.unterzeile { color: var(--ink-2); margin-bottom: 16px; }
.aktion { margin: 18px 0 22px; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.liste > li { border-bottom: 1px solid var(--line); }
.liste__link { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; text-decoration: none; }
.liste__link:hover { background: var(--paper-2); text-decoration: none; }
.liste__titel { font-weight: 700; }
.liste__info { font-size: 0.875rem; color: var(--ink-2); }
.liste--klein > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; }

/* Tabellen */
.tabelle { overflow-x: auto; border: 1px solid var(--line); background: var(--weiss); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--paper-3); }
th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; white-space: nowrap; background: var(--paper-2); }
td.zahlspalte, th.zahlspalte { text-align: right; }
tr.aus td { color: var(--ink-2); }

/* Formulare */
.formular { margin: 8px 0 0; }
.feld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; }
.feld label, legend { font-weight: 600; font-size: 0.9375rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=file], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--weiss); border: 1px solid #9FA39A; border-radius: var(--radius); }
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.filter { display: grid; grid-template-columns: 1fr; gap: 0 14px; padding: 14px; background: var(--paper-2); margin: 12px 0 8px; }
.filter .feld { margin-bottom: 10px; }
@media (min-width: 720px) {
  .filter { grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: end; }
  .filter:has(#f-zustand) { grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto; }
  .formular--reihe { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: end; }
  .formular--reihe .feld { flex: 1 1 200px; }
}
.feld--knopf { justify-content: flex-end; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; }
.wahl label { display: flex; gap: 10px; align-items: flex-start; }
.wahl__option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.wahl__option:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--accent); }
.wahl__option > span { display: flex; flex-direction: column; gap: 2px; }
.wahl__option .muted { font-size: 0.875rem; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.teil { padding: 14px; background: var(--paper-2); border-left: 4px solid var(--accent); }
.js .teil[hidden], .js [data-zeige-kontakt][hidden] { display: none; }

/* Daten */
.daten { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0 0 16px; }
.daten dt { color: var(--ink-2); font-size: 0.9375rem; }
.daten dd { margin: 0; overflow-wrap: anywhere; }
.befunde, .leitfaden, .regeln, .schritte { margin: 0; padding-left: 1.3em; }
.befunde li, .leitfaden li, .regeln li, .schritte li { margin-bottom: 10px; }
.regeln li strong { display: block; }
.anruf { padding: 16px; background: var(--weiss); border: 1px solid var(--line); margin: 16px 0; }
.anruf__tel { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; font-stretch: 110%; margin-bottom: 12px; }
.anruf__tel a { text-decoration: none; border-bottom: 4px solid var(--accent); }

/* Karten und Reiter */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 18px; border-bottom: 1px solid var(--line); }
.reiter a { padding: 8px 12px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiter a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.karte { background: var(--weiss); border: 1px solid var(--line); padding: 16px; margin-bottom: 14px; }
.karte.aus { opacity: 0.7; }
.karte__kopf { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 12px; }
.karte__aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.kauf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.kauf label { display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; font-weight: 600; }
.kauf input, .kauf select { width: auto; }
.linkbox { padding: 16px; background: #FFF4CC; border: 2px solid var(--accent); margin: 12px 0 20px; }
.linkbox__zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkbox code { overflow-wrap: anywhere; background: var(--weiss); padding: 6px 8px; border: 1px solid var(--line); }
.linkbox__text { margin: 0 0 12px; padding: 10px 12px; background: var(--weiss); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.linkbox .daten { margin-bottom: 12px; }
.linkbox #startpasswort { font-size: 1.05rem; letter-spacing: 0.04em; }
.fortschritt { font-family: var(--mono); font-size: 0.875rem; }
.seitenwahl { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; }

/* Gesprächsleitfaden mit Rechenbeispiel */
.skript__schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; border-top: 1px solid var(--line); }
.skript__schritte > li { counter-increment: schritt; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); }
.skript__schritte > li::before { content: counter(schritt); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 800; font-stretch: 110%; border-radius: var(--radius); }
.skript__titel { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.skript__sag { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.55; max-width: 68ch; }
q.sag { quotes: none; font-weight: 600; }
q.sag::before, q.sag::after { content: none; }
.tipp-inline { color: var(--ink-2); font-size: 0.9375rem; font-weight: 400; }
.skript__tipp { margin: 0; max-width: 68ch; font-size: 0.875rem; color: var(--ink-2); padding-left: 10px; border-left: 3px solid var(--accent); }
.rechner { margin: 10px 0 12px; padding: 12px; background: var(--weiss); border: 1px solid var(--line); max-width: 560px; }
.rechner .tabelle { border: 0; }
.rechner td, .rechner th { white-space: nowrap; }
.rechner__eingabe { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 12px; }
.rechner__eingabe .feld { flex: 1 1 160px; margin-bottom: 8px; }
.rechner .muted { margin: 8px 0 0; }
.einwaende { margin-top: 16px; background: var(--weiss); border: 1px solid var(--line); }
.einwaende summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.einwaende dl { margin: 0; padding: 0 14px 14px; }
.einwaende dt, .einwaende-liste dt { font-weight: 700; margin-top: 12px; }
.einwaende dd, .einwaende-liste dd { margin: 4px 0 0; max-width: 68ch; color: var(--ink-2); }
.einwaende dd q.sag, .einwaende-liste dd q.sag { color: var(--ink); }
.roi-tabelle__annahme { display: block; font-size: 0.875rem; color: var(--ink-2); }
.roi-tabelle td.zahlspalte { white-space: nowrap; }
@media (max-width: 520px) {
  .roi-tabelle th, .roi-tabelle td { padding: 8px 6px; }
  .roi-tabelle td.zahlspalte { font-size: 0.875rem; }
}
.einwaende-liste { margin: 0; }

/* Anleitung */
.lesen { max-width: 760px; }
.lesen h2 { margin: 32px 0 12px; }
.lesen h3 { margin: 24px 0 10px; }
.lesen .tabelle { margin-bottom: 8px; }
.lesen th[scope=row] { font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; white-space: normal; width: 40%; }
.einleitung { font-size: 1.125rem; max-width: 64ch; }
.zitat { margin: 12px 0 16px; padding: 14px 16px; background: var(--weiss); border-left: 4px solid var(--accent); font-size: 1.0625rem; }
.zitat p { margin: 0; }

/* App: Home-Bildschirm, Konto, Face ID, Mitteilungen, offline */
.kopf { padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fuss { padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
.konto a[aria-current="page"] { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.knopf--breit { width: 100%; }
.oder { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--ink-2); font-size: 0.875rem; }
.oder::before, .oder::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.status-ok { color: var(--ok); font-weight: 600; }
.status-ok::before { content: ""; display: inline-block; width: 0.55em; height: 0.3em; margin: 0 0.45em 0.18em 0.1em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.etikett { display: inline-block; margin-left: 6px; padding: 1px 6px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 2px; background: var(--accent); color: var(--ink); border-radius: var(--radius); }
.karte__zeile { display: block; flex-basis: 100%; }
.block.karte > h2 { margin-bottom: 6px; }
.block.karte { margin: 0 0 16px; }

.geraete > li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.geraete > li > .liste__titel, .geraete > li > .liste__info { grid-column: 1; }
.geraete > li > form { grid-column: 2; grid-row: 1 / span 2; }
.geraete .knopf { min-height: 40px; padding: 8px 14px; }

.einrichtung { margin: 4px 0 24px; border: 2px solid var(--ink); box-shadow: inset 0 4px 0 var(--accent); padding-top: 20px; }
.einrichtung__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.einrichtung__liste { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.einrichtung__liste > li { counter-increment: schritt; display: grid; grid-template-columns: 32px 1fr; gap: 10px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.einrichtung__liste > li::before { content: counter(schritt); display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--paper); font-weight: 800; border-radius: 50%; font-size: 0.875rem; }
.einrichtung__liste > li.ist-erledigt::before { content: ""; background: var(--ok); }
.einrichtung__text { display: flex; flex-direction: column; gap: 2px; }
.einrichtung__text .muted { font-size: 0.875rem; }
.einrichtung__aktion { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.einrichtung__aktion .knopf { min-height: 40px; padding: 8px 16px; }
@media (min-width: 640px) {
  .einrichtung__liste > li { grid-template-columns: 32px 1fr auto; }
  .einrichtung__aktion { grid-column: 3; justify-content: flex-end; }
}

.offline-hinweis { position: sticky; top: 0; z-index: 5; margin: -8px 0 16px; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 0.9375rem; border-left: 4px solid var(--accent); }
.symbol-teilen { display: inline-block; width: 1.05em; height: 1.2em; vertical-align: -0.2em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24' fill='none' stroke='%23151614' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2v13M5.5 6.5 10 2l4.5 4.5'/%3E%3Cpath d='M7 10H4v12h12V10h-3'/%3E%3C/svg%3E"); }
.app-symbol { width: 28px; height: 28px; vertical-align: middle; border-radius: 7px; }
.passkey-login { margin-top: 4px; }
.appstatus p:last-child, .push p:last-child { margin-bottom: 0; }
.ist-app .fuss { font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
