/* DocuTool.WebPortal – Gestaltung nach dem abgestimmten Entwurf (Mandantenportal BMK & Partner mbB) */
:root {
  --grund: #F4F5F7; --flaeche: #FFFFFF; --text: #18212B; --text2: #36404C; --leise: #55606E;
  --linie: #D9DEE4; --linie2: #ECEFF2; --rahmen: #B9C1CA;
  --akzent: #1D4E7A; --akzent-dunkel: #123553; --akzent-hell: #E7EEF6;
  --ok: #1D6B3C; --ok-hell: #E5F2EA; --warn: #8A5A00; --warn-hell: #FBF1DC; --fehler: #A1301F; --fehler-hell: #FBEDEB;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--grund); color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--akzent); } a:hover { color: var(--akzent-dunkel); }
h1 { margin: 0; font: 600 28px/1.25 Georgia, "Times New Roman", serif; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Marke */
.marke { display: flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--text); }
.marke img { height: 30px; width: auto; display: block; }
.marke .zusatz { display: flex; flex-direction: column; padding-bottom: 1px; }
.marke .name { font: 500 15px/1.2 Georgia, "Times New Roman", serif; }
.marke .portal { font-size: 12px; color: var(--leise); line-height: 1.2; }
.marke.gross img { height: 39px; }
.marke.gross .name { font-size: 18px; }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf .innen { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kopf .wer { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text2); }
.kopf form { margin: 0; }

/* Rahmen mit Menü */
.rahmen { flex: 1 1 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.menue { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.menue a { height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.menue a:hover { background: var(--akzent-hell); }
.menue a[aria-current="page"] { background: var(--akzent-hell); font-weight: 600; }
.menue a.neu { margin-bottom: 12px; justify-content: center; background: var(--akzent); color: #fff; font-weight: 600; }
.menue a.neu:hover { background: var(--akzent-dunkel); }
.inhalt { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Karten, Formulare, Knöpfe */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.karte form, form.stapel { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.feld input, .feld select, .feld textarea { height: 44px; padding: 0 12px; border: 1px solid var(--rahmen); border-radius: 8px; font: inherit; font-weight: 400; font-size: 15px; background: #fff; color: var(--text); }
.feld input.code { height: 52px; font-size: 24px; letter-spacing: 6px; text-align: center; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.knopf { height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--akzent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf.zweit { background: #fff; color: var(--text); border: 1px solid var(--rahmen); font-weight: 400; }
.knopf.zweit:hover { background: var(--grund); color: var(--text); }
.knopf.klein { height: 36px; padding: 0 14px; font-size: 14px; }
.leise { color: var(--leise); font-size: 13px; }
.knopfzeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hinweise */
.hinweis, .meldung-ok, .meldung-fehler, .meldung-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.hinweis { background: var(--akzent-hell); color: #23384D; }
.meldung-ok { background: var(--ok-hell); color: #174F2E; }
.meldung-fehler { background: var(--fehler-hell); color: #5C1D13; }
.meldung-warn { background: var(--warn-hell); color: #5E3D00; }

/* Anmeldeseiten (ohne Menü) */
.mitte { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; padding: 48px 16px; }
.mitte .spalte { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.mitte .spalte.breit { max-width: 560px; }
.zentriert { text-align: center; }
.markenzeile { display: flex; justify-content: center; }
/* Hinweis: keine style="…"-Attribute in den Seiten – die Content-Security-Policy erlaubt nur diese Datei */
.qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr img { width: 180px; height: 180px; image-rendering: pixelated; border: 1px solid var(--linie); border-radius: 8px; }
.geheimnis { padding: 8px 10px; background: var(--grund); border-radius: 6px; font: 14px Consolas, monospace; letter-spacing: 1px; word-break: break-all; }

/* Tabellen */
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--leise); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
td { padding: 10px; border-bottom: 1px solid var(--linie2); vertical-align: top; }
.leer { padding: 32px 16px; text-align: center; color: var(--leise); }

/* Nachrichten */
tr.ungelesen td { font-weight: 600; }
.nachrichttext { white-space: pre-line; line-height: 1.6; border-top: 1px solid var(--linie2); padding-top: 16px; overflow-wrap: anywhere; }
.anlagen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anlagen li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; flex-wrap: wrap; }
.dateityp { min-width: 44px; height: 32px; padding: 0 6px; border-radius: 6px; background: var(--akzent-hell); color: var(--akzent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dateiname { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-gesendet { background: var(--warn-hell); color: var(--warn); }
.status-kanzlei { background: var(--akzent-hell); color: var(--akzent); }
.status-gelesen { background: var(--ok-hell); color: var(--ok); }
.feld textarea { height: auto; padding: 12px; line-height: 1.55; resize: vertical; }
.feld input[type=file] { height: auto; padding: 10px; }

/* Fuß */
.fuss { padding: 20px 16px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--leise); }
