/* =====================================================
   E-TANKSTELLEN.AT - Stylesheet
   Ocean Energy Theme - Frisch, modern, freundlich
   Farben: Cyan-Blau, Himmelblau-Grau, Sonnengelb
   ===================================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLEN ===== */
:root {
  /* Graustufen - Himmelblau getönt */
  --gray-50: #f0f9ff;
  --gray-100: #e0f2fe;
  --gray-200: #bae6fd;
  --gray-300: #7dd3fc;
  --gray-400: #38bdf8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Cyan-Blau (Ocean) */
  --blue-50: #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-200: #bae6fd;
  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-800: #075985;
  --blue-900: #0c4a6e;

  /* Sonnengelb */
  --gold-50: #fefce8;
  --gold-100: #fef9c3;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --gold-700: #a16207;

  /* Funktionale Farben */
  --color-primary: var(--blue-700);
  --color-primary-hover: var(--blue-800);
  --color-primary-light: var(--blue-50);
  --color-accent: var(--gold-500);
  --color-accent-hover: var(--gold-600);
  --color-text: var(--gray-800);
  --color-text-muted: var(--gray-500);
  --color-text-light: var(--gray-400);
  --color-bg: #ffffff;
  --color-bg-white: #ffffff;
  --color-card: #ffffff;
  --color-border: var(--blue-200);
  --color-border-light: var(--blue-100);

  /* Schnelllader / DC */
  --color-fast: var(--gold-500);
  --color-fast-bg: var(--gold-50);

  /* Status */
  --color-success: #10b981;
  --color-warning: var(--gold-500);
  --color-error: #ef4444;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Header */
  --header-height: 70px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ===== LINKS ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Links auf dunklem Hintergrund */
.dark a,
.hero a,
.footer a {
  color: var(--gold-300);
}

.dark a:hover,
.hero a:hover,
.footer a:hover {
  color: var(--gold-200);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ===== HEADER ===== */
.header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gray-900);
  text-decoration: none;
}

.header__logo:hover {
  text-decoration: none;
  color: var(--gray-900);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 0.5rem;
}

.header__logo-text {
  color: var(--blue-700);
}

.header__logo-text span {
  color: var(--gold-500);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav__link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
}

.nav__link--active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav__item:hover .nav__arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.nav__dropdown a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
  color: var(--gray-700);
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav__toggle:hover {
  background: var(--blue-50);
}

.nav__toggle svg {
  transition: transform 0.2s;
}

.nav__toggle.active svg {
  transform: rotate(90deg);
}

/* Search in Header */
.header__search {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.header__search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  padding-left: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.header__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-white);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.header__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-md);
  text-align: center;
}

.hero--small {
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: var(--spacing-sm);
}

.hero--small h1 {
  font-size: 2rem;
}

.hero__subtitle {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-500);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: white;
  opacity: 0.85;
}

/* Hero Search */
.hero__search {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
}

/* Live Search Box */
.search-box {
  position: relative;
}

.search-box__input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.search-box__icon {
  position: absolute;
  left: 16px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-box__input {
  flex: 1;
  padding: 16px 20px 16px 48px;
  border: none;
  font-size: 16px; /* WICHTIG: 16px verhindert iOS Auto-Zoom */
  outline: none;
  width: 100%;
  border-radius: var(--radius-lg);
  -webkit-appearance: none; /* iOS Reset */
  -moz-appearance: none;
  appearance: none;
}

.search-box__input::placeholder {
  color: var(--gray-400);
}

.search-box__input:focus {
  outline: none;
}

.search-box__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  margin-top: var(--spacing-xs);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-box__results.active {
  display: block;
}

.search-box__results .search-result {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.search-box__results .search-result:hover {
  background: var(--blue-50);
}

.search-box__results .search-result:last-child {
  border-bottom: none;
}

.search-box__results .search-result__title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.search-box__results .search-result__meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.search-box__category {
  padding: 8px 16px;
  background: var(--gray-100);
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-box__empty {
  padding: var(--spacing-md);
  text-align: center;
  color: var(--gray-500);
}

/* Search Form (fallback for /suche/ page) */
.search-form {
  display: flex;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-form__input {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-form__input::placeholder {
  color: var(--gray-400);
}

.search-form__btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form__btn:hover {
  background: var(--color-primary-hover);
}

.search-form__btn svg {
  flex-shrink: 0;
}

/* Search Page Form */
.search-form--page {
  max-width: 100%;
  margin-bottom: var(--spacing-lg);
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.search-result {
  display: block;
}

.search-result__type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--blue-50);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xs);
}

.search-result__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
}

.search-result__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin: 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

.breadcrumb span {
  color: var(--gray-700);
}

/* ===== CONTENT LAYOUT ===== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.content {
  min-width: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sidebar__box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

.sidebar__list {
  list-style: none;
}

.sidebar__list li {
  margin-bottom: var(--spacing-sm);
}

.sidebar__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

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

.sidebar__count {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Info Box in Sidebar */
.info-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.info-box__icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--spacing-md);
}

