﻿/* ==========================================================================
   FemboyCraft – Basis: Schriften, Design-Tokens, Reset, Komponenten
   Gemeinsam genutzt von Website und Admin-Bereich.
   ========================================================================== */

/* ----------------------------------------------------------- Schriften ---- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito/nunito-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/fredoka/fredoka-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/fredoka/fredoka-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------- Design-Tokens -- */
:root {
  color-scheme: dark;

  /* Flächen (Dark Mode = Standard) */
  --bg: #120a1f;
  --bg-soft: #170d28;
  --surface: #1d1231;
  --surface-2: #25183d;
  --surface-3: #2f2049;
  --overlay: rgba(10, 5, 18, 0.72);
  --border: #3a2a5a;
  --border-soft: #2b1e45;
  --border-strong: #4d3a74;

  /* Text */
  --text: #f7f2ff;
  --text-muted: #c9bbe3;
  --text-subtle: #a291c2;

  /* Marke */
  --primary: #ff6bb0;
  --primary-strong: #db2777;
  --primary-strong-hover: #c21f69;
  --primary-soft: rgba(255, 107, 176, 0.13);
  --primary-contrast: #ffffff;
  --secondary: #c7adff;
  --secondary-soft: rgba(199, 173, 255, 0.13);
  --accent: #ffc6e2;
  --gradient-brand: linear-gradient(135deg, #ff6bb0 0%, #e14ad0 45%, #a77bff 100%);
  --gradient-button: linear-gradient(135deg, #db2777 0%, #c026d3 100%);

  /* Zustände */
  --success: #6ee7a8;
  --success-soft: rgba(110, 231, 168, 0.12);
  --warning: #fdba74;
  --warning-soft: rgba(253, 186, 116, 0.13);
  --danger: #fca5a5;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --danger-strong: #dc2626;
  --neutral: #c9bbe3;
  --neutral-soft: rgba(201, 187, 227, 0.1);

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.8);
  --glow: 0 12px 32px -12px rgba(219, 39, 119, 0.6);
  --ring: 0 0 0 3px rgba(255, 107, 176, 0.5);

  /* Rundungen */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typografie */
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --text-4xl: clamp(2.1rem, 1.4rem + 2.8vw, 3rem);
  --text-5xl: clamp(2.4rem, 1.4rem + 4vw, 3.9rem);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.18s;
}

/* Light Mode */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbf8ff;
  --bg-soft: #f4eefc;
  --surface: #ffffff;
  --surface-2: #f8f3fe;
  --surface-3: #f0e7fb;
  --overlay: rgba(31, 20, 51, 0.45);
  --border: #e0d3f2;
  --border-soft: #ece3f8;
  --border-strong: #cbb8e8;
  --text: #1f1433;
  --text-muted: #524271;
  --text-subtle: #6c5c8b;
  --primary: #be185d;
  --primary-strong: #db2777;
  --primary-strong-hover: #be185d;
  --primary-soft: rgba(219, 39, 119, 0.08);
  --secondary: #6d28d9;
  --secondary-soft: rgba(124, 58, 237, 0.08);
  --accent: #db2777;
  --gradient-brand: linear-gradient(135deg, #db2777 0%, #c026d3 50%, #7c3aed 100%);
  --success: #15803d;
  --success-soft: rgba(22, 163, 74, 0.1);
  --warning: #b45309;
  --warning-soft: rgba(217, 119, 6, 0.11);
  --danger: #b91c1c;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --neutral: #524271;
  --neutral-soft: rgba(82, 66, 113, 0.08);
  --shadow-sm: 0 1px 2px rgba(52, 24, 92, 0.06);
  --shadow: 0 14px 32px -18px rgba(52, 24, 92, 0.28);
  --shadow-lg: 0 34px 64px -28px rgba(52, 24, 92, 0.32);
  --glow: 0 12px 28px -14px rgba(219, 39, 119, 0.5);
  --ring: 0 0 0 3px rgba(219, 39, 119, 0.32);
}

/* Erlaubte Akzentfarben (Admin-Einstellung) */
:root[data-accent='rose'] { --primary: #fb7a90; --primary-strong: #e11d48; --primary-strong-hover: #be123c; --primary-soft: rgba(251, 122, 144, 0.13); --gradient-button: linear-gradient(135deg, #e11d48 0%, #db2777 100%); --ring: 0 0 0 3px rgba(251, 122, 144, 0.5); }
:root[data-accent='fuchsia'] { --primary: #f17ce0; --primary-strong: #c026d3; --primary-strong-hover: #a21caf; --primary-soft: rgba(241, 124, 224, 0.13); --gradient-button: linear-gradient(135deg, #c026d3 0%, #9333ea 100%); --ring: 0 0 0 3px rgba(241, 124, 224, 0.5); }
:root[data-accent='violet'] { --primary: #bfa2ff; --primary-strong: #7c3aed; --primary-strong-hover: #6d28d9; --primary-soft: rgba(191, 162, 255, 0.14); --gradient-button: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%); --ring: 0 0 0 3px rgba(191, 162, 255, 0.5); }
:root[data-theme='light'][data-accent='rose'] { --primary: #be123c; --primary-soft: rgba(225, 29, 72, 0.08); --ring: 0 0 0 3px rgba(225, 29, 72, 0.3); }
:root[data-theme='light'][data-accent='fuchsia'] { --primary: #a21caf; --primary-soft: rgba(192, 38, 211, 0.08); --ring: 0 0 0 3px rgba(192, 38, 211, 0.3); }
:root[data-theme='light'][data-accent='violet'] { --primary: #6d28d9; --primary-soft: rgba(124, 58, 237, 0.08); --ring: 0 0 0 3px rgba(124, 58, 237, 0.3); }

/* ----------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: var(--space-8) 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface-3); padding: 0.12em 0.4em; border-radius: var(--radius-xs); }
pre { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: var(--space-4); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
kbd { background: var(--surface-3); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--radius-xs); padding: 0.05em 0.4em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--primary-strong); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--ring); }

.icon { flex: none; width: 1.15em; height: 1.15em; }

/* ------------------------------------------------------------ Utilities -- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 1000; background: var(--primary-strong); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--space-3); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: var(--text-sm); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0 !important; } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Buttons -- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 750;
  font-size: var(--text-base);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  user-select: none;
}
.btn:hover { text-decoration: none; border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --btn-bg: var(--primary-strong); --btn-fg: var(--primary-contrast); --btn-border: transparent; background-image: var(--gradient-button); box-shadow: var(--glow); }
.btn-primary:hover { --btn-bg: var(--primary-strong-hover); box-shadow: 0 16px 36px -12px rgba(219, 39, 119, 0.7); transform: translateY(-1px); border-color: transparent; }
.btn-secondary { --btn-bg: var(--surface-2); --btn-border: var(--border); }
.btn-secondary:hover { --btn-bg: var(--surface-3); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; color: var(--text-muted); }
.btn-ghost:hover { --btn-bg: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-outline { --btn-bg: transparent; --btn-border: var(--border-strong); }
.btn-outline:hover { --btn-bg: var(--primary-soft); border-color: var(--primary); }
.btn-danger { --btn-bg: var(--danger-strong); --btn-fg: #fff; --btn-border: transparent; }
.btn-danger:hover { --btn-bg: #b91c1c; }
.btn-danger-ghost { --btn-bg: transparent; --btn-border: transparent; color: var(--danger); }
.btn-danger-ghost:hover { --btn-bg: var(--danger-soft); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0.35rem 0.8rem; font-size: var(--text-sm); }
.btn-lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: var(--text-lg); }
.btn-block { width: 100%; }
.btn-icon { min-height: 40px; width: 40px; padding: 0; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Badges -- */
.badge {
  --tone: var(--neutral);
  --tone-soft: var(--neutral-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.18em 0.65em;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--tone);
  background: var(--tone-soft);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
  white-space: nowrap;
}
.badge .icon { width: 1em; height: 1em; }
.tone-success { --tone: var(--success); --tone-soft: var(--success-soft); }
.tone-warning { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.tone-danger { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.tone-primary { --tone: var(--primary); --tone-soft: var(--primary-soft); }
.tone-secondary { --tone: var(--secondary); --tone-soft: var(--secondary-soft); }
.tone-neutral { --tone: var(--neutral); --tone-soft: var(--neutral-soft); }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--tone, var(--neutral)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone, var(--neutral)) 22%, transparent); }

/* ------------------------------------------------------------------ Karten -- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-title { font-size: var(--text-lg); margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.card-title .icon { color: var(--primary); }

/* ----------------------------------------------------------------- Hinweise -- */
.notice {
  --tone: var(--secondary);
  --tone-soft: var(--secondary-soft);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--tone-soft);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  color: var(--text);
}
.notice > .icon { color: var(--tone); margin-top: 0.2em; }
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-weight: 800; margin-bottom: var(--space-1); }

/* --------------------------------------------------------------- Formulare -- */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); min-width: 0; }
.field > label, .field-label { font-weight: 750; font-size: var(--text-sm); color: var(--text); }
.field .optional { font-weight: 600; color: var(--text-subtle); }
.input, .select, .textarea,
input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='url'], input[type='number'], input[type='datetime-local'], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.mono { font-family: var(--font-mono); font-size: var(--text-sm); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input::placeholder, textarea::placeholder { color: var(--text-subtle); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: var(--surface); }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); }
.help { font-size: var(--text-sm); color: var(--text-subtle); margin: 0; }
.field-error { font-size: var(--text-sm); color: var(--danger); font-weight: 700; margin: 0; display: flex; gap: 0.35rem; align-items: center; }
.field-error:empty { display: none; }
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
.checkbox input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--primary-strong); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr; column-gap: var(--space-5); }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid > .span-full { grid-column: 1 / -1; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.counter { font-size: var(--text-xs); color: var(--text-subtle); text-align: right; }

/* -------------------------------------------------------------------- Prose -- */
.prose { max-width: 72ch; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); }
.prose h4 { margin-top: var(--space-6); }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose li + li { margin-top: var(--space-1); }
.prose img { border-radius: var(--radius); border: 1px solid var(--border-soft); margin: var(--space-6) 0; }
.prose blockquote { margin: var(--space-6) 0; padding: var(--space-3) var(--space-5); border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p { color: var(--text); }
.prose table { margin: var(--space-6) 0; font-size: var(--text-sm); }
.prose th, .prose td { border: 1px solid var(--border-soft); padding: var(--space-2) var(--space-3); text-align: left; }
.prose th { background: var(--surface-2); }

/* ----------------------------------------------------------- Theme-Schalter -- */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-soft); }
.theme-switch button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-subtle); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed='true'] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.theme-switch .icon { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- Tabellen -- */
.table-wrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); font-weight: 800; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ----------------------------------------------------------------- Dialoge -- */
dialog.dialog { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.dialog-body { padding: var(--space-6); }
.dialog-title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ------------------------------------------------------------- Pagination -- */
.pagination { display: flex; justify-content: center; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-10); }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current='page'] { background: var(--primary-strong); border-color: transparent; color: #fff; }
.pagination .disabled { opacity: 0.45; }

/* ------------------------------------------------------------------ Chips -- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: var(--text-sm); text-decoration: none; transition: all var(--dur) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-current='page'], .chip.is-active { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }

/* ------------------------------------------- gemeinsame Bausteine (Marke etc.) -- */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); margin-right: auto; flex: none; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(219, 39, 119, 0.35)); }
.brand-logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); margin-top: 3px; }
.facts { display: grid; gap: var(--space-3); margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); font-size: var(--text-sm); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-subtle); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; text-align: right; }
.empty { text-align: center; padding: var(--space-12) var(--space-6); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty .icon { width: 36px; height: 36px; margin: 0 auto var(--space-3); color: var(--primary); opacity: 0.8; }
.empty p { margin: 0 auto; max-width: 48ch; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--text-subtle); font-weight: 650; }
.meta-row > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-row .icon { width: 15px; height: 15px; }
.version-tag { font-family: var(--font-mono); font-weight: 700; }

/* -------------------------------------------------------------- Bewegung -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
