/* ============================================
   Mein IHK Berlin Check — Stylesheet
   IHK Berlin Corporate Design
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
  --navy:        #003366;
  --navy-dark:   #002244;
  --navy-light:  #004a8f;
  --red:         #e63312;
  --red-hover:   #cc2a0d;
  --green:       #7ab800;
  --green-hover: #619400;
  --bg:          #ffffff;
  --bg-alt:      #ffffff;
  --text:        #333333;
  --text-muted:  #666666;
  --border:      #d0d5dd;
  --border-light:#eef0f4;
  --success:     #16a34a;

  --font: "Source Sans Pro", "Source Sans 3", "Open Sans", sans-serif;
  --font-heading: "DM Sans", "Source Sans Pro", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.09);
  --transition: 0.18s ease;
  --transition-slow: 0.45s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
[hidden] { display: none !important; }

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}
/* JS adds/removes .visible — no effect needed with sticky positioning */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo:hover { opacity: 0.85; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--navy);
  background: rgba(0, 51, 102, 0.06);
}
.nav-link.active {
  color: var(--navy);
  background: rgba(0, 51, 102, 0.08);
  font-weight: 600;
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.45;
  font-weight: 600;
}

.header-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.header-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all var(--transition);
}

.header-progress {
  height: 2px;
  background: rgba(0, 51, 102, 0.06);
}
.header-progress-bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.15s linear;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumb-link {
  color: var(--navy);
  transition: color var(--transition);
}
.breadcrumb-link:hover { color: var(--navy-light); text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-muted); }

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-content { flex: 1; min-width: 0; }
.hero-map {
  width: 340px;
  flex-shrink: 0;
  opacity: 0.92;
}
.hero-map svg { width: 100%; height: auto; }
.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.page-hero-personalized {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  padding: 0.75rem 1rem; background: rgba(0,51,102,0.06);
  border-radius: 8px; border-left: 3px solid var(--navy);
  max-width: 480px; margin-top: 0.75rem;
}
.hero-exclusive-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--navy);
}
.hero-exclusive-badge svg { color: var(--green); flex-shrink: 0; }
.page-hero-personalized p { margin: 0; font-size: 0.9rem; color: var(--text); }
.hero-prepared-date { font-size: 0.78rem !important; color: var(--text-muted) !important; }

/* ---------- BERLIN RADIAL CHART ---------- */
.berlin-bubble {
  cursor: default;
  opacity: 0;
  animation: bubbleFadeIn 0.5s ease-out both;
  transition: filter 0.15s ease;
}
.berlin-bubble:hover {
  filter: brightness(1.18) drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.berlin-bubble.bubble--active circle {
  filter: drop-shadow(0 0 6px currentColor);
}
.berlin-bubble.bubble--active text { font-weight: 700 !important; }
.berlin-lines line { opacity: 0.8; }
.bubble-halo {
  animation: bubbleHaloPulse 2.4s ease-in-out infinite;
}
@keyframes bubbleHaloPulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.48; }
}
@keyframes bubbleFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- PAGE LAYOUT (Two-Column) ---------- */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0 2.5rem;
  /* Kein align-items: start — Safari: sticky + align-items:start auf Grid-Container
     verursacht falsche Stacking-Context-Berechnung des Sticky-Elements */
}

.page-content {
  min-width: 0;
  align-self: start; /* Verhindert Stretch-Verhalten ohne align-items am Container */
}

.page-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  padding-top: 2rem;
  padding-bottom: 2rem;
  /* Safari: z-index explizit setzen, damit kein impliziter Stacking-Context entsteht */
  z-index: 10;
}

/* ---------- SECTIONS (shared) ---------- */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.section:first-child { border-top: none; }

.section-inner {
  /* No extra padding — parent page-layout handles horizontal spacing */
}

.section-header {
  margin-bottom: 1.75rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.section-intro {
  margin-top: 0.75rem;
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 68ch;
}

/* Alternating section backgrounds */
.section--finder    { background: var(--bg); }
.section--benchmark { background: var(--bg-alt); }
.section--wahl      { background: var(--bg); }
.section--datenpflege { background: var(--bg-alt); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  min-height: 40px;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-sm);
}
.btn--accent {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--red-hover);
  box-shadow: var(--shadow-sm);
}
.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(0, 51, 102, 0.04);
}

/* ---------- SIDEBAR CARDS ---------- */
.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.contact-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.contact-card-header strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.contact-card-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text);
}
.contact-item svg { flex-shrink: 0; color: var(--text-muted); }
.contact-item a {
  color: var(--navy);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--navy-light); text-decoration: underline; }

