/* ── Städte-Struktur (Vorgabe Valentin 03.11.2026): Ratgeber nach Themen und Städten, Startseite „Hochzeitsfotografen nach Stadt“,
      Fußzeile „Städte“. Global geladen (layout.tsx), weil die Fußzeile auf jeder Seite steht. ───────────────────────────────── */

/* ── Ratgeber-Übersicht: Abschnitte ─────────────────────────────────────── */
/* Inhalt bündig mit dem Kopf (Kopf: .in mit 24 px, Übersicht hatte 16 px) */
@media (min-width: 861px) { .in.bl-idx { padding-left: 24px; padding-right: 24px; } }
.rg-sek { margin-top: 48px; }
.rg-kopf { margin: 0 0 18px; max-width: 760px; }
.rg-kopf h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; margin: 0; }
.rg-kopf p { margin: 6px 0 0; color: var(--fg2); font-size: 16px; line-height: 1.5; }
.rg-zahl { display: inline-block; vertical-align: .18em; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--panel2); color: var(--fg3); font: 600 13px/1.5 var(--ff); }

/* Ratgeber nach Stadt: kompakte Kacheln – ganze Kachel = großer Ratgeber, Pille „n Artikel“ = Sprung zur Gruppe der Stadt */
.rg-staedte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.rg-stadt { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.rg-stadt:hover { border-color: var(--line2); box-shadow: var(--sh); transform: translateY(-2px); }
.rg-stadt:focus-within { border-color: var(--green2); }
.rg-stadt-a { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.rg-stadt-a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rg-stadt-a:hover, .rg-stadt-a:focus { text-decoration: none; }
.rg-stadt-a:focus-visible { outline: none; }
.rg-stadt-a:focus-visible::after { outline: 2px solid var(--green); outline-offset: 2px; }
.rg-stadt-a b { font: 700 17px/1.25 var(--fd); color: var(--fg); -webkit-hyphens: auto; hyphens: auto; }
.rg-stadt-a span { font-size: 13.5px; font-weight: 600; color: var(--green); }
.rg-stadt-n { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--panel2); color: var(--fg2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rg-stadt-n:hover { background: var(--mint); color: var(--green); text-decoration: none; }
/* Tippfläche der Pille unsichtbar auf ≈ 44 px Höhe vergrößert (sichtbar bleibt die kleine Pille) */
.rg-stadt-n::after { content: ""; position: absolute; inset: -10px -8px; }
/* ab 13 Städten (alle Großstädte mit Ratgeber) am Desktop zwei volle Reihen à 7 wie auf der Startseite */
@media (min-width: 1100px) {
  .rg-staedte:has(> li:nth-child(13)) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Gruppen (Themen und Städte) */
.rg-gruppe { margin-top: 32px; scroll-margin-top: 96px; }
.rg-kopf + .rg-gruppe { margin-top: 0; }
.rg-gkopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.rg-gtitel { font-size: 22px; line-height: 1.25; margin: 0 0 14px; }
.rg-gkopf .rg-gtitel { margin: 0; }
.rg-glink { font-size: 14.5px; font-weight: 600; }
.rg-unter { margin-top: 24px; scroll-margin-top: 96px; }
.rg-utitel { font-size: 17px; line-height: 1.3; margin: 0 0 12px; color: var(--fg); }
.rg-unav { margin: 18px 0 0; }
.bl-card :is(h4, h5) { font-size: 17px; line-height: 1.3; margin: 6px 0; }
a.bl-card:hover :is(h4, h5) { color: var(--green); }
/* großer Ratgeber einer Stadt: breite Karte vor den übrigen Artikeln, ruhig hervorgehoben */
.bl-card.rg-guide { margin-bottom: 12px; padding: 18px 20px; background: var(--mint2); border-color: #CFE6D8; }
.bl-card.rg-guide .bl-k { color: var(--green); }
.bl-card.rg-guide :is(h4, h5) { font-size: 19px; }
.bl-card.rg-guide p { max-width: 78ch; margin: 2px 0 8px; }
/* übrige Stadt-Artikel: Etikett + Titel, ohne Beschreibung */
.bl-card.rg-kurz { padding: 14px 16px; }
.bl-card.rg-kurz :is(h4, h5) { font-size: 16px; line-height: 1.35; margin: 4px 0 0; }

/* Bestenliste als Aufmacher (statt des früheren München-Guides) */
.bl-feat.rg-best { margin-bottom: 0; padding: 24px 26px; }
.bl-feat.rg-best h2 { margin: 6px 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.bl-feat.rg-best p { margin: 0 0 16px; max-width: 720px; color: #E3F3EA; line-height: 1.55; }

/* ── Ortslisten als Chips (Ratgeber unten, Startseite „Weitere Orte“) ── */
.ort-titel { font-size: 15px; font-weight: 700; margin: 20px 0 10px; color: var(--fg2); }
.ort-chips .chip { white-space: nowrap; }

/* ── Startseite: Hochzeitsfotografen nach Stadt ── */
.st-weitere { margin-top: 26px; }
.st-weitere .ort-titel { margin-top: 0; }

/* ── Fußzeile: vierte Spalte „Städte“ – Spalten so breit wie ihr Inhalt (sonst brechen „Mehrere Fotografen anfragen“ und „Warum bin ich gelistet?“ um) ── */
@media (min-width: 641px) {
  .ft2-cols:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 24px; }
}
@media (max-width: 640px) {
  .ft2-cols:has(> :nth-child(4)) > div:last-child { grid-column: auto; }
}

/* ── Handy: lange Listen als Wisch-Reihen (wie /fuer-fotografen), Inhalte bleiben vollständig im DOM ── */
@media (max-width: 700px) {
  .rg-sek { margin-top: 40px; }
  .rg-kopf p { font-size: 15px; }
  .rg-staedte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rg-stadt { padding: 14px; gap: 10px; border-radius: 14px; }
  .rg-stadt-a b { font-size: 16px; }
  .rg-gruppe { margin-top: 28px; }
  .rg-gtitel { font-size: 20px; }
  .rg-reihe { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rg-reihe::-webkit-scrollbar { display: none; }
  .rg-reihe > .bl-card { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  .rg-reihe > .bl-card.rg-kurz { flex-basis: 74%; }
  .rg-reihe > .bl-card:only-child { flex-basis: 100%; }
  .rg-reihe > .bl-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bl-card.rg-guide { padding: 16px; }
  .bl-card.rg-guide :is(h4, h5) { font-size: 17px; }
  .bl-feat.rg-best { padding: 20px; }
  .ort-chips, .rg-unav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-left: -16px; margin-right: -16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ort-chips::-webkit-scrollbar, .rg-unav::-webkit-scrollbar { display: none; }
  .ort-chips .chip, .rg-unav .chip { flex: 0 0 auto; }
  /* viele Orte: drei Reihen nebeneinander wischen statt einer endlosen Zeile */
  .ort-chips.ort-chips-3 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: max-content; justify-content: start; gap: 8px; }
}
