/* ============================================================
   kinder-namen.com – Haupt-Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ── Custom Properties ── */
:root {
  --primary:      #7C6FF7;
  --primary-dark: #5A50C8;
  --primary-light:#EEF0FF;
  --girl:         #FF6B9D;
  --girl-light:   #FFF0F5;
  --boy:          #4A9EE7;
  --boy-light:    #EFF7FF;
  --gold:         #F6C026;
  --green:        #3ECFA3;
  --text:         #2D3436;
  --text-muted:   #636E72;
  --bg:           #F8F9FF;
  --card:         #FFFFFF;
  --border:       #E8ECF4;
  --shadow:       0 4px 20px rgba(124,111,247,0.10);
  --shadow-hover: 0 8px 30px rgba(124,111,247,0.22);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --transition:   0.25s ease;
  --max-width:    1200px;
  --ad-bg:        #F0F4FF;
  --ad-border:    #D0D8F0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.text-center { text-align: center; }
.text-girl  { color: var(--girl); }
.text-boy   { color: var(--boy); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top:  8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flex  { display: flex; }
.gap-1 { gap:  8px; }
.gap-2 { gap: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,111,247,0.4); text-decoration: none; }
.btn-girl     { background: var(--girl); color: #fff; }
.btn-girl:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-boy      { background: var(--boy); color: #fff; }
.btn-boy:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm       { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg       { padding: 15px 36px; font-size: 1.05rem; }

/* ── Header & Nav ── */
.site-header {
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: var(--girl); }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--transition);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.merkzettel-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--girl-light);
  color: var(--girl);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
}
.merkzettel-link:hover { background: var(--girl); color: #fff; text-decoration: none; }
#merkzettel-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--girl);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Ad Banner oben im Header */
.ad-header-banner {
  background: var(--ad-bg);
  border-bottom: 1px solid var(--ad-border);
  padding: 8px 0;
  text-align: center;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #EEF0FF 0%, #FFF0F5 50%, #EFF7FF 100%);
  padding: 72px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,111,247,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,107,157,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Schnellfilter ── */
.schnellfilter {
  padding: 28px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.schnellfilter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.schnellfilter label { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active-alle  { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-pill.active-m     { background: var(--boy); border-color: var(--boy); color: #fff; }
.filter-pill.active-w     { background: var(--girl); border-color: var(--girl); color: #fff; }

/* ── Sections ── */
.section { padding: 56px 20px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

/* ── Name Cards Grid ── */
.namen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.name-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.name-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
}
.name-card.maedchen::before { background: var(--girl); }
.name-card.junge::before { background: var(--boy); }

.name-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.name-card.maedchen:hover { border-color: var(--girl); }
.name-card.junge:hover { border-color: var(--boy); }

.name-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.name-card-geschlecht {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.name-card-geschlecht.maedchen { background: var(--girl-light); color: var(--girl); }
.name-card-geschlecht.junge    { background: var(--boy-light);  color: var(--boy); }

.name-card-rang {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 50px;
}

.merken-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  transition: all var(--transition);
  line-height: 1;
}
.merken-btn:hover, .merken-btn.gemerkt { color: var(--girl); transform: scale(1.2); }

.name-card-name {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}
.name-card-bedeutung {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.name-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
}
.name-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.btn-detail {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.btn-detail:hover { text-decoration: underline; }
.trend-icon { font-size: 1rem; }

/* Kompakte Karte */
.name-card.kompakt { padding: 14px 16px; }
.name-card.kompakt .name-card-name { font-size: 1.1rem; }

/* ── Top-10 Liste ── */
.top-liste {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.top-liste-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text);
}
.top-liste-item:last-child { border-bottom: none; }
.top-liste-item:hover { background: var(--bg); }
.top-rang {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
}
.top-rang.rang-1 { color: #FFD700; }
.top-rang.rang-2 { color: #C0C0C0; }
.top-rang.rang-3 { color: #CD7F32; }
.top-name { font-weight: 700; font-size: 1.05rem; }
.top-bedeutung { font-size: 0.8rem; color: var(--text-muted); flex: 1; }
.top-merken { margin-left: auto; }

/* ── Jahres-Selector ── */
.jahr-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.jahr-selector label { font-weight: 600; font-size: 0.9rem; min-width: 60px; }
.jahr-range {
  flex: 1;
  min-width: 200px;
  appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.jahr-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(124,111,247,0.4);
  cursor: pointer;
}
.jahr-wert {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 50px;
}

/* ── Suche ── */
.suche-wrapper {
  position: relative;
  max-width: 500px;
}
.suche-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: var(--card);
  transition: border var(--transition);
}
.suche-input:focus { border-color: var(--primary); }
.suche-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.suche-ergebnisse {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.suche-ergebnisse.sichtbar { display: block; }
.suche-ergebnis-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text);
}
.suche-ergebnis-item:last-child { border-bottom: none; }
.suche-ergebnis-item:hover { background: var(--bg); }

/* ── Zwillinge / Geschwister ── */
.zwillinge-finder {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.zwillinge-eingabe {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 32px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.form-input, .form-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--bg);
  transition: border var(--transition);
}
.form-input:focus, .form-select:focus { border-color: var(--primary); background: #fff; }

.zwillinge-ergebnisse { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.zwillinge-gruppe h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.zwillinge-gruppe.maedchen h3 { border-color: var(--girl); color: var(--girl); }
.zwillinge-gruppe.junge h3    { border-color: var(--boy);  color: var(--boy); }

/* ── Merkzettel ── */
.merkzettel-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.merkzettel-liste { display: flex; flex-direction: column; gap: 12px; }
.merkzettel-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:none; } }

.merkzettel-info { flex: 1; }
.merkzettel-name { font-size: 1.2rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.merkzettel-herkunft { font-size: 0.8rem; color: var(--text-muted); }
.merkzettel-entfernen {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.merkzettel-entfernen:hover { background: #FFE9EC; color: #e74c3c; }

.merkzettel-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.merkzettel-sidebar h3 { font-size: 1.1rem; margin-bottom: 16px; }
.merkzettel-leer {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.merkzettel-leer .leer-icon { font-size: 3rem; margin-bottom: 12px; }

/* ── Werbung / Ad Slots ── */
.werbung {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.werbung-label {
  position: absolute;
  top: 4px; left: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}
.werbung-leaderboard {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}
.werbung-rechteck {
  min-height: 250px;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.werbung-skyscraper {
  min-height: 600px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.werbung-inhalt {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layout mit Sidebar-Werbung */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}
.page-main { min-width: 0; }
.page-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }

/* ── Name Detail ── */
.name-detail-hero {
  background: linear-gradient(135deg, var(--primary-light), #FFF0F5);
  padding: 48px 20px 40px;
  text-align: center;
}
.name-detail-hero.junge-bg  { background: linear-gradient(135deg, var(--boy-light), var(--primary-light)); }
.name-detail-hero.maedchen-bg { background: linear-gradient(135deg, var(--girl-light), #FFF0F5); }
.name-detail-geschlecht {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.name-detail-titel {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 8px;
}
.name-detail-bedeutung {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.name-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.detail-karte {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-karte h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.detail-karte p { font-size: 0.95rem; line-height: 1.7; }

/* Popularitäts-Chart */
.rang-chart { display: flex; flex-direction: column; gap: 6px; }
.rang-chart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.rang-chart-jahr { min-width: 40px; color: var(--text-muted); }
.rang-chart-bar-wrap { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.rang-chart-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 0.8s ease;
}
.rang-chart-wert { min-width: 32px; text-align: right; font-weight: 600; }

/* ── Statistik-Karten (Index) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-karte {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-zahl {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ── Zufalls-Generator ── */
.zufalls-generator {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.zufalls-generator::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.zufalls-generator h2 { color: #fff; margin-bottom: 8px; }
.zufalls-generator p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.zufalls-ergebnis {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zufalls-name {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: #fff;
}
.zufalls-bedeutung { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.zufalls-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── Loader / Toast ── */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 14px;
}
.loader {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pag-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.pag-btn:hover, .pag-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}
.footer-top {
  padding: 48px 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .site-logo { color: #fff; font-size: 1.3rem; }
.footer-brand p {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── No-JS Fallback ── */
.no-js-hinweis {
  background: #FFF3CD;
  border: 1px solid #FFC107;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* ── Mobile Navigation Toggle ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar .werbung-skyscraper { display: none; }
  .merkzettel-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
  }
  .main-nav.offen {
    display: flex;
    flex-direction: column;
  }
  .main-nav ul {
    background: var(--card);
    flex-direction: column;
    padding: 80px 20px 20px;
    height: 100%;
    width: 280px;
    overflow-y: auto;
  }
  .main-nav a { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 1.8rem; }

  .namen-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .zwillinge-eingabe { grid-template-columns: 1fr; }
  .zwillinge-ergebnisse { grid-template-columns: 1fr; }

  .name-detail-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 20px; }

  .section { padding: 36px 20px; }
}

@media (max-width: 480px) {
  .namen-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .header-inner { padding: 10px 16px; }
  .site-logo { font-size: 1.2rem; }
  .schnellfilter-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Animationen ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fade-in-up { animation: fadeInUp 0.5s ease both; }
.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }

/* ── Schöne Scroll-Fortschrittsleiste ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--girl));
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* Print-Styles für Merkzettel */
@media print {
  .site-header, .site-footer, .werbung, .merken-btn { display: none !important; }
  body { background: #fff; }
  .merkzettel-item { box-shadow: none; border: 1px solid #ddd; }
}
