[hidden] { display: none !important; }
/* Mandantenportal (Seiten für Mandanten). Farben aus themes.css (Design-Tokens), keine fremden Quellen. */
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--flaeche); color: var(--text); line-height: 1.45; }
a { color: var(--akzent); }
.pr { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; box-sizing: border-box; }
.pr.mitte { max-width: 470px; padding-top: 3rem; }
.pr.mitte.breiter { max-width: 560px; }
h1 { font-size: 1.45rem; margin: 0 0 .4rem; } h2 { font-size: 1.1rem; margin: 1.6rem 0 .7rem; }
.ged { color: var(--text-gedaempft); } .klein { font-size: .85rem; } .zentriert { text-align: center; } .abstand { margin-top: 1.5rem; }
button, .knopf { background: var(--akzent); color: var(--akzent-text); border: 0; border-radius: 6px; padding: .65rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
button.breit { width: 100%; }
button.zweit, .knopf.zweit { background: var(--hintergrund); color: var(--akzent); border: 1px solid var(--linie-stark); }
button.link { background: none; border: 0; padding: 0; color: var(--akzent); font-weight: 400; text-decoration: underline; }
input, textarea, select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--linie-stark); border-radius: 6px; width: 100%; box-sizing: border-box; background: var(--hintergrund); color: var(--text); }
input[readonly] { background: var(--flaeche); }
label.f { display: block; margin-bottom: .9rem; font-weight: 600; font-size: .92rem; }
label.f input { margin-top: .3rem; font-weight: 400; }
label.haken { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin: .8rem 0 1rem; }
label.haken input { width: auto; margin-top: .2rem; }
.karte { background: var(--hintergrund); border: 1px solid var(--linie); border-radius: 10px; padding: 1.25rem 1.4rem; }
.fehler { background: var(--fehler-flaeche); border: 1px solid var(--fehler-rahmen); color: var(--fehler); border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0 1rem; font-size: .9rem; }
.fehler p { margin: .2rem 0; }
.erfolg { background: var(--erfolg-flaeche); border: 1px solid var(--erfolg-rahmen); color: var(--erfolg); border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0 1rem; font-size: .9rem; }
.regeln { font-size: .8rem; color: var(--text-gedaempft); margin: -.3rem 0 1rem; padding-left: 1.1rem; }
.hinweise { font-size: .88rem; background: var(--flaeche); border-radius: 6px; padding: .5rem .7rem; }
.hinweise summary { cursor: pointer; font-weight: 600; }
.schloss { text-align: center; font-size: .82rem; color: var(--text-gedaempft); margin-top: 1rem; }
.wahl { display: grid; gap: .6rem; margin-top: 1rem; }
.wahl button { text-align: left; font-weight: 400; }
.wahl small { display: block; color: var(--text-gedaempft); margin-top: .2rem; }
.qr { display: flex; justify-content: center; margin: .5rem 0; }
.qr svg { background: #fff; border-radius: 6px; }
.liste { background: var(--hintergrund); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.liste .z { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--linie); }
.liste .z:last-child { border-bottom: 0; }
.liste .z small { display: block; color: var(--text-gedaempft); font-size: .82rem; }
.liste .sym { width: 2.4rem; height: 2.4rem; border-radius: 6px; display: grid; place-items: center; font-weight: 700; color: var(--akzent-text); background: var(--akzent); }
.fusszeile { text-align: center; font-size: .8rem; color: var(--text-gedaempft); padding: 1rem; }
.fusszeile a { color: var(--text-gedaempft); }
@media (max-width: 560px) { .liste .z { grid-template-columns: 2.4rem 1fr; } .liste .z > :last-child { grid-column: 2; justify-self: start; } }
/* Übersicht je Mandat und Dokumentansicht */
.mandat { margin-top: 1.4rem; } .mandat h2 small { font-weight: 400; font-size: .82rem; margin-left: .4rem; }
h3 { font-size: .98rem; margin: 1.1rem 0 .5rem; }
a.z { color: inherit; text-decoration: none; } a.z:hover { background: var(--flaeche); }
.liste .sym.typ { font-size: .7rem; }
.marke { font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; white-space: nowrap; }
.m-offen { color: var(--hinweis-text); background: var(--hinweis-flaeche); }
.m-frei { color: var(--erfolg); background: var(--erfolg-flaeche); }
.m-aenderung { color: var(--text-gedaempft); background: var(--flaeche); }
.m-neu { color: var(--akzent); background: color-mix(in srgb, var(--akzent) 10%, var(--hintergrund)); }
.p4 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; margin-top: 1rem; }
.blatt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: .75rem; }
.blatt iframe { width: 100%; height: 75vh; border: 0; border-radius: 6px; background: #fff; }
.blatt img { max-width: 100%; display: block; margin: 0 auto; }
.rm { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.rm .karte p { margin: .4rem 0 0; }
.nachricht { font-size: .93rem; }
@media (max-width: 760px) { .p4 { grid-template-columns: 1fr; } .blatt iframe { height: 60vh; } .rm { position: static; } }
/* Rückmeldung und Kommentare */
.rueck .entsch { margin: .8rem 0 .5rem; }
.rueck .entsch button, .rueck .aendern > summary.knopf { width: 100%; text-align: center; box-sizing: border-box; }
button.gruen { background: var(--erfolg); color: #fff; }
.aendern { margin: .3rem 0 .6rem; }
.aendern > summary { cursor: pointer; list-style: none; }
.aendern > summary::-webkit-details-marker { display: none; }
.aendern:not(:has(> summary.knopf)) > summary { color: var(--akzent); text-decoration: underline; font-size: .9rem; margin-top: .6rem; }
.aendern form { margin-top: .7rem; }
.bestaetigt { background: var(--erfolg-flaeche); border: 1px solid var(--erfolg-rahmen); border-radius: 8px; padding: .7rem .8rem; }
.bestaetigt p { margin: .3rem 0 0; font-size: .92rem; }
.blase { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; margin: .6rem 0; }
.blase small { display: block; color: var(--text-gedaempft); font-size: .78rem; margin-bottom: .2rem; }
.blase.ich { background: var(--hinweis-flaeche); border-color: var(--hinweis-rahmen); }
.rechts { display: flex; justify-content: flex-end; margin-top: .5rem; }
button.klein-knopf { padding: .4rem .9rem; }
.ok { color: var(--erfolg); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Unterlagen senden */
.schmal-karte { max-width: 40rem; }
a.knopf-link { display: inline-block; margin-top: .6rem; padding: .5rem .9rem; border: 1px solid var(--akzent); border-radius: 8px; color: var(--akzent); text-decoration: none; font-weight: 600; }
a.knopf-link:hover { background: color-mix(in srgb, var(--akzent) 8%, var(--hintergrund)); }
.sitzungen { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .93rem; }
.sitzungen th, .sitzungen td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.sitzungen th { color: var(--text-gedaempft); font-weight: 600; font-size: .85rem; }
.sitzungen button { padding: .3rem .7rem; }
@media (max-width: 560px) { .sitzungen th:nth-child(2), .sitzungen td:nth-child(2) { display: none; } }
/* Markierte Stellen (static/js/portal_stellen.js) */
.stellen-leiste { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .6rem; }
.seiten { display: grid; gap: .9rem; max-height: 75vh; overflow: auto; padding: .25rem; }
.seite { position: relative; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .18); touch-action: none; cursor: crosshair; user-select: none; }
.seite img { width: 100%; display: block; }
.seite .seitennummer { position: absolute; right: .4rem; bottom: .3rem; font-size: .75rem; color: #555; background: rgb(255 255 255 / .85); padding: 0 .3rem; border-radius: 3px; }
.stelle { position: absolute; pointer-events: none; border: 2px solid var(--akzent); background: color-mix(in srgb, var(--akzent) 18%, transparent); border-radius: 2px; }
.stelle.alt { border-style: dashed; border-color: var(--hinweis-text, #8a6d00); background: color-mix(in srgb, #ffe600 30%, transparent); }
.stelle.blinkt { outline: 3px solid var(--akzent); outline-offset: 2px; }
.stelle-hinweis { font-size: .85rem; margin: .3rem 0; padding: .35rem .5rem; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 10%, var(--hintergrund)); }
.blase .zitat { display: block; font-size: .82rem; margin-bottom: .2rem; color: var(--akzent); text-decoration: none; }
.blase .zitat:hover { text-decoration: underline; }
@media (max-width: 760px) { .seiten { max-height: none; } }

/* ===== Schwebende Leiste, Begrüßung, Mandatskarten, Ablagefeld (static/js/portal.js) ===== */
.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }
.pk svg, .chip svg, .ablage svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-theme="dunkel"] body { background: var(--seite, var(--flaeche)); }
.pk { --glas: color-mix(in srgb, var(--hintergrund) 80%, transparent); --glas-rand: color-mix(in srgb, var(--linie) 75%, transparent);
  position: sticky; top: .9rem; z-index: 20; max-width: 1100px; margin: .9rem auto 0; padding: 0 1.25rem; box-sizing: border-box;
  display: flex; align-items: center; gap: 1rem; pointer-events: none; }
.pk > * { pointer-events: auto; }
.pk:not(.mit-leiste) { position: static; justify-content: center; margin-top: 2rem; }
.pk-logo, .leiste { background: var(--glas); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glas-rand); box-shadow: 0 10px 32px rgb(15 23 35 / .13), 0 2px 6px rgb(15 23 35 / .05);
  transition: transform var(--dauer-lang, 350ms) var(--kurve, ease), box-shadow var(--dauer-lang, 350ms); }
.pk-logo { display: flex; align-items: center; gap: .85rem; padding: .45rem 1.6rem .45rem .5rem; border-radius: 99px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem; }
.pk-logo small { display: block; font-weight: 400; color: var(--text-gedaempft); font-size: .74rem; }
.pk-zeichen { width: 2.2rem; height: 2.2rem; border-radius: 99px; display: grid; place-items: center; background: var(--akzent); color: var(--akzent-text); font-weight: 800; }
.pk-bild { height: 2.2rem; max-width: 10rem; object-fit: contain; border-radius: 6px; }
/* Mit Logo: mehr Luft zum runden Rand, Trennstrich zwischen Logo und Kanzleiname */
.pk-logo:has(.pk-bild) { padding-left: 1.3rem; gap: 1.1rem; }
.pk-bild + span { padding-left: 1.1rem; border-left: 1px solid var(--linie); }
/* Ohne Anmeldung (Anmeldeseite u. a.): Titelpille so breit wie die Karte darunter und mit deren Radius */
.pk:not(.mit-leiste) { max-width: 470px; margin-left: auto; margin-right: auto; padding: 0 1.25rem; }
body:has(.pr.mitte.breiter) .pk:not(.mit-leiste) { max-width: 560px; }
.pk:not(.mit-leiste) .pk-logo { flex: 1; justify-content: center; border-radius: 10px; padding: .6rem 1.4rem; }
.leiste { margin-left: auto; position: relative; display: flex; align-items: center; gap: .15rem; padding: .3rem; border-radius: 99px; }
.leiste form { margin: 0; display: contents; }
.leiste a, .leiste button.aus { position: relative; z-index: 1; display: flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 99px;
  color: var(--text-gedaempft); font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.leiste a:hover, .leiste button.aus:hover { color: var(--text); }
.leiste a.aktiv { color: var(--akzent); }
.leiste a:focus-visible, .leiste button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.leiste button.aus { margin-left: .35rem; }
.leiste button.aus::before { content: ""; position: absolute; left: -.2rem; top: 25%; bottom: 25%; border-left: 1px solid var(--linie); }
.leiste .gleiter { position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: 0; opacity: 0; border-radius: 99px;
  background: color-mix(in srgb, var(--akzent) 14%, var(--hintergrund)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 25%, transparent); }
.leiste.bereit .gleiter { transition: left var(--dauer-lang, 350ms) var(--kurve, ease), width var(--dauer-lang, 350ms) var(--kurve, ease), opacity var(--dauer-mittel, 220ms); }
.leiste .zahl { font-style: normal; font-size: .7rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; box-sizing: border-box; border-radius: 99px;
  display: inline-grid; place-items: center; background: var(--akzent); color: var(--akzent-text); }
body.gerollt .pk-logo, body.gerollt .leiste { transform: translateY(-4px) scale(.97); box-shadow: 0 16px 40px rgb(15 23 35 / .22), 0 2px 6px rgb(15 23 35 / .06); }
.pr.mit-leiste:not(.mitte) { padding-top: 1rem; }
.gruss { margin: .4rem -1.25rem 0; padding: 2rem 1.25rem 1.5rem; border-radius: 22px;
  background: radial-gradient(60rem 18rem at 0% 0%, color-mix(in srgb, var(--akzent) 20%, transparent), transparent 70%),
              radial-gradient(40rem 16rem at 100% 0%, color-mix(in srgb, var(--erfolg) 11%, transparent), transparent 70%); }
.gruss h1 { font-size: 1.7rem; letter-spacing: -.01em; }
.gruss.klein-gruss { padding-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; padding: .35rem .75rem; border-radius: 99px; color: var(--text);
  background: var(--hintergrund); border: 1px solid var(--linie); text-decoration: none; }
a.chip:hover { border-color: var(--linie-stark); }
.chip.warn { background: var(--hinweis-flaeche); border-color: var(--hinweis-rahmen); color: var(--hinweis-text); }
.chip.ruhig { color: var(--text-gedaempft); } .chip svg { width: .95rem; height: .95rem; }
.mandat { background: var(--hintergrund); border: 1px solid var(--linie); border-radius: 14px; padding: 1.2rem 1.4rem 1.4rem;
  box-shadow: 0 1px 2px rgb(15 23 35 / .04), 0 10px 30px rgb(15 23 35 / .05); }
.mandat-kopf { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.mandat-kopf h2 { margin: 0; font-size: 1.2rem; }
.mandat .karte { background: var(--flaeche); border-color: transparent; }
h3[id^="senden-"] { scroll-margin-top: 6rem; }
/* Ablagefeld */
.ablage { margin: 0; }
.ablage-feld { display: grid; justify-items: center; gap: .2rem; border: 2px dashed var(--linie-stark); border-radius: 12px; padding: 1.4rem 1rem; text-align: center;
  background: color-mix(in srgb, var(--akzent) 3%, var(--hintergrund)); cursor: pointer;
  transition: border-color var(--dauer-mittel, 220ms), background var(--dauer-mittel, 220ms), box-shadow var(--dauer-mittel, 220ms), transform var(--dauer-mittel, 220ms); }
.ablage-feld:hover { border-color: var(--akzent); }
.ablage-feld .ablage-sym { width: 2.4rem; height: 2.4rem; color: var(--akzent); stroke-width: 1.5; }
.ablage-titel { margin-top: .2rem; }
.knopf-mini { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ablage input:focus-visible + * , .ablage:focus-within .ablage-feld { outline: none; }
.ablage:has(input[data-ablage-eingabe]:focus-visible) .ablage-feld { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 35%, transparent); }
body.zieht .ablage-feld { border-color: var(--akzent); animation: ablage-puls 1.4s ease-in-out infinite; }
.ablage.ueber .ablage-feld { border-style: solid; border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 12%, var(--hintergrund));
  transform: scale(1.01); box-shadow: 0 0 0 6px color-mix(in srgb, var(--akzent) 15%, transparent); animation: none; }
.ablage.ueber .ablage-sym { animation: ablage-hupf 1s ease-in-out infinite; }
@keyframes ablage-hupf { 50% { transform: translateY(-4px); } }
@keyframes ablage-puls { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--akzent) 14%, transparent); } }
.ablage-foto { display: none; margin-top: .6rem; width: 100%; box-sizing: border-box; justify-content: center; gap: .5rem; align-items: center; }
.ablage-liste { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ablage-liste li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem .8rem;
  border: 1px solid var(--linie); border-radius: 10px; background: var(--hintergrund); animation: ablage-rein var(--dauer-mittel, 220ms) var(--kurve, ease); }