.info-box__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.info-box__text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card--link:hover {
  text-decoration: none;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.card__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.card__meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== STATION CARDS ===== */
.station-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all 0.2s ease;
}

.station-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.station-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.station-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.station-card__address {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.station-card__badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.station-card__badge--fast {
  background: var(--gold-100);
  color: var(--gold-700);
}

.station-card__badge--ac {
  background: var(--blue-100);
  color: var(--blue-700);
}

.station-card__meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: var(--spacing-sm);
}

.station-card__operator {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: var(--spacing-sm);
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-card__value--gold {
  color: var(--gold-600);
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: var(--spacing-xs);
}

/* ===== BUNDESLAND CARDS ===== */
.bundesland-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bundesland-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}

.bundesland-card__code {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-100);
  position: absolute;
  top: 50%;
  right: var(--spacing-md);
  transform: translateY(-50%);
  line-height: 1;
  z-index: 0;
  opacity: 0.5;
}

.bundesland-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

.bundesland-card__count {
  font-size: 0.9375rem;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.bundesland-card__count strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== MAP CONTAINER ===== */
.map-container {
  background: var(--gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.map-container--small {
  height: 300px;
}

.map-container--large {
  height: 500px;
}

/* ===== SECTION ===== */
.section {
  margin-bottom: var(--spacing-2xl);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section__link {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn--secondary:hover {
  background: var(--gray-200);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--gray-700);
}

.btn--outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--gray-900);
}

.btn--gold:hover {
  background: var(--gold-600);
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--gray-700);
}

.tag--blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.tag--gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-800);
  color: var(--blue-100);
  padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-xl);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-400) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__desc {
  font-size: 0.9375rem;
  color: var(--blue-200);
  line-height: 1.6;
}

.footer__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--spacing-sm);
}

.footer__list a {
  color: var(--blue-200);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--gold-500);
  text-decoration: none;
}

.footer__bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--blue-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--blue-300);
}

.footer__legal a {
  color: var(--blue-300);
  margin-left: var(--spacing-lg);
}

.footer__legal a:hover {
  color: var(--gold-500);
}

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--spacing-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
}

tr:hover td {
  background: var(--gray-50);
}

/* ===== PROSE (Ratgeber) ===== */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.prose h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.prose p {
  margin-bottom: var(--spacing-md);
}

.prose ul, .prose ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.prose li {
  margin-bottom: var(--spacing-sm);
}

