/* =========================================================
   W20 KULTISTEN – Mitgliederbereich  (v7 – App-Layout)
   Farben/Schriften: ../assets/css/tokens.css
   Aufbau: 1 Basis · 2 App-Gerüst · 3 Bausteine · 4 Vereinheitlichung · 5 Responsive
   ========================================================= */
@import url('../assets/css/tokens.css?v=3');

:root {
  /* Alte Variablennamen → neue Tokens (für bestehende Seiten) */
  --surface2:  var(--surface-2);
  --surface3:  var(--surface-3);
  --border:    var(--line);
  --border-h:  var(--line-2);
  --muted-h:   var(--muted-2);
  --gold-h:    var(--accent);
  --gold-dim:  var(--accent);
  --crimson:   var(--danger);
  --danger-t:  var(--danger-text);
  --success-t: var(--success-text);
  --warn-t:    var(--warn-text);
  --teal-h:    var(--teal-text);
  --radius:    12px;
  --radius-lg: 18px;

  --side-w:  264px;
  --top-h:   60px;
  --tab-h:   68px;
}

@view-transition { navigation: auto; }

/* ═════════ 1 · Basis ═════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-left: var(--side-w);
  transition: background-color .3s, color .3s;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
p { line-height: 1.65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--accent-rgb) / .22); }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 800; color: var(--text-h);
  line-height: 1.15; letter-spacing: -.015em; border: 0; padding-bottom: 0; text-shadow: none;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: .98rem; font-weight: 700; }

.container { max-width: 900px; margin: 0 auto; padding: 36px 24px 72px; }
.container-wide { max-width: 1100px; }

/* ═════════ 2 · App-Gerüst ═════════ */
.ico { flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word strong { font-family: var(--brand); font-size: 1rem; color: var(--text-h); letter-spacing: .03em; }
.logo-word small { font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--text-h); }
.app-brand:hover { color: var(--text-h); }

.icon-btn {
  display: inline-grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important;
  border-radius: 12px !important; background: var(--surface) !important; color: var(--text-h) !important;
  border: 1px solid var(--line) !important; box-shadow: none !important; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent) !important; transform: none !important; }

