/* IAB Portal · Liquid Glass v1 · Geist Sans · OKLCH · Dark default
   Quelle: /03_Design/01_Visuelles_Konzept.md + Prototyp */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;

  --bg-deep:           oklch(0.14 0.012 252);
  --bg-elev:           oklch(0.18 0.014 252);

  --surface-glass-1:   oklch(1 0 0 / 0.06);
  --surface-glass-2:   oklch(1 0 0 / 0.09);
  --surface-glass-3:   oklch(1 0 0 / 0.12);
  --surface-glass-4:   oklch(1 0 0 / 0.16);

  --border-hair:       oklch(1 0 0 / 0.08);
  --border-strong:     oklch(1 0 0 / 0.14);

  --text-primary:      oklch(0.96 0.008 252);
  --text-secondary:    oklch(0.78 0.012 252);
  --text-muted:        oklch(0.58 0.012 252);

  --accent-cool-1:     oklch(0.65 0.18 240);
  --accent-cool-2:     oklch(0.55 0.20 245);
  --accent-cool-3:     oklch(0.78 0.12 235);
  --accent-cool-soft:  oklch(0.30 0.10 240 / 0.4);

  --accent-warm-1:     oklch(0.72 0.16 65);
  --accent-warm-2:     oklch(0.62 0.18 60);
  --accent-warm-gold:  oklch(0.82 0.14 85);
  --accent-warm-soft:  oklch(0.30 0.08 70 / 0.35);

  --success:           oklch(0.68 0.15 145);
  --warn:              oklch(0.78 0.16 85);
  --danger:            oklch(0.62 0.20 25);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px;

  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --text-xs: 12px; --text-sm: 14px; --text-base: 16px;
  --text-lg: 18px; --text-xl: 22px; --text-2xl: 28px;
  --text-3xl: 36px; --text-4xl: 48px; --text-5xl: 64px;

  --mouse-x: 50%; --mouse-y: 50%; --mouse-strength: 0;
  --tilt-x: 0deg; --tilt-y: 0deg;

  --shadow-glass:
    0 1px 0 oklch(1 0 0 / 0.08) inset,
    0 0 0 1px oklch(1 0 0 / 0.04) inset,
    0 12px 32px -8px oklch(0 0 0 / 0.45),
    0 2px 6px -1px oklch(0 0 0 / 0.35);
  --shadow-hero:
    0 1px 0 oklch(1 0 0 / 0.12) inset,
    0 0 0 1px oklch(1 0 0 / 0.06) inset,
    0 40px 80px -20px oklch(0 0 0 / 0.55),
    0 8px 20px -4px oklch(0 0 0 / 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { position: relative; overflow-x: hidden; }

body::before {
  content: '';
  position: fixed; inset: -20%;
  background:
    radial-gradient(50% 40% at 20% 30%, oklch(0.55 0.18 240 / 0.18), transparent 60%),
    radial-gradient(40% 35% at 80% 70%, oklch(0.65 0.15 280 / 0.14), transparent 60%),
    radial-gradient(45% 40% at 60% 20%, oklch(0.70 0.14 65 / 0.10), transparent 65%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
  z-index: -2;
  pointer-events: none;
  filter: blur(40px);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
@keyframes aurora-drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(2%, -3%) rotate(2deg); }
  100% { transform: translate(-3%, 4%) rotate(-2deg); }
}
a { color: inherit; text-decoration: none; }

/* Top-Navigation */
.iab-topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  background: oklch(0.14 0.012 252 / 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.iab-brand { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.iab-brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 220deg, var(--accent-cool-1), var(--accent-warm-1), var(--accent-cool-3), var(--accent-cool-1));
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.18) inset, 0 0 18px oklch(0.65 0.18 240 / 0.45);
}
.iab-modules {
  display: flex; gap: var(--s-1);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: 999px; padding: 4px;
}
.iab-module {
  padding: 6px var(--s-3); border-radius: 999px;
  font-size: var(--text-sm); color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.iab-module.active {
  background: var(--surface-glass-3); color: var(--text-primary);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.1) inset;
}
.iab-topnav-right { display: flex; align-items: center; gap: var(--s-3); }
.iab-userpill {
  font-size: var(--text-sm); color: var(--text-secondary);
  padding: 6px var(--s-3);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: 999px;
}

