/* PureArchiv Kundenportal. Farben und Schriften aus theme.css (PureHost-CI wie PureVideo/PureImage). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--grund); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--titel); color: var(--ueberschrift); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--akzent-text); }
code, .mono { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.leise { color: var(--leise); } .klein { font-size: .875rem; }
[hidden] { display: none !important; }

.kopf { background: var(--kopf); color: var(--auf-kopf); display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.25rem; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-text b { font-family: var(--titel); font-size: 1.1rem; }
.marke-text small { color: var(--kopf-leise); font-size: .75rem; }
.bereich { color: var(--kopf-leise); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: .7rem; }
.menue { display: flex; gap: .3rem; flex-wrap: wrap; }
.menue a { color: var(--auf-kopf); text-decoration: none; padding: .35rem .75rem; border-radius: var(--radius-knopf); }
.menue a[aria-current="page"], .menue a:hover { background: rgba(255, 255, 255, .14); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
#nav { display: flex; align-items: center; gap: .8rem; color: var(--kopf-leise); font-size: .9rem; }
.kopf button.leise { color: var(--auf-kopf); border-color: rgba(255, 255, 255, .35); background: transparent; }
.tgl { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-knopf); overflow: hidden; }
.tgl button { background: transparent; color: var(--auf-kopf); border: 0; padding: .25rem .5rem; cursor: pointer; font: inherit; min-height: 0; }
.tgl button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.karte { background: var(--kachel); border: 1px solid var(--rahmen); border-radius: var(--radius-gross); box-shadow: var(--schatten); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.anmelden { max-width: 560px; margin: 3rem auto; text-align: center; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.kopfzeile h2 { margin: 0; }

button, .knopf { font: inherit; font-weight: 600; border-radius: var(--radius-knopf); padding: .5rem 1rem; min-height: 2.4rem; cursor: pointer; border: 1px solid transparent;
  background: var(--akzent-flaeche); color: var(--auf-akzent); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
button:hover, .knopf:hover { background: var(--akzent-hover); }
button.leise { background: transparent; color: var(--akzent-text); border-color: var(--rahmen-mittel); font-weight: 500; }
button.leise:hover { background: var(--akzent-zart); }
button.gefahr { background: var(--fehler-flaeche); color: var(--auf-fehler); }
button.klein { padding: .2rem .6rem; min-height: 1.9rem; font-size: .875rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
label.inline { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; margin: 0 1rem 0 0; }
input[type=text], input[type=password], textarea, select { font: inherit; width: 100%; padding: .5rem .65rem; border: 1px solid var(--rahmen-stark); border-radius: var(--radius-knopf);
  background: var(--kachel); color: var(--text); }
textarea { min-height: 4.5rem; font-family: var(--mono); font-size: .9rem; }
.hilfe { color: var(--leise); font-size: .85rem; margin: .25rem 0 0; }
.feldgruppe { display: flex; gap: .5rem; align-items: center; }
.feldgruppe > input { flex: 1; }
.praefix { font-family: var(--mono); background: var(--flaeche); border: 1px solid var(--rahmen-stark); border-right: 0; padding: .5rem .6rem; border-radius: var(--radius-knopf) 0 0 var(--radius-knopf); }
.praefix + input { border-radius: 0 var(--radius-knopf) var(--radius-knopf) 0; }
.aktionen { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--rahmen); vertical-align: top; }
th { color: var(--leise); font-weight: 600; font-size: .85rem; }
.tabelle { overflow-x: auto; }
.marke-status { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; border: 1px solid; }
.marke-status.ok { color: var(--ok-text); background: var(--ok-zart); border-color: var(--ok-rand); }
.marke-status.aus { color: var(--warn-text); background: var(--warn-zart); border-color: var(--warn-rand); }

.balken { height: .7rem; background: var(--flaeche); border: 1px solid var(--rahmen); border-radius: 999px; overflow: hidden; margin: .4rem 0; }
.balken > span { display: block; height: 100%; background: var(--produkt-balken); }
.balken.voll > span { background: var(--fehler); }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
dl.daten dt { color: var(--leise); }
dl.daten dd { margin: 0; }

.meldung { border-radius: var(--radius); padding: .65rem .9rem; border: 1px solid; margin: .8rem 0; }
.meldung.fehler { color: var(--fehler-text); background: var(--fehler-zart); border-color: var(--fehler-rand); }
.meldung.ok { color: var(--ok-text); background: var(--ok-zart); border-color: var(--ok-rand); }
.meldung.hinweis { color: var(--text); background: var(--akzent-zart); border-color: var(--akzent-rand); }

.bereichzeile { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr 1.2fr; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--rahmen); }
dialog { border: 1px solid var(--rahmen); border-radius: var(--radius-gross); padding: 1.4rem; max-width: 520px; width: calc(100% - 2rem); background: var(--kachel); color: var(--text); }
dialog::backdrop { background: rgba(12, 45, 64, .45); }
.fuss { background: var(--tief); color: var(--kopf-leise); padding: .9rem 1.25rem; font-size: .85rem; }
@media (max-width: 640px) { .bereichzeile { grid-template-columns: 1fr; } .bereich { display: none; } }