/* Seitenleiste */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 1000;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 14px 14px;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 18px; }
.side-close { display: none !important; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.side-group {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 16px 12px 6px;
}
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted-2); font-weight: 500; font-size: .95rem; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--surface-2); color: var(--text-h); }
.side-link.nav-active { background: rgb(var(--accent-rgb) / .12); color: var(--accent-text); font-weight: 600; }
.side-link.nav-active .ico { color: var(--accent); }
.side-badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  background: var(--accent); color: var(--on-accent);
}
.side-user { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.side-user-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.side-user-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.side-user-name strong { color: var(--text-h); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-name small { color: var(--muted); font-size: .76rem; }
.side-user-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.side-user-links a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px;
  font-size: .72rem; font-weight: 600; color: var(--muted-2); text-align: center;
}
.side-user-links a:hover, .side-user-links a.nav-active { background: var(--surface-2); color: var(--accent-text); }
.side-user-links a.side-logout:hover { color: var(--danger-text); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #5b3fd6, #c46ab0); color: #fff; font-size: .95rem; font-weight: 700;
}
.side-theme .theme-toggle { width: 36px; height: 36px; }

/* Kopfzeile & Tab-Leiste (nur Handy) */
.app-topbar, .app-tabbar { display: none; }
.app-scrim { position: fixed; inset: 0; z-index: 999; background: rgb(10 8 16 / .45); backdrop-filter: blur(2px); }

/* ═════════ 3 · Bausteine ═════════ */

/* Login & Co. */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgb(var(--accent-rgb) / .16), transparent 40%),
    radial-gradient(circle at 85% 90%, rgb(var(--gold-rgb) / .18), transparent 40%),
    var(--bg);
}
.auth-box {
  width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.auth-box .auth-logo { text-align: center; margin-bottom: 26px; }
.auth-box .auth-logo h1 { font-size: 1.6rem; }
.auth-box .auth-logo p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.auth-container { max-width: 560px; margin: 0 auto; background: var(--surface); padding: 32px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.auth-logo-img { width: 64px; height: auto; margin: 0 auto 14px; display: block; }
.auth-back { display: block; text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.auth-back:hover { color: var(--accent-text); }
.form-hint { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Formulare */
form { display: flex; flex-direction: column; gap: 16px; }
label { display: block; color: var(--text-h); font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"],
input[type="number"], input[type="url"], input[type="search"], input[type="datetime-local"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--input-bg); color: var(--text-h); font-size: 16px; font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15); }
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
select option { background: var(--surface); color: var(--text-h); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }

/* Buttons */
.btn, button[type="submit"], button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s, box-shadow .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn, .btn-primary, button[type="submit"] { background: var(--accent); color: var(--on-accent); }
.btn:hover, .btn-primary:hover, button[type="submit"]:hover { background: var(--accent-h); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgb(var(--accent-rgb) / .9); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent-text); }
.btn-outline:hover { background: rgb(var(--accent-rgb) / .1); color: var(--accent-text); box-shadow: none; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text-h); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); background: var(--surface); box-shadow: none; }
.btn-danger, button.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover, button.btn-danger:hover { background: var(--danger-text); color: #fff; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .88rem; border-radius: 10px; }
.btn-glass { background: rgb(255 255 255 / .16); color: #fff; border: 1px solid rgb(255 255 255 / .35); }
.btn-glass:hover { background: rgb(255 255 255 / .26); color: #fff; box-shadow: none; }

/* Meldungen */
.msg-box, .success-msg, .error-msg, .msg-success, .msg-error, .msg-warn {
  display: block; padding: 13px 16px; border-radius: 12px; font-size: .94rem; line-height: 1.5; margin-bottom: 18px;
}
.msg-success, .success-msg { background: rgb(var(--success-rgb) / .12); border: 1px solid rgb(var(--success-rgb) / .35); color: var(--success-text); }
.msg-error, .error-msg { background: rgb(var(--danger-rgb) / .1); border: 1px solid rgb(var(--danger-rgb) / .35); color: var(--danger-text); }
.msg-warn { background: rgb(var(--warn-rgb) / .12); border: 1px solid rgb(var(--warn-rgb) / .4); color: var(--warn-text); }

/* Karten, Listen, Tabellen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.section-card-header { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.section-card-header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.section-card-body { padding: 22px; }
.list-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.list-row:last-child { border-bottom: none; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:hover td { background: rgb(var(--fg-rgb) / .025); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-green { background: rgb(var(--success-rgb) / .14); color: var(--success-text); }
.pill-gold  { background: rgb(var(--gold-rgb) / .18); color: var(--gold-text); }
.pill-muted { background: var(--surface-2); color: var(--muted-2); }
.pill-red   { background: rgb(var(--danger-rgb) / .12); color: var(--danger-text); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 16px; text-align: center; }
.stat-box .stat-num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--text-h); display: block; line-height: 1.1; }
.stat-box .stat-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.counter-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.counter-tile .c-num { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--accent-text); }
.counter-tile .c-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 3px; }

.event-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 22px 22px 26px; margin-bottom: 14px; position: relative; overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.event-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.event-card.event-past::before { background: var(--line-2); }
.event-card.event-past { opacity: .72; }
.event-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }

.session-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.session-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; color: var(--text); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, border-color .2s; }
.session-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: var(--text); }
.session-card.expired { opacity: .62; }
.order-item { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 18px; margin-bottom: 10px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-form-container { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.empty-state { text-align: center; padding: 48px 24px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state .empty-icon { font-size: 2.6rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }

.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 22px; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; padding: 5px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); }
.tab-btn { padding: 8px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted-2); background: transparent; display: inline-block; }
.tab-btn:hover { color: var(--text-h); background: var(--surface); }
.tab-btn.active { color: var(--accent-text); background: var(--surface); box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { padding: 22px 24px 30px; margin-top: 40px; text-align: center; }
.site-footer .footer-inner { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.site-footer .footer-inner span[style] { display: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-text); }

/* Portal-Startseite */
.portal-hero {
  position: relative; overflow: hidden; margin: 4px 0 22px; padding: 28px 30px; border-radius: 24px;
  background: linear-gradient(135deg, #5b3fd6, #8a4fd8 55%, #c46ab0); color: #fff;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px;
}
.portal-hero::after { content: ''; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / .1); pointer-events: none; }
.portal-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 4px; }
.portal-hero p { color: rgb(255 255 255 / .86); }
.portal-hero .btn-glass { position: relative; z-index: 1; }
.portal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel h2 a { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: 0; }
.panel-list { list-style: none; display: grid; gap: 8px; }
.panel-list li { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.panel-list .pd { min-width: 48px; padding: 6px 4px; border-radius: 12px; background: var(--accent); color: var(--on-accent); text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.05; }
.panel-list .pd small { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.panel-list a { color: var(--text-h); font-weight: 600; }
.panel-list a:hover { color: var(--accent-text); }
.panel-list .sub { color: var(--muted); font-size: .84rem; }
.panel-empty { color: var(--muted); font-size: .94rem; padding: 6px 2px; }
.rsvp-ok { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--success-text); background: rgb(var(--success-rgb) / .12); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 26px; }
.quick {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-h); font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.quick:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); color: var(--text-h); }
.quick .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: rgb(var(--accent-rgb) / .12); color: var(--accent-text); }
.quick small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 1px; }
.quick > span:nth-child(2) { min-width: 0; }
.quick .qbadge { position: absolute; top: -8px; right: 10px; font-size: .72rem; font-weight: 700; padding: 2px 9px; box-shadow: 0 0 0 3px var(--bg); border-radius: 999px; background: rgb(var(--danger-rgb) / .12); color: var(--danger-text); white-space: nowrap; }
.quick.q-red .qi    { background: rgb(var(--danger-rgb) / .12);  color: var(--danger-text); }
.quick.q-gold .qi   { background: rgb(var(--gold-rgb) / .2);     color: var(--gold-text); }
.quick.q-teal .qi   { background: rgb(var(--teal-rgb) / .14);    color: var(--teal-text); }
.quick.q-blue .qi   { background: rgb(var(--info-rgb) / .14);    color: var(--info); }
.quick.q-green .qi  { background: rgb(var(--success-rgb) / .14); color: var(--success-text); }

