/* ==========================================================================
   ZUKUNFT-KINDER E.V. – moderner, responsiver Relaunch
   Originales Buntstift-Menü (PNG), Grid-Layout, Hamburger-Drawer
   ========================================================================== */

:root {
  --blue: #009ee3;
  --blue-dark: #0081b8;
  --text: #2b2f36;
  --muted: #5a6672;
  --bg: #f3fafd;
  --card: #ffffff;
  --border: #dfeef4;
  --shadow: 0 2px 14px rgba(16, 42, 68, 0.08);
  --radius: 14px;
  /* Blau-Tints – durchgängig aus HKS 47 (Farbton 198°) abgeleitet */
  --tint-select: #cfebf7;
  --tint-soft: #eef6fa;
  --tint-hover: #eef7fb;
  --tint-strong: #e0f2f9;
  --tint-row: #f7fbfd;
  --tint-thumb: #c5e1ed;
  --shadow-blue: rgba(0, 158, 227, 0.3);
  --shadow-blue-strong: rgba(0, 158, 227, 0.4);
}

/* Vereinsblau HKS 47 (#009EE3) – ALLE Blauwerte (Vollton, Dunkelstufe,
   Flächen/Tints, Rahmen, Hintergrund, Schatten) sind daraus abgeleitet.
   Gilt für die Startseite (.startseite) und weitere Seiten (.hks47). */
.startseite,
.hks47 {
  --blue: #009ee3;            /* HKS 47 K */
  --blue-dark: #0081b8;       /* HKS 47, dunklere Stufe (Hue 198°, L 36%) */
  --bg: #f3fafd;              /* Seitenhintergrund (Hue 198°) */
  --border: #dfeef4;          /* Rahmen (Hue 198°) */
  --tint-select: #cfebf7;     /* Textauswahl */
  --tint-soft: #eef6fa;       /* sehr helle Fläche */
  --tint-hover: #eef7fb;      /* Nav-Hover-Fläche */
  --tint-strong: #e0f2f9;     /* Nav-aktiv-Fläche */
  --tint-row: #f7fbfd;        /* Tabellen-Zebrafläche */
  --tint-thumb: #c5e1ed;      /* Scrollbar-Daumen (Hue 198°) */
  --shadow-blue: rgba(0, 158, 227, 0.3);        /* HKS-47-Schatten */
  --shadow-blue-strong: rgba(0, 158, 227, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--tint-select);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "main"
    "footer";
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
}

.site-header {
  grid-area: header;
}

.brand-home {
  display: block;
  line-height: 0;
}

.teaser-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 972 / 206;
  object-fit: cover;
}

.site-main {
  grid-area: main;
  padding: 28px clamp(16px, 4vw, 44px) 52px;
  min-width: 0;
}

.site-footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 18px;
}

/* Footer-CTA: „Machen Sie den Unterschied" – eigener Bereich oben im Footer */
.footer-cta {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
  padding: 6px 0 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-cta h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--blue);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

.footer-cta p {
  max-width: 680px;
  margin: 0 auto 0.75em;
}

.footer-cta .cta-button {
  margin-top: 0.25em;
}

/* -------------------------------------------------------------------------
   Mobile: Navigation als Drawer
   ------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: var(--banner-top, 0px);
  left: 0;
  bottom: 0;
  width: min(330px, 88vw);
  background: #fff;
  z-index: 70;
  overflow-y: auto;
  transform: translateX(-104%);
  transition: transform 0.28s ease;
  box-shadow: none;
  padding: 22px 16px 34px;
}

.site-nav.is-open {
  transform: translateX(0);
}

.nav-backdrop {
  position: fixed;
  inset: var(--banner-top, 0px) 0 0 0;
  background: rgba(12, 28, 44, 0.52);
  z-index: 60;
}

.nav-backdrop[hidden] {
  display: none;
}

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 16px;
}

.nav-title {
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-close {
  border: 0;
  background: var(--tint-soft);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle {
  position: fixed;
  top: calc(var(--banner-top, 0px) + 8px);
  right: 14px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16, 42, 68, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform 0.25s;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.is-open .hamburger {
  background: transparent;
}

.nav-toggle.is-open .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Navigation: Original Buntstift-PNGs
   ------------------------------------------------------------------------- */
.nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-pencil {
  display: block;
}

.nav-pencil-img {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-pencil:hover .nav-pencil-img {
  opacity: 0.85;
  transform: translateX(2px);
}

.nav-pencil.is-active .nav-pencil-img {
  opacity: 1;
}

.nav-sub {
  list-style: none;
  margin: 8px 0 0 18px;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
}

/* Untermenü erst nach Klick auf den Menüpunkt aufklappen */
.nav-item.is-expanded > .nav-sub {
  display: flex;
}

.nav-sub-link {
  display: block;
  padding: 6px 10px 6px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-sub-link:hover {
  background: var(--tint-hover);
  color: var(--blue);
}

.nav-sub-link.is-active {
  background: var(--tint-strong);
  color: var(--blue-dark);
}

/* -------------------------------------------------------------------------
   Inhalt
   ------------------------------------------------------------------------- */
.site-main h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  color: var(--blue);
  margin: 0 0 0.7em;
  line-height: 1.2;
}

/* Hinweis unter einer H1 (z. B. "(Stand Oktober 2026)"):
   in schwarzer Adress-Schrift (normale Schriftstärke, Textfarbe)
   und dichter unter die Headline gerückt. */
.site-main p.h1-stand,
.site-main h1 .h1-stand {
  color: var(--text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: -1em 0 1em;
  white-space: nowrap;
}

.site-main h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--blue);
  margin: 1.5em 0 0.5em;
  line-height: 1.25;
}

