/* ============================================
   BRÜCKEN SUCHTHILFE - DESIGN SYSTEM v2.0
   Psychologisch optimiert für Suchthilfe-Kontext
   ============================================ */

:root {
  /* Primäre Farben (Warme, menschliche Töne) */
  --color-terracotta: #B85C45;
  --color-terracotta-light: #D97B63;
  --color-terracotta-dark: #9A4A35;
  --color-terracotta-50: rgba(184, 92, 69, 0.05);
  
  /* Sekundäre Farben (Hoffnung, Stabilität) */
  --color-olive: #5B6B4E;
  --color-olive-light: #7A8B6E;
  --color-olive-dark: #4A5A3E;
  --color-olive-50: rgba(91, 107, 78, 0.05);
  
  /* Neutrale Farben (Warmes Grau, kein Klinik-Weiß) */
  --color-sand: #F5F1ED;
  --color-sand-dark: #E5E1DD;
  --color-cream: #FDFCFA;
  --color-white: #FFFFFF;
  
  /* Textfarben */
  --color-text: #2C2420;
  --color-text-light: #5C514A;
  --color-text-muted: #8C817A;
  
  /* Emergency (Aufmerksamkeit ohne Panik) */
  --color-emergency: #C73E3E;
  --color-emergency-dark: #A02828;
  --color-emergency-light: #E85E5E;
  --color-emergency-50: rgba(199, 62, 62, 0.05);
  
  /* Statusfarben */
  --color-success: #4A7C59;
  --color-warning: #D4A017;
  --color-info: #4A6FA5;
  
  /* Spacing-System (8px Basis) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 5rem;     /* 80px */
  --space-8: 6rem;     /* 96px */
  
  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Radius (Sanft, nicht klinisch) */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Schatten (Sanft, organisch) */
  --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.04);
  --shadow: 0 4px 20px rgba(44, 36, 32, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 36, 32, 0.12);
  --shadow-xl: 0 20px 60px rgba(44, 36, 32, 0.15);
  --shadow-emergency: 0 4px 20px rgba(199, 62, 62, 0.25);
  
  /* Animationen (Ruhig, nicht hektisch) */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-Index Skala */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal: 1000;
  --z-emergency: 1100;
  --z-toast: 1200;
}

/* Dark Mode (Sanfter Übergang, nicht Kontrast) */
[data-theme="dark"] {
  --color-cream: #1a1816;
  --color-sand: #2a2624;
  --color-sand-dark: #3a3634;
  --color-white: #2c2826;
  --color-text: #f5f1ed;
  --color-text-light: #c5c1bd;
  --color-text-muted: #958b85;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ============================================
   RESET & BASIS
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

p.lead {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-terracotta-dark);
}

a.emergency-link {
  color: var(--color-emergency);
  font-weight: var(--font-weight-semibold);
}

a.emergency-link:hover {
  color: var(--color-emergency-dark);
}

/* ============================================
   LAYOUT-KOMPONENTEN
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-7) 0;
}

.section-sm {
  padding: var(--space-5) 0;
}

.section-sand {
  background: var(--color-sand);
}

.section-emergency {
  background: var(--color-emergency-50);
  border-top: 4px solid var(--color-emergency);
  border-bottom: 4px solid var(--color-emergency);
}

/* ============================================
   HEADER SYSTEM (Adaptive für alle Bereiche)
   ============================================ */

/* Emergency Bar (Fixiert oben) */
.emergency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-emergency) 0%, var(--color-emergency-dark) 100%);
  color: white;
  padding: var(--space-1) 0;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  z-index: var(--z-emergency);
  box-shadow: var(--shadow-emergency);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.emergency-bar.visible {
  transform: translateY(0);
}

.emergency-bar a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 1.1rem;
}

/* Haupt-Header */
.main-header {
  background: rgba(253, 252, 250, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-sand);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

[data-theme="dark"] .main-header {
  background: rgba(26, 24, 22, 0.98);
  border-color: var(--color-sand-dark);
}

/* Variante: Emergency-Header (Minimalistisch) */
.main-header.emergency {
  background: var(--color-emergency);
  border-bottom: none;
  color: white;
}

.main-header.emergency .brand-name,
.main-header.emergency .nav-link {
  color: white;
}

.main-header.emergency .burger span {
  background: white;
}

/* Header Layout */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 70px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--color-terracotta);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-name {
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  color: var(--color-text);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.nav-link {
  color: var(--color-text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-sand);
  color: var(--color-text);
}

/* SOS Link Spezial */
.nav-sos {
  color: var(--color-emergency) !important;
  font-weight: var(--font-weight-semibold) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-sos:hover {
  background: rgba(199, 62, 62, 0.1) !important;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  border: 1px solid var(--color-sand);
  padding: 0.5rem 0;
  z-index: var(--z-dropdown);
}

[data-theme="dark"] .nav-dropdown-menu {
  background: var(--color-sand);
  border-color: var(--color-sand-dark);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background 0.2s;
  border-bottom: 1px solid var(--color-sand);
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: var(--color-sand);
  color: var(--color-terracotta);
}

/* Header Utility */
.header-utils {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Language Switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-sand);
  border: 2px solid transparent;
  border-radius: 50%;
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-btn:hover {
  border-color: var(--color-terracotta);
  background: white;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 160px;
  border: 1px solid var(--color-sand);
  overflow: hidden;
  z-index: var(--z-dropdown);
}

[data-theme="dark"] .lang-dropdown {
  background: var(--color-sand);
  border-color: var(--color-sand-dark);
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid var(--color-sand);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: var(--color-sand);
  color: var(--color-terracotta);
  font-weight: var(--font-weight-semibold);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  border-radius: 50%;
  color: var(--color-text);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-sand);
}

/* Mobile Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 40px;
  background: var(--color-sand);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  flex-shrink: 0;
}

.burger span {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-base);
  display: block;
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   BUTTONS (Psychologisch optimiert)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

/* Variants */
.btn-primary {
  background-color: var(--color-terracotta);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background-color: var(--color-sand);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-sand-dark);
  transform: translateY(-2px);
}

