/* zugang.css — Login-Karte, Dashboard und Bereichs-Uebersicht (index.php).
   Farben/Schriften/Schatten kommen aus adzr-brand.css (vorher einbinden!). */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Scrollbalken-Platz immer reservieren: Login (kurz) <-> Uebersicht (lang)
   liesse die zentrierte Karte sonst seitlich huepfen. */
html { height: 100%; scrollbar-gutter: stable; }
html, body { margin: 0; }
/* Mittig, auch mobil. Drei Angaben mit Absicht, in dieser Reihenfolge:
   100% wirkt ueberall (haengt an html { height:100% }), 100vh ist der alte
   Standard, 100svh beachtet zusaetzlich die ein- und ausfahrende Browser-
   Leiste. Kennt ein Browser die letzte nicht, ignoriert er nur diese Zeile
   und behaelt die davor — ohne Fallback haette er GAR KEINE Mindesthoehe,
   und dann klebt die Karte oben statt in der Mitte.
   flex statt grid: bei zu kleinen Fenstern schiebt grid den Inhalt nach
   oben aus dem Bild, flex mit safe center nicht. */
body { background: var(--paper); color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 20px 40px -18px hsl(var(--shadow) / .45), 0 1px 3px -1px hsl(var(--shadow) / .25);
  padding: 46px 44px 38px; width: 420px; max-width: 100%; text-align: center;
  animation: rise .5s cubic-bezier(.23,1,.32,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* Auf schmalen Geraeten frisst der Innenabstand die halbe Karte:
   bei 320 px blieben von 420 px Karte nur ~190 px Text. */
@media (max-width: 420px) {
  .card { padding: 34px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
/* Nach falschem Passwort NICHT nochmal einfahren. Das Formular schickt ab,
   die Seite laedt neu, und die Karte startet wieder bei opacity 0 — das
   sieht aus, als waere die Anmeldung kurz verschwunden. Beim ersten Aufruf
   ist die Animation schoen, beim zweiten nur irritierend. */
.card.sofort { animation: none; }
.brand { font-family: var(--heavy); font-weight: normal;
  font-size: 20px; letter-spacing: .02em; margin: 0 0 4px; }
.brand .io { color: var(--muted); }
.brand svg { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.eyebrow { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 10px; }
/* Nie umbrechen: "KAMPAGNEN-PREVIEW" auf zwei Zeilen sieht kaputt aus.
   Statt umzubrechen schrumpft die Schrift mit — clamp() haelt sie zwischen
   16 und 27 px, dazwischen richtet sie sich nach der Fensterbreite. */
h1 { font-family: var(--heavy); font-weight: normal;
  text-transform: uppercase; color: var(--gold); white-space: nowrap; text-align: center;
  font-size: clamp(16px, 6.2vw, 27px); letter-spacing: .01em; margin: 0 0 8px; line-height: 1.1; }
p.lead { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
input[type="password"] { width: 100%; padding: 12px 16px; font: inherit;
  font-family: var(--demi); letter-spacing: .05em; text-align: center;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; outline: none; transition: border-color .3s ease; }
input[type="password"]:focus { border-color: var(--gold); }
.err { color: var(--blue); font-size: 12px; margin: 10px 0 10px; min-height: 18px; }
button { margin-top: 2px; width: 100%; cursor: pointer;
  /* auch hier lieber kleiner als zweizeilig */
  white-space: nowrap; text-align: center;
  font-family: var(--demi);
  font-size: clamp(11px, 3.6vw, 14px); letter-spacing: .06em;
  text-transform: uppercase; color: var(--line); background: var(--black);
  border: 1px solid var(--black); border-radius: 999px; padding: 12px 15px;
  transition: background .8s cubic-bezier(.23,1,.32,1), color .8s cubic-bezier(.23,1,.32,1),
    border-color .8s cubic-bezier(.23,1,.32,1), box-shadow .8s cubic-bezier(.23,1,.32,1), transform .1s ease; }
@media (hover: hover) { button:hover { background: var(--gold); border-color: var(--gold);
  color: #fff; box-shadow: 0 20px 30px -12px rgba(10,7,47,.6);
  transition-duration: .5s, .5s, .5s, .5s, .1s; } }
button:active { transform: scale(.97); }

/* Meister-Uebersicht */
.camp { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-decoration: none; color: var(--ink); text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  transition: border-color .25s ease, background .25s ease; }
@media (hover: hover) { .camp:hover { border-color: var(--gold); background: var(--paper); } }
.camp:last-child { margin-bottom: 0; }
.camp .go { color: var(--gold); font-size: 20px; line-height: 1; flex: 0 0 auto; }
/* Vorschaubild: feste kleine Kachel, Bild fuellt sie beschnitten (cover). */
.camp .thumb { flex: 0 0 auto; width: 72px; height: 46px; border-radius: 6px;
  object-fit: cover; display: block; background: var(--paper); border: 1px solid var(--line); }
.camp .thumb--leer { background: var(--paper); }
/* Text-Spalte waechst, schiebt den Pfeil nach rechts; min-width:0 erlaubt das
   Kuerzen langer Namen per Ellipsis (sonst sprengt der Name die Zeile). */
.camp .meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.camp .name { font-family: var(--demi); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp .du { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
/* Gruppen-Zwischentitel (Kundenname, z.B. in der Vermarkter-/Agentur-Uebersicht) */
.group { text-align: left; font-family: var(--demi);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 18px 0 8px; }
.group:first-of-type { margin-top: 6px; }
.warn { text-align: left; font-size: 12px; line-height: 1.45; color: var(--warn-ink);
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px; }
.warn b { font-family: var(--demi); font-weight: normal; }
.warn code { font-family: var(--mono); font-size: 11px; }
.dash-foot { margin-top: 20px; font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); opacity: .7; }
.credit { margin-top: 26px; font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); opacity: .7; }
.credit a { color: var(--ink); text-decoration: none; opacity: 1; transition: color .2s ease; }
.credit a:hover { color: var(--gold); }