.site-main h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  color: var(--blue-dark);
  margin: 1.3em 0 0.4em;
  line-height: 1.3;
}

.site-main h4 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin: 1.1em 0 0.35em;
}

/* HKS-47-Seiten: Inhalts-Überschriften einheitlich im HKS-47-Blau (wie H1/H2) */
.hks47 .site-main h3,
.hks47 .site-main h4,
.startseite .site-main h3,
.startseite .site-main h4 {
  color: var(--blue);
}

.site-main p {
  margin: 0 0 1em;
}

.site-main .center {
  text-align: center;
}

.org {
  color: var(--blue);
  font-weight: 700;
}

.important {
  color: #c62828;
  font-weight: 800;
}

.csc-list {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.csc-list li {
  margin-bottom: 0.35em;
}

/* Bilder, Galerien, Text-Bild-Mix */
.figure {
  margin: 1.4em 0;
  text-align: center;
}

.figure img {
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 1.4em 0;
}

.gallery .figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  box-shadow: var(--shadow);
}

/* Sortiment: Anlass-Kacheln 2x2
   (Weihnachten + Glückwünsche in Reihe 1, Hochzeit + Geburt in Reihe 2).
   Die Vorschaubilder sind kleine Thumbnails, darum werden sie nur moderat
   skaliert (max. 200px), damit sie nicht unscharf werden. */
.sortiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  margin: 1.6em auto;
}

.sortiment-grid .figure {
  margin: 0;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sortiment-grid .figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(20, 50, 80, 0.18);
}

.sortiment-grid .figure a {
  display: block;
  width: 100%;
}

.sortiment-grid .figure img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: contain;
  box-shadow: none;
}

.sortiment-grid .figure figcaption {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
}

a.lightbox img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.lightbox:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 22px rgba(20, 50, 80, 0.22);
}

figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.45em;
}

.media {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 1.6em 0;
}

.media-figure {
  flex: none;
  margin: 0.4em 0 0;
}

.media-body {
  min-width: 0;
}

/* Startseite: Projekte als 2-spaltiges Karten-Grid (Bild oben, Text darunter).
   Vorbild: 2-Spalten-Anordnung der Projekte auf www2.zukunft-kinder.de */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 1.5em 0 0.4em;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-blue);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-strong);
}

.project-card-media {
  margin: 0;
}

/* Einheitliches Bildformat (4:3, beschnitten) für gleich hohe Karten */
.project-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.project-card-body {
  padding: 16px 18px 18px;
}

.project-card-body h3 {
  margin: 0 0 0.35em;
}

.project-card-body p {
  margin: 0;
}

/* Auf schmalen Geräten: eine Spalte */
@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Startseite: Projekt-Bereiche (Bild links, Text rechts, flexibel skaliert) */
.media.project .media-figure {
  flex: 0 0 min(420px, 46%);
  max-width: 420px;
}

.media.project .media-figure img {
  width: 100%;
  height: auto;
}

/* Variante: Bild rechts, Text links (Desktop) */
.media.project.reverse {
  flex-direction: row-reverse;
}

