/* ═══════════════════════════════════════════════════════════
   Bunsenwetter · style.css
   Modern dark theme, glassmorphism, responsive
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:        #070d1a;
  --bg-surface:     #0d1526;
  --bg-card:        rgba(255, 255, 255, 0.05);
  --bg-card-hover:  rgba(255, 255, 255, 0.08);
  --border:         rgba(255, 255, 255, 0.08);
  --border-bright:  rgba(255, 255, 255, 0.15);

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-accent:    #38bdf8;

  /* Metric colors */
  --c-temp-hot:    #f97316;
  --c-temp-cold:   #60a5fa;
  --c-temp:        #fbbf24;
  --c-humidity:    #06b6d4;
  --c-pressure:    #8b5cf6;
  --c-co2-good:    #22c55e;
  --c-co2-mid:     #f59e0b;
  --c-co2-bad:     #ef4444;
  --c-rain:        #60a5fa;
  --c-accent:      #3b82f6;
  --c-accent-glow: rgba(59, 130, 246, 0.3);

  /* Radii & Shadows */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.15);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

address { font-style: normal; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 900px; }

.section {
  padding: 80px 0;
}
.section--dark { background: var(--bg-surface); }
.section--support { background: linear-gradient(135deg, #0d1526 0%, #0a1628 50%, #0d1526 100%); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* ─── Navigation ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.nav-logo:hover { text-decoration: none; color: var(--text-accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #0d2044 0%, #070d1a 70%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Sterne */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 55%, rgba(255,255,255,0.4) 0%, transparent 100%);
}

.cloud {
  position: absolute;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  animation: drift linear infinite;
}
.cloud-1 { width: 300px; height: 60px; top: 20%; left: -300px; animation-duration: 80s; }
.cloud-2 { width: 200px; height: 40px; top: 35%; left: -200px; animation-duration: 120s; animation-delay: -30s; }
.cloud-3 { width: 400px; height: 80px; top: 55%; left: -400px; animation-duration: 100s; animation-delay: -60s; }

@keyframes drift {
  to { transform: translateX(calc(100vw + 500px)); }
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.hero-condition {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-temp {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.temp-unit {
  font-size: 0.4em;
  font-weight: 300;
  vertical-align: super;
}

.hero-feels {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.hero-divider { color: var(--border-bright); }

.hero-status { margin-top: 1rem; min-height: 32px; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.5;
}
.hero-scroll a { color: var(--text-secondary); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%        { transform: translateX(-50%) translateY(8px); }
}

/* ─── Current Data Cards ─────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color, #3b82f6), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-bright); }
.card:hover::before { opacity: 1; }

.card--temp     { --accent-color: var(--c-temp); }
.card--humidity { --accent-color: var(--c-humidity); }
.card--pressure { --accent-color: var(--c-pressure); }
.card--co2      { --accent-color: var(--c-co2-good); }
.card--rain     { --accent-color: var(--c-rain); }
.card--feels    { --accent-color: var(--c-temp-hot); }

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}
.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.card-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.card-unit { font-size: 0.5em; font-weight: 400; color: var(--text-secondary); }
.card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.card-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-color, #3b82f6);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Air quality badge */
.aq-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.aq-badge--1 { background: rgba(34,197,94,0.2); color: #4ade80; }
.aq-badge--2 { background: rgba(245,158,11,0.2); color: #fbbf24; }
.aq-badge--3 { background: rgba(239,68,68,0.2);  color: #f87171; }
.aq-badge--4 { background: rgba(220,38,38,0.3);  color: #fca5a5; }

/* Rain badge */
.rain-yes { color: #60a5fa; font-weight: 700; font-size: 1.8rem; }
.rain-no  { color: #4ade80; font-weight: 700; font-size: 1.8rem; }

/* Hero badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.badge--rain  { background: rgba(96,165,250,0.2); border: 1px solid rgba(96,165,250,0.3); color: #93c5fd; }
.badge--dry   { background: rgba(74,222,128,0.2); border: 1px solid rgba(74,222,128,0.3); color: #86efac; }
.badge--warn  { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ─── Charts ─────────────────────────────────────────────── */
.chart-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.chart-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font);
  font-weight: 500;
  transition: all var(--transition);
}
.chart-btn:hover { border-color: var(--border-bright); color: var(--text-primary); }
.chart-btn.active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.25rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.chart-card-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-wrap {
  position: relative;
  height: 220px;
}

/* ─── Records ────────────────────────────────────────────── */
.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.record-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.record-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rec-color, #3b82f6);
  opacity: 0.6;
}
.record-card:hover { transform: translateY(-3px); }

.record--hot          { --rec-color: #f97316; }
.record--cold         { --rec-color: #60a5fa; }
.record--humidity     { --rec-color: #06b6d4; }
.record--pressure-high{ --rec-color: #8b5cf6; }
.record--pressure-low { --rec-color: #a78bfa; }
.record--co2          { --rec-color: #f59e0b; }
.record--count        { --rec-color: #22c55e; }
.record--rain         { --rec-color: #60a5fa; }

.record-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.record-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.record-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.record-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Stations ───────────────────────────────────────────── */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.station-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  margin-top: 0.35rem;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 16px rgba(34,197,94,0.9); }
}
.station-info { flex: 1; }
.station-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.2rem; }
.station-location { color: var(--text-secondary); font-size: 0.82rem; }
.station-last { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.25rem; }
.station-fw { color: var(--text-muted); font-size: 0.72rem; }

/* ─── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-accent);
  margin: 1.5rem 0 0.6rem;
}
.about-text h3:first-child { margin-top: 0; }
.about-text p { color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.7; }

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
}
.tech-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  position: sticky;
  top: 80px;
}
.about-logo-wrap { margin-bottom: 1.25rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.about-logo { max-width: 80px; margin: 0 auto; border-radius: 8px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.about-stat { text-align: center; }
.stat-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.stat-l { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Support ────────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.support-card--hardware::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.support-card--money::before    { background: linear-gradient(90deg, #f59e0b, #f97316); }

.support-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.support-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.support-card p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }

.wish-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.wish-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.wish-list li:last-child { border-bottom: none; }

.wish-prio {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.wish-prio--high   { background: rgba(239,68,68,0.2);  color: #f87171; }
.wish-prio--medium { background: rgba(245,158,11,0.2); color: #fbbf24; }
.wish-prio--low    { background: rgba(99,102,241,0.2); color: #a5b4fc; }

.donation-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.donation-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}
.donation-amount {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fbbf24;
}
.donation-desc { font-size: 0.75rem; color: var(--text-muted); }

.support-hint { font-size: 0.82rem !important; color: var(--text-muted) !important; }

.support-thanks {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  width: 100%;
  text-align: center;
}
.btn--primary:hover { background: #2563eb; transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--text-accent);
  border: 1px solid var(--c-accent);
  width: 100%;
  text-align: center;
}
.btn--outline:hover { background: rgba(59,130,246,0.1); text-decoration: none; }

/* ─── Imprint / Contact ──────────────────────────────────── */
.imprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.imprint-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.imprint-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
.imprint-block p, .imprint-block address { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.imprint-email { margin-top: 0.75rem; }
.email-protect { cursor: pointer; color: var(--text-accent); border-bottom: 1px dashed currentColor; }
.link { color: var(--text-accent); }
.link:hover { text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { font-weight: 700; font-size: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.4rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-content: flex-start;
}
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-api h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.4rem; }
.footer-api p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.footer-api code {
  display: block;
  font-size: 0.75rem;
  color: var(--text-accent);
  background: rgba(59,130,246,0.08);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59,130,246,0.15);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ─── Loading ────────────────────────────────────────────── */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: fadein 0.5s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .charts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-api  { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(7, 13, 26, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }
  .nav-container { position: relative; }
  .hero-temp { font-size: clamp(4rem, 22vw, 7rem); }
  .cards-grid { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .donation-amounts { grid-template-columns: 1fr; }
  .imprint-grid { grid-template-columns: 1fr; }
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: slideUp 0.4s ease both; }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }
