/* ExoEnergies Städte – Ergänzungen zur bestehenden A-Gestaltung (exo-basis.css, exo-unterseiten.css bleiben unverändert).
   Claude, Etappe 5, 18.10.2026. Nur zusätzliche Klassen mit Präfix .stadt-; keine Überschreibung gemeinsamer Dateien. */

/* Lange Ortsnamen (z. B. „Schloß Holte-Stukenbrock“) sicher umbrechen */
.stadt-hero h1, .stadt-listhero h1, .stadt-region h2, .exo-crumbs li, .stadt-orte a { overflow-wrap: break-word; hyphens: manual; }
.stadt-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
.stadt-hero .exo-lede { max-width: 34em; }
@media (max-width: 600px) { .stadt-hero h1 { font-size: clamp(1.85rem, 8.2vw, 2.4rem); } }

/* Langtext: ruhige Lesespalte, H3 mit Abstand, Absätze nicht zu breit */
.exo-prose h3 + p { margin-top: -6px; }
.stadt-lead p:first-child { font-size: clamp(1.1rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--exo-ink); }

/* Leistungen + Anfragekarte */
.stadt-columns { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.stadt-columns > .exo-prose { max-width: 40em; }
.stadt-columns > .exo-prose .exo-relatedwrap { margin-top: 8px; }
.stadt-anfrage { position: sticky; top: calc(var(--exo-header) + 20px); }
.stadt-anfrage h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.25; overflow-wrap: break-word; }
.stadt-anfrage .exo-field input { width: 100%; }
.stadt-anfrage .exo-btn { justify-self: stretch; }
@media (max-width: 900px) {
  .stadt-columns { grid-template-columns: minmax(0, 1fr); }
  .stadt-anfrage { position: static; }
}

/* Einblicke: Referenzplatz + 9:16-Demo nebeneinander, kompakt */
.stadt-einblicke { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.stadt-einblicke .stadt-voices { margin-top: 0; padding-top: 0; border-top: 0; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stadt-voices .exo-vcards { grid-template-columns: repeat(2, minmax(0, 200px)); max-width: none; }
.stadt-voices .exo-vcard--demo { grid-column: auto; width: auto; }
@media (max-width: 900px) { .stadt-einblicke { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stadt-voices .exo-vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vertiefung und Ergänzungen mit Bild: Text darf länger sein als das Bild */
@media (min-width: 901px) {
  .stadt-feature { align-items: start; }
  .stadt-feature .exo-feature__media { position: sticky; top: calc(var(--exo-header) + 20px); height: clamp(420px, 40vw, 600px); }
  .stadt-feature .exo-feature__text { padding-block: clamp(8px, 1.5vw, 24px); }
}

/* Projektstand-Band */
.stadt-band .exo-assess { align-items: center; }
.stadt-band__aside { display: grid; gap: 14px; justify-items: start; }
.stadt-band__aside .exo-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
@media (max-width: 900px) { .stadt-band__aside .exo-btn { width: 100%; } }

/* Ergänzung 1: zweispaltige H3-Abschnitte */
.stadt-cols > div { display: grid; gap: 16px; align-content: start; }
.stadt-cols h3 { margin-top: 0; }
@media (max-width: 800px) { .stadt-cols > div + div { margin-top: 28px; } }

/* Ergänzung 3: Überschrift mit Bild links, Text rechts */
.stadt-split__side { display: grid; gap: 24px; position: sticky; top: calc(var(--exo-header) + 20px); }
.stadt-figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--exo-mist); }
.stadt-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .stadt-split__side { position: static; } }

/* Region: Querlinks und Hierarchie */
.stadt-region { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stadt-region__box { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stadt-region h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.stadt-netz { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 28px; }
.stadt-netz > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.stadt-netz h3 { font-size: 1rem; letter-spacing: .01em; color: var(--exo-teal-ink); }
.stadt-region .exo-related a, .stadt-region .exo-related .exo-later { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; padding-block: 8px; }
.stadt-region__all { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) { .stadt-region { grid-template-columns: minmax(0, 1fr); } }

/* Abschluss mit Kontaktwegen */
#region + .stadt-closing-sec { padding-top: 0; }
.stadt-closing { background: var(--exo-wash); border-radius: 24px; padding: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.stadt-closing h2 { overflow-wrap: break-word; }
.stadt-closing .exo-phero__actions { margin-top: 18px; }
.stadt-direct { margin: 0; display: grid; gap: 0; border-top: 1px solid #c4dcd8; }
.stadt-direct > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #c4dcd8; }
.stadt-direct dt { font-weight: 700; color: var(--exo-ink); }
.stadt-direct dd { margin: 0; }
.stadt-direct address { font-style: normal; }
@media (max-width: 900px) { .stadt-closing { grid-template-columns: minmax(0, 1fr); } }

/* Interner Datenlückenfall (Neuried) */
#datenluecke { margin-bottom: clamp(24px, 3vw, 40px); }
.stadt-intern { border: 2px dashed #e6c766; background: #fff8e1; color: #4d3800; border-radius: 16px; padding: 18px 22px; max-width: 60em; }
.stadt-luecke .exo-draftbar { background: #6b4a00; }

/* Vorlagen: sichtbare Modulzuordnung */
.stadt-token { background: #fff1c7; color: #6b4a00; border-radius: 6px; padding: 0 .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.stadt-modul { display: none; }
.stadt-vorlage .stadt-modul { display: inline-block; width: fit-content; margin-top: 10px; font: 700 .74rem/1.3 var(--exo-text); letter-spacing: .04em; text-transform: uppercase; color: #6b4a00; background: #fff1c7; border: 1px solid #e6c766; border-radius: 999px; padding: 5px 10px; }

/* Übersicht */
.stadt-listhero .exo-phero__text { max-width: 60rem; }
.stadt-listhero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.stadt-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stadt-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--exo-line); color: var(--exo-ink); text-decoration: none; font-weight: 700; background: var(--exo-white); }
.stadt-tabs a:hover { border-color: var(--exo-teal); color: var(--exo-teal-ink); }
.stadt-tabs a[aria-current="page"] { background: var(--exo-teal-ink); border-color: var(--exo-teal-ink); color: var(--exo-white); }
.stadt-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 20px; }
.stadt-filter .exo-field { flex: 1 1 280px; max-width: 420px; }
.stadt-filter input { width: 100%; }
.stadt-treffer { margin: 0 0 12px; color: var(--exo-note); }
.stadt-laender { position: sticky; top: var(--exo-header); z-index: 5; background: var(--exo-white); padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--exo-line); }
.stadt-laender ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.stadt-laender a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; white-space: nowrap; border-radius: 999px; border: 1.5px solid var(--exo-line); text-decoration: none; color: var(--exo-ink); font-size: .95rem; }
.stadt-laender a:hover, .stadt-laender a:focus-visible { border-color: var(--exo-teal); color: var(--exo-teal-ink); }
.stadt-laender a span { color: var(--exo-note); font-size: .85rem; }
.stadt-land { padding-top: clamp(28px, 4vw, 48px); scroll-margin-top: calc(var(--exo-header) + 70px); }
.stadt-land h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--exo-line); }
.stadt-land__n { font: 400 1rem/1 var(--exo-text); color: var(--exo-note); }
.stadt-orte { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 2px 24px; }
.stadt-orte li { display: grid; padding: 7px 0; border-bottom: 1px dotted var(--exo-line); min-width: 0; }
.stadt-orte a { font-weight: 700; text-decoration: none; color: var(--exo-ink); }
.stadt-orte a:hover { color: var(--exo-teal-ink); text-decoration: underline; }
.stadt-orte span { font-size: .85rem; color: var(--exo-note); }
@media (max-width: 600px) { .stadt-orte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } .stadt-orte a { font-size: .95rem; } .stadt-orte span { font-size: .8rem; } }
.stadt-land__top { margin: 12px 0 0; font-size: .9rem; }
.stadt-leer { padding: 24px 0; }
.stadt-intern-liste a { font-style: normal; }

/* Übergabeindex */
.stadt-index table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stadt-index th, .stadt-index td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--exo-line); vertical-align: top; }
.stadt-index th { color: var(--exo-ink); }
.stadt-index .exo-tablewrap { overflow-x: auto; }
.stadt-status { display: inline-block; font: 700 .74rem/1.3 var(--exo-text); text-transform: uppercase; letter-spacing: .04em; background: #fff1c7; color: #6b4a00; border: 1px solid #e6c766; border-radius: 999px; padding: 4px 9px; }
.stadt-resolverform { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.stadt-resolverform .exo-field { min-width: 0; flex: 1 1 220px; }
.stadt-resolverform select, .stadt-resolverform input { width: 100%; font: 400 1rem/1.4 var(--exo-text); color: var(--exo-ink); background: var(--exo-white); border: 1.5px solid var(--exo-line); border-radius: 12px; padding: 12px 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .stadt-anfrage, .stadt-laender, .stadt-filter { display: none; } }
.stadt-voices video:focus, .stadt-voices video:focus-visible { outline: 3px solid var(--exo-teal); outline-offset: -3px; }
.stadt-voices .exo-vcard__frame:focus-within { outline: 3px solid var(--exo-teal); outline-offset: 2px; }
@media (max-width: 600px) {
  .stadt-index thead { display: none; }
  .stadt-index table, .stadt-index tbody, .stadt-index tr, .stadt-index td { display: block; width: 100%; }
  .stadt-index tr { padding: 10px 0; border-bottom: 1px solid var(--exo-line); }
  .stadt-index td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
}
