/*
Theme Name: Strom-Wechsel
Theme URI: https://www.strom-wechsel.info
Author: Localmates.de
Author URI: https://localmates.de
Description: Modernes Stromvergleichsportal mit KI-generierten Stadtseiten, Check24-Integration, Schema.org & maximaler SEO-Performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: strom-wechsel
Tags: energy, comparison, affiliate, seo, landing-pages
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --color-primary:     #4CAF50;
  --color-primary-dk:  #2E7D32;
  --color-dark:        #101828;
  --color-dark-2:      #1D2939;
  --color-light:       #F5F7FA;
  --color-white:       #FFFFFF;
  --color-price:       #FFB300;
  --color-text:        #344054;
  --color-muted:       #667085;
  --color-border:      #E4E7EC;
  --color-success:     #12B76A;
  --color-card-bg:     #FFFFFF;

  --font-head:   'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-number: 'Manrope', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(16,24,40,0.08), 0 1px 2px rgba(16,24,40,0.06);
  --shadow-md:   0 4px 8px -2px rgba(16,24,40,0.10), 0 2px 4px -2px rgba(16,24,40,0.06);
  --shadow-lg:   0 12px 16px -4px rgba(16,24,40,0.08), 0 4px 6px -2px rgba(16,24,40,0.03);
  --shadow-xl:   0 20px 24px -4px rgba(16,24,40,0.08), 0 8px 8px -4px rgba(16,24,40,0.03);

  --transition:  all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:       1200px;
  --max-w-narrow: 780px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

.text-muted { color: var(--color-muted); }
.text-price { color: var(--color-price); font-family: var(--font-number); font-weight: 700; }
.text-green { color: var(--color-primary); }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--max-w-narrow); }

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--lg { padding: clamp(4rem, 8vw, 7rem) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76,175,80,0.35);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--color-primary-dk);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--color-light);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon svg { color: #fff; }

.site-logo span.accent { color: var(--color-primary); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--color-primary); background: rgba(76,175,80,0.08); }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0D2818 50%, #101828 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(76,175,80,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(76,175,80,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: #fff; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76,175,80,0.2);
  border: 1px solid rgba(76,175,80,0.4);
  color: #a8e6ab;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}

.hero-trust-item svg { color: var(--color-primary); flex-shrink: 0; }

.hero-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.star { color: var(--color-price); font-size: 1.125rem; }
.rating-text { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; }

/* =========================================================
   HERO CALCULATOR CARD
   ========================================================= */
.hero-calc-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(76,175,80,0.08);
  position: relative;
}

.hero-calc-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, var(--color-primary), transparent 60%);
  z-index: -1;
  opacity: 0.3;
}

.calc-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.calc-header h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.calc-header p { font-size: 0.875rem; color: var(--color-muted); }

.calc-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-dark);
  background: var(--color-light);
  transition: var(--transition);
  font-size: 0.9375rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.calc-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.0625rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.calc-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

/* =========================================================
   CHECK24 WIDGET SECTION
   ========================================================= */
.check24-section {
  background: var(--color-light);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.check24-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  min-height: 400px;
}

.check24-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.check24-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76,175,80,0.1);
  color: var(--color-primary-dk);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* =========================================================
   ADVANTAGES / FEATURES
   ========================================================= */
.advantages { background: var(--color-white); }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; color: var(--color-muted); }

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(76,175,80,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.feature-card h3 { font-size: 1.0625rem; margin-bottom: 0.625rem; }
.feature-card p { font-size: 0.9375rem; color: var(--color-muted); margin: 0; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works {
  background: linear-gradient(180deg, var(--color-light) 0%, #fff 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-border) 100%);
}

.step-card { text-align: center; position: relative; }

.step-number {
  width: 52px; height: 52px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(76,175,80,0.4);
}

.step-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9375rem; color: var(--color-muted); }

/* =========================================================
   PROVIDER LOGOS
   ========================================================= */
.providers { background: var(--color-white); }

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

.provider-card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: var(--transition);
  filter: grayscale(40%);
}

.provider-card:hover {
  filter: grayscale(0%);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.provider-card img { max-height: 40px; object-fit: contain; }
.provider-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-section {
  background: var(--color-dark);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-number);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}

/* =========================================================
   BLOG / GUIDE SECTION
   ========================================================= */
.blog-section { background: var(--color-light); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

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

.blog-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: var(--color-border);
}

.blog-card-body { padding: 1.5rem; }

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section { background: var(--color-white); }

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(76,175,80,0.08); }

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  transition: var(--transition);
}

