/* ============================================================
   KRAFT — Anwendungsteile: Kopfzeilen-Aktionen, Formulare,
   Konto, Neuigkeiten, Support, Admin-Dashboard.
   Baut auf kraft.css auf; erfindet keine neuen Farben.
   ============================================================ */

/* ---------- Aktionen in der Kopfzeile ---------- */

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 4px; }

.btn--nav {
  padding: 9px 17px; font-size: 12.5px; letter-spacing: .05em;
  border-radius: 999px; white-space: nowrap;
}
.btn--try { background: var(--signal); color: #fff; }
.btn--try:hover { background: #ff6634; }

.acct { position: relative; }
.acct__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--fg-2); cursor: pointer;
  font-family: var(--body); font-size: 12.5px; letter-spacing: .05em;
  padding: 8px 14px; border-radius: 999px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.acct__btn:hover { color: var(--fg); border-color: rgba(237,237,237,.34); }
.acct.open .acct__btn { color: var(--fg); border-color: var(--signal); }
.acct__dot {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--signal); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

.acct__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 236px;
  margin: 0; padding: 6px; list-style: none;
  background: rgba(23,23,23,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top right; z-index: 90;
  transition: opacity .28s var(--out), transform .28s var(--out), visibility .28s;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.acct.open .acct__menu { opacity: 1; visibility: visible; transform: none; }
.acct__head { padding: 12px 12px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.acct__name { font-size: 13.5px; color: var(--fg); font-weight: 600; }
.acct__mail { font-size: 11.5px; color: var(--fg-3); margin-top: 3px; word-break: break-all; }
.acct__badge {
  display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 4px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--signal-dim); color: var(--signal);
}
.acct__menu a, .acct__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  color: var(--fg-2); font-family: var(--body); font-size: 13px;
  padding: 9px 12px; border-radius: 7px; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.acct__menu a:hover, .acct__menu button:hover { background: rgba(237,237,237,.06); color: var(--fg); }
.acct__menu .is-danger:hover { color: var(--signal); }
.acct__sep { height: 1px; background: var(--line-soft); margin: 6px 0; }

@media (max-width: 900px) {
  .nav__links .nav__hide { display: none; }
  .btn--nav { padding: 8px 13px; font-size: 11.5px; }
  .acct__btn span:not(.acct__dot) { display: none; }
  .acct__btn { padding: 8px; }
}

/* ---------- Formulare ---------- */

.form { margin-top: clamp(32px, 4vw, 48px); max-width: 620px; }
.form__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: block; }
.field__label {
  display: block; font-family: var(--body); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 9px;
}
.field__label .req { color: var(--signal); }

.input, .select, .textarea {
  width: 100%; display: block;
  background: var(--ink-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: 13.5px; line-height: 1.5;
  padding: 13px 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--signal); background: var(--ink-3);
}
.input::placeholder, .textarea::placeholder { color: rgba(237,237,237,.28); }
.textarea { min-height: 170px; resize: vertical; font-size: 13.5px; line-height: 1.7; }
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%),
                    linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 42px; cursor: pointer;
}
.select option { background: var(--ink-2); color: var(--fg); }
.field__hint { margin: 8px 0 0; font-size: 12px; color: var(--fg-3); line-height: 1.5; }

.check {
  display: flex; align-items: flex-start; gap: 13px; cursor: pointer;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--ink-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check:hover { border-color: rgba(237,237,237,.22); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 19px; height: 19px; flex: none; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid var(--line); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check__box::after {
  content: ''; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .2s var(--out);
}
.check input:checked ~ .check__box { background: var(--signal); border-color: var(--signal); }
.check input:checked ~ .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--signal); outline-offset: 2px; }
.check__text { font-size: 13.5px; color: var(--fg); line-height: 1.45; }
.check__sub { display: block; margin-top: 5px; font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }

.note {
  margin-top: 20px; padding: 15px 17px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ink-2);
  font-size: 13.5px; line-height: 1.6; color: var(--fg-2);
}
.note--bad { border-color: rgba(255,75,18,.45); background: var(--signal-dim); color: #ffb49a; }
.note--good { border-color: rgba(95,208,138,.35); background: rgba(95,208,138,.08); color: #9fe0ba; }
.note--warn { border-color: rgba(255,190,60,.35); background: rgba(255,190,60,.07); color: #f0d08a; }
.note strong { color: inherit; font-weight: 700; }
.note a { color: inherit; text-decoration: underline; }

.tabs { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-3); cursor: pointer;
  font-family: var(--body); font-size: 12.5px; letter-spacing: .04em;
  padding: 9px 17px; transition: all .2s var(--ease);
}
.tab:hover { color: var(--fg-2); border-color: rgba(237,237,237,.25); }
.tab.is-on { color: var(--signal); border-color: var(--signal); background: var(--signal-dim); }

/* ---------- Konto ---------- */

.panel {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--ink-2); padding: clamp(22px, 3vw, 32px);
}
.panel + .panel { margin-top: 20px; }
.panel__title {
  font-family: var(--body); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3); margin: 0 0 20px;
}
.toggle-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line-soft);
}
.toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle-row h4 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.toggle-row p { margin: 6px 0 0; font-size: 13px; color: var(--fg-3); max-width: 46ch; line-height: 1.55; }

.switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg-3); transition: transform .25s var(--out), background .25s var(--ease);
}
.switch input:checked ~ .switch__track { background: var(--signal); border-color: var(--signal); }
.switch input:checked ~ .switch__track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible ~ .switch__track { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Neuigkeiten ---------- */

.news-list { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.news-item { padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-soft); }
.news-item time {
  font-family: var(--body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal);
}
.news-item h2 {
  font-family: var(--sans); font-size: clamp(22px, 2.6vw, 32px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.05; margin: 12px 0 0;
}
.news-item p { margin: 12px 0 0; color: var(--fg-2); font-size: 13.5px; max-width: 64ch; }
.news-body { margin-top: 16px; color: var(--fg-2); font-size: 13.5px; }
.news-body h2 { font-size: 19px; margin: 22px 0 8px; }
.news-body ul { margin: 10px 0; padding-left: 20px; }
.news-body li { margin-bottom: 7px; }
.news-body strong { color: var(--fg); }

/* ============================================================
   Admin-Dashboard
   ============================================================ */

.adm { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1000px) { .adm { grid-template-columns: 238px 1fr; } }

.adm__side {
  border-right: 1px solid var(--line); background: var(--ink-2);
  display: flex; flex-direction: column;
}
@media (min-width: 1000px) { .adm__side { position: sticky; top: 0; height: 100vh; } }
.adm__brand { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.adm__role {
  margin: 16px 16px 8px; padding: 13px 15px; border-radius: 10px;
  border: 1px solid rgba(255,190,60,.3); background: rgba(255,190,60,.07);
}
.adm__role b { display: block; font-size: 12.5px; color: #f0d08a; letter-spacing: -.01em; }
.adm__role span { display: block; margin-top: 4px; font-size: 11px; color: rgba(240,208,138,.6); word-break: break-all; }
.adm__nav { padding: 10px 12px 20px; overflow-y: auto; flex: 1; }
.adm__group {
  font-family: var(--body); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 16px 10px 8px;
}
.adm__nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  color: var(--fg-2); font-family: var(--body); font-size: 13px;
  padding: 9px 10px; border-radius: 7px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.adm__nav button:hover { background: rgba(237,237,237,.05); color: var(--fg); }
.adm__nav button.is-on { background: var(--ink-3); color: var(--fg); font-weight: 600; }
.adm__nav button.is-on::before { content: ''; width: 3px; height: 14px; background: var(--signal); margin-left: -10px; margin-right: 7px; }
.adm__count {
  margin-left: auto; font-size: 11px; color: var(--fg-3);
  background: var(--ink-3); border-radius: 999px; padding: 2px 7px;
}
.adm__back { padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.adm__back a { color: var(--fg-3); font-size: 12.5px; text-decoration: none; }
.adm__back a:hover { color: var(--fg); }

.adm__main { padding: clamp(24px, 3vw, 40px); max-width: 1400px; }
.adm__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.adm__head h1 { font-family: var(--sans); font-size: 27px; font-weight: 900; letter-spacing: -.035em; }
.adm__head p { margin: 10px 0 0; max-width: 68ch; font-size: 13.5px; color: var(--fg-3); line-height: 1.6; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); padding: 16px 17px; }
.kpi__l { font-family: var(--body); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.kpi__v { margin-top: 11px; font-family: var(--sans); font-size: 30px; font-weight: 900; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.kpi__n { margin-top: 6px; font-size: 11.5px; color: var(--fg-3); }
.kpi--sig .kpi__v { color: var(--signal); }

.cardsec { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 22px; }
.cardsec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.cardsec__h h3 { font-family: var(--body); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; }
.cardsec__h span { font-size: 11.5px; color: var(--fg-3); }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* Balkenliste */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.bar__label { color: var(--fg); }
.bar__val { color: var(--fg-3); font-variant-numeric: tabular-nums; flex: none; }
.bar__val b { color: var(--fg); font-weight: 600; margin-right: 7px; }
.bar__track { margin-top: 6px; height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--signal); border-radius: 2px; transition: width .6s var(--out); }

/* Tagesbalken */
.days { display: flex; align-items: flex-end; gap: 3px; height: 116px; }
.days__d { flex: 1; min-width: 2px; background: var(--signal); opacity: .8; border-radius: 2px 2px 0 0; transition: opacity .2s; }
.days__d:hover { opacity: 1; }
.days__d.is-zero { background: var(--ink-3); opacity: 1; }
.days__ax { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--fg-3); }

/* Tabelle */
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-family: var(--body); font-weight: 400;
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-3); padding: 0 14px 11px 0; white-space: nowrap;
}
.tbl td { padding: 12px 14px 12px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.tbl tbody tr:hover { background: rgba(237,237,237,.025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl__main { color: var(--fg); font-weight: 600; }
.tbl__sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--fg-3); word-break: break-all; }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pill--ok   { background: rgba(95,208,138,.13); color: #7cd6a2; }
.pill--wait { background: rgba(255,190,60,.13); color: #e8c67a; }
.pill--off  { background: rgba(237,237,237,.07); color: var(--fg-3); }
.pill--sig  { background: var(--signal-dim); color: var(--signal); }

.btn--sm { padding: 8px 15px; font-size: 12px; border-radius: 7px; }
.btn--danger { border: 1px solid rgba(255,75,18,.4); color: var(--signal); background: transparent; }
.btn--danger:hover { background: var(--signal-dim); border-color: var(--signal); }

.empty {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 44px 22px; text-align: center; color: var(--fg-3); font-size: 13.5px; line-height: 1.6;
}

.adm__hide { display: none; }

/* Kopfzeile: rechter Block braucht Luft — 10px lasen sich als "klebt zusammen" */
.nav__actions { gap: 14px; margin-left: 10px; }
.nav__links .lang { margin-right: 4px; }

/* Der Ghost-Rahmen ist bei Navigationsgröße zu blass, um als Schaltfläche zu lesen */
.btn--nav.btn--ghost {
  border-color: rgba(237,237,237,.22);
  color: var(--fg-2);
}
.btn--nav.btn--ghost:hover {
  border-color: rgba(237,237,237,.45);
  color: var(--fg);
}

/* Ab 1200px wird die Navigation eng — Zeilenabstand der Links zurücknehmen */
@media (max-width: 1240px) {
  .nav__links { gap: 16px; }
}

/* Das hidden-Attribut muss stärker sein als jede Klasse mit eigenem display.
   Ohne das zeigt .field{display:block} ausgeblendete Felder trotzdem an,
   und .adm{display:grid} zeigt die Admin-Hülle vor der Rechteprüfung. */
[hidden] { display: none !important; }

/* ---------- Kopfzeile: Feinschliff ---------- */

/* Menüpunkte durchgehend in Versalien */
.nav__links > a {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11.5px;
}

/* Login ohne Rahmen — nur Text */
.acct .btn--nav.btn--ghost {
  border: 0;
  background: transparent;
  padding-left: 6px; padding-right: 6px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11.5px;
}
.acct .btn--nav.btn--ghost:hover {
  border-color: transparent;
  background: transparent;
  color: var(--fg);
}

/* Try KRAFT braucht Luft — die Pille soll die Schrift nicht einklemmen */
.btn--try {
  padding: 12px 34px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .nav__links > a { font-size: 10.5px; letter-spacing: .08em; }
  .btn--try { padding: 10px 22px; font-size: 10.5px; }
  .acct .btn--nav.btn--ghost { font-size: 10.5px; }
}


/* ============================================================
   Mobilmenü — unter 820px passen Menü, Sprache, Login und
   "Try KRAFT" nicht nebeneinander. Die Abschnittslinks wandern
   dann in ein aufklappbares Feld, die Knöpfe bleiben sichtbar.
   ============================================================ */

.burger {
  display: none;
  width: 34px; height: 34px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; padding: 0;
}
.burger span {
  display: block; position: relative;
  width: 15px; height: 1.5px; background: var(--fg-2);
  transition: background .2s var(--ease), transform .3s var(--out);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0;
  width: 15px; height: 1.5px; background: var(--fg-2);
  transition: transform .3s var(--out), opacity .2s var(--ease);
}
.burger span::before { top: -5px; }
.burger span::after  { top: 5px; }
.nav.is-open .burger span { background: transparent; }
.nav.is-open .burger span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .burger span::after  { transform: translateY(-5px) rotate(-45deg); }

.mobnav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(16,16,16,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.mobnav a {
  display: block; padding: 15px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-2); text-decoration: none;
  font-family: var(--body); font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.mobnav a:last-child { border-bottom: 0; }
.mobnav a[aria-current="page"] { color: var(--signal); }

@media (max-width: 820px) {
  .burger { display: inline-flex; }
  .nav__links > a { display: none; }
  .nav.is-open .mobnav { display: block; }
  .nav__actions { margin-left: auto; gap: 10px; }
  .nav__links { gap: 10px; }
}

/* Unter 440px wird es eng: Polster und Abstände weiter zurücknehmen,
   damit "Try KRAFT" vollständig im Bild bleibt. */
@media (max-width: 440px) {
  .nav__in { padding-left: 16px; padding-right: 16px; }
  .nav__actions { gap: 7px; margin-left: 6px; }
  .nav__links { gap: 7px; }
  .btn--try { padding: 9px 14px; font-size: 10px; letter-spacing: .08em; }
  .acct .btn--nav.btn--ghost { font-size: 10px; padding-left: 2px; padding-right: 2px; }
  .lang__btn { padding: 6px 7px; font-size: 10px; gap: 5px; }
  .burger { width: 30px; height: 30px; }
  .brand__logo { width: 44px; height: 21px; }
}

/* Unter 345px reicht der Platz nicht für alles. Der Sprachumschalter weicht —
   Login und "Try KRAFT" sind wichtiger. Die Sprache lässt sich weiterhin
   über ?lang=xx oder auf einem breiteren Schirm einstellen. */
@media (max-width: 345px) {
  .lang { display: none; }
}

/* ---------- Rechtstexte ----------
   Lange Fließtexte brauchen eine engere Spalte als das Layout sonst
   hergibt — rund 68 Zeichen, sonst verliert das Auge die Zeile. */
.legal { max-width: 68ch; }
.legal h2 {
  font-family: var(--body); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
  margin: 44px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li {
  font-family: var(--body); font-size: 14px; line-height: 1.75; color: var(--fg-2);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--signal); }
.legal a:hover { color: var(--signal); }
.legal code {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(255,255,255,.05); padding: 1px 5px; border-radius: 2px;
}
.legal__rule { border: 0; border-top: 1px solid var(--line); margin: 56px 0 44px; }
/* Der Hinweis auf offene Angaben darf nicht zu überlesen sein. */
.legal__todo {
  border-left: 2px solid var(--signal); background: var(--signal-dim);
  padding: 16px 18px; margin: 0 0 40px;
}
.legal__todo p { margin: 0; color: var(--fg); }

/* Rechtslinks in der unteren Fußleiste */
.foot__legal { display: flex; gap: 20px; }
.foot__legal a {
  color: var(--fg-3); text-decoration: none; font-size: 11.5px;
  transition: color .25s var(--ease);
}
.foot__legal a:hover { color: var(--signal); }

/* ---------- Konto noch nicht bestätigt ----------
   Der Hinweis muss auffallen, ohne wie ein Fehler auszusehen — das Konto
   funktioniert ja, es kommen nur keine Mails an. */
.verify {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center; justify-content: space-between;
  border: 1px solid var(--signal); background: var(--signal-dim);
  padding: 18px 20px; margin-top: clamp(28px, 4vw, 40px); max-width: 720px;
}
.verify__head {
  margin: 0 0 4px; font-family: var(--body); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
}
.verify__body {
  margin: 0; font-family: var(--body); font-size: 13.5px; line-height: 1.65;
  color: var(--fg-2); max-width: 46ch;
}
.verify .btn { flex: none; }

/* Zeitraum-Umschalter im Admin-Panel */
.seg { display: flex; border: 1px solid var(--line); }
.seg button {
  appearance: none; -webkit-appearance: none; background: transparent;
  border: 0; border-right: 1px solid var(--line); cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-3); padding: 8px 14px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--fg); }
.seg button.is-on { background: var(--signal); color: #fff; }

/* Dreispaltige Kartenreihe (Gerät / Browser / System) */
.grid3 {
  display: grid; gap: 14px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ---------- Anmeldung über einen Anbieter ---------- */
.sso { margin-top: 28px; max-width: 560px; }
.sso__sep {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px;
}
.sso__sep::before, .sso__sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.sso__row { display: flex; flex-wrap: wrap; gap: 10px; }
.sso__btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: 1 1 150px; justify-content: center;
}
/* Als Maske eingefärbt, damit die Symbole dieselbe Farbe tragen wie der Text
   und sich nicht drei fremde Markenfarben in die Seite drängen. */
.sso__ic {
  width: 16px; height: 16px; flex: none; display: inline-block;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
}
.sso__note {
  margin: 16px 0 0; font-family: var(--body); font-size: 12.5px;
  line-height: 1.6; color: var(--fg-3); max-width: 52ch;
}
@media (max-width: 520px) { .sso__btn { flex: 1 1 100%; } }

/* Hinweis unter einer Panel-Überschrift */
.panel__note {
  margin: -6px 0 18px; font-family: var(--body); font-size: 12.5px;
  line-height: 1.6; color: var(--fg-3);
}

/* ---------- Einwilligungsleiste ----------
   Unten angeheftet, aber nicht als Sperre über der Seite: wer sie
   wegklickt, hat eine Entscheidung getroffen — gelesen werden kann die
   Seite ohnehin. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink-2); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .5s var(--out);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.consent.is-in { transform: none; }
.consent__in {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.consent__text { flex: 1 1 420px; }
.consent__head {
  margin: 0 0 6px; font-family: var(--body); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--signal);
}
.consent__text p {
  margin: 0; font-family: var(--body); font-size: 13px; line-height: 1.65;
  color: var(--fg-2); max-width: 78ch;
}
.consent__text a { color: var(--fg); border-bottom: 1px solid var(--signal); text-decoration: none; }
.consent__btns { display: flex; gap: 10px; flex: none; }
@media (max-width: 560px) {
  .consent__btns { width: 100%; }
  .consent__btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

.legal__meta {
  margin-top: 40px; font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-3); letter-spacing: .04em;
}
