/* Portal (Startseite, Anmeldung, Adminansicht) – baut auf guide.css auf (gleiche Farben und Bausteine). */
.portal .app { max-width: 980px; }
.portal .kopf h1 { flex: 1; }
.klein-btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.karte { max-width: 460px; margin: 8px auto 20px; padding: 20px; border: 1px solid var(--rahmen); border-top: 2px solid var(--rot); border-radius: var(--r-gross); background: var(--flaeche); }
.karte h2 { margin: 0 0 6px; font-size: 22px; }
.reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 14px; }
.reiter button { min-height: 44px; border: 1px solid var(--rahmen); border-radius: var(--r); background: var(--flaeche-2); color: var(--text); font-weight: 700; }
.reiter button[aria-selected="true"] { background: var(--rot); border-color: var(--rot); color: #fff; }
.feld { margin-bottom: 12px; }
.feld label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--meta); }
.feld input, .feld select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--rahmen); border-radius: var(--r); background: var(--flaeche-2); color: var(--titel); font: inherit; }
.feld input:focus-visible, .feld select:focus-visible { outline: 3px solid var(--rot-hell); outline-offset: 1px; }
.hinweis { margin: 10px 0; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--rahmen); background: var(--flaeche-2); font-size: 14px; }
.hinweis.fehler { border-color: var(--rot); color: var(--rot-hell); }
.hinweis.ok { border-color: var(--gut); color: var(--gut-hell); }
.textlink { display: inline-block; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--rot-hell); font-weight: 700; cursor: pointer; }

.willkommen-zeile { margin: 6px 0 16px; }
.willkommen-zeile h2 { margin: 0; font-size: 24px; }
.apps { display: grid; gap: 12px; }
@media (min-width: 700px) { .apps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.app-kachel { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 18px; border: 1px solid var(--rahmen); border-radius: var(--r-gross); background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 400; }
.app-kachel:hover { border-color: var(--meta); background: var(--flaeche-2); }
.app-kachel strong { color: var(--titel); font-size: 19px; }
.app-kachel .kurz { color: var(--meta); font-size: 14px; line-height: 1.45; }
.app-kachel .los { margin-top: auto; color: var(--rot-hell); font-weight: 800; font-size: 14px; }
.app-kachel.admin { border-style: dashed; }

/* Adminansicht */
.werkzeugleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.werkzeugleiste input { flex: 1; min-width: 200px; min-height: 46px; padding: 0 14px; border: 1px solid var(--rahmen); border-radius: var(--r); background: var(--flaeche); color: var(--titel); font: inherit; }
.nutzer-liste { display: grid; gap: 8px; }
.nutzer { display: grid; gap: 6px 14px; grid-template-columns: 1fr; padding: 14px 16px; border: 1px solid var(--rahmen); border-radius: var(--r); background: var(--flaeche); }
.nutzer.gesperrt { opacity: .6; }
.nutzer-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.nutzer-kopf strong { color: var(--titel); font-size: 16px; }
.nutzer-kopf .mail { color: var(--meta); font-size: 13px; word-break: break-all; }
.marke { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: .3px; border: 1px solid var(--rahmen); color: var(--meta); }
.marke.rot { border-color: var(--rot); color: var(--rot-hell); }
.nutzer-werte { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--meta); }
.nutzer-werte b { color: var(--text); }
.nutzer-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .nutzer { grid-template-columns: 1.4fr 1.6fr auto; align-items: center; } }
