/* seite-portal.css – Kundenportal /portal/ + /en/portal/ (Agent «portal», Paket 1234, Version 20261113e).
   Ergaenzt die Grundbausteine aus site.css §49 (dz-): nur Klassen mit Praefix portal-.
   Markup entsteht in assets/js/seite-portal.js (Login-Karte, Kopf mit Aktionen, Reiter + Bereiche, Offerte im
   Detail mit Annahme, Schnellbuchung, Creator-Profil, Treue mit Kopierfeldern).
   Tippziele >= 44 px (Knoepfe .btn-sm, Reiter aus §49), Textlinks >= 24 px; Fokus immer sichtbar (--fokus);
   kein waagrechtes Scrollen ab 320 px (lange Texte brechen um); Bewegung: keine eigenen Animationen. */

/* --- Rahmen --- */
.portal-bereiche { display: grid; gap: 18px; min-width: 0; }
.portal-reiter { max-width: 100%; }
/* sr-only (position: absolute) in Reitern und Tabellen-Huellen bleibt im Scroll-Bereich: position: relative
   steht seit der Integration 20261113e zentral in site.css §49 (.dz-reiter [role=tab], .dz-tabelle-huelle) */
.portal-bereich {
  display: grid; gap: 18px; align-content: start; min-width: 0;
  padding: 6px 2px 2px; border-radius: 14px;
}
.portal-bereich > * { margin: 0; min-width: 0; }
.portal-bereich:focus { outline: none; }
.portal-bereich:focus-visible { outline: 3px solid var(--fokus); outline-offset: 4px; }
.portal-bereich-titel { margin: 0; overflow-wrap: anywhere; }
.portal-text { margin: 0; color: var(--muted); max-width: 68ch; overflow-wrap: anywhere; }
.portal-hinweis { margin: 0; font-size: 0.9rem; color: var(--dim); overflow-wrap: anywhere; }
.portal-absaetze { display: grid; gap: 8px; }
.portal-absaetze > p { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.portal-unter { display: grid; gap: 12px; min-width: 0; }
.portal-unter > * { margin: 0; min-width: 0; }
.portal-unter > .btn, .portal-bereich > .btn { justify-self: start; }
.portal-unter-titel { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; overflow-wrap: anywhere; }
.portal-punkte { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink); }
.portal-punkte li { overflow-wrap: anywhere; }
.portal-punkte li::marker { color: var(--akzent); }
.portal-frei-objekt { list-style: none; margin-left: -1.3em; }
.portal-betrag { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Textlinks im Portal (Datenschutz, AGB, Kanaele): unterstrichen, Tippziel >= 24 px */
.portal-text-link {
  display: inline-flex; align-items: center; min-height: 24px;
  color: var(--akzent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.portal-text-link:hover { color: #fff; }
.check .portal-text-link { display: inline; }

/* --- Login --- */
.portal-login { margin-inline: auto; width: 100%; }
.portal-schritte { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; color: var(--muted); }
.portal-schritte li::marker { color: var(--akzent-text); font-weight: 800; }
.portal-login .form { gap: 16px; }
.portal-login-nochmal { justify-self: start; }
.portal-login-fuss { display: grid; justify-items: start; gap: 8px; }
.portal-login-fuss > * { margin: 0; }

/* --- Kopf der Uebersicht --- */
.portal-kopf { gap: 0; }
.portal-kopf .dz-karte-kopf { align-items: center; }
/* Ueberschriften, die per Skript den Fokus bekommen (tabindex -1, nicht im Tab-Lauf): kein Rahmen, wie main:focus */
.portal-kopf .dz-karte-titel:focus { outline: none; }
.portal-kopf-aktion { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Listen und Detail --- */
.portal-listenteil, .portal-detail, .portal-detail-inhalt { display: grid; gap: 16px; min-width: 0; }
.portal-zurueck { justify-self: start; }
.portal-offerte { gap: 16px; }
.portal-detail-titel:focus { outline: none; }
.portal-annahme { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.portal-annahme > * { margin: 0; }
.portal-pdf { gap: 6px; }

/* Schluessel/Wert mit laengeren Texten (Profil, Konditionen): Wert links und unter dem Schluessel */
.portal-werte-text > div { display: grid; gap: 4px; justify-content: stretch; }
.portal-werte-text dd { text-align: left; font-weight: 500; color: var(--ink); }
.portal-kanal-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* --- Formulare im Portal --- */
.portal-buchung .form, .portal-profil-form .form { gap: 18px; }
.portal-gruppe-titel { margin: 0; font-weight: 700; font-size: 0.95rem; color: #fff; }
.portal-kanaele-gruppe { display: grid; gap: 12px; }
.portal-kanaele { display: grid; gap: 12px; }
.portal-kanal {
  display: grid; gap: 12px; padding: 14px; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 8, 34, 0.35);
}
.portal-kanal > * { margin: 0; min-width: 0; }
.portal-kanal-titel { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.portal-kanal-weg { justify-self: start; }
@media (min-width: 720px) {
  .portal-kanal { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) auto; align-items: end; }
  .portal-kanal-titel { grid-column: 1 / -1; }
  .portal-kanal-weg { min-height: 52px; }
}

/* --- Treue: Code und Teilen-Link mit Kopierknopf --- */
.portal-kopie { gap: 8px; }
.portal-kopie-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.portal-kopie-reihe input { flex: 1 1 220px; min-width: 0; font-variant-numeric: tabular-nums; }
.portal-kopie-reihe .btn { flex: none; }
.field .portal-code { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.08em; }
.portal-kopiert { min-height: 1.4em; font-size: 0.9rem; font-weight: 600; color: var(--dz-ok); }

/* --- Kontrast, Druck --- */
@media (prefers-contrast: more) {
  .portal-kanal { border-color: rgba(255, 255, 255, 0.75); }
  .portal-hinweis, .portal-kanal-titel { color: var(--muted); }
}
@media (forced-colors: active) {
  .portal-kanal { border: 1px solid CanvasText; }
  .portal-text-link { color: LinkText; }
  .portal-bereich:focus-visible { outline-color: Highlight; }
}
@media print {
  .portal-kopf-aktion, .portal-reiter, .portal-zurueck, .portal-annahme, .portal-buchung form,
  .portal-profil-form, .portal-kopie-reihe .btn { display: none !important; }
  .portal-text, .portal-hinweis, .portal-unter-titel, .portal-betrag, .portal-punkte { color: #000 !important; }
}
