/* Partnerportal – Aussehen wie das alte Portal (Bootstrap 3, Farbe #126670), ohne fremde Bibliotheken */
:root { --gruen: #126670; --rand: #ddd; --text: #333; --hell: #f5f5f5; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: var(--text); background: #fff;
       display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--gruen); }
.top-bar { background: var(--gruen); color: #fff; min-height: 40px; display: flex; align-items: center; justify-content: space-between;
           padding: 0 16px; gap: 12px; flex-wrap: wrap; }
.top-bar a { color: #fff; }
.inhalt { width: 100%; max-width: 970px; margin: 0 auto; padding: 16px; flex: 1; }
.kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.kopf img { max-width: 220px; height: auto; }
.menue { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menue a { display: block; padding: 10px 15px; border-radius: 4px; text-decoration: none; }
.menue a.aktiv { background: var(--gruen); color: #fff; }
footer { border-top: 1px solid var(--rand); padding: 12px 16px; color: #777; text-align: center; }
h1 { font-size: 26px; font-weight: 500; margin: 10px 0 16px; }
h2 { font-size: 20px; font-weight: 500; margin: 16px 0 10px; }
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.feld label { font-weight: bold; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 6px 12px; font: inherit; border: 1px solid #ccc; border-radius: 4px; min-height: 34px; background: #fff; }
textarea { min-height: 140px; }
.knopf { display: inline-block; padding: 7px 14px; font: inherit; border-radius: 4px; border: 1px solid #ccc; background: #fff; color: var(--text);
         cursor: pointer; text-decoration: none; }
.knopf.haupt { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf:disabled { opacity: .5; cursor: default; }
.gross { padding: 24px 32px; font-size: 18px; min-width: 220px; }
.meldung { padding: 12px 15px; border-radius: 4px; margin: 12px 0; border: 1px solid; }
.meldung.fehler { background: #f2dede; border-color: #ebccd1; color: #a94442; }
.meldung.ok { background: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.meldung.hinweis { background: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }
.pflicht { color: #a94442; font-size: 12px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.kachel { border: 1px solid var(--rand); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kachel h3 { margin: 0; font-size: 18px; }
.kachel .unten { margin-top: auto; text-align: right; }
.jumbotron { background: #eee; border-radius: 6px; padding: 24px; margin-bottom: 24px; text-align: center; }
.jumbotron h1 { margin: 0 0 8px; }
.ergebnis { padding: 24px; border-radius: 4px; text-align: center; font-size: 22px; margin: 16px 0; }
.ergebnis.green { background: #2EFE2E; }
.ergebnis.yellow { background: #F7FE2E; }
.ergebnis.red { background: #FE2E2E; color: #fff; }
.ergebnis-score { font-size: 14px; margin-top: 6px; opacity: .8; }
table.liste { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.liste th, table.liste td { border-bottom: 1px solid var(--rand); padding: 6px 8px; text-align: left; }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.daten dt { font-weight: bold; }
dl.daten dd { margin: 0; }
.mitte { max-width: 420px; margin: 0 auto; }
.zentriert { text-align: center; }
@media (max-width: 600px) { .gross { width: 100%; } dl.daten { grid-template-columns: 1fr; } }
/* Ratenzahlung: Reiter der Schritte und Tafeln wie panel-primary */
.reiter { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px; margin-bottom: 16px; }
.tafel { border: 1px solid var(--gruen); border-radius: 4px; margin-bottom: 16px; }
.tafelkopf { background: var(--gruen); color: #fff; padding: 8px 12px; }
.tafel dl.daten { padding: 12px; margin: 0; }
h3 { font-size: 16px; font-weight: 600; margin: 12px 0 8px; }
table.liste tr.gewaehlt td { background: #e8f3f4; font-weight: bold; }

/* Rechnungsseite und Patienten-Anmeldung (28.10.) */
.mitte.breit { max-width: 760px; }
.re-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.re-status { padding: 4px 12px; border-radius: 12px; font-weight: bold; white-space: nowrap; }
.re-status-ok { background: #dff0d8; color: #3c763d; }
.re-status-neutral { background: #e8f3f4; color: #22575c; }
.re-status-warn { background: #fcf8e3; color: #8a6d3b; }
table.re-betraege { margin: 16px 0; border-collapse: collapse; min-width: 320px; }
table.re-betraege td { padding: 4px 0; }
table.re-betraege td:last-child { text-align: right; padding-left: 40px; white-space: nowrap; }
table.re-betraege tr.re-summe td { border-top: 2px solid var(--text); font-weight: bold; font-size: 1.15em; padding-top: 6px; }
.re-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.re-kasten { border: 1px solid var(--rand); border-radius: 4px; padding: 14px 16px; margin: 20px 0; }
.re-kasten h3 { margin: 0 0 10px; font-size: 18px; }
.re-konto { background: #f6fafa; }
.re-ueberweisen { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
table.re-bank td { padding: 3px 12px 3px 0; vertical-align: top; }
table.re-bank td:first-child { color: #666; white-space: nowrap; }
.re-qr { max-width: 170px; text-align: center; }
.re-klein { font-size: .9em; color: #666; }
.re-wahl { flex-direction: row; gap: 20px; }
.re-wahl label, .feld label:has(input[type=checkbox]) { font-weight: normal; }
.re-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.re-zeile input { flex: 1; min-width: 220px; }
/* Passkeys / Authenticator-App (E-099) */
.passkey-block { margin: 8px 0 16px; }
.qr svg { width: 220px; height: 220px; }
code { font-size: 15px; letter-spacing: 1px; background: #f4f4f4; padding: 2px 6px; }