.contact-card-accent {
  height: 3px;
  background: var(--green);
}

/* Sidebar Navigation */
.sidebar-nav {
  margin-bottom: 1.25rem;
}
.sidebar-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sidebar-nav-list { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.sidebar-nav-link:hover {
  color: var(--navy);
  background: rgba(0, 51, 102, 0.05);
}
.sidebar-nav-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 1.4rem;
}

/* Sidebar hint */
.sidebar-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 51, 102, 0.04);
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sidebar-hint svg { flex-shrink: 0; color: var(--navy); margin-top: 1px; }

/* ---------- SERVICE-FINDER ---------- */
.finder-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 51, 102, 0.04);
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: var(--radius);
  max-width: max-content;
}
.ticker-icon {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.ticker-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
}
.ticker-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: tickerPulse 2s ease-out infinite;
}
@keyframes tickerPulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}
.ticker-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
.ticker-text.ticker-fade-out { opacity: 0; }

.finder-selector {
  margin-bottom: 1.5rem;
}
.finder-selector-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.finder-select {
  padding: 0.55rem 2.25rem 0.55rem 0.875rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235a6474' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 240px;
  color: var(--text);
}
.finder-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.finder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.finder-empty,
.finder-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.finder-loading:not([hidden]) { display: flex; }
.finder-loading {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.finder-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow var(--transition), border-left-color var(--transition);
  animation: cardFadeIn 0.25s ease-out both;
}
.finder-card:nth-child(2) { animation-delay: 0.05s; }
.finder-card:nth-child(3) { animation-delay: 0.1s; }
.finder-card:nth-child(4) { animation-delay: 0.15s; }
.finder-card:nth-child(5) { animation-delay: 0.2s; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.finder-card:hover {
  border-left-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.finder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.finder-card-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(0, 51, 102, 0.07);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.finder-card-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.finder-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.finder-card-why {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.finder-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.finder-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}
.finder-more { margin-top: 0.5rem; }

.finder-personalization-hint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.84rem; color: var(--navy);
  padding: 9px 13px; background: rgba(0,51,102,0.05);
  border-radius: 6px; border-left: 3px solid var(--navy);
  margin-bottom: 1.25rem;
}
.finder-personalization-hint svg { flex-shrink: 0; margin-top: 1px; color: var(--green); }
.finder-flywheel {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: #f8f9fa; border-radius: 8px; border: 1px solid var(--border-light);
}
.finder-flywheel-text {
  font-size: 0.875rem; color: var(--text-muted);
  margin: 0 0 0.6rem 0; line-height: 1.55;
}
.finder-flywheel-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.84rem; font-weight: 600; color: var(--navy);
}
.finder-flywheel-link:hover { color: var(--navy-light); text-decoration: underline; }

/* ---------- BENCHMARK ---------- */
.benchmark-selector { margin-bottom: 1.5rem; }
.benchmark-grid { display: grid; gap: 1.25rem; min-width: 0; }
.benchmark-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}
.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.kpi-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.kpi-trend {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}
.kpi-trend.up   { color: var(--success); background: rgba(22, 163, 74, 0.08); }
.kpi-trend.down { color: var(--red);     background: rgba(230, 51, 18, 0.06); }

.benchmark-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.chart-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.chart-wrapper { position: relative; height: 260px; }
.chart-wrapper--radar { height: 280px; }
.chart-source {
  margin: 6px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: right;
}

