/*
 * Städte-Landingpages (/automaten/stadt/{slug}).
 *
 * Bewusst eigene Datei statt Tailwind-Klassen: assets/css/tailwind.css ist
 * ein gepurgter Build, der lokal erzeugt und nicht committet wird. Neue
 * Klassen fehlen dadurch auf DEV, bis jemand baut. Diese Datei liegt in
 * Git und gilt überall sofort (siehe CLAUDE.md, Abschnitt Tailwind).
 *
 * Zielgruppe sind Ausflügler und Familien, nicht Sammler-Profis. Daraus
 * folgen die Gestaltungsentscheidungen:
 *
 * - Kompakte Zeilen statt großer Bildkacheln. 71 % der Automaten haben kein
 *   Bild; ein quadratisches Bild-Grid besteht dann größtenteils aus weißen
 *   Flächen. Ein 88px-Thumbnail links fällt bei fehlendem Bild kaum auf.
 * - Ruhige, tiefe Farbpalette (Slate/Indigo) statt bunter Flächen. Die
 *   Seite soll nach Reiseführer aussehen, nicht nach Datenbank.
 * - Jeder Abschnitt hat eine kleine Kicker-Zeile über der Überschrift.
 *   Das gliedert lange Seiten, ohne zusätzliche Rahmen zu brauchen.
 */

.cq-stadt {
    max-width: 68rem;
    margin: 0 auto;
    color: #1f2937;
}

/* ── Hero ─────────────────────────────────────────────────── */

.cq-stadt-hero {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2f9 100%);
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.9rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .cq-stadt-hero { padding: 2.5rem 2.75rem 2.75rem; }
}

/* Brotkrumen: dezente Kette mit Chevrons, kein Fettdruck, kein Kasten. */
.cq-stadt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: .01em;
    margin-bottom: 1rem;
}

.cq-stadt-crumbs a {
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.cq-stadt-crumbs a:hover {
    color: #334155;
    border-bottom-color: #cbd5e1;
}

.cq-stadt-crumbs span {
    color: #b6c0cd;
    font-size: 0.9em;
}

.cq-stadt-crumbs em {
    font-style: normal;
    color: #334155;
    font-weight: 500;
}

.cq-stadt-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: #0f172a;
    margin: 0 0 0.9rem;
}

.cq-stadt-lead {
    font-size: 1.06rem;
    line-height: 1.68;
    color: #475569;
    max-width: 44rem;
    margin: 0;
}

.cq-stadt-lead strong {
    color: #0f172a;
    font-weight: 600;
}

/* ── Kennzahlen ───────────────────────────────────────────── */
/* Ohne Kästen: Trennstriche reichen und wirken ruhiger. */

.cq-stadt-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.25rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cq-stadt-fact b {
    display: block;
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.cq-stadt-fact span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* ── Abschnitte ───────────────────────────────────────────── */

.cq-stadt-sec {
    margin-bottom: 3.25rem;
}

.cq-stadt-eyebrow {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 0.3rem;
}

.cq-stadt-h2 {
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0 0 1.1rem;
}

.cq-stadt-note {
    margin-top: 0.9rem;
    font-size: 0.83rem;
    color: #94a3b8;
}

/* ── Tipps ────────────────────────────────────────────────── */

.cq-stadt-tipps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .cq-stadt-tipps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cq-stadt-tipp {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.cq-stadt-tipp-icon {
    font-size: 1.25rem;
    line-height: 1.4;
    flex: 0 0 auto;
}

.cq-stadt-tipp b {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.cq-stadt-tipp p {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
}

/* ── Kategorien ───────────────────────────────────────────── */

.cq-stadt-kats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cq-stadt-kat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 999px;
    padding: 0.42rem 0.5rem 0.42rem 0.95rem;
    font-size: 0.9rem;
    color: #334155;
}

.cq-stadt-kat i {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

/* ── Karte ────────────────────────────────────────────────── */

.cq-stadt-map {
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    /* Eigener Stacking-Kontext, damit die Leaflet-Panes (z-index bis 1000)
       nicht ueber das Header-Dropdown (z-50) gemalt werden. Ohne das liegt
       das aufgeklappte Menue hinter der Karte - sichtbar erst, seit das
       Dropdown lang genug ist, um bis zur Karte zu reichen.
       Gleiches Muster wie #miniMap in automat.php. */
    position: relative;
    z-index: 0;
}

.cq-stadt-map > div {
    height: 460px;
}

/* ── Automatenliste ───────────────────────────────────────── */

.cq-stadt-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

@media (min-width: 768px) {
    .cq-stadt-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cq-stadt-item {
    display: flex;
    gap: 0.95rem;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.cq-stadt-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.cq-stadt-thumb {
    flex: 0 0 88px;
    width: 88px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cq-stadt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Platzhalter statt weißer Fläche – betrifft die Mehrheit der Automaten. */
.cq-stadt-thumb--leer {
    background: linear-gradient(140deg, #f8fafc 0%, #e8edf5 100%);
    font-size: 1.5rem;
    opacity: .55;
}

.cq-stadt-body {
    flex: 1 1 auto;
    padding: 0.8rem 1rem 0.8rem 0;
    min-width: 0;
    align-self: center;
}

.cq-stadt-name {
    font-weight: 600;
    font-size: 0.97rem;
    color: #0f172a;
    line-height: 1.35;
    /* Lange Automatennamen dürfen die Zeilenhöhe nicht sprengen. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cq-stadt-meta {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.cq-stadt-badge {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 0.12rem 0.48rem;
    font-size: 0.76rem;
    color: #475569;
}

.cq-stadt-badge--defekt {
    background: #fef2f2;
    color: #b91c1c;
}

/* ── Motive ───────────────────────────────────────────────── */

.cq-stadt-motive {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .cq-stadt-motive { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cq-stadt-motiv {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    border: 1px solid #e9edf3;
}

.cq-stadt-motiv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.cq-stadt-motiv:hover img {
    transform: scale(1.06);
}

/* ── Städte-Grid auf der Länderseite ──────────────────────── */
/* Eigene Form statt der Automatenliste: hier gibt es kein Bild, nur Name
   und zwei Zahlen. Kompakte Kacheln lesen sich besser als Zeilen. */

.cq-land-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

@media (min-width: 640px) {
    .cq-land-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .cq-land-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cq-land-city {
    display: block;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cq-land-city:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.cq-land-city b {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.cq-land-city span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #64748b;
}

/* ── Nachbarstädte ────────────────────────────────────────── */

.cq-stadt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cq-stadt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 999px;
    padding: 0.45rem 0.55rem 0.45rem 1rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cq-stadt-link:hover {
    border-color: #c7d2fe;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

.cq-stadt-link i {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

/* ── Abschluss-Verweis aufs Bundesland ────────────────────── */

.cq-stadt-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #0f172a;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: background .18s ease;
}

.cq-stadt-cta:hover {
    background: #1e293b;
}

.cq-stadt-cta b {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cq-stadt-cta span {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cq-stadt-cta em {
    font-style: normal;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}