@keyframes ablage-rein { from { opacity: 0; transform: translateY(6px); } }
.ablage-liste li b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ablage-liste .sym { width: 2.2rem; height: 2.2rem; border-radius: 6px; display: grid; place-items: center; font-size: .62rem; font-weight: 700;
  background: color-mix(in srgb, var(--akzent) 14%, var(--hintergrund)); color: var(--akzent); }
.ablage-liste small { display: block; color: var(--text-gedaempft); font-size: .8rem; }
.ablage-liste .weg { background: none; border: 0; color: var(--text-gedaempft); font-size: 1.3rem; line-height: 1; padding: .2rem .45rem; border-radius: 6px; }
.ablage-liste .weg:hover { background: var(--flaeche); color: var(--text); }
.ablage.sendet .weg { visibility: hidden; }
.ablage-liste li.fertig .weg { visibility: visible; color: var(--erfolg); font-size: 0; pointer-events: none; }
.ablage-liste li.fertig .weg::after { content: "\2713"; font-size: 1.1rem; font-weight: 800; }
.balken { display: block; height: 4px; border-radius: 4px; background: var(--flaeche); margin-top: .35rem; overflow: hidden; }
.balken i { display: block; width: 0; height: 100%; background: var(--akzent); border-radius: 4px; transition: width .2s linear; }
.ablage-liste li.fertig .balken i { background: var(--erfolg); }
.ablage-senden { margin-top: .8rem; }
.ablage-senden .rechts { gap: .5rem; }
.bemerkung { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.ablage textarea { width: 100%; box-sizing: border-box; }
.ablage .erfolg { margin-bottom: 0; }
.nur-handy { display: none; }
@media (hover: none) and (pointer: coarse) { .nur-maus { display: none; } .ablage-foto.nur-handy { display: flex; } }
@media (max-width: 700px) {
  .pk { position: static; margin: 0; padding: .9rem 1rem 0; }
  .leiste { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); margin: 0; justify-content: space-between; z-index: 30; }
  .leiste a, .leiste button.aus { flex: 1; flex-direction: column; gap: .15rem; padding: .45rem .2rem; font-size: .68rem; }
  .leiste svg { width: 1.3rem; height: 1.3rem; }
  .leiste .zahl { position: absolute; top: .1rem; left: 55%; }
  .leiste button.aus { margin-left: 0; } .leiste button.aus::before { display: none; }
  body.gerollt .pk-logo { transform: none; }
  body.gerollt .leiste { transform: none; }
  .pr.mit-leiste, .fusszeile.mit-leiste { padding-bottom: 6.5rem; }
  .gruss { margin: .4rem 0 0; padding: 1.4rem 1rem 1.2rem; } .gruss h1 { font-size: 1.45rem; }
  .mandat { padding: 1rem; }
  .chip.ruhig { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .leiste .gleiter, .pk-logo, .leiste, .ablage-feld, .balken i { transition: none !important; }
  body.gerollt .pk-logo, body.gerollt .leiste, .ablage.ueber .ablage-feld { transform: none; }
  body.zieht .ablage-feld, .ablage.ueber .ablage-sym, .ablage-liste li { animation: none; }
}