.prose strong {
  font-weight: 600;
  color: var(--gray-900);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result {
  display: block;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  color: inherit;
  text-decoration: none;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: var(--gray-50);
  text-decoration: none;
}

.search-result__title {
  font-weight: 600;
  color: var(--gray-900);
}

.search-result__meta {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

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

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero--small {
    padding: 1.5rem 1rem;
  }

  .hero--small h1 {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Mobile Search */
  .hero__search {
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-sm);
  }

  .search-box__input-wrapper {
    border-radius: var(--radius-md);
  }

  .search-box__input {
    padding: 14px 16px 14px 44px;
    font-size: 16px; /* Verhindert iOS Zoom */
    border-radius: var(--radius-md);
    -webkit-appearance: none;
  }

  .search-box__icon {
    left: 14px;
  }

  .search-box__results {
    max-height: 50vh;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch; /* Smooth scroll auf iOS */
  }

  .search-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .search-form__input {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
  }

  .search-form__btn {
    justify-content: center;
    padding: var(--spacing-md);
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero__stat {
    flex: 0 0 40%;
  }

  .hero__stat-value {
    font-size: 1.75rem;
  }

  /* Mobile Navigation */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav__item {
    border-bottom: 1px solid var(--blue-100);
  }

  .nav__link {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    justify-content: space-between;
  }

  .nav__arrow {
    transform: rotate(0deg);
    transition: transform 0.2s;
  }

  .nav__item.open .nav__arrow {
    transform: rotate(180deg);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--blue-50);
    display: none;
  }

  .nav__item.open .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--blue-100);
  }

  .nav__dropdown a:last-child {
    border-bottom: none;
  }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .nav__toggle:hover {
    background: var(--blue-50);
  }

  .header__search {
    display: none;
  }

  .header__inner {
    padding: 0;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Cards & Grids */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }

  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Map */
  .map-container--large {
    height: 300px;
  }

  /* Container */
  .container {
    padding: 1rem;
  }

  .section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero__stats {
    gap: 1rem;
  }

  .hero__stat {
    flex: 0 0 45%;
  }

  .hero__stat-value {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card__value {
    font-size: 1.25rem;
  }

  .stat-card__label {
    font-size: 0.75rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__title {
    margin-top: 1rem;
  }

  .bundesland-card {
    padding: 1rem;
  }

  .bundesland-card__name {
    font-size: 1rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-xl); }
.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-xl); }

/* ===== FILTER NOTICE ===== */
.filter-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.filter-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9375rem;
}

.filter-notice__clear {
    margin-left: 1rem;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.filter-notice__clear:hover {
    text-decoration: underline;
}

/* ===== STATIONS LIST ===== */
.stations-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.stations-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stations-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.stations-count {
    font-weight: 400;
    color: #64748b;
}

.stations-search {
    position: relative;
    width: 100%;
    max-width: 280px;
}

.stations-search__input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.9375rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stations-search__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.stations-search__input::placeholder {
    color: #94a3b8;
}

.stations-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.stations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stations-empty,
.stations-no-results {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    background: white;
    border-radius: 8px;
}

.station-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.station-card__content {
    flex: 1;
    padding: 1rem 1.25rem;
    min-width: 0;
}

.station-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.station-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.station-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.station-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.station-card__address,
.station-card__operator {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.station-card__address svg,
.station-card__operator svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #94a3b8;
}

.station-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    min-width: 90px;
}

.station-card__power {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    line-height: 1;
}

.station-card__power span {
    font-size: 0.875rem;
    font-weight: 500;
}

.station-card__power--fast {
    color: #d97706;
}

.station-card__connectors {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.375rem;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .stations-section {
        padding: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .stations-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stations-search {
        max-width: none;
    }
    
    .station-card {
        flex-direction: column;
    }
    
    .station-card__content {
        padding: 1rem;
    }
    
    .station-card__meta {
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 0.75rem 1rem;
        min-width: auto;
    }
    
    .station-card__power {
        font-size: 1.25rem;
    }
    
    .station-card__connectors {
        margin-top: 0;
    }
}

/* ===========================================
   KARTEN STYLES
   =========================================== */

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
}

.map-container--large {
    height: 500px;
}

.map-container--small {
    height: 300px;
}

/* Custom Marker */
.map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-marker svg {
    width: 60%;
    height: 60%;
    transform: rotate(45deg);
    color: white;
}

.map-marker--fast {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
}

.map-marker--normal {
    background: var(--primary);
}

/* Marker Cluster */
.marker-cluster-small {
    background-color: rgba(0, 102, 51, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(0, 102, 51, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(0, 102, 51, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(0, 102, 51, 0.8);
}

.marker-cluster-large {
    background-color: rgba(0, 102, 51, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(0, 102, 51, 0.8);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: white;
    line-height: 30px;
}

/* Popup Styles */
.map-popup {
    min-width: 200px;
    max-width: 280px;
}

.map-popup__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.map-popup__address {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.map-popup__operator {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.map-popup__power {
    margin-bottom: 6px;
}

.map-popup__badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
}

.map-popup__badge--fast {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: white;
}

.map-popup__connectors {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.map-popup__nav {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.map-popup__nav:hover {
    text-decoration: underline;
}

/* Leaflet Overrides */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px 14px;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--gray-400);
}
