/*
  MietWatch – Shared City Landing Page Styles
  Verwendet von: /muenchen, /frankfurt, /berlin, /hamburg, /koeln,
                 /stuttgart, /duesseldorf, /nuernberg, /rosenheim, /offenbach
  index.html benutzt eigenes Inline-CSS (nicht ändern).
  Stand: 2026-08-05
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', Times, serif; line-height: 1.12; text-wrap: balance; }

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #F8F7F4;
  --surface:    #FFFFFF;
  --surface-2:  #F1F0EC;
  --border:     #E5E2DA;
  --border-2:   #CBC7BC;
  --fg:         #1A1916;
  --fg-2:       #5C5850;
  --muted:      #9E9A90;
  --signal:     #E63000;
  --signal-bg:  #FFF2EE;
  --signal-mid: #FFC2B0;
  --signal-hi:  #BF2600;
  --nav-bg:     rgba(248, 247, 244, 0.92);
  --card-shadow: 0 1px 4px rgba(26, 25, 22, 0.08);
}

body {
  background: var(--ink);
  color: var(--fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

/* ── ANIMATIONS ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,63,26,0.5); }
  60%       { opacity: 0.55; transform: scale(0.72); box-shadow: 0 0 0 5px rgba(255,63,26,0); }
}

.live-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--signal); border-radius: 50%; flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  border: none; line-height: 1.2; text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover  { background: var(--signal-hi); transform: translateY(-1px); }
.btn-signal:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── EYEBROW / LABELS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--signal-bg); border: 1px solid var(--signal-mid);
  color: var(--signal); font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px 4px 8px; border-radius: 4px; margin-bottom: 20px;
}
.section-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--signal);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 58px; display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background 0.25s, border-bottom-color 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { max-width: 1140px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--fg); }
.logo-icon {
  width: 28px; height: 28px; background: var(--signal); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
}
.logo-dot {
  position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; background: var(--fg); border-radius: 50%;
  border: 2px solid var(--ink); animation: pulse-dot 2s ease-in-out infinite;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-text-links { display: flex; gap: 28px; }
.nav-text-links a { font-size: 13px; color: var(--fg-2); transition: color 0.15s; }
.nav-text-links a:hover { color: var(--fg); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 72px 0 0;
  font-size: 12px; color: var(--muted);
}
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '/'; color: var(--border-2); }
.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--fg-2); }
.breadcrumb [aria-current="page"] { color: var(--fg-2); }

/* ── HERO (City Pages) ── */
.city-hero {
  padding: clamp(28px, 5vh, 48px) 0 clamp(56px, 9vh, 96px);
}
.city-hero-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
}
.city-headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08; letter-spacing: -0.03em; color: var(--fg);
  margin-bottom: 16px; max-width: 760px;
}
.city-sub {
  font-size: 17px; color: var(--fg-2); line-height: 1.65;
  margin-bottom: 32px; max-width: 620px;
}
.city-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.city-cta-note { font-size: 12px; color: var(--muted); }
.city-cta-note span::before { content: '✓ '; color: var(--signal); font-weight: 700; }

/* ── STATS BAR ── */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-cell { padding: 36px 0; display: flex; flex-direction: column; gap: 5px; }
.stat-cell + .stat-cell { padding-left: 36px; border-left: 1px solid var(--border); }
.stat-cell:not(:last-child) { padding-right: 36px; }
.stat-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.5vw, 46px); line-height: 1; letter-spacing: -0.03em; color: var(--fg);
}
.stat-number .accent { color: var(--signal); }
.stat-label { font-size: 13px; color: var(--fg-2); font-weight: 600; margin-top: 2px; }
.stat-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── SECTIONS ── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.025em; color: var(--fg); margin-bottom: 14px;
}
.section-sub { font-size: 15px; color: var(--fg-2); line-height: 1.65; max-width: 580px; margin-bottom: 40px; }

/* ── DISTRICT CARDS ── */
.districts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.district-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--card-shadow); transition: border-color 0.2s;
}
.district-card:hover { border-color: var(--border-2); }
.district-emoji { font-size: 20px; line-height: 1; }
.district-name { font-weight: 800; font-size: 14px; color: var(--fg); }
.district-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.district-tag {
  display: inline-block; margin-top: 4px;
  font-size: 10px; font-weight: 700; color: var(--signal);
  background: var(--signal-bg); border: 1px solid var(--signal-mid);
  padding: 2px 8px; border-radius: 3px;
}

/* ── PORTALS LIST ── */
.portals-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.portal-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--fg-2);
  box-shadow: var(--card-shadow);
}
.portal-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }

/* ── HOW IT WORKS (3 Steps) ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border-radius: 8px; overflow: hidden; }
.step-cell { background: var(--surface); padding: 32px 28px 36px; }
.step-number { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--signal); font-family: 'Cascadia Code', 'Fira Code', ui-monospace, monospace; margin-bottom: 16px; }
.step-icon { width: 42px; height: 42px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-icon svg { width: 20px; height: 20px; color: var(--fg-2); }
.step-title { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.015em; }
.step-desc { font-size: 13px; color: var(--fg-2); line-height: 1.6; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 3px; font-size: 12px; font-family: 'Cascadia Code', 'Fira Code', ui-monospace, monospace; color: var(--fg-2); }

/* ── PRICING (compact) ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px 20px; box-shadow: var(--card-shadow); }
.price-card.featured { border-color: var(--signal-mid); background: var(--signal-bg); position: relative; }
.featured-badge { position: absolute; top: -1px; right: 18px; background: var(--signal); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px 4px; border-radius: 0 0 5px 5px; }
.price-tier { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.price-card.featured .price-tier { color: var(--signal); }
.price-amount { font-family: Georgia, 'Times New Roman', serif; font-size: 42px; letter-spacing: -0.04em; color: var(--fg); line-height: 1; margin-bottom: 4px; }
.price-amount sup { font-size: 18px; vertical-align: super; line-height: 0; }
.price-period { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.price-features li { font-size: 13px; color: var(--fg-2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.price-features li::before { content: '✓'; color: var(--signal); font-weight: 700; flex-shrink: 0; }
.price-features li.dim { color: var(--muted); }
.price-features li.dim::before { color: var(--border-2); }
.price-card .btn { width: 100%; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-item { background: var(--surface); border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px;
  font-size: 14px; font-weight: 700; color: var(--fg); line-height: 1.4;
  list-style: none; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
details[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 24px 20px; font-size: 13px; color: var(--fg-2); line-height: 1.7; }

/* ── CITY FOOTER LINKS ── */
.city-links-section { background: var(--surface-2); border-top: 1px solid var(--border); padding: 40px 0; }
.city-links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
}
.city-link-pill {
  display: block; padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--fg-2); text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.city-link-pill:hover { border-color: var(--signal-mid); color: var(--signal); }
.city-link-pill.active { border-color: var(--signal-mid); color: var(--signal); font-weight: 700; background: var(--signal-bg); }

/* ── ALERT NOTICE ── */
.alert-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--signal-bg); border: 1px solid var(--signal-mid);
  border-radius: 7px; padding: 16px 20px; font-size: 13px; color: var(--fg-2); line-height: 1.6;
}
.alert-note strong { color: var(--fg); }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--fg-2); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--fg-2); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-cell + .stat-cell { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .stat-cell:not(:last-child) { padding-right: 0; padding-bottom: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-text-links { display: none; }
}
@media (max-width: 580px) {
  .city-cta-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot, .logo-dot { animation: none; }
}