/* Alte Portal-Kacheln (falls noch genutzt) */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.menu-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.menu-card .card-icon { font-size: 1.6rem; }
.menu-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.btn-portal { display: block; text-align: center; padding: 11px 16px; background: var(--surface-2); color: var(--text-h); border-radius: 12px; font-weight: 600; }
.btn-portal:hover { background: var(--accent); color: var(--on-accent); }
.badge-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: rgb(var(--danger-rgb) / .1); color: var(--danger-text); padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge { background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 20px; }

/* ═════════ 4 · Vereinheitlichung der Seiten-Bausteine ═════════
   Viele Seiten bringen eigene Varianten mit. „body …“ hat Vorrang,
   damit überall dieselbe Optik und Bedienung gilt. */

/* Seitenbreiten */
body .page      { max-width: 1040px; margin: 0 auto; padding: 36px 24px 72px; }
body .form-page { margin: 0 auto; padding: 36px 24px 72px; }

/* Seitentitel */
body .page-title, body .page-header h1, body .page-header h2 {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; color: var(--text-h);
  letter-spacing: -.015em; display: flex; align-items: center; gap: 10px;
}
body .page-title { margin-bottom: 22px; padding-bottom: 0; border-bottom: 0; }
body .page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }

/* Zurück-Links: dezent, oben */
body .back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 6px 12px 6px 8px;
  color: var(--muted-2); font-size: .9rem; font-weight: 500; border: 0; border-radius: 10px; background: transparent;
}
body .back-link:hover { color: var(--accent-text); background: rgb(var(--accent-rgb) / .08); }
body .cancel-link { display: block; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }
body .cancel-link:hover { color: var(--accent-text); }

/* Formular-Felder */
body .fg { margin-bottom: 16px; }
body .fg:last-child { margin-bottom: 0; }
body .fg label, body .fg-f label {
  display: block; color: var(--text-h); font-size: .88rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; margin-bottom: 6px;
}
body .fg input, body .fg select, body .fg textarea, body .fg-f input, body .fg-f select {
  min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--input-bg); color: var(--text-h); font-size: 16px; font-family: var(--sans);
}
body .fg textarea { min-height: 100px; }
body .fg input:focus, body .fg select:focus, body .fg textarea:focus, body .fg-f input:focus, body .fg-f select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15); outline: none;
}
body .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body .check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
body .check-row label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text); font-size: .95rem; }

/* Formular-Karten */
body .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
body .fc-stripe { display: none; }
body .fc-head { background: transparent; border-bottom: 1px solid var(--line); padding: 20px 24px; }
body .fc-head h2 { font-size: 1.2rem; }
body .fc-head p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
body .fc-body { padding: 24px; }

