/* Modern Minimalist Design System 2025 - Park Babelsberg */
/* DSGVO-konform: System-Fonts statt Google Fonts */

:root {
  /* System Font Stacks (DSGVO-konform, keine externen Requests) */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Refined Color Palette - Minimalist & Nature-inspired */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f8fafc;
  --bg-accent: #f0f9ff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --accent-primary: #0ea5e9;
  --accent-secondary: #06b6d4;
  --accent-dark: #0284c7;
  --accent-light: #7dd3fc;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --overlay-dark: rgba(15, 23, 42, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Spacing System - 8px base */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  
  /* Border Radius */
  --radius-xs: 0.375rem;  /* 6px */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadows - Subtle & Refined */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 16px 32px rgba(15, 23, 42, 0.12);
  
  /* Typography - DSGVO-konform mit System-Fonts */
  --font-display: var(--font-serif);
  --font-body: var(--font-sans);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-4);
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
  /* Backgrounds - Inverted for dark mode */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-accent: #1e3a5f;
  
  /* Text - Light colors for dark background */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;
  
  /* Accent Colors - Brighter for dark mode */
  --accent-primary: #38bdf8;
  --accent-secondary: #22d3ee;
  --accent-dark: #0ea5e9;
  --accent-light: #7dd3fc;
  
  /* Status Colors - Adjusted for dark mode */
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  
  /* Borders - Lighter for dark mode */
  --border-light: #334155;
  --border-medium: #475569;
  
  /* Overlays - Darker for dark mode */
  --overlay-dark: rgba(15, 23, 42, 0.85);
  --glass-bg: rgba(15, 23, 42, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Shadows - Stronger for dark mode */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.8);
}

/* System Preference Detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-accent: #1e3a5f;
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-inverse: #0f172a;
    
    /* Accent Colors */
    --accent-primary: #38bdf8;
    --accent-secondary: #22d3ee;
    --accent-dark: #0ea5e9;
    --accent-light: #7dd3fc;
    
    /* Status Colors */
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    
    /* Borders */
    --border-light: #334155;
    --border-medium: #475569;
    
    /* Overlays */
    --overlay-dark: rgba(15, 23, 42, 0.85);
    --glass-bg: rgba(15, 23, 42, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.8);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility: Enhanced Focus Styles */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
.badge:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Typography Utilities */
@utility heading-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw + 1.5rem, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@utility heading-xl {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@utility heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

@utility heading-md {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@utility heading-sm {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

@utility body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

@utility body-base {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

@utility body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-primary);
}

/* Header & Hero - Minimalist Approach */
.header {
  position: relative;
  margin-bottom: 0;
}

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Refined gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  color: var(--text-inverse);
  text-align: center;
  @apply heading-hero;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 span {
  display: block;
  margin-top: var(--space-3);
  font-size: clamp(1.125rem, 2.5vw + 0.5rem, 1.875rem);
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-align: center;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Lead Text - Clean & Minimal */
.lead {
  position: relative;
  max-width: 800px;
  margin: calc(var(--space-6) * -1) auto var(--space-6);
  padding: var(--space-5);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  color: var(--text-secondary);
  @apply body-lg;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Sticky Navigation - Minimal & Clean */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--container-padding);
  justify-content: center;
}

.badge {
  padding: 0.625rem var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.badge:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Main Content - Spacious & Clean */
main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) var(--container-padding);
}

/* Sections - Consistent Spacing */
.section {
  margin: var(--space-6) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.section:first-child {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 var(--space-2);
  @apply heading-lg;
  color: var(--text-primary);
}

.section > p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  @apply body-base;
}

/* Card Grid - Responsive & Clean */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-tertiary);
  display: block;
  transition: transform var(--transition-slow);
}

.card:hover img {
  transform: scale(1.03);
}

.card h3 {
  @apply heading-sm;
  margin: var(--space-3) var(--space-3) var(--space-2);
  color: var(--text-primary);
}