.btn-olive {
  background-color: var(--color-olive);
  color: white;
}

.btn-olive:hover {
  background-color: var(--color-olive-light);
  transform: translateY(-2px);
  color: white;
}

.btn-emergency {
  background-color: var(--color-emergency);
  color: white;
  box-shadow: var(--shadow-emergency);
  animation: pulse-soft 2s infinite;
}

.btn-emergency:hover {
  background-color: var(--color-emergency-dark);
  transform: translateY(-2px);
  color: white;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 62, 62, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(199, 62, 62, 0); }
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-sand-dark);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-light);
}

.btn-ghost:hover {
  background-color: var(--color-sand);
  color: var(--color-text);
}

/* ============================================
   CARDS (Für Trigger, Bücher, Städte)
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  transition: var(--transition-base);
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .card {
  background: var(--color-sand-dark);
  border-color: var(--color-sand);
}

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

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--color-terracotta);
}

/* Card Variants */
.card-emergency {
  border-top: 4px solid var(--color-emergency);
}

.card-olive {
  border-top: 4px solid var(--color-olive);
}

.card-terracotta {
  border-top: 4px solid var(--color-terracotta);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-body {
  color: var(--color-text-light);
  flex-grow: 1;
  margin-bottom: var(--space-3);
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-sand);
}

/* Feature Lists in Cards */
.feature-list {
  list-style: none;
  margin: var(--space-3) 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-olive);
  font-weight: var(--font-weight-bold);
}

/* ============================================
   GRID SYSTEM (Für Trigger, Bücher, Städte)
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   STÄDTE & LÄNDER (Speziell für Gruppen)
   ============================================ */

.city-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.city-card {
  background: var(--color-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  min-width: 200px;
  justify-content: center;
}

[data-theme="dark"] .city-card {
  background: var(--color-sand-dark);
}

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

.city-card.online {
  background: var(--color-terracotta);
  color: white;
}

.city-card.online:hover {
  background: var(--color-terracotta-dark);
}

.flag-icon {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* ============================================
   FORMS (Anonymität wahren)
   ============================================ */

.form-group {
  margin-bottom: var(--space-3);
}

label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: var(--transition-base);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--color-sand-dark);
  border-color: var(--color-text-muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 69, 0.1);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  border-left: 4px solid transparent;
}

.alert-info {
  background-color: rgba(91, 107, 78, 0.1);
  border-left-color: var(--color-olive);
  color: var(--color-olive-dark);
}

.alert-emergency {
  background-color: var(--color-emergency-50);
  border-left-color: var(--color-emergency);
  color: var(--color-emergency-dark);
}

.alert-warning {
  background-color: rgba(212, 160, 23, 0.1);
  border-left-color: var(--color-warning);
  color: #8a6d0b;
}

/* ============================================
   FOOTER SYSTEM (4 Varianten)
   ============================================ */

.footer {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: var(--space-6) 0 var(--space-4);
  margin-top: auto;
}

[data-theme="dark"] .footer {
  background: #0f0f0f;
}

/* Variante 1: Standard (Content-Seiten) */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
}

/* Variante 2: Minimal (Emergency-Seiten) */
.footer-minimal {
  background: var(--color-emergency-dark);
  color: white;
  text-align: center;
  padding: var(--space-3) 0;
}

.footer-minimal a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* Footer Spalten */
.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-col h4 {
  color: var(--color-terracotta-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-bold);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-1);
}

.footer-col a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
  display: inline-block;
}

.footer-col a:hover {
  color: white;
}

.footer-col a.emergency {
  color: var(--color-emergency-light);
  font-weight: var(--font-weight-semibold);
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: var(--space-4) auto 0;
  padding: var(--space-3) var(--space-4) 0;
  border-top: 1px solid #333;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  margin: 0 var(--space-1);
}

.footer-bottom a:hover {
  color: white;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-weight-bold); }
.font-medium { font-weight: var(--font-weight-medium); }

.text-muted { color: var(--color-text-muted); }
.text-emergency { color: var(--color-emergency); }
.text-success { color: var(--color-success); }
.text-olive { color: var(--color-olive); }

.bg-sand { background-color: var(--color-sand); }
.bg-cream { background-color: var(--color-cream); }

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-text);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  border-radius: 0 0 4px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: var(--space-2);
    height: 60px;
  }
  
  .burger {
    display: flex;
    order: 2;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: var(--space-4) var(--space-2);
    z-index: var(--z-modal);
    overflow-y: auto;
    gap: 0.5rem;
    margin: 0;
    height: calc(100vh - 60px);
  }
  
  [data-theme="dark"] .main-nav {
    background: var(--color-cream);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: var(--space-2);
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-sand);
  }
  
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-sand);
    margin-top: var(--space-1);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-5) 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .city-card {
    width: 100%;
    max-width: 300px;
  }
  
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .emergency-bar,
  .main-header,
  .burger,
  .theme-toggle,
  .lang-switch,
  .footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .section {
    padding: 1rem 0;
  }
}

/* ============================================
   REDUCED MOTION & ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .btn-emergency {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  :root {
    --color-text: #000000;
    --color-text-light: #000000;
    --color-cream: #ffffff;
  }
  
  .btn,
  .card {
    border: 2px solid currentColor;
  }
}

:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-terracotta-light);
  color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-sand);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}