/* ============================================
   KONSUMENTENUNION.DE e.G. – Gesamtes Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --accent: #00ff9d;
  --accent-dim: rgba(0, 255, 157, 0.1);
  --accent-mid: rgba(0, 255, 157, 0.25);
  --pink: #ff006e;
  --pink-dim: rgba(255, 0, 110, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* --- Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Header & Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-desktop a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: #fff !important;
  color: #000 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px 24px;
  overflow-y: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--accent); }

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(100%) contrast(1.2);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* --- Page Hero (smaller) --- */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-pink {
  background: var(--pink);
  color: #fff;
}
.btn-pink:hover {
  background: #fff;
  color: #000;
}

/* --- Sections --- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-sm { padding: 48px 24px; max-width: 1200px; margin: 0 auto; }

.section-dark {
  background: var(--bg-secondary);
  padding: 80px 24px;
}
.section-dark .section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  margin-bottom: 48px;
}
.section-header .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
}
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,255,157,0.03), rgba(0,255,157,0.08));
}
.card-pink {
  border-color: var(--pink);
  background: var(--pink-dim);
}

/* --- Stats --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.stat .number {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .number.pink { color: var(--pink); }
.stat .label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap th {
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap .num { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.table-wrap .highlight-row td { background: var(--accent-dim); }
.table-wrap .neg { color: var(--pink); }
.table-wrap .pos { color: var(--accent); }

/* --- Content / Prose --- */
.prose { max-width: 860px; }
.prose h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.prose h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.prose p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}
.prose ul, .prose ol {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
}
.prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { color: var(--accent); font-style: normal; }

/* --- Blockquote / Callout --- */
.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.callout p { color: var(--text-primary); margin-bottom: 0; font-size: 15px; }
.callout-pink {
  background: var(--pink-dim);
  border-left-color: var(--pink);
}

/* --- Code Block (for statute text) --- */
.statute-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.statute-block .paragraph-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 8px;
  letter-spacing: 0.02em;
}
.statute-block .paragraph-title:first-child { margin-top: 0; }
.statute-block .absatz {
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
}
.statute-block .lit { padding-left: 24px; }
.statute-block strong { color: var(--text-primary); }

/* --- Diagram / Flow --- */
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0;
  text-align: center;
}
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.flow-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.flow-box.accent { border-color: var(--accent); color: var(--accent); }
.flow-box.pink { border-color: var(--pink); color: var(--pink); }
.flow-arrow { color: var(--text-muted); font-size: 20px; }
.flow-label {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0;
  font-style: italic;
}

/* --- KU-ID Visual --- */
.ku-id-visual {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  margin: 32px auto;
  position: relative;
  overflow: hidden;
}
.ku-id-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,255,157,0.08), transparent 70%);
}
.ku-id-visual .id-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.ku-id-visual .id-body {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}
.ku-id-visual .id-photo {
  width: 72px;
  height: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 28px;
  flex-shrink: 0;
}
.ku-id-visual .id-info { text-align: left; }
.ku-id-visual .id-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ku-id-visual .id-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.ku-id-visual .id-qr {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

/* --- Timeline / Steps --- */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: -48px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.timeline-item h3 { margin-top: 0; }
.timeline-item p { font-size: 15px; }

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,255,157,0.2);
}
.badge-pink {
  background: var(--pink-dim);
  color: var(--pink);
  border-color: rgba(255,0,110,0.2);
}

/* --- Formula display --- */
.formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  overflow-x: auto;
  white-space: nowrap;
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
  .hero { padding: 100px 16px 60px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 48px 16px; }
  .section-dark { padding: 48px 16px; }
  .page-hero { padding: 110px 16px 40px; }
  .stat .number { font-size: 32px; }
  .flow-diagram { padding: 24px 16px; }
  .ku-id-visual { padding: 24px; }
  .timeline { padding-left: 40px; }
  .timeline::before { left: 12px; }
  .timeline-item::before { left: -40px; width: 26px; height: 26px; font-size: 11px; }
}