/* Container */
.iab-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-6) var(--s-9);
}
.iab-shell--narrow { max-width: 640px; }
.iab-shell--mid    { max-width: 880px; }

/* Glass-Hero (7 Schichten) */
.iab-hero {
  position: relative;
  isolation: isolate;
  padding: var(--s-8) var(--s-7);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, oklch(1 0 0 / 0.05), oklch(1 0 0 / 0.02));
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: perspective(1400px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  margin-bottom: var(--s-6);
}
.iab-hero--compact { padding: var(--s-6); }
.iab-hero::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 25% 25%, oklch(0.55 0.20 245 / 0.40), transparent 60%),
    radial-gradient(35% 30% at 75% 70%, oklch(0.72 0.16 65 / 0.28), transparent 60%),
    radial-gradient(30% 30% at 50% 50%, oklch(0.70 0.14 285 / 0.20), transparent 60%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
  z-index: -2; pointer-events: none;
}
.iab-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
    oklch(0.78 0.18 240 / calc(0.18 * var(--mouse-strength))), transparent 60%);
  z-index: -1; pointer-events: none;
  transition: background 0.1s linear;
}
.iab-hero .iab-specular {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, oklch(1 0 0 / 0.08) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: specular-sweep 9s ease-in-out infinite;
}
@keyframes specular-sweep {
  0%, 80%, 100% { background-position: 200% 0; }
  90% { background-position: -100% 0; }
}
.iab-eyebrow {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-cool-3);
  margin-bottom: var(--s-3);
}
.iab-hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
  max-width: 22ch; margin-bottom: var(--s-4);
}
.iab-hero .iab-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 64ch;
  margin-bottom: var(--s-5);
}
.iab-hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Buttons */
.iab-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 12px var(--s-5);
  border-radius: var(--r-md);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.iab-btn-primary {
  background: linear-gradient(180deg, var(--accent-cool-1), var(--accent-cool-2));
  color: oklch(0.99 0.005 252);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.25) inset,
    0 0 0 1px oklch(0.45 0.18 245 / 0.6) inset,
    0 8px 20px -6px oklch(0.45 0.18 245 / 0.55);
}
.iab-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.3) inset, 0 0 0 1px oklch(0.45 0.18 245 / 0.7) inset, 0 12px 28px -6px oklch(0.45 0.18 245 / 0.7); }
.iab-btn-secondary, .iab-btn-ghost {
  background: var(--surface-glass-1);
  color: var(--text-primary);
  border: 1px solid var(--border-hair);
  backdrop-filter: blur(12px);
}
.iab-btn-secondary:hover, .iab-btn-ghost:hover { background: var(--surface-glass-2); border-color: var(--border-strong); }
.iab-btn-warm {
  background: linear-gradient(180deg, var(--accent-warm-1), var(--accent-warm-2));
  color: oklch(0.14 0.012 252);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.25) inset, 0 8px 20px -6px oklch(0.55 0.16 65 / 0.55);
}
.iab-btn-lg   { padding: 16px var(--s-6); font-size: var(--text-base); }
.iab-btn-sm   { padding: 8px var(--s-3); font-size: var(--text-xs); }
.iab-btn-full { width: 100%; }
.iab-btn:disabled, .iab-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Cards · Glass-Layer-1 */
.iab-card {
  position: relative;
  background: var(--surface-glass-1);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s;
  transform-style: preserve-3d;
}
.iab-card--tilt { transform: perspective(1200px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)); }
.iab-card:hover { border-color: var(--border-strong); }

