:root {
  --red: #c1121f;
  --red-dark: #8f1218;
  --orange: #e4691a;
  --gold: #f5a800;
  --ink: #23282b;
  --muted: #667079;
  --line: #e4e7ea;
  --bg: #ffffff;
  --grad: linear-gradient(95deg, #b4141a 0%, #d94f16 46%, #f5a800 100%);
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
a { color: var(--red); }

/* ── Header ── */
.topbar { background: #fff; position: relative; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { height: 46px; width: auto; display: block; }
.top-actions { display: flex; align-items: center; gap: 20px; color: #3a4247; }
.lang { font-size: 14px; font-weight: 600; }
.ic { display: inline-flex; cursor: default; color: #3a4247; }
.ic svg { width: 22px; height: 22px; }
.accent-line { height: 6px; background: var(--grad); }

/* ── Hero ── */
.hero { position: relative; padding-bottom: 90px; }
.hero-img {
  position: absolute; inset: 0 0 90px 0;
  background: url("/img/hero.jpg") center/cover no-repeat;
}
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.hero-text { position: relative; padding: 54px 0 90px; color: #fff; }
.hero-kicker { margin: 0 0 6px; font-size: 20px; color: rgba(255,255,255,.85); }
.hero-title { margin: 0; font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* Suchbox */
.searchbox {
  position: relative;
  margin-top: -30px;
  background: var(--grad);
  border-radius: 6px;
  padding: 30px 34px 34px;
  color: #fff;
  box-shadow: var(--shadow);
}
.sb-kicker { margin: 0; font-size: 22px; }
.sb-title { margin: 2px 0 20px; font-size: 22px; font-weight: 800; }
.sb-form { display: flex; gap: 14px; flex-wrap: wrap; }
.sb-select { position: relative; }
.sb-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px;
  padding: 12px 40px 12px 20px; font-size: 15px; cursor: pointer; min-width: 170px;
}
.sb-select select option { color: #23282b; }
.sb-select .chev { position: absolute; right: 18px; top: 50%; transform: translateY(-60%); pointer-events: none; font-size: 18px; }
.sb-input { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.sb-input .mag { position: absolute; left: 16px; color: rgba(255,255,255,.9); display: inline-flex; }
.sb-input .mag svg { width: 18px; height: 18px; }
.sb-input input {
  flex: 1; background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px;
  padding: 12px 18px 12px 44px; font-size: 16px; outline: none;
}
.sb-input input::placeholder { color: rgba(255,255,255,.85); }
.sb-input input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.sb-btn {
  background: var(--red-dark); color: #fff; border: none; border-radius: 999px;
  padding: 0 30px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.sb-btn:hover { background: #750f14; }
.sb-btn:disabled { opacity: .65; cursor: default; }

/* ── Blöcke ── */
.block { padding: 40px 0 8px; }
.sec-title { font-size: 26px; font-weight: 800; margin: 0 0 20px; position: relative; }
.sec-title strong { color: var(--red); }
.sec-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 10px; }
.sub-title { font-size: 18px; margin: 26px 0 14px; }

/* Service-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; font-weight: 600; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow);
}
.tile:hover { border-color: var(--red); color: var(--red); }
.tile .ext { color: var(--red); }
.more-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--red); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Aktuelles */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-img { height: 150px; }
.news-img.n1 { background: linear-gradient(135deg,#b4141a,#e4691a); }
.news-img.n2 { background: linear-gradient(135deg,#e4691a,#f5a800); }
.news-img.n3 { background: linear-gradient(135deg,#8f1218,#c1121f); }
.news-card h3 { font-size: 17px; margin: 14px 16px 6px; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0 16px 16px; }

/* ── Ergebnisse ── */
.results { padding-top: 34px; }
.result-q { color: var(--muted); font-weight: 600; }
.answer {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.answer p { margin: 0 0 12px; } .answer p:last-child { margin-bottom: 0; }
.answer ul { margin: 4px 0 14px; padding-left: 22px; } .answer li { margin: 5px 0; }
.answer strong { color: var(--red-dark); }
.cite { color: var(--red); font-weight: 700; text-decoration: none; font-size: .82em; vertical-align: super; padding: 0 1px; }
.cite:hover { text-decoration: underline; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.source-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.source-card:target { border-color: var(--red); }
.source-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.source-title { font-weight: 700; margin: 0 0 2px; }
.source-crumb { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.source-snippet { color: var(--ink); font-size: 14px; margin: 0 0 12px; }
.source-link { font-weight: 600; font-size: 14px; color: var(--red); text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.reset { margin-top: 18px; } .reset a { color: var(--red); font-weight: 600; text-decoration: none; }
.status { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: #fdeceb; color: var(--red-dark); }
.status.error { background: #fdecec; color: #a12626; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(193,18,31,.3); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.city-footer { margin-top: 46px; background: #2b2f33; color: #e9ecee; }
.city-footer .wrap { padding: 40px 0 34px; }
.cf-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.cf-col h3 { color: var(--gold); font-size: 17px; margin: 0 0 14px; }
.cf-col p { margin: 0 0 12px; font-size: 14px; color: #cfd4d7; }
.cf-col ul { list-style: none; margin: 0; padding: 0; }
.cf-col li { margin: 0 0 11px; }
.cf-col a { color: #e9ecee; text-decoration: none; font-size: 14px; cursor: default; }
.cf-col a:hover { text-decoration: underline; }
.cf-note { color: rgba(233,236,238,.6); font-size: 12px; margin: 28px 0 0; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .cf-cols { grid-template-columns: repeat(2, 1fr); }
  .sb-form { flex-direction: column; }
  .sb-input { min-width: 0; }
}