.faq-question:hover { background: rgba(76,175,80,0.04); }

.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-muted);
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 600px; }

/* =========================================================
   TRUST / EEAT SECTION
   ========================================================= */
.trust-section {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-top: 1px solid rgba(76,175,80,0.15);
  border-bottom: 1px solid rgba(76,175,80,0.15);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem 1rem;
}

.trust-icon {
  width: 56px; height: 56px;
  background: rgba(76,175,80,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.trust-item h4 { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.trust-item p { font-size: 0.8125rem; color: var(--color-muted); margin: 0; }

/* =========================================================
   AUTHOR BOX (EEAT)
   ========================================================= */
.author-box {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--color-border);
}

.author-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.author-info .author-role { font-size: 0.8125rem; color: var(--color-primary); font-weight: 600; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.875rem; color: var(--color-muted); margin: 0; }

/* =========================================================
   CITY LANDING PAGE SPECIFIC
   ========================================================= */
.city-hero {
  background: linear-gradient(135deg, #0D1F0F 0%, var(--color-dark) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.city-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(76,175,80,0.12) 0%, transparent 70%);
}

.city-breadcrumb {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.city-breadcrumb a { color: rgba(255,255,255,0.6); }
.city-breadcrumb a:hover { color: var(--color-primary); }
.city-breadcrumb .sep { color: rgba(255,255,255,0.3); }

.city-hero h1 { color: #fff; }
.city-hero p { color: rgba(255,255,255,0.7); }

.city-savings {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  color: #a8e6ab;
  font-size: 1rem;
  font-weight: 600;
}

.city-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.city-main { min-width: 0; }

.city-sidebar {
  position: sticky;
  top: 90px;
}

.sticky-calc-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.city-article {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.city-article h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.city-article h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.city-article p { margin-bottom: 1.25rem; }

.city-article ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.city-article ul li {
  padding: 0.375rem 0 0.375rem 1.75rem;
  position: relative;
  color: var(--color-text);
}

.city-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.city-info-box {
  background: rgba(76,175,80,0.06);
  border: 1px solid rgba(76,175,80,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.city-info-box h4 {
  color: var(--color-primary-dk);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   CITY CARDS / ARCHIVE
   ========================================================= */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.city-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.city-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.city-card-icon {
  width: 40px; height: 40px;
  background: rgba(76,175,80,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.city-card-info { min-width: 0; }
.city-card h4 {
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-card p { font-size: 0.75rem; color: var(--color-muted); margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { color: #fff; }

.footer-desc {
  font-size: 0.9375rem;
  margin-top: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
  max-width: 800px;
}

/* =========================================================
   ADMIN STYLES (AI Generator)
   ========================================================= */
.sw-admin-wrap { max-width: 900px; }
.sw-admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sw-admin-card h2 { font-size: 1.125rem; margin-bottom: 1rem; color: #111827; }
.sw-progress { background: #f3f4f6; border-radius: 4px; height: 8px; overflow: hidden; margin: 1rem 0; }
.sw-progress-bar { height: 100%; background: #4CAF50; border-radius: 4px; transition: width 0.3s; }
.sw-log { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 4px; padding: 1rem; font-family: monospace; font-size: 0.8125rem; max-height: 300px; overflow-y: auto; }
.sw-log-entry { padding: 0.25rem 0; border-bottom: 1px solid #f3f4f6; }
.sw-log-entry.success { color: #16a34a; }
.sw-log-entry.error { color: #dc2626; }
.sw-log-entry.info { color: #2563eb; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-calc-card { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .city-content-grid { grid-template-columns: 1fr; }
  .city-sidebar { position: static; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

/* Mobile nav open */
.mobile-nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 72px 0 0;
  background: rgba(255,255,255,0.98);
  padding: 2rem;
  gap: 0.5rem;
  z-index: 999;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.55s ease both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* Intersection Observer animated elements */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revealed { opacity: 1; transform: none; }

/* =========================================================
   PRINT / ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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