/* Projekt-Card */
.iab-project-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; cursor: pointer; color: var(--text-primary); }
.iab-project-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, oklch(0.30 0.10 245), oklch(0.42 0.10 280));
  position: relative; overflow: hidden;
}
.iab-project-card__cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 30% 30%, oklch(0.65 0.15 240 / 0.5), transparent),
    radial-gradient(40% 30% at 70% 70%, oklch(0.78 0.12 65 / 0.3), transparent);
}
.iab-project-card__cover-label {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1;
  padding: 4px var(--s-3);
  background: oklch(0.14 0.012 252 / 0.6);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary);
}
.iab-project-card__body { padding: var(--s-5); }
.iab-project-card__title { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--s-2); }
.iab-project-card__meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.iab-project-card__meta span {
  background: var(--surface-glass-2);
  padding: 3px var(--s-3);
  border-radius: 999px;
  font-size: var(--text-xs);
}
.iab-project-card__badges { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; }
.iab-project-card__footer {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border-hair);
  padding-top: var(--s-3); margin-top: var(--s-3);
}
.iab-project-card__kwp {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--accent-cool-3);
  letter-spacing: -0.02em;
}
.iab-project-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}
.iab-project-card__score {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-warm-gold);
  margin-top: var(--s-2);
}

/* Badges */
.iab-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px var(--s-2);
  border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.iab-badge-cool {
  background: var(--accent-cool-soft);
  color: var(--accent-cool-3);
  border-color: oklch(0.55 0.18 240 / 0.3);
}
.iab-badge-warm {
  background: var(--accent-warm-soft);
  color: var(--accent-warm-gold);
  border-color: oklch(0.65 0.16 65 / 0.35);
}
.iab-badge-success {
  background: oklch(0.30 0.10 145 / 0.35);
  color: oklch(0.78 0.15 145);
  border-color: oklch(0.55 0.15 145 / 0.4);
}
.iab-badge-premium {
  background: linear-gradient(135deg, oklch(0.45 0.14 70 / 0.4), oklch(0.40 0.16 50 / 0.5));
  color: var(--accent-warm-gold);
  border-color: oklch(0.55 0.16 65 / 0.5);
  box-shadow: 0 0 14px oklch(0.65 0.16 65 / 0.4);
}
/* Legacy-Alias */
.iab-badge-iab {
  background: var(--accent-warm-soft);
  color: var(--accent-warm-gold);
  border: 1px solid oklch(0.65 0.16 65 / 0.35);
  padding: 3px var(--s-2);
  border-radius: 6px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
  display: inline-block; margin-bottom: var(--s-2);
}

/* Grids */
.iab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-5);
}
.iab-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.iab-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.iab-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 960px) {
  .iab-grid-3, .iab-grid-2 { grid-template-columns: 1fr; }
  .iab-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Filter-Bar */
.iab-filters {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
}
.iab-input, .iab-select, .iab-textarea {
  padding: 10px var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-hair);
  font: inherit; font-size: var(--text-sm);
  background: var(--surface-glass-2);
  color: var(--text-primary);
  min-width: 140px;
  transition: border-color 0.2s, background 0.2s;
}
.iab-input:focus, .iab-select:focus, .iab-textarea:focus {
  outline: none;
  border-color: var(--accent-cool-1);
  background: var(--surface-glass-3);
}
.iab-input::placeholder, .iab-textarea::placeholder { color: var(--text-muted); }
.iab-textarea { min-height: 90px; resize: vertical; width: 100%; }
.iab-input[type="checkbox"] {
  min-width: auto; width: 16px; height: 16px;
  vertical-align: middle; margin-right: var(--s-2);
  accent-color: var(--accent-cool-1);
}
.iab-label {
  display: block; font-size: var(--text-sm); font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--s-2);
}

/* Detail */
.iab-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-6);
  margin-top: var(--s-5);
}
@media (max-width: 1000px) { .iab-detail-layout { grid-template-columns: 1fr; } }

.iab-detail-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 40% at 30% 30%, oklch(0.45 0.15 240), transparent),
    radial-gradient(50% 35% at 75% 65%, oklch(0.42 0.14 280), transparent),
    linear-gradient(135deg, oklch(0.28 0.10 245), oklch(0.22 0.08 260));
  position: relative; overflow: hidden;
  border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-glass);
  margin-bottom: var(--s-5);
}
.iab-detail-cover__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.10 0.012 252 / 0.85));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-7);
  gap: var(--s-3);
}
.iab-detail-cover__overlay h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 600; letter-spacing: -0.025em;
}