/* Auf schmalen Geräten: Bild unter dem Text */
@media (max-width: 760px) {
  .media.project,
  .media.project.reverse {
    flex-direction: column-reverse;
  }

  .media.project .media-figure {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Tabellen */
.table-scroll {
  overflow-x: auto;
  margin: 1.2em 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table td,
.table th {
  border: 1px solid var(--border);
  padding: 10px 13px;
  vertical-align: top;
  text-align: left;
}

.table tr:nth-child(even) td {
  background: var(--tint-row);
}

.table .table-title {
  color: var(--blue);
  font-size: 1.12rem;
}

.table img {
  max-width: 200px;
  border-radius: 8px;
}

/* Downloads */
a.download::after {
  content: "\2193";
  margin-left: 6px;
  opacity: 0.7;
}

/* Call-to-Action */
.cta-button {
  display: inline-block;
  margin-top: 1.25em;
  padding: 0.7em 1.6em;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(1px);
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 18, 32, 0.9);
  padding: 28px;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------------------
   Desktop ab 992px
   ------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .page {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
      "header header"
      "nav    main"
      "nav    footer";
  }

  /*
   * Menü sitzt UNTER dem Banner und darf nicht in den Banner hineinragen.
   * Der Grid-Container (.site-nav) ist deshalb statisch und füllt nur die
   * linke Spalte; erst der innere Container (.nav-inner) wird beim Scrollen
   * „sticky" und bleibt so sichtbar. (Ein sticky Grid-Item direkt an .site-nav
   * wurde vom Browser um wenige Pixel nach oben verschoben und überlappte den
   * Banner.)
   */
  .site-nav {
    grid-area: nav;
    position: static;
    align-self: stretch;
    width: auto;
    overflow: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-inner {
    position: sticky;
    top: 0;
    padding: 28px 8px 40px 28px;
  }

  .nav-head {
    display: none;
  }

  .nav-toggle,
  .nav-backdrop {
    display: none !important;
  }

  .site-footer {
    align-self: end;
  }
}

/* -------------------------------------------------------------------------
   Platz unter dem Banner für den Menü-Button (nur Mobil/Tablet)
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-main {
    padding-top: 64px;
  }
}

/* -------------------------------------------------------------------------
   Kleine Geräte
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .media {
    flex-direction: column;
  }

  .media-figure {
    align-self: center;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  /*
   * Im Spalten-Layout bezieht sich flex-basis auf die Höhe. Der Footer-CTA hat
   * aber flex: 1 1 100% (vorgesehen für die volle Breite im Zeilen-Layout) –
   * dadurch legt der Flex-Container die Elemente mehrspaltig nebeneinander und
   * die Seite läuft horizontal über. Hier die Flexbasis neutralisieren, die
   * Breite regelt bereits width: 100%.
   */
  .footer-cta {
    flex: 0 1 auto;
  }
}

/* -------------------------------------------------------------------------
   Logo-Carousel (Startseite)
   ------------------------------------------------------------------------- */
.logo-carousel {
  position: relative;
  margin: 1.4em 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo-track {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 18px 52px;
  -webkit-overflow-scrolling: touch;
}

.logo-track::-webkit-scrollbar {
  height: 8px;
}

.logo-track::-webkit-scrollbar-track {
  background: var(--tint-soft);
  border-radius: 8px;
}

.logo-track::-webkit-scrollbar-thumb {
  background: var(--tint-thumb);
  border-radius: 8px;
}

.logo-track a,
.logo-track img {
  flex: 0 0 auto;
  display: block;
}

.logo-track a img {
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logo-track a img:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 42, 68, 0.22);
  transition: background 0.15s ease, color 0.15s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--blue);
  color: #fff;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Über uns: Zusammenarbeit – Drei-Fragen-Karten
   (Was tun die Kinder? / Was tun wir? / Was können Sie tun?)
   ========================================================================== */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 1.5em 0 0.4em;
}

.coop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.coop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-strong);
}

.coop-card h3 {
  margin: -20px -20px 16px;
  padding: 14px 20px;
  font-size: 1.05rem;
  color: var(--blue);
  background: var(--tint-soft);
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.coop-intro {
  margin: 0 0 0.4em;
  color: var(--text);
}

.coop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coop-list li {
  position: relative;
  padding: 0.22em 0 0.22em 1.2em;
}

.coop-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.coop-note {
  margin: auto 0 0;
  padding-top: 14px;
}

.coop-card a {
  color: var(--blue);
}

.coop-card a:hover {
  color: var(--blue-dark);
}

/* ==========================================================================
   Kinderhorte: Standort-Navigation (Orts-Chips) + Standort-Einträge
   ========================================================================== */
.hort-nav,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0.4em 0 1.8em;
}

.hort-nav a,
.section-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

.hort-nav a:hover,
.section-nav a:hover {
  background: var(--tint-strong);
  color: var(--blue-dark);
}

.hort {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 1.4em 0;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--border);
}

.hort.reverse {
  flex-direction: row-reverse;
}

.hort-media {
  flex: 0 0 150px;
  max-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alle Logos einheitlich groß: feste quadratische Kachel, ganzes Logo
   sichtbar (object-fit: contain) unabhängig vom Seitenverhältnis. */
.hort-media img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hort-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hort-body p {
  margin: 0;
}

.hort-body strong {
  color: var(--blue);
}

/* Orts-Headlines: zentriert, größer, kräftig mit Akzent-Balken */
.hort-town,
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1.8em 0 0.7em;
}

.hort-town::after,
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.35em auto 0;
  border-radius: 2px;
  background: var(--blue);
}

@media (max-width: 640px) {
  .hort,
  .hort.reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .hort-media {
    flex-basis: auto;
    max-width: none;
    justify-content: flex-start;
  }

  .hort-media img {
    width: 110px;
    height: 110px;
  }
}

/* Veranstaltungen: die Zeilen eines Termins kompakt untereinander,
   Datum/Überschrift oben, direkt darunter Uhrzeit/Ort.
   (Startseite/Projektseiten bleiben unberührt.) */
.event {
  margin: 0 0 1.8em;
}

.event h3 {
  margin: 0 0 0.15em;
}

.event p {
  margin: 0 0 0.2em;
}

.event p:last-child {
  margin-bottom: 0;
}
