/* ==========================================================================
   Gasprüfstellen Österreich – Design System
   ========================================================================== */

:root {
  /* Brand */
  --brand-900: #0b3536;
  --brand-800: #0e4344;
  --brand-700: #14616a;
  --brand-600: #187a80;
  --brand-500: #1c8c93;
  --brand-100: #e3f2f1;

  --accent-500: #eb6834;
  --accent-600: #d95926;
  --accent-100: #fdece1;

  /* Surfaces & ink (Chrome/Ink per Design-System) */
  --page: #f7f8f7;
  --surface: #ffffff;
  --surface-muted: #f1f3f2;
  --ink-primary: #0b1211;
  --ink-secondary: #4c5654;
  --ink-muted: #838d8b;
  --border: rgba(11, 18, 17, 0.10);
  --border-strong: rgba(11, 18, 17, 0.16);

  --good: #0ca30c;
  --good-bg: #e7f7e7;
  --critical: #d03b3b;
  --critical-bg: #fbe9e9;
  --warning-bg: #fff6e0;
  --warning-ink: #8a5a00;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 17, 0.06), 0 1px 1px rgba(11, 18, 17, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 18, 17, 0.08), 0 2px 6px rgba(11, 18, 17, 0.05);
  --shadow-lg: 0 20px 48px rgba(11, 18, 17, 0.14);

  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--ink-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-secondary); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink-primary); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn-ghost { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: var(--critical); color: #fff; }
.btn-danger:hover { background: #b52f2f; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--brand-900);
}
.brand .flame {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-500);
  flex-shrink: 0;
}
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--surface-muted); color: var(--brand-800); text-decoration: none; }
.main-nav a.active { background: var(--brand-100); color: var(--brand-800); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; transform: translateY(-110%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; cursor: pointer; }
  .header-cta { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(28,140,147,.25), transparent),
              linear-gradient(160deg, var(--brand-900), var(--brand-700) 65%, var(--brand-600));
  color: #fff;
  padding: 76px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .35;
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 760px; margin-bottom: 18px; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 18px; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-search {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  gap: 8px;
  max-width: 640px;
  flex-wrap: wrap;
}
.hero-search input, .hero-search select {
  border: none;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-primary);
  flex: 1 1 160px;
  min-width: 0;
}
.hero-search input:focus, .hero-search select:focus { outline: 2px solid var(--brand-500); }
.hero-search button { flex: 0 0 auto; }

/* ---------- Stat tiles ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.stat-tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
  border: 1px solid var(--border);
}
.stat-tile .value {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand-900);
  font-variant-numeric: proportional-nums;
  letter-spacing: -0.02em;
}
.stat-tile .label { color: var(--ink-muted); font-size: 13.5px; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }
.section-head .kicker { color: var(--accent-600); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-alt { background: var(--surface); }

/* ---------- Bundesland grid (Startseite) ---------- */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.bl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-500); text-decoration: none; }
.bl-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bl-card .name { font-weight: 700; color: var(--ink-primary); font-size: 16px; }
.bl-card .count { color: var(--ink-muted); font-size: 13.5px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; position: relative; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-100); color: var(--accent-600); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- Filter bar (Prüfstellen-Seite) ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
}
.filter-bar input[type="text"], .filter-bar select {
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink-primary);
}
.filter-bar input[type="text"] { flex: 1 1 220px; }
.filter-bar select { flex: 0 1 200px; }
.filter-bar .result-count { margin-left: auto; font-size: 13.5px; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }

.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 13.5px; font-weight: 600; color: var(--ink-secondary); background: var(--surface); cursor: pointer;
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip.active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

/* ---------- Station cards ---------- */
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
/* In-Feed-Werbeblock: über die volle Breite des Rasters, nicht in eine einzelne Karten-Spalte gequetscht */
.station-grid .ad-slot-wrap { grid-column: 1 / -1; }
.station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.station-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.station-card h3 { font-size: 16.5px; margin: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--brand-100); color: var(--brand-700); white-space: nowrap; }
.station-card .addr { font-size: 14px; color: var(--ink-secondary); }
.station-card .meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-top: 4px; }
.station-card .meta a { color: var(--ink-primary); display: flex; align-items: center; gap: 8px; }
.station-card .meta a:hover { color: var(--brand-700); }
.station-card .meta svg { flex-shrink: 0; color: var(--brand-600); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-muted); }

/* ---------- Seitenlayout mit Sidebar (für Werbung) ---------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.layout-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 980px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .layout-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .layout-sidebar > * { flex: 1 1 260px; }
}
.layout-sidebar .ad-banner img { height: 250px; object-fit: contain; background: var(--surface); }

/* ---------- Ad banners ---------- */
.ad-slot { margin: 26px 0; }
.ad-banner {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
/* Balken/Header-Banner: volle Breite, NICHTS wird abgeschnitten (object-fit:contain) –
   die Höhe richtet sich nach dem Bild selbst, mit 600px als Obergrenze für Sicherheit. */
.ad-banner img { width: 100%; display: block; max-height: 600px; object-fit: contain; background: var(--surface); }
.ad-banner .ad-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(11,18,17,.65); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
/* In-Feed-Banner sieht jetzt genauso aus wie der Header-Banner: volle Breite, kein kleines Kärtchen mehr. */

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.75); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a { color: rgba(255,255,255,.72); display: block; padding: 6px 0; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.content-page { padding: 56px 0 80px; }
.content-page .prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 22px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; color: var(--ink-secondary); }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }

.contact-form { display: grid; gap: 14px; max-width: 480px; }
.contact-form label { font-size: 13.5px; font-weight: 700; color: var(--ink-secondary); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; font-family: inherit; background: var(--surface-muted);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; z-index: 100; }
.skip-link:focus { left: 10px; }