.iab-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (max-width: 800px) { .iab-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.iab-kpi {
  padding: var(--s-4);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
}
.iab-kpi__label {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.iab-kpi__value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl); font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: var(--s-1);
}
.iab-kpi__unit { font-size: var(--text-sm); color: var(--text-secondary); margin-left: 4px; }

/* KPI-Tilt-Card (Admin-Dashboard) */
.iab-kpi-tilt {
  padding: var(--s-5);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.iab-kpi-tilt::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    oklch(0.78 0.18 240 / calc(0.12 * var(--mouse-strength, 0))), transparent 60%);
  pointer-events: none;
}
.iab-kpi-tilt__label {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.iab-kpi-tilt__value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl); font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-top: var(--s-2);
}
.iab-kpi-tilt__delta {
  font-size: var(--text-xs);
  color: var(--success);
  margin-top: var(--s-1);
}

.iab-detail-section { margin-top: var(--s-7); }
.iab-detail-section h2 {
  font-size: var(--text-xl); font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}
.iab-detail-section p { color: var(--text-secondary); max-width: 72ch; }

.iab-rtb-list { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.iab-rtb-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
}
.iab-rtb-list .ok { color: var(--success); font-family: var(--font-mono); }

.iab-doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-2);
  transition: background 0.2s;
}
.iab-doc-row:hover { background: var(--surface-glass-2); }
.iab-doc-row__title { font-weight: 500; }
.iab-doc-row__meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

.iab-cta-sidebar {
  position: sticky; top: 100px;
  align-self: flex-start;
  padding: var(--s-5);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: var(--shadow-glass);
  display: flex; flex-direction: column;
  gap: var(--s-4);
}
.iab-cta-sidebar__title {
  font-size: var(--text-base); font-weight: 500;
  display: flex; align-items: center; gap: var(--s-2);
}
.iab-cta-sidebar__divider { border: none; border-top: 1px solid var(--border-hair); }
.iab-cta-sidebar__row { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); }

/* Tabs */
.iab-tabs {
  display: flex; gap: var(--s-2);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
  padding: 4px;
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  width: max-content;
}
.iab-tab {
  padding: 8px var(--s-4);
  border-radius: var(--r-sm);
  border: none; background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit; font-size: var(--text-sm); font-weight: 500;
  transition: all 0.2s;
}
.iab-tab.active {
  background: var(--surface-glass-3);
  color: var(--text-primary);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.08) inset;
}
.iab-tab:hover:not(.active) { color: var(--text-primary); }

/* Tabelle */
.iab-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.iab-table th, .iab-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--border-hair);
  font-size: var(--text-sm);
  vertical-align: top;
}
.iab-table tr:last-child td { border-bottom: none; }
.iab-table th {
  background: var(--surface-glass-2);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.iab-table tbody tr { transition: background 0.15s; }
.iab-table tbody tr:hover { background: var(--surface-glass-2); }
.iab-table a { color: var(--accent-cool-3); }
.iab-table a:hover { color: var(--accent-cool-1); }

/* Toast */
.iab-toast {
  position: fixed; top: 24px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--surface-glass-3);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-glass);
  font-size: var(--text-sm);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 999;
}
.iab-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.iab-empty {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  color: var(--text-muted);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
}

/* NDA-Reading */
.iab-nda {
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  backdrop-filter: blur(28px) saturate(135%);
  box-shadow: var(--shadow-glass);
}
.iab-nda h2 {
  font-size: var(--text-xl); font-weight: 600;
  margin-top: var(--s-6); margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.iab-nda h2:first-child { margin-top: 0; }
.iab-nda p, .iab-nda li { color: var(--text-secondary); line-height: 1.65; margin: var(--s-2) 0; }
.iab-nda ul { padding-left: 22px; margin: var(--s-2) 0; line-height: 1.7; }
.iab-nda .iab-nda-meta { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-5); }
.iab-nda a { color: var(--accent-cool-3); }
.iab-nda a:hover { color: var(--accent-cool-1); }