.benchmark-topics,
.benchmark-demands {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.benchmark-topics h4,
.benchmark-demands h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.benchmark-demands {
  border-left: 3px solid var(--green);
}
.benchmark-demands h4 { color: var(--green); }

.topics-intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.topic-tag {
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}
.topic-tag.highlight {
  background: rgba(0, 51, 102, 0.06);
  border-color: rgba(0, 51, 102, 0.2);
  color: var(--navy);
  font-weight: 600;
}

.demands-list { display: flex; flex-direction: column; gap: 0.7rem; }
.demand-item { display: flex; flex-direction: column; gap: 0.1rem; }
.demand-topic {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.demand-text {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- WAHL-RECHNER (light background) ---------- */
.wahl-container { display: grid; gap: 1.5rem; }

.wahl-countdown {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.wahl-countdown h3 {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.countdown-item { text-align: center; }
.countdown-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.countdown-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  display: block;
}

.wahl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}
.wahl-stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.wahl-stat-card--highlight {
  background: rgba(0, 51, 102, 0.06);
  border-color: rgba(0, 51, 102, 0.2);
}
.wahl-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.wahl-stat-card--highlight .wahl-stat-value { color: var(--navy); }
.wahl-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.wahl-stat-note {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  opacity: 0.7;
}

.wahl-simulator {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.wahl-simulator h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.simulator-selector {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.simulator-selector label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.simulator-slider { }
.simulator-slider label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.simulator-slider label strong { color: var(--navy); font-weight: 700; }

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin: 0.875rem 0;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  border: none;
}

.simulator-result {
  display: flex;
  gap: 2rem;
  margin: 0.875rem 0;
}
.simulator-impact { text-align: center; }
.impact-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.impact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.simulator-context {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.simulator-committee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.committee-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.committee-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
.simulator-scenario {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.simulator-message {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.625rem;
}

.sitzgitter { margin-top: 1.5rem; }
.sitzgitter-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.75rem; }
.sitzgitter-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: #d0d5dd; flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.sitzgitter-dot--committee { background: var(--navy, #003366); }
.sitzgitter-dot--gain {
  background: var(--red, #e63312);
  transform: scale(1.15);
}
.sitzgitter-legend {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: #666; margin-top: 0.5rem;
}
.sitzgitter-legend-item { display: flex; align-items: center; gap: 5px; }
.sitzgitter-legend-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

.wahl-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--navy);
}
.wahl-cta h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.wahl-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ---------- DATENPFLEGE ---------- */
.dp-benefit-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.dp-benefit-note svg { flex-shrink: 0; color: var(--navy); margin-top: 1px; }

.dp-flywheel-note {
  font-size: 0.84rem; color: var(--text-muted);
  padding: 9px 13px; background: rgba(0,51,102,0.04);
  border-radius: 6px; border-left: 3px solid rgba(0,51,102,0.25);
  margin-bottom: 1.25rem; line-height: 1.55;
}

/* ---------- DATENPFLEGE — KONTAKTBLOCK ---------- */
.dp-contact-box {
  margin-top: 1.75rem; padding: 1.25rem;
  border: 1px solid var(--border-light); border-top: 3px solid var(--navy);
  border-radius: 8px; background: #fff;
}
.dp-contact-box-title {
  font-size: 0.9rem; font-weight: 700; color: var(--navy);
  margin: 0 0 1rem;
}
.dp-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 560px) {
  .dp-contact-grid { grid-template-columns: 1fr; }
}
.dp-contact-info { display: flex; flex-direction: column; gap: 0.5rem; }
.dp-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text);
}
.dp-contact-item svg { color: var(--navy); flex-shrink: 0; }
.dp-contact-item a { color: var(--navy); font-weight: 500; text-decoration: none; }
.dp-contact-item a:hover { text-decoration: underline; }
.dp-contact-note {
  font-size: 0.78rem; color: var(--text-muted);
  margin: 0.25rem 0 0; padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}
.dp-callback-form { display: flex; flex-direction: column; gap: 0.6rem; }
.dp-callback-btn { align-self: flex-start; margin-top: 0.25rem; }
.dp-callback-success { margin-bottom: 0; }

.dp-no-token { max-width: 560px; }

.dp-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(0, 51, 102, 0.04);
  border: 1px solid rgba(0, 51, 102, 0.12);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.dp-info-box svg { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.dp-info-box--warn {
  background: rgba(230, 51, 18, 0.04);
  border-color: rgba(230, 51, 18, 0.15);
  border-left-color: var(--red);
}
.dp-info-box--warn svg { color: var(--red); }

.dp-form-wrap { }

.dp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.dp-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.dp-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.dp-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.875rem;
}
.dp-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.dp-field-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.field-readonly {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.4rem 0.625rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dp-readonly-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.dp-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.dp-field-group--grow { flex: 1; }

.dp-field-row {
  display: flex;
  gap: 0.625rem;
}
.dp-field-row .dp-field-group:first-child { flex: 0 0 100px; }

.dp-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dp-required {
  color: var(--red);
  margin-left: 0.1em;
}

.dp-label-optional {
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.dp-input {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.dp-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}
.dp-input:disabled {
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: not-allowed;
}

.dp-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235a6474' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  appearance: none;
  cursor: pointer;
}

.dp-save-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.dp-consent-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #5a6270;
  line-height: 1.5;
  cursor: pointer;
}
.dp-consent-checkbox {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--navy, #003366);
  cursor: pointer;
}
.dp-consent-link {
  color: var(--navy, #003366);
  text-decoration: underline;
}
.dp-save-hint { font-size: 0.78rem; color: var(--text-muted); }

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 40px;
}
.btn-save:hover:not(:disabled) {
  background: var(--navy-light);
  box-shadow: var(--shadow-sm);
}
.btn-save:disabled { opacity: 0.4; cursor: not-allowed; }

.dp-save-success,
.dp-save-error {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.dp-save-success {
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #15803d;
}
.dp-save-success svg { color: var(--success); flex-shrink: 0; }
.dp-save-error {
  background: rgba(230, 51, 18, 0.05);
  border: 1px solid rgba(230, 51, 18, 0.15);
  color: #c2270f;
}
.dp-save-error svg { color: var(--red); flex-shrink: 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    position: static;
    padding-top: 0;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
  .sidebar-hint { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .page-hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-map { width: 100%; max-width: 320px; margin: 0 auto; }

  .header-nav { display: none; }
  .header-menu-btn { display: flex; }

  .benchmark-kpis { grid-template-columns: repeat(2, 1fr); }
  .benchmark-charts { grid-template-columns: 1fr; }

  .wahl-stats { grid-template-columns: 1fr; }
  .countdown-grid { gap: 1.5rem; }
  .countdown-num { font-size: 2rem; }
  .simulator-result { gap: 1.5rem; }

  .page-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 2rem 0; }
  .finder-cards { grid-template-columns: 1fr; }
  .finder-select { min-width: 100%; width: 100%; }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-save-row { flex-direction: column; align-items: flex-start; }
  .btn-save { width: 100%; justify-content: center; }
  .page-hero-title { font-size: 1.75rem; }
}

/* ---------- BENCHMARK PEER-RANKING ---------- */
.benchmark-peer-ranking {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  grid-column: 1 / -1;
  min-width: 0;        /* Safari: verhindert Überlauf verschachtelter Grids */
  overflow: hidden;    /* Sicherheitsnetz: Balken können nicht über Container hinaus */
}
.benchmark-peer-ranking h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.peer-ranking-table {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  margin-bottom: 1rem;
}

.peer-ranking-row {
  display: grid;
  grid-template-columns: 2.5rem 7rem 1fr 3.5rem;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0.625rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.peer-ranking-row:hover { background: rgba(0,51,102,0.04); }
.peer-ranking-row.highlight {
  background: rgba(0, 51, 102, 0.06);
  border: 1px solid rgba(0, 51, 102, 0.15);
  font-weight: 600;
}

.peer-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.peer-ranking-row.highlight .peer-rank { color: var(--navy); }

.peer-name {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-bar-wrap {
  background: rgba(0,51,102,0.08);
  border-radius: 2px;
  height: 6px;
  overflow: hidden;
}
.peer-bar-fill {
  height: 100%;
  background: rgba(0, 51, 102, 0.3);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.peer-bar-fill.own { background: var(--navy); }

.peer-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.peer-ranking-row.highlight .peer-value { color: var(--navy); }

.benchmark-gap-card {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.gap-card-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.375rem;
}
.gap-card-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .peer-ranking-row {
    grid-template-columns: 2rem 5.5rem 1fr 3rem;
    gap: 0.4rem;
  }
}

/* ---------- BENCHMARK NEWSLETTER SIGNUP ---------- */
.benchmark-newsletter {
  grid-column: 1 / -1;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.benchmark-newsletter-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.benchmark-newsletter-headline {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.benchmark-newsletter-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.benchmark-newsletter-social {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.benchmark-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benchmark-newsletter-input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.benchmark-newsletter-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}
.benchmark-newsletter-input:disabled { opacity: 0.6; }

.benchmark-newsletter-btn {
  padding: 0.6rem 1.25rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.benchmark-newsletter-btn:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-1px);
}
.benchmark-newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.benchmark-newsletter-dsgvo {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.benchmark-newsletter-dsgvo a {
  color: var(--text-muted);
  text-decoration: underline;
}

.benchmark-newsletter-error {
  font-size: 0.8rem;
  color: var(--red);
}

.benchmark-newsletter-success {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  /* grid-column: 1 / -1 wirkt auf das interne 2-Spalten-Grid von .benchmark-newsletter,
     nicht auf #benchmarkGrid — spannt die Success-Box über beide Karten-Spalten */
  grid-column: 1 / -1;
}

.benchmark-newsletter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benchmark-newsletter-success p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

@media (max-width: 640px) {
  .benchmark-newsletter { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================
   Beratungsmappe — Karten-Erweiterung
   ============================================ */

/* Ausgewählte Karte */
.finder-card--selected {
  border-left: 3px solid var(--success);
  background: rgba(122, 184, 0, 0.04);
}

/* Pulse-Animation beim Hinzufügen */
@keyframes card-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.finder-card--pulse {
  animation: card-pulse 0.2s ease;
}

/* Social Proof */
.finder-card-social-proof {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* Add-Button */
.finder-card-add-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}
.finder-card-add-btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
}
.finder-card-add-btn--added {
  color: var(--success);
  border-color: var(--success);
  cursor: not-allowed;
  opacity: 0.85;
}
.finder-card-add-btn--added:hover {
  background: transparent;
  color: var(--success);
}

/* ============================================
   Cart-Bar (sticky bottom)
   ============================================ */

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.cart-bar--visible {
  transform: translateY(0);
}

.cart-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 0;
}

.cart-bar-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-bar-nudge {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.cart-bar-progress {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.cart-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.45);
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}
.cart-bar-dot--filled {
  background: #fff;
  border-color: #fff;
}

.cart-bar-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.cart-bar-btn:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}
.cart-bar-btn:active {
  transform: translateY(0);
}

/* ============================================
   Checkout-Modal (dialog-Element)
   ============================================ */

.cart-modal {
  width: min(480px, calc(100vw - 2rem));
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  background: var(--bg);
}
.cart-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cart-modal-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.cart-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  transition: color var(--transition);
}
.cart-modal-close:hover { color: #fff; }

.cart-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem 0;
  line-height: 1.5;
}

.cart-modal-items {
  list-style: none;
  padding: 0.75rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--navy);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cart-modal-item-check {
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.cart-modal-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-modal-item-name {
  font-size: 0.88rem;
  color: var(--navy);
}
.cart-modal-item-teaser {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cart-modal-email-section {
  padding: 0.25rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cart-modal-email-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.cart-modal-email-input {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.cart-modal-email-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.cart-modal-error {
  font-size: 0.8rem;
  color: var(--red);
  padding: 0 1.5rem;
  margin: 0;
  line-height: 1.5;
}

.cart-modal-submit-btn {
  display: block;
  width: calc(100% - 3rem);
  margin: 0.75rem 1.5rem 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}
.cart-modal-submit-btn:hover:not(:disabled) {
  background: var(--navy-light);
}
.cart-modal-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1.5rem 1.25rem;
  line-height: 1.5;
}

/* Erfolgs-Screen */
.cart-modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  gap: 0.75rem;
}
.cart-modal-success-icon {
  margin-bottom: 0.25rem;
}
.cart-modal-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.cart-modal-success-msg {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}
.cart-modal-close-success {
  margin-top: 0.5rem;
  padding: 0.6rem 2rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.cart-modal-close-success:hover { background: var(--navy-light); }

/* Opt-In */
.cart-modal-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0.5rem 1.5rem;
}

.cart-modal-optin {
  padding: 0.5rem 1.5rem 0.25rem;
}

.cart-modal-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.cart-modal-optin-check {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

.cart-modal-optin-label span {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.cart-modal-optin-trust {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0 1.6rem;
}

.cart-modal-optin-trust a {
  color: var(--navy);
  text-decoration: underline;
}

/* ============================================
   Responsive — Cart-Bar + Modal
   ============================================ */

@media (max-width: 640px) {
  .cart-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
  .cart-bar-btn {
    width: 100%;
    text-align: center;
  }
  .cart-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 2rem);
  }
  .cart-modal-submit-btn {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* ---------- DATENPFLEGE: INTERESSEN-CHIPS ---------- */
.dp-interests-box {
  background: #eef3fb;
  border: 1px solid #c8d9f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.dp-interests-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.dp-interests-icon { font-size: 15px; }
.dp-interests-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.dp-interests-desc {
  font-size: 12px;
  color: #556;
  line-height: 1.45;
  margin: 0 0 12px 0;
}
.dp-interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dp-interest-chip {
  background: white;
  color: var(--navy);
  border: 1.5px solid #bbd0f0;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.dp-interest-chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.dp-interest-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dp-interests-count {
  font-size: 11px;
  color: #556;
  margin: 8px 0 0 0;
  min-height: 16px;
}

/* ---------- SPLASH SCREEN ---------- */
#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}
#splashScreen.splash-done {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.splash-logo {
  animation: splashFadeIn 0.45s ease forwards;
  opacity: 0;
}
.splash-tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  animation: splashFadeIn 0.45s ease 0.15s forwards;
  opacity: 0;
}
.splash-loader {
  display: flex;
  gap: 7px;
  animation: splashFadeIn 0.45s ease 0.25s forwards;
  opacity: 0;
}
.splash-dot {
  width: 7px;
  height: 7px;
  background: var(--navy);
  border-radius: 50%;
  animation: splashDotPulse 1.1s ease infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.18s; }
.splash-dot:nth-child(3) { animation-delay: 0.36s; }
.splash-status {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashDotPulse {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.35; }
  40%           { transform: scale(1.15); opacity: 1; }
}