.card p {
  margin: 0 var(--space-3) var(--space-3);
  color: var(--text-secondary);
  @apply body-base;
  flex-grow: 1;
}

/* Areal Cards - 16:9 Landscape */
.card-areal {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-areal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.card-areal img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-tertiary);
  display: block;
  transition: transform var(--transition-slow);
}

.card-areal:hover img {
  transform: scale(1.05);
}

.card-areal-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-areal-label {
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.card-areal h3 {
  @apply heading-md;
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}

.card-areal p {
  color: var(--text-secondary);
  @apply body-base;
  margin-bottom: var(--space-3);
  line-height: 1.7;
  flex-grow: 1;
}

.card-areal-highlights {
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.card-areal-highlights strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
}

.card-areal-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-areal-highlights li {
  padding: var(--space-1) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-areal-highlights li a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-areal-highlights li a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Category Cards - Icon-based */
.card-category {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
}

.card-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
  background: var(--bg-accent);
}

.card-category-icon {
  font-size: 3rem;
  line-height: 1;
}

.card-category h3 {
  @apply heading-sm;
  margin: 0;
  color: var(--text-primary);
}

.card-category-count {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.card-category p {
  color: var(--text-secondary);
  @apply body-base;
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

.card-category .btn {
  margin-top: auto;
  width: 100%;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

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

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

/* Button Styles - Unified System */
.btn {
  display: inline-block;
  padding: 0.75rem var(--space-4);
  margin: 0 var(--space-3) var(--space-3);
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px; /* For mobile touch targets */
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--bg-accent);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.btn-tertiary {
  background: transparent;
  color: var(--accent-primary);
  border: none;
  padding: 0.5rem var(--space-2);
}

.btn-tertiary:hover {
  background: var(--bg-accent);
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Key-Value Grid */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.kv > div {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.kv > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kv strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.kv p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Details/Summary - Clean Accordion */
details {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-primary);
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

summary:hover {
  background: var(--bg-accent);
}

details[open] summary {
  margin-bottom: var(--space-3);
}

/* Utilities */
small.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: var(--space-6) 0;
}

/* Info Boxes - Status System */
.notice {
  padding: var(--space-3);
  background: var(--bg-accent);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  @apply body-base;
}

.info-box {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--space-3);
}

.info-box-success {
  background: #ecfccb;
  border-color: #84cc16;
}

.info-box-success strong {
  color: #365314;
}

.info-box-success p {
  color: #4d7c0f;
  margin: var(--space-1) 0 0;
}

.info-box-warning {
  background: #fef3c7;
  border-color: #f59e0b;
}

.info-box-warning strong {
  color: #78350f;
}

.info-box-warning p {
  color: #92400e;
  margin: var(--space-1) 0 0;
}

.info-box-error {
  background: #fee2e2;
  border-color: #ef4444;
}

.info-box-error strong {
  color: #7f1d1d;
}

.info-box-error p {
  color: #991b1b;
  margin: var(--space-1) 0 0;
}

.info-box-info {
  background: #dbeafe;
  border-color: #3b82f6;
}

.info-box-info strong {
  color: #1e3a8a;
}

.info-box-info p {
  color: #1e40af;
  margin: var(--space-1) 0 0;
}

/* Enhanced Info Box Component with Icons */
.info-box-enhanced {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  align-items: flex-start;
}

.info-box-enhanced-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box-enhanced-content h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
}

.info-box-enhanced-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-box-enhanced.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.info-box-enhanced.warning {
  background: #fefce8;
  border: 1px solid #fde68a;
}

.info-box-enhanced.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.info-box-enhanced.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

/* Footer */
footer {
  margin: var(--space-10) 0 var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  @apply heading-lg;
  margin: 0 0 var(--space-2);
}

.section-header p {
  color: var(--text-secondary);
  @apply body-lg;
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section */
.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base);
}

.faq-item summary:hover {
  background: var(--bg-secondary);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item-content {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   DARK MODE SPECIFIC ADJUSTMENTS
   ============================================ */

/* Hero Image - Stronger overlay in dark mode */
[data-theme="dark"] .hero::before {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(15, 23, 42, 0.5) 50%,
    rgba(15, 23, 42, 0.8) 100%
  ) !important;
}

/* Cards - Better contrast in dark mode */
[data-theme="dark"] .card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .card-areal:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .card-category:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

/* FAQ Items - Dark mode styling */
[data-theme="dark"] .faq-item {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .faq-item summary:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .faq-item[open] {
  border-color: var(--accent-primary);
}

/* Badges - Dark mode */
[data-theme="dark"] .badge {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .badge:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Notice boxes - Dark mode */
[data-theme="dark"] .notice {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

/* Info boxes - Dark mode */
[data-theme="dark"] .info-box-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: var(--success);
}

[data-theme="dark"] .info-box-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--warning);
}

[data-theme="dark"] .info-box-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: var(--error);
}

[data-theme="dark"] .info-box-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-primary);
}