/* Haupt-Buttons der Seiten */
body .btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .98rem;
  border: none; cursor: pointer; text-decoration: none; font-family: var(--sans); box-shadow: none;
}
body .btn-gold:hover { background: var(--accent-h); color: var(--on-accent); transform: none; }
body .btn-xs-d, body .btn-xs-e {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 12px; border-radius: 9px;
  font-size: .82rem; font-weight: 600; background: transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
body .btn-xs-e { border: 1px solid var(--line-2); color: var(--text-h); }
body .btn-xs-e:hover { border-color: var(--accent); color: var(--accent-text); background: rgb(var(--accent-rgb) / .06); }
body .btn-xs-d { border: 1px solid rgb(var(--danger-rgb) / .45); color: var(--danger-text); }
body .btn-xs-d:hover { background: rgb(var(--danger-rgb) / .1); }

/* Meldungen der Seiten */
body .msg-e, body .msg-s { padding: 13px 16px; border-radius: 12px; font-size: .94rem; margin-bottom: 18px; }
body .msg-e { background: rgb(var(--danger-rgb) / .1); border: 1px solid rgb(var(--danger-rgb) / .35); color: var(--danger-text); }
body .msg-s { background: rgb(var(--success-rgb) / .12); border: 1px solid rgb(var(--success-rgb) / .35); color: var(--success-text); }
body .migration-hint { background: rgb(var(--warn-rgb) / .1); border: 1px solid rgb(var(--warn-rgb) / .35); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: var(--text); }
body .empty-state { padding: 48px 24px; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--surface); }

/* Reiter (Admin, Ausleihe, …) */
body .tabs, body .ptabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; padding: 5px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
body .tab, body .ptab {
  padding: 8px 14px; border-radius: 10px; border: 0; margin: 0; font-size: .9rem; font-weight: 600;
  color: var(--muted-2); background: transparent;
}
body .tab:hover, body .ptab:hover { color: var(--text-h); background: var(--surface); }
body .tab.active, body .ptab.active { color: var(--accent-text); background: var(--surface); border: 0; box-shadow: var(--shadow-sm); }

/* Kennzahlen-Kästen */
body .sbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
body .sbox::after { content: none; }
body .sbox .n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--text-h); }
body .stat-chip { border-radius: 14px; }

/* ═════════ 5 · Responsive ═════════ */
@media (max-width: 1023px) {
  body { padding-left: 0; padding-top: var(--top-h); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .app-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); z-index: 900; padding: 0 14px;
    background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .app-topbar-tools { display: flex; gap: 8px; }
  .app-sidebar {
    width: min(320px, 86vw); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.open { transform: none; }
  .side-close { display: inline-grid !important; }
  .side-theme { display: none; }
  .app-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 6px 6px env(safe-area-inset-bottom, 0px);
    background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
  }
  .app-tabbar a, .app-tabbar button {
    position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 0; padding: 4px 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important;
    color: var(--muted) !important; font-size: .7rem !important; font-weight: 600 !important; border: 0 !important;
  }
  .app-tabbar .nav-active { color: var(--accent-text) !important; }
  .app-tabbar .nav-active .ico { background: rgb(var(--accent-rgb) / .14); border-radius: 999px; padding: 2px 12px; width: 46px; }
  .tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, body .page, body .form-page { padding: 20px 14px 40px; }
  .auth-box { padding: 30px 22px; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .session-grid { grid-template-columns: 1fr; }
  .order-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-row, body .two-col { flex-direction: column; grid-template-columns: 1fr; gap: 0; }
  .page-header, body .page-header { flex-direction: column; align-items: flex-start; }
  .portal-hero { padding: 22px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .hide-sm { display: none !important; }
  table { font-size: .88rem; }
  th, td { padding: 10px 10px; }
}

/* Hilfsklassen */
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.text-muted  { color: var(--muted); }
.text-gold   { color: var(--gold-text); }
.text-small  { font-size: .88rem; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* Seiten ohne App-Gerüst (Login usw.) */
body:not(:has(.app-sidebar)) { padding: 0; }

@media print {
  .app-sidebar, .app-topbar, .app-tabbar, .site-footer { display: none !important; }
  body { padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Ruhigere Karten-Köpfe & klare Anzeige-Werte (alle Seiten) ── */
body .profile-block, body .tbl-card, body .danger-card {
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px; background: var(--surface);
}
body [class*="pb-stripe"] { border-left: 1px solid var(--line); }
body .profile-block.danger-zone, body .danger-card { border-color: rgb(var(--danger-rgb) / .35); }
body .pb-head, body .tbl-head, body .form-card-head, body .danger-head {
  background: transparent; border-bottom: 1px solid var(--line); padding: 16px 22px;
}
body .pb-head h3, body .tbl-head h3, body .form-card-head h3, body .form-card-head h2 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--text-h); letter-spacing: 0;
}
body .danger-head h2 { color: var(--danger-text); font-family: var(--display); }
body .pb-body { padding: 20px 22px; }
body .current-val {
  background: transparent; border: 0; padding: 0; margin-bottom: 14px; color: var(--muted); font-size: .92rem;
}
body .current-val strong { color: var(--text-h); }

/* ── Entrümpelt: Info-Schildchen als ruhiger Text, Status bleibt markiert ── */
body .game-chips, body .ev-chips { gap: 4px 10px; align-items: center; }
body .gc, body .lc {
  background: transparent; border: 0; padding: 0; border-radius: 0;
  font-size: .88rem; color: var(--muted); font-weight: 500;
}
body .gc + .gc::before, body .lc + .lc::before { content: '·'; margin-right: 10px; color: var(--line-2); font-weight: 700; }
body .gc-own, body .gc-mine, body .gc-verein, body .gc-loaned, body .gc-avail, body .gc-red, body .gc-green {
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 0;
}
body .gc-own::before, body .gc-mine::before, body .gc-verein::before, body .gc-loaned::before,
body .gc-avail::before, body .gc-red::before, body .gc-green::before { content: none !important; }
body .gc-own    { background: rgb(var(--accent-rgb) / .12);  color: var(--accent-text); }
body .gc-mine   { background: rgb(var(--info-rgb) / .12);    color: var(--info); }
body .gc-verein { background: rgb(var(--teal-rgb) / .12);    color: var(--teal-text); }
body .gc-loaned, body .gc-red { background: rgb(var(--danger-rgb) / .12); color: var(--danger-text); }
body .gc-avail, body .gc-green { background: rgb(var(--success-rgb) / .12); color: var(--success-text); }

/* Spielekarten kompakter */
body .game-card { border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
body .game-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line-2); }
body .game-card[class*="is-"], body .game-card.available, body .game-card.loaned { border-left-width: 3px; }
body .game-card-footer { background: transparent; padding: 10px 18px 14px; border-top: 0; }
body .game-card-footer .btn-gold { min-height: 38px; padding: 8px 14px; font-size: .9rem; width: auto !important; }
body .loan-card { border-radius: 16px; border-left-width: 3px; }

/* Shop: fehlende Bilder sauber abfangen */
body .item-img { display: grid; place-items: center; overflow: hidden; font-size: 3rem; }
body .item-img img { width: 100%; height: 100%; object-fit: cover; font-size: .85rem; color: var(--muted); }
body .item-img .img-missing { font-size: 3rem; opacity: .8; }

/* Handy: Kopfbereiche kompakt halten, damit Inhalte sofort sichtbar sind */
@media (max-width: 600px) {
  body .header-actions { flex-direction: row !important; flex-wrap: wrap; gap: 8px; }
  body .header-actions > a, body .header-actions .btn-gold { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
  body .stat-chip { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 8px 12px; font-size: .82rem; }
  body .page-title, body .page-header h1, body .page-header h2 { font-size: 1.45rem; }
  body .page-header { gap: 10px; margin-bottom: 16px; }
}
@media (max-width: 600px) {
  body .filter-row, body .search-row { flex-direction: column; align-items: stretch !important; gap: 12px; }
  body .fg-f { min-width: 100% !important; width: 100%; margin: 0 !important; }
  body .fg-f label { text-align: left; }
}

/* ═════════ 6 · Mitgliederliste (Admin) ═════════ */
body .page.page-wide { max-width: 1240px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted-sm { color: var(--muted); font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only { display: none; }
.c-mono, input.c-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; }

.mem-panels { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.mem-panels .section-card { margin-bottom: 0; }
.mem-panels .section-card-header .muted-sm { font-size: .8rem; }
.mem-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.mem-chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.mem-chart .lbl { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.mem-chart .val { fill: var(--accent-text); font-size: 15px; font-weight: 800; font-family: var(--display); }
.mem-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mem-chart .area { fill: rgb(var(--accent-rgb) / .12); }
.mem-chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.mem-bdays .section-card-body { padding-top: 6px; padding-bottom: 8px; }
.mem-bdays .list-row { color: var(--text); text-decoration: none; padding: 10px 0; }
.mem-bdays .list-row:hover strong { color: var(--accent-text); }

.mem-filter { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.mem-filter input[type="search"] { flex: 1 1 280px; width: auto; }
.mem-filter select { width: auto; flex: 0 0 auto; }
.mem-count { margin: 0 0 8px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.mem-table th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.mem-table td { padding: 10px 14px; }
.mem-table th { padding: 10px 14px; }
.mem-table .th-sort { color: inherit; text-decoration: none; }
.mem-table .th-sort:hover, .mem-table .th-sort.on { color: var(--accent-text); }
.mem-table .c-nr { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mem-table .c-name a { color: var(--text-h); text-decoration: none; }
.mem-table .c-name a:hover { color: var(--accent-text); }
.mem-table .c-name .pill { margin-left: 6px; font-size: .7rem; padding: 2px 8px; vertical-align: 1px; }
.mem-table .c-mail a { color: var(--text); }
.mem-table .c-mail { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-table .c-act { text-align: right; width: 1%; }
.mem-table tr.is-left td { color: var(--muted); }
.mem-table tr.is-left .c-name a { color: var(--muted-2); }
.mem-table td { white-space: nowrap; }
.mem-table td.c-name { white-space: normal; min-width: 180px; }

.mem-edit { max-width: 860px; }
.mem-sec { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 26px 0 12px; font-family: var(--sans); }
.mem-sec:first-child { margin-top: 0; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }
.mem-grid .mem-span { grid-column: 1 / -1; }
.mem-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mem-meta { margin-top: 14px; }
.mem-delete { margin-top: 26px; gap: 10px; padding: 22px 24px; background: var(--surface); border: 1px solid rgb(var(--danger-rgb) / .35); border-radius: 20px; }
.mem-delete h3 { color: var(--danger-text); font-size: 1.05rem; }
.mem-hints { margin: 12px 0 18px 18px; color: var(--muted-2); line-height: 1.7; }
.mem-upload { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.mem-upload input[type="file"] { flex: 1 1 260px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--input-bg); }
.mem-apply { margin-bottom: 20px; }
.msg-warn ul { margin: 6px 0 0 18px; }

@media (max-width: 900px) {
  .mem-panels { grid-template-columns: 1fr; }
}
/* Handy: Tabelle als Karten */
@media (max-width: 760px) {
  .mem-table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .mem-table thead { display: none; }
  .mem-table, .mem-table tbody, .mem-table tr, .mem-table td { display: block; width: 100%; }
  .mem-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; position: relative; }
  .mem-table td { border: 0; padding: 3px 0; white-space: normal; display: flex; gap: 10px; font-size: .9rem; }
  .mem-table td::before { content: attr(data-label); flex: 0 0 104px; color: var(--muted); font-size: .8rem; font-weight: 600; }
  .mem-table td.c-name { font-size: 1rem; padding: 0 70px 6px 0; display: block; }
  .mem-table td.c-name::before, .mem-table td.c-nr::before, .mem-table td.c-act::before { content: none; }
  .mem-table td.c-nr { position: absolute; top: 12px; right: 14px; width: auto; display: block; font-size: .8rem; }
  .mem-table td.c-nr::after { content: none; }
  .mem-table td.c-act { width: 100%; text-align: left; padding-top: 8px; }
  .mem-table .c-mail { max-width: none; overflow: visible; }
  .mem-table td.c-mail a { word-break: break-all; }
  .mem-filter select { flex: 1 1 140px; }
}

@media print {
  .no-print, .back-link { display: none !important; }
  .print-only { display: block; }
  .print-title { font-weight: 700; margin-bottom: 10px; }
  body .page { padding: 0; max-width: none; }
  .table-wrap { border: 0; box-shadow: none; overflow: visible; }
  .mem-table th, .mem-table td { padding: 4px 6px; font-size: 9pt; }
  .mem-table th { position: static; background: none; }
  .mem-table .pill { padding: 0; background: none; }
}

/* Mitgliedsart */
.pill.type-aktiv  { background: rgb(var(--accent-rgb) / .12); color: var(--accent-text); }
.pill.type-passiv { background: rgb(var(--gold-rgb) / .18); color: var(--gold-text); }
.pill.type-kind   { background: rgb(var(--teal-rgb) / .14); color: var(--teal-text); }
.stat-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.stat-link:hover { border-color: var(--accent); color: inherit; box-shadow: var(--shadow-sm); }
.stat-link.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15); }
.mem-types { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mem-types legend { font-size: .88rem; font-weight: 600; color: var(--text-h); margin-bottom: 6px; padding: 0; }
.type-opt { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--input-bg); transition: border-color .15s, box-shadow .15s; }
.type-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15); }
.type-opt input { margin-top: 2px; flex: 0 0 auto; }
.type-opt span { display: grid; gap: 2px; }
.type-opt strong { font-size: .95rem; color: var(--text-h); }
.type-opt small { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.mem-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mem-kids a { font-weight: 600; }
.mem-table td.c-art { white-space: normal; min-width: 96px; }
.mem-table td.c-art .muted-sm { display: block; font-size: .78rem; margin-top: 2px; }
.mem-table .c-mail { max-width: 200px; }
@media (min-width: 761px) and (max-width: 1500px) {
  .mem-table .c-act { display: none; }   /* Name ist ohnehin der Bearbeiten-Link */
  .mem-table td, .mem-table th { padding-left: 10px; padding-right: 10px; }
}

/* Online-Anträge */
table.kv { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.kv th, table.kv td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); background: none; font-size: .94rem; }
table.kv th { width: 200px; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .86rem; padding-right: 16px; }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
table.kv tr:hover td { background: none; }
.app-list { padding-top: 4px; padding-bottom: 4px; }
.app-row { color: var(--text); text-decoration: none; }
.app-row:hover strong { color: var(--accent-text); }
.app-row .pill { margin-left: 6px; font-size: .7rem; padding: 2px 8px; }
.app-accept { margin-top: 22px; border-color: rgb(var(--success-rgb) / .45); }
.app-accept small { display: block; margin-top: 4px; }
body.print-doc { padding: 0 !important; background: #fff; color: #111; }
.mandate-doc { max-width: 760px; margin: 0 auto; padding: 32px 24px; }
.mandate-doc h1 { font-size: 1.6rem; margin-bottom: 4px; }
.mandate-doc h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.mandate-doc table.kv th, .mandate-doc table.kv td { color: #111; border-color: #ddd; }
.mandate-text { white-space: pre-wrap; font-family: inherit; font-size: .9rem; line-height: 1.5; padding: 14px 16px; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; color: #111; }
@media (max-width: 600px) { table.kv th { width: 120px; } }

/* KI-Spieleerkennung (Spiel hinzufügen) */
.ai-scan { display: grid; gap: 12px; padding: 16px 18px; margin: 0 0 22px; border-radius: 14px; border: 1px dashed rgb(var(--accent-rgb) / .5); background: rgb(var(--accent-rgb) / .05); }
.ai-head { display: flex; gap: 12px; align-items: flex-start; }
.ai-icon { font-size: 1.6rem; line-height: 1; }
.ai-head strong { display: block; color: var(--text-h); }
.ai-head small { color: var(--muted); font-size: .86rem; }
.ai-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-pick { cursor: pointer; margin: 0; }
.ai-scan.busy .ai-pick { opacity: .5; pointer-events: none; }
.ai-status { font-size: .9rem; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ai-status.ok { border-color: rgb(var(--success-rgb) / .45); }
.ai-status.warn { border-color: rgb(var(--warn-rgb) / .55); }
.ai-status.err { border-color: rgb(var(--danger-rgb) / .45); color: var(--danger-text); }
.ai-dupe, .ai-more { margin-top: 6px; color: var(--muted-2); font-size: .86rem; }
.ai-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: ai-spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-filled { animation: ai-glow 2.4s ease-out; }
@keyframes ai-glow { 0%, 40% { box-shadow: 0 0 0 4px rgb(var(--success-rgb) / .35); border-color: var(--success); } 100% { box-shadow: none; } }

/* Dezente Knöpfe auch als <button type="submit"> */
button.btn-ghost, button[type="submit"].btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text-h); }
button.btn-ghost:hover, button[type="submit"].btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-text); box-shadow: none; }