/* Score-Ring */
.iab-score-ring {
  width: 56px; height: 56px;
  position: relative; display: inline-block;
}
.iab-score-ring svg { transform: rotate(-90deg); }
.iab-score-ring__bg { stroke: var(--surface-glass-3); }
.iab-score-ring__fg { stroke: var(--accent-cool-3); stroke-linecap: round; transition: stroke-dashoffset 0.6s; }
.iab-score-ring__num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
}

/* Form-Container */
.iab-form-card {
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  backdrop-filter: blur(28px) saturate(135%);
  box-shadow: var(--shadow-hero);
  display: grid; gap: var(--s-4);
}
.iab-form-card h2 {
  font-size: var(--text-2xl); font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
  text-align: left;
}
.iab-form-card p { color: var(--text-secondary); font-size: var(--text-sm); text-align: left; }
.iab-form-card label { display: block; text-align: left; }

.iab-msg       { color: var(--text-muted); font-size: var(--text-sm); }
.iab-msg-error { color: var(--danger); font-size: var(--text-sm); }
.iab-msg-success { color: var(--success); font-size: var(--text-sm); }

/* Footer */
.iab-footer {
  border-top: 1px solid var(--border-hair);
  padding: var(--s-6) 0;
  margin-top: var(--s-9);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* Util */
.iab-spread { display: flex; justify-content: space-between; align-items: center; }
.iab-row    { display: flex; gap: var(--s-3); align-items: center; }
.iab-stack  { display: flex; flex-direction: column; gap: var(--s-3); }
.iab-mono   { font-family: var(--font-mono); }
.iab-muted  { color: var(--text-muted); }
.iab-mt-3 { margin-top: var(--s-3); }
.iab-mt-5 { margin-top: var(--s-5); }
.iab-mt-7 { margin-top: var(--s-7); }
.iab-text-left  { text-align: left; }
.iab-text-center{ text-align: center; }

/* Legacy-Aliases fuer altes Markup */
.iab-header { display: none; }  /* Bestaendiger Header wird ersetzt durch .iab-topnav */
.iab-stat { display: inline-block; background: var(--surface-glass-1); border: 1px solid var(--border-hair); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); margin-right: var(--s-2); margin-bottom: var(--s-2); }
.iab-stat .iab-stat-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ==========================================================================
   COMPAT + EXTRAS, fuer aktualisierte HTML-Seiten 22.05.2026
   ========================================================================== */

/* is-active Aliase */
.iab-tab.is-active {
  background: var(--surface-glass-3);
  color: var(--text-primary);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.08) inset;
}
.iab-tab:hover:not(.is-active) { color: var(--text-primary); }
.iab-module.is-active {
  background: var(--surface-glass-3); color: var(--text-primary);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.1) inset;
}
.iab-module.is-admin { color: var(--accent-warm-gold); }
.iab-module.is-active.is-admin { color: var(--accent-warm-gold); }
.iab-brand-name { font-weight: 600; }

/* Hero-Helper */
.iab-hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
  max-width: 22ch; margin-bottom: var(--s-4);
}
.iab-hero--compact .iab-hero-title {
  font-size: clamp(var(--text-2xl), 3.6vw, var(--text-4xl));
}
.iab-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 64ch;
  margin-bottom: var(--s-5);
}
.iab-hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.iab-hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.iab-kpi-tilt {
  position: relative;
  padding: var(--s-4) var(--s-5);
  background: var(--surface-glass-2);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s;
}
.iab-kpi-tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mouse-x) var(--mouse-y),
    oklch(0.78 0.18 240 / calc(0.20 * var(--mouse-strength))), transparent 70%);
}
.iab-kpi-tilt:hover { border-color: var(--border-strong); }
.iab-kpi-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl); font-weight: 500;
  color: var(--accent-cool-3);
  letter-spacing: -0.02em;
}
.iab-kpi-label {
  margin-top: 4px;
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}

/* Buttons-Aliase */
.iab-btn-block { width: 100%; }

