/* Homebar – Swiss. Weiß, Schwarz, Rot. Raster, Linien, große Grotesk. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fff;
  --ink: #000;
  --red: #ff3b1f;
  --red-soft: #ffe4de;
  --muted: #6f6f6f;
  --off: #c8c8c8;
  --hair: #e6e6e6;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 1rem/1.45 var(--font);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: .5rem; z-index: 60; background: var(--ink); color: #fff; padding: .5rem .8rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Kopf (Unterseiten) ---------- */

.site-header { border-bottom: 2px solid var(--ink); position: relative; z-index: 45; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: .9rem; }
.wordmark { font-weight: 900; font-size: 1.9rem; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.dot { color: var(--red); }
.site-header .search { flex: 0 1 30rem; }

/* ---------- Startseite ---------- */

.masthead { padding-block: clamp(2rem, 6vw, 4.5rem) 0; position: relative; z-index: 45; }
.masthead .top {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem;
  border-bottom: 4px solid var(--ink); padding-bottom: clamp(.8rem, 2vw, 1.4rem);
}
.masthead h1 {
  margin: 0; font-weight: 900;
  font-size: clamp(4rem, 14vw, 13rem); line-height: .8; letter-spacing: -.07em;
  margin-left: -.05em; padding-bottom: .06em;
}
.tagline { margin: 0; font-weight: 800; font-size: clamp(1rem, 1.9vw, 1.6rem); line-height: 1.1; text-align: right; letter-spacing: -.02em; }
.masthead .search { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 48rem; }

/* ---------- Suche ---------- */

.search { position: relative; }
.search form { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 600 1.05rem/1.2 var(--font); letter-spacing: -.01em;
  padding: .75rem 0; outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #a3a3a3; font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 800 1.4rem/1 var(--font); padding: .3rem 0 .3rem 1rem;
  transition: color .15s, transform .2s var(--ease);
}
.search button:hover { color: var(--red); transform: translateX(3px); }
.search.is-large input { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.03em; padding: .9rem 0; }
.search.is-large button { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  list-style: none; margin: 0; padding: 0;
  background: var(--bg); border: 2px solid var(--ink);
  max-height: 70vh; overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 1rem; border-top: 1px solid var(--hair); font-weight: 700;
}
.suggest .s-meta { color: var(--muted); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.suggest li.is-active a, .suggest li a:hover { background: var(--red); color: #fff; }
.suggest li.is-active .s-meta, .suggest li a:hover .s-meta { color: #fff; }
.suggest .s-head { padding: .7rem 1rem .4rem; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: #f4f4f4; }
.suggest .s-empty { padding: .8rem 1rem; color: var(--muted); }

/* ---------- Abschnittsköpfe ---------- */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: .6rem; border-top: 2px solid var(--ink);
}
.kicker { margin: 0; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.section-head .count { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.page-title { padding-block: clamp(1.8rem, 5vw, 3.5rem) 0; }
.crumbs { margin: 0 0 1.2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.page-title .kicker { border-top: 2px solid var(--ink); padding-top: .6rem; }
.page-title h1 {
  margin: .6rem 0 0; font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 10rem); line-height: .82; letter-spacing: -.065em;
  margin-left: -.04em; overflow-wrap: anywhere; padding-bottom: .1em;
}
.page-title h1 em { font-style: normal; color: var(--red); }
.page-title .lede { margin: .8rem 0 0; font-weight: 600; font-size: 1.05rem; }
.page-title .lede span { color: var(--muted); font-weight: 500; }

/* ---------- A–Z: Raster mit Linien ---------- */

.az {
  --n: 27; --h: 14;
  display: grid; grid-template-columns: repeat(var(--h), minmax(0, 1fr));
  gap: 1px; background: var(--ink); border: 1px solid var(--ink);
  margin: 1.4rem 0 0; padding: 0; list-style: none;
}
@media (min-width: 860px) { .az { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } .az .fill { display: none; } }
.az li { background: var(--bg); }
.az a, .az span {
  display: grid; place-items: center; height: 2.6rem;
  font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s;
}
.az a:hover { background: var(--ink); color: #fff; }
.az a[aria-current] { background: var(--red); color: #fff; }
.az span { color: var(--off); }
.az a.digits { font-size: .82rem; white-space: nowrap; letter-spacing: -.03em; }

.az-sticky { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-block: .6rem; }
.az-sticky .az { margin: 0; }

/* Große Städte: A–Z-Kacheln */
.az-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
  margin: 2rem 0 0; padding: 0; list-style: none;
}
.az-grid li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.az-grid a, .az-grid span {
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1; padding: .7rem .8rem; transition: background .15s, color .15s;
}
.az-grid b { font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: .85; letter-spacing: -.06em; }
.az-grid small { font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.az-grid a:hover { background: var(--red); color: #fff; }
.az-grid span { color: var(--off); }

/* ---------- Gruppen: Buchstabe links, Liste rechts ---------- */

.groups { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.group {
  display: grid; grid-template-columns: 1fr; gap: .2rem 2rem;
  border-top: 2px solid var(--ink); padding: .5rem 0 2.2rem;
}
@media (min-width: 860px) {
  .group { grid-template-columns: minmax(8rem, 1fr) 5fr; }
  .group-letter { position: sticky; top: 4.6rem; align-self: start; }
}
.group-letter {
  margin: 0; font-weight: 900; font-size: clamp(4.2rem, 8vw, 7.5rem);
  line-height: .8; letter-spacing: -.07em; padding-top: .35rem;
}
.group ul { list-style: none; margin: 0; padding: 0; }

/* Städte in Spalten */
.cities-list { columns: 1; column-gap: 2.5rem; }
@media (min-width: 560px) { .cities-list { columns: 2; } }
@media (min-width: 1100px) { .cities-list { columns: 3; } }
.cities-list li { break-inside: avoid; }
.city-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--ink);
  font-weight: 750; font-size: 1.2rem; letter-spacing: -.025em;
}
.city-link .n { font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.city-link:hover { color: var(--red); }

/* ---------- Locations: Tabellenzeilen ---------- */

.loc {
  display: grid; grid-template-columns: minmax(0, 1fr) 11rem 10rem; align-items: baseline; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--ink);
}
.loc-main { min-width: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.loc-name {
  font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.035em; line-height: 1.15;
  transition: color .15s;
}
.loc-name .arrow { display: inline-block; margin-left: .2em; font-size: .75em; opacity: 0; transform: translate(-4px, 4px); transition: opacity .15s, transform .2s var(--ease); }
.loc-name:hover { color: var(--red); }
.loc-name:hover .arrow, .loc-name:focus-visible .arrow { opacity: 1; transform: none; }
.loc-ig { font-weight: 800; font-size: .7rem; letter-spacing: .04em; border: 1.5px solid currentColor; padding: .05rem .3rem; }
.loc-ig:hover { color: var(--red); }
.loc-cat { font-weight: 500; font-size: .95rem; }
.loc-rating { text-align: right; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loc-rating .star { color: var(--red); }
.loc-rating small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: 0; }
.loc:target { animation: flash 2.4s var(--ease); }
@keyframes flash { 0%, 40% { background: var(--red-soft); } 100% { background: transparent; } }

@media (max-width: 700px) {
  .loc { grid-template-columns: minmax(0, 1fr) auto; row-gap: .15rem; padding: .75rem 0; }
  .loc-main { grid-column: 1 / -1; }
  .loc-cat { font-size: .88rem; }
  .loc-rating { font-size: .95rem; }
  .loc-rating small { display: inline; margin-left: .3rem; }
}

.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding-top: .7rem; border-top: 2px solid var(--ink); font-weight: 800;
}
.pager a:hover { color: var(--red); }

.empty { margin: 2rem 0; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; max-width: 44rem; }
.empty a { color: var(--red); }
.note { color: var(--muted); font-size: .85rem; margin: 1.5rem 0 0; }
.note a { text-decoration: underline; }

/* ---------- Suchergebnisse ---------- */

.results { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 960px) { .results { grid-template-columns: 1fr 2fr; } }
.results .kicker { border-top: 2px solid var(--ink); padding-top: .6rem; margin-bottom: .2rem; }
.results .loc { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- CTA ---------- */

.cta {
  margin-top: clamp(3rem, 7vw, 6rem); border-top: 4px solid var(--ink);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  padding-block: 1rem clamp(3rem, 6vw, 5rem);
}
.cta h2 { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .85; letter-spacing: -.065em; }
.cta h2 em { font-style: normal; color: var(--red); }
.cta p { margin: 1rem 0 0; font-weight: 600; max-width: 32rem; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: 800 1.05rem/1 var(--font); letter-spacing: -.01em;
  padding: 1.05rem 1.3rem; cursor: pointer; min-width: 15rem;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: var(--bg); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Formular ---------- */

.form { max-width: 44rem; margin-top: 2rem; }
.field { margin: 0 0 1.6rem; }
.field label { display: block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.field label .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%; font: 600 1.25rem/1.3 var(--font); letter-spacing: -.02em; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  padding: .55rem 0; border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #b3b3b3; font-weight: 500; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus { border-color: var(--red); }
.field .err { color: var(--red); font-weight: 700; font-size: .9rem; margin-top: .35rem; }
.field.has-err input, .field.has-err select { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-left: 6px solid var(--red); background: var(--red-soft); padding: .8rem 1rem; margin: 0 0 1.5rem; font-weight: 600; }
.thanks { font-weight: 900; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; letter-spacing: -.05em; max-width: 46rem; margin: 2rem 0; }

/* ---------- Textseiten ---------- */

.prose { max-width: 46rem; padding-bottom: 3rem; margin-top: 1.5rem; }
.prose h2 { font-weight: 900; font-size: 1.6rem; letter-spacing: -.04em; margin: 2.4rem 0 .5rem; padding-top: .5rem; border-top: 2px solid var(--ink); }
.prose p { font-weight: 500; }
.placeholder { background: var(--red-soft); padding: 0 .3em; }

/* ---------- Fuß ---------- */

.site-footer { background: var(--ink); color: #fff; margin-top: clamp(3rem, 7vw, 6rem); padding-block: 2.5rem 2rem; }
.site-footer.after-cta { margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-footer .wordmark { font-size: 2.6rem; display: inline-block; margin-bottom: .6rem; }
.site-footer p { margin: 0; font-weight: 600; max-width: 30rem; }
.site-footer nav { display: grid; gap: .45rem; align-content: start; font-weight: 700; }
.site-footer nav a:hover { color: var(--red); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 1rem; color: #9a9a9a; font-size: .78rem; font-weight: 500; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Mobil ---------- */

@media (max-width: 700px) {
  .site-header .wrap { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .8rem .5rem; }
  .site-header .search { flex: 1 1 100%; }
  .masthead .top { grid-template-columns: 1fr; }
  .tagline { text-align: left; display: flex; gap: .4rem; flex-wrap: wrap; }
  .tagline br { display: none; }
  .az a, .az span { height: 2.3rem; font-size: .92rem; }
  .group { padding-bottom: 1.6rem; }
  .group-letter { font-size: 4rem; padding-bottom: .3rem; }
  .btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