/* Map - Dark mode tiles */
[data-theme="dark"] .leaflet-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

/* Focus visible - Dark mode */
[data-theme="dark"] :focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* Loading states for images */
.image-loading {
  opacity: 0.7;
  filter: blur(2px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.image-loaded {
  opacity: 1;
  filter: none;
}

/* Micro-animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-element {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.5s ease-out forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.5s ease-out forwards;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ICON SYSTEM (Lucide Icons)
   ============================================ */

/* Icon Sizes */
:root {
  --icon-xs: 16px;
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-lg: 32px;
  --icon-xl: 48px;
}

/* Base Icon Styles */
.icon {
  width: var(--icon-md);
  height: var(--icon-md);
  stroke-width: 2;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

/* Icon Sizes */
.icon-xs { width: var(--icon-xs); height: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-xl { width: var(--icon-xl); height: var(--icon-xl); }

/* Icon Colors */
.icon-primary { color: var(--text-primary); }
.icon-secondary { color: var(--text-secondary); }
.icon-muted { color: var(--text-muted); }
.icon-accent { color: var(--accent-primary); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-error { color: var(--error); }
.icon-white { color: white; }

/* Icon in Buttons */
button .icon,
a .icon {
  vertical-align: middle;
  margin-right: 0.5rem;
}

button .icon:last-child,
a .icon:last-child {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Icon-only buttons */
button.icon-only .icon,
a.icon-only .icon {
  margin: 0;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  position: absolute;
  transition: all 0.3s ease;
}

/* Light mode - show moon */
[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

/* Dark mode - show sun */
[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */

.lang-toggle {
  position: fixed;
  bottom: 92px; /* Above theme toggle (56px + 12px gap + 24px bottom) */
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.lang-toggle:active {
  transform: scale(0.95);
}

.lang-text {
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.lang-text-de {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lang-text-en {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
  display: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   NEW NICHE CONTENT COMPONENTS
   ============================================ */

/* Photography Light Matrix Table */
.light-matrix {
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.light-matrix table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.light-matrix th {
  background: var(--bg-accent);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: var(--space-3);
  border-bottom: 2px solid var(--border-medium);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.light-matrix td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.light-matrix tr:last-child td {
  border-bottom: none;
}

.light-matrix td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.light-matrix td.hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Photography Tips Component */
.photo-tips {
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.photo-tips h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
  font-size: 1.125rem;
}

.photo-tips ul {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
}

.photo-tips li {
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  position: relative;
  color: var(--text-secondary);
}

.photo-tips li::before {
  content: "📷";
  position: absolute;
  left: 0;
  top: var(--space-2);
}

/* Downloads Component */
.downloads {
  background: var(--bg-accent);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.downloads h3 {
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  font-size: 1.125rem;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.downloads-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.downloads-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
}

.downloads-list a::before {
  content: "⬇️";
  font-size: 1.25rem;
}

.downloads-list a:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hidden Gems Component */
.hidden-gems {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  margin: var(--space-6) 0;
}

.hidden-gems h3 {
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.hidden-gems ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.hidden-gems li {
  padding: var(--space-3);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-primary);
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-5);
}

.hidden-gems li::before {
  content: "💎";
  position: absolute;
  left: var(--space-2);
  top: var(--space-3);
  font-size: 1.25rem;
}

/* Geocaching Component */
.geocaching {
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.geocaching strong {
  color: var(--text-primary);
}

.geocaching p {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.geocaching .warning {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-accent);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Rule Footer Component */
.rule-footer {
  margin: var(--space-10) 0 var(--space-4);
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

.rule-footer small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.rule-footer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Dark Mode Overrides for New Components */
[data-theme="dark"] .light-matrix th {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .photo-tips,
[data-theme="dark"] .geocaching {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .downloads {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .downloads-list a {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .downloads-list a:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

[data-theme="dark"] .hidden-gems {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-color: var(--border-medium);
}

[data-theme="dark"] .hidden-gems li {
  background: var(--bg-primary);
  border-left-color: var(--accent-light);
}

[data-theme="dark"] .rule-footer {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

/* Enthusiast Cards - Foto-Spots, Geocaches, Routes */
.enthusiast-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.enthusiast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.enthusiast-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.enthusiast-card-content {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.enthusiast-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.enthusiast-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  min-width: 60%;
}

/* Season Badges */
.season-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.season-badge.spring {
  background: linear-gradient(135deg, #10b981, #059669);
}

.season-badge.summer {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.season-badge.autumn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.season-badge.winter {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.enthusiast-card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.enthusiast-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.enthusiast-card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.enthusiast-card-meta-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.enthusiast-card-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-2);
}

.enthusiast-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.enthusiast-btn-primary {
  background: var(--accent);
  color: white;
}

.enthusiast-btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.enthusiast-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.enthusiast-btn-secondary:hover {
  background: var(--bg-accent);
}

/* Difficulty Badges */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-badge.easy {
  background: #d1fae5;
  color: #065f46;
}

.difficulty-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-badge.hard {
  background: #fee2e2;
  color: #991b1b;
}

/* Dark Mode for Enthusiast Cards */
[data-theme="dark"] .enthusiast-card {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .enthusiast-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .enthusiast-card-footer {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .difficulty-badge.easy {
  background: #064e3b;
  color: #d1fae5;
}

[data-theme="dark"] .difficulty-badge.medium {
  background: #78350f;
  color: #fef3c7;
}

[data-theme="dark"] .difficulty-badge.hard {
  background: #7f1d1d;
  color: #fee2e2;
}

/* Grid for Enthusiast Cards */
.enthusiast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 768px) {
  .enthusiast-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .enthusiast-card img {
    height: 180px;
  }

  .enthusiast-card-title {
    font-size: 1.125rem;
  }

  .enthusiast-card-footer {
    flex-direction: column;
  }

  .enthusiast-btn {
    width: 100%;
  }
}

/* ============================================
   FUN FACTS SECTION
   ============================================ */

.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.fun-fact-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.fun-fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--accent-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.fun-fact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent, var(--accent-primary));
}

.fun-fact-card:hover::before {
  transform: scaleX(1);
}

.fun-fact-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fun-fact-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent, var(--accent-primary)), var(--accent-dark, var(--accent-primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.fun-fact-card h3 {
  @apply heading-sm;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.fun-fact-card p {
  color: var(--text-secondary);
  @apply body-base;
  margin: 0;
  line-height: 1.7;
  flex-grow: 1;
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fun-fact-number {
  animation: countUp 0.8s ease-out;
}

/* Dark Mode for Fun Facts */
[data-theme="dark"] .fun-fact-card {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .fun-fact-card:hover {
  background: var(--bg-tertiary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .fun-fact-icon {
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}

/* Responsive Fun Facts */
@media (max-width: 768px) {
  .fun-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-3);
  }

  .fun-fact-card {
    padding: var(--space-4);
  }

  .fun-fact-icon {
    font-size: 2.5rem;
  }

  .fun-fact-number {
    font-size: 2.5rem;
  }

  .fun-fact-card h3 {
    font-size: 1rem;
  }

  .fun-fact-card p {
    font-size: 0.875rem;
  }
}

/* Smooth transitions for theme change */
html {
  transition: background-color 0.3s ease;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-3);
  }
  
  .theme-toggle {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  
  .theme-icon {
    width: 24px;
    height: 24px;
  }
  
  .lang-toggle {
    bottom: 76px; /* Above theme toggle (48px + 12px gap + 16px bottom) */
    right: 16px;
    width: 48px;
    height: 48px;
  }
  
  .lang-text {
    font-size: 12px;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero h1 span {
    font-size: 1rem;
    margin-top: var(--space-2);
  }
  
  .lead {
    margin-top: calc(var(--space-4) * -1);
    padding: var(--space-4);
    font-size: 1rem;
  }
  
  .badges {
    padding: var(--space-2) var(--container-padding);
    gap: var(--space-1);
  }
  
  .badge {
    padding: 0.5rem var(--space-2);
    font-size: 0.8125rem;
  }
  
  main {
    padding: var(--space-6) var(--container-padding);
  }
  
  .section {
    margin: var(--space-8) 0;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .kv {
    grid-template-columns: 1fr;
  }
  
  /* Gastronomie Teaser - Stack on Mobile */
  .card[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .card[style*="grid-template-columns"] img {
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
  
  /* Touch-optimized buttons */
  .btn {
    min-height: 44px;
    padding: 0.875rem var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero h1 span {
    font-size: 0.9375rem;
  }
  
  .lead {
    font-size: 0.9375rem;
    padding: var(--space-3);
  }
}

/* Print Styles */
@media print {
  .nav,
  .badge,
  footer,
  .btn {
    display: none;
  }
  
  .hero {
    min-height: 200px;
    page-break-after: avoid;
  }
  
  .card {
    page-break-inside: avoid;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* Areale Grid - Consistent Sizing */
#areale a {
  display: block;
  text-decoration: none;
  transition: transform var(--transition-base);
}

#areale a > div {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  width: 100%;
  height: auto;
}

#areale a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
  display: block;
}

#areale a h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  transition: color var(--transition-base);
}

/* Areale Grid - Hover Effects */
.areale-card:hover {
  transform: translateY(-4px);
}

.areale-card:hover img {
  transform: scale(1.05);
}

.areale-card:hover h3 {
  color: var(--accent-primary);
}

/* Responsive Areale Grid */
@media (max-width: 1024px) {
  #areale > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Areale Articles - Stack on tablet */
  #areale article > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  /* Reverse order for visual variety on mobile */
  #areale article:nth-child(even) > div[style*="grid-template-columns"] {
    direction: rtl;
  }

  #areale article:nth-child(even) > div[style*="grid-template-columns"] > * {
    direction: ltr;
  }
}

@media (max-width: 640px) {
  #areale > div {
    grid-template-columns: 1fr !important;
  }

  /* Areale Articles - Full width on mobile */
  #areale article > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Remove alternating padding on mobile */
  #areale article[style*="padding"] {
    padding: var(--space-5) var(--space-3) !important;
  }

  /* Smaller headings on mobile */
  #areale h3 {
    font-size: 1.5rem !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==================================================
   PILLAR PAGE - Park Sections
   ================================================== */

/* Park Section Colors */
:root {
  --park-babelsberg: #3A6CA8;    /* Cool blue */
  --park-glienicke: #4A9B8E;     /* Green-turquoise */
  --park-neuergarten: #C9A961;   /* Gold-beige */
}

[data-theme="dark"] {
  --park-babelsberg: #5A8CC8;
  --park-glienicke: #6ABBAE;
  --park-neuergarten: #E9C981;
}

/* Pillar Page Sections */
.pillar-page {
  max-width: 100%;
  margin: 0;
}

.park-section {
  padding: calc(var(--grid) * 6) calc(var(--grid) * 3);
  position: relative;
  transition: background 0.3s ease;
}

.park-section[data-park="babelsberg"] {
  background: linear-gradient(135deg, rgba(58, 108, 168, 0.08) 0%, rgba(58, 108, 168, 0.03) 100%);
  border-left: 4px solid var(--park-babelsberg);
}

.park-section[data-park="glienicke"] {
  background: linear-gradient(135deg, rgba(74, 155, 142, 0.08) 0%, rgba(74, 155, 142, 0.03) 100%);
  border-left: 4px solid var(--park-glienicke);
}

.park-section[data-park="neuergarten"] {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.03) 100%);
  border-left: 4px solid var(--park-neuergarten);
}

.park-header {
  max-width: 900px;
  margin: 0 auto calc(var(--grid) * 4);
  text-align: center;
}

.park-header h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--grid) * 2);
  color: var(--ink);
}

.park-intro {
  font-size: 1.2rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.park-link {
  display: inline-block;
  margin-top: calc(var(--grid) * 3);
  padding: calc(var(--grid) * 1.5) calc(var(--grid) * 3);
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.park-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Attractions Grid */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--grid) * 2);
  margin: calc(var(--grid) * 3) 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.attraction-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--grid) * 2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.attraction-card h3 {
  font-size: 1.4rem;
  margin-bottom: calc(var(--grid) * 1);
  color: var(--ink);
}

.attraction-card p {
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: calc(var(--grid) * 2);
}

.card-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-subtle) 100%);
  border-radius: calc(var(--radius) / 2);
  margin-bottom: calc(var(--grid) * 1.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* AdSense Units */
.ad-unit {
  max-width: 728px;
  margin: calc(var(--grid) * 4) auto;
  padding: calc(var(--grid) * 2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 0.85;
  text-align: center;
}

/* Specials Section */
.specials-section {
  padding: calc(var(--grid) * 6) calc(var(--grid) * 3);
  background: var(--bg-subtle);
}

.specials-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: calc(var(--grid) * 4);
}

.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: calc(var(--grid) * 2);
  max-width: 1200px;
  margin: 0 auto;
}

.special-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--grid) * 2);
  text-align: center;
  transition: transform 0.2s ease;
}

.special-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.special-card h3 {
  font-size: 1.2rem;
  margin-bottom: calc(var(--grid) * 1);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .park-section {
    padding: calc(var(--grid) * 4) calc(var(--grid) * 2);
  }

  .park-header h2 {
    font-size: 2rem;
  }

  .attractions-grid,
  .specials-grid {
    grid-template-columns: 1fr;
  }
}
/* Categories Section Styles */
.categories-section {
  padding: calc(var(--grid) * 8) calc(var(--grid) * 3);
  position: relative;
}

.categories-section .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto calc(var(--grid) * 6);
}

.categories-section .section-header h2 {
  margin-bottom: calc(var(--grid) * 2);
  font-size: 2rem;
  font-weight: 700;
}

.categories-section .section-header p {
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--grid) * 3);
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-primary);
}

.category-card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-accent);
  position: relative;
}

.category-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.category-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.category-card-content {
  padding: calc(var(--grid) * 2.5);
}

.category-card-content h3 {
  margin: 0 0 calc(var(--grid) * 1) 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-count {
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: var(--bg-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.category-card-content p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Dark mode support */
[data-theme="dark"] .category-card {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
}

[data-theme="dark"] .category-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .category-card-image {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .category-count {
  background: var(--bg-tertiary);
  color: var(--ink-secondary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--grid) * 2);
  }

  .category-card-content h3 {
    font-size: 1.125rem;
  }

  .category-card-image {
    height: 150px;
  }

  .category-card-icon {
    font-size: 3rem;
  }
}