/* Filter-Bar */
.iab-filterbar {
  position: sticky; top: 64px; z-index: 5;
  background: oklch(0.14 0.012 252 / 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}
.iab-filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr 0.8fr 1fr 1.2fr auto;
  gap: var(--s-3);
  align-items: stretch;
}
@media (max-width: 1100px) { .iab-filter-row { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .iab-filter-row { grid-template-columns: 1fr 1fr; } }

/* Grid + Loading + Empty */
.iab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-5);
}
.iab-grid-loading,
.iab-grid-error,
.iab-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-8) var(--s-5);
  color: var(--text-muted);
}
.iab-grid-error { color: var(--danger); }

/* Project-Card (Dash-Variante) */
.iab-project-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-decoration: none; color: var(--text-primary);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(28px) saturate(135%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.iab-project-card.iab-card--tilt {
  transform: perspective(1200px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
}
.iab-project-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mouse-x) var(--mouse-y),
    oklch(0.78 0.18 240 / calc(0.18 * var(--mouse-strength))), transparent 70%);
}
.iab-project-card:hover { border-color: var(--border-strong); }
.iab-project-title {
  font-size: var(--text-lg); font-weight: 600;
  letter-spacing: -0.015em;
  margin: var(--s-3) 0 var(--s-2);
}
.iab-project-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.iab-project-meta span {
  background: var(--surface-glass-2);
  padding: 3px var(--s-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.iab-project-price {
  font-family: var(--font-mono);
  font-size: var(--text-xl); font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: auto;
}
.iab-project-score {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-hair);
}
.iab-project-score-label {
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.iab-project-score-value {
  font-family: var(--font-mono);
  font-size: var(--text-base); font-weight: 500;
  color: var(--accent-warm-gold);
}

/* Badge floating */
.iab-badge--floating {
  position: absolute; top: var(--s-4); right: var(--s-4);
  z-index: 2;
}

/* Detail-Layout */
.iab-detail-cover {
  position: relative;
  padding: var(--s-8) var(--s-7);
}
.iab-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 980px) {
  .iab-detail-grid { grid-template-columns: 1fr; }
}
.iab-detail-main h2 {
  font-size: var(--text-xl); font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}
.iab-detail-main .iab-prose {
  color: var(--text-secondary); line-height: 1.65;
  font-size: var(--text-base);
}
.iab-cta-sidebar { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 100px; }
.iab-cta-sidebar h3 {
  font-size: var(--text-base); font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}

.iab-deflist { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; }
.iab-deflist > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-hair);
}
.iab-deflist > div:last-child { border-bottom: none; }
.iab-deflist dt { color: var(--text-muted); font-size: var(--text-sm); }
.iab-deflist dd { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }

/* Spacing Helpers */
.iab-mt-s { margin-top: var(--s-3); }
.iab-mt-m { margin-top: var(--s-4); }
.iab-mt-l { margin-top: var(--s-6); }

/* Doc-Liste */
.iab-doc-list { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.iab-doc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  transition: background 0.2s, border-color 0.2s;
}
.iab-doc-row:hover { background: var(--surface-glass-2); border-color: var(--border-strong); }
.iab-doc-info { display: flex; flex-direction: column; gap: 2px; }
.iab-doc-title { font-weight: 500; color: var(--text-primary); }
.iab-doc-meta  { font-size: var(--text-xs); color: var(--text-muted); }

/* Form-Helper */
.iab-form-title {
  font-size: var(--text-xl); font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}
.iab-form-msg { color: var(--text-muted); font-size: var(--text-sm); min-height: 1.4em; }
.iab-form-msg.is-ok  { color: var(--success); }
.iab-form-msg.is-err { color: var(--danger); }
.iab-form-hint { color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; }
.iab-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 720px) { .iab-form-grid { grid-template-columns: 1fr; } }
.iab-field { display: flex; flex-direction: column; gap: 6px; }
.iab-field--full { grid-column: 1 / -1; }
.iab-field--check {
  flex-direction: row; align-items: center; gap: var(--s-3);
  padding: var(--s-3); background: var(--surface-glass-1);
  border: 1px solid var(--border-hair); border-radius: var(--r-md);
}
.iab-field--check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent-cool-1);
}
.iab-form-actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }
.iab-check {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3); background: var(--surface-glass-1);
  border: 1px solid var(--border-hair); border-radius: var(--r-md);
  cursor: pointer;
}
.iab-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent-cool-1);
}

/* Tabs-Panel */
.iab-tab-panel { margin-top: var(--s-4); }
.iab-tab-actions { display: flex; justify-content: flex-end; margin-bottom: var(--s-4); }
.iab-table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.iab-meta-cell { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pills */
.iab-pill {
  display: inline-block;
  padding: 2px var(--s-3);
  border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  background: var(--surface-glass-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-hair);
  text-transform: uppercase;
}
.iab-pill--listed,
.iab-pill--gold,
.iab-pill--won,
.iab-pill--verified { background: oklch(0.30 0.12 145 / 0.35); color: oklch(0.85 0.12 145); border-color: oklch(0.55 0.15 145 / 0.4); }
.iab-pill--draft,
.iab-pill--silver,
.iab-pill--pending { background: var(--accent-warm-soft); color: var(--accent-warm-gold); border-color: oklch(0.65 0.16 65 / 0.35); }
.iab-pill--archived,
.iab-pill--lost,
.iab-pill--cancelled,
.iab-pill--basic { background: oklch(0.60 0.20 25 / 0.25); color: oklch(0.85 0.16 25); border-color: oklch(0.55 0.20 25 / 0.35); }

/* NDA-Page-Helper */
.iab-nda-article {
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  backdrop-filter: blur(28px) saturate(135%);
  box-shadow: var(--shadow-glass);
  margin-top: var(--s-6);
}
.iab-nda-article h2 {
  font-size: var(--text-xl); font-weight: 600;
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.015em;
}
.iab-nda-article h2:first-of-type { margin-top: 0; }
.iab-nda-article p,
.iab-nda-article li { color: var(--text-secondary); line-height: 1.65; margin: var(--s-2) 0; }
.iab-nda-article ul { padding-left: 22px; margin: var(--s-2) 0; }
.iab-nda-article a { color: var(--accent-cool-3); }
.iab-nda-meta { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-5); }
.iab-nda-foot { margin-top: var(--s-6); font-size: var(--text-sm); color: var(--text-muted); }
.iab-nda-bullets {
  list-style: none; padding: 0; margin: var(--s-3) 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.iab-nda-bullets li {
  padding: var(--s-3) var(--s-4);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.iab-nda-link { font-size: var(--text-sm); }
.iab-nda-link a { color: var(--accent-cool-3); }

/* Spinner */
.iab-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--surface-glass-3);
  border-top-color: var(--accent-cool-3);
  animation: iab-spin 0.9s linear infinite;
  margin: var(--s-5) auto 0;
}
@keyframes iab-spin { to { transform: rotate(360deg); } }

/* Score-Ring (Detail) */
.iab-score-ring__bg { fill: none; stroke: var(--surface-glass-3); stroke-width: 6; }
.iab-score-ring__fg { fill: none; stroke: var(--accent-cool-3); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.iab-score-ring__txt { fill: var(--text-primary); font-family: var(--font-mono); font-size: 18px; font-weight: 500; }

/* Util Extras */
.iab-url-line {
  display: inline-block;
  padding: 6px var(--s-3);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  word-break: break-all;
  margin-top: var(--s-2);
}
.iab-err { color: var(--danger); }
.iab-btn-secondary.iab-btn-sm { padding: 6px var(--s-3); font-size: var(--text-xs); }

/* Badge-IAB schon definiert oben, hier nur Sicher-Override fuer Floating-Variante */
.iab-badge-iab {
  background: linear-gradient(180deg, var(--accent-warm-gold), var(--accent-warm-1));
  color: oklch(0.16 0.02 70);
  border: 1px solid oklch(0.55 0.14 65 / 0.6);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.25) inset, 0 4px 12px -2px oklch(0.55 0.16 65 / 0.4);
  letter-spacing: 0.03em;
}
.iab-stat .iab-stat-value { font-size: var(--text-lg); font-weight: 600; color: var(--accent-cool-3); font-family: var(--font-mono); }
