/* Guestseiten verwenden dieselben semantischen Rollen wie das aktuelle Panel.
   Die vorhandenen Paketnamen bleiben fuer native Formulare und Empfaengerseiten. */
:root {
  --bg: #f5f5f5; --ink: #202020; --secondary: #626262; --muted: #626262;
  --surface: #ffffff; --subtle: #f0f0f0; --line: #d4d4d4; --line-strong: #878787;
  --field-bg: #ffffff; --accent: #9fe5c4; --on-accent: #171717;
  --positive: #306740; --warning: #765518; --negative: #aa3333; --focus: #306740;
  --control-height: 40px; --control-radius: 6px; --button-border: #838383;
}
html[data-theme="dark"] {
  --bg: #0a0a0a; --ink: #f2f2f2; --secondary: #b5b5b5; --muted: #b5b5b5;
  --surface: #161616; --subtle: #222222; --line: #454545; --line-strong: #707070;
  --field-bg: #222222; --positive: #acc4b0; --warning: #d8c69c; --negative: #eeaaa7;
  --focus: #9fe5c4; --button-border: #7c7c7c;
}
.public-page[data-auth-layout="centered"] .auth-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius); box-shadow: none;
}
.public-page .auth-heading h1 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.public-page .field input { min-height: var(--control-height); height: var(--control-height); border-radius: var(--control-radius); }
.public-page .btn { min-height: var(--control-height); border-radius: var(--control-radius); background: var(--surface); border-color: var(--button-border); color: var(--ink); }
.public-page .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.public-page :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.public-page :is(.field input:not([aria-invalid="true"], [data-invalid="true"], :user-invalid), .btn, .icon-button, .password-toggle):focus-visible { border-color: transparent; }
.public-page .password-toggle { min-height: calc(var(--control-height) - 2px); height: calc(var(--control-height) - 2px); border-radius: var(--control-radius); }
@media (pointer: coarse), (max-width: 600px) {
  :root { --control-height: 44px; }
  .public-page .field input { font-size: 16px; }
}
@media (forced-colors: active) {
  .public-page :is(button, a, input, select, textarea, summary):focus-visible { outline-color: Highlight; }
}

/* QO7 Control, Gastseiten: nur NEUE Selektoren, die public.css nicht kennt.
   Geladen vor quality.css (das bleibt laut Paket zuletzt). */
.auth-remember { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 13px; color: var(--secondary); cursor: pointer; }
.auth-remember input { margin: 0; flex: none; }
.auth-text { margin: 0 0 20px; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.auth-text a { color: var(--ink); text-underline-offset: 3px; }
.auth-footnote a { color: var(--ink); text-underline-offset: 3px; }
/* Einmal-Link: das Passwort gross, kopierbar, in Azeret Mono. */
.secret-wert { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--subtle); font-size: 18px; font-weight: 600; word-break: break-all; user-select: all; text-align: center; }

/* Der Auth-Owner ersetzt das gemeinsame Venya-Zeichenfeld durch den flachen
   semantischen Hintergrund. Fehlermeldungen bleiben im Wort und Symbol markiert. */
.public-page[data-auth-layout="centered"] { --auth-canvas: var(--bg); }
.public-page[data-auth-layout="centered"]::before { background-image: none; }
html:not([data-theme="dark"]) .public-page[data-auth-layout="centered"] .auth-card { border-color: var(--line); }
.auth-error { border-left-width: 1px; border-left-color: var(--line); }
/* Radius der Karte bleibt auch unter 600 px auf der Stufe 12 (Paket: 10). */
@media (max-width: 520px) { .public-page[data-auth-layout="centered"] .auth-card { border-radius: 6px; } }

/* Empfaengerseiten (sichere Nachricht, geteilte Datei), seit 17.09.2026 in dieser Karte. */
.auth-content.gast-breit { width: 560px; max-width: 100%; }
.gast-text { margin: 0 0 24px; color: var(--ink); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.gast-abschnitt { margin: 0 0 10px; font-size: 12px; font-weight: 550; color: var(--secondary); }
.gast-liste { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gast-datei { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.gast-datei .icon { flex: none; width: 16px; height: 16px; }
.gast-datei small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
a.gast-datei { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { a.gast-datei:hover { background: var(--subtle); } }
