/* ICCAS-Design für Plone (modernisiert 2026).
   Die Klassen der Inhalte (frame-…, ce-…, pitch-card, news-…) sind dieselben wie in der TYPO3-Übernahme,
   die Inhalte müssen also nicht angepasst werden. Vorher lädt index.html die Grundstile von Plone
   (Barceloneta/Bootstrap) für Formulare und Bearbeitungsleiste.

   Aufbau: Schrift · Farben/Maße · Grundlagen · Kopf · Inhalt · Rahmen (frame-…) · News · Startseite · Footer · Plone */

/* ---------- Schrift (lokal, keine Verbindung zu Google) – Source Sans 3, SIL Open Font License ---------- */
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben und Maße ---------- */
:root {
  --petrol: #0e323e;        /* Hauptfarbe: Kopf, Überschriften, Footer */
  --petrol-dunkel: #0a2630;
  --blau: #0a5f8c;          /* Links (Kontrast auf Weiß 7:1) */
  --blau-hell: #86bbdf;     /* nur Flächen/Deko, nie für Schrift */
  --blau-zart: #e3f0f8;
  --akzent: #1191d1;        /* Blau aus dem ICCAS-Logo: Akzente (Linien, Markierungen), Kontrast auf Weiß 3,5:1 */
  --akzent-text: #0b74b0;   /* dunkleres Logo-Blau für Schrift und Flächen mit weißer Schrift (Kontrast 5,1:1) */
  --text: #1c2a30;
  --muted: #56666d;
  --bg: #fff;
  --flaeche: #f3f6f8;       /* Kästen, abgesetzte Bereiche */
  --border: #dbe3e7;
  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(14, 50, 62, 0.06), 0 8px 24px rgba(14, 50, 62, 0.08);
  --maxw: 1200px;
  --textw: 1100px;
  --kopf-hoehe: 84px;
  --schrift: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */

/* Bootstrap-Vorgaben (Barceloneta) für Überschriften, Absätze und Listen im Inhalt zurücksetzen */
main :is(h1, h2, h3, h4, h5, h6) { font-size: revert; font-weight: 700; line-height: 1.25; margin-top: revert; margin-bottom: revert; }
main :is(p, ul, ol, figure, blockquote) { margin-top: revert; margin-bottom: revert; }
main :is(ul, ol) { padding-left: revert; }

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); }
body {
  margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--blau-zart); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
/* „Zum Inhalt springen“: erst sichtbar, wenn man mit der Tabulatortaste darauf kommt */
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 2000; padding: 0.5rem 1rem;
  background: #fff; color: #000; border: 2px solid currentColor;
}
.skip-link:focus { top: 0.5rem; }

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

/* ---------- Kopf ---------- */


.site-header {
  background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--border);
  z-index: 100; backdrop-filter: saturate(1.4) blur(8px);
}
/* Für Besucher bleibt der Kopf beim Scrollen stehen (für Angemeldete nicht – Bearbeitungsleiste) */
body.userrole-anonymous .site-header { position: sticky; top: 0; }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; min-height: var(--kopf-hoehe);
  display: flex; align-items: center; gap: 1.5rem;
}
.logo-group { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.uni-logo img { height: 52px; width: auto; }
.iccas-logo { padding-left: 1.25rem; border-left: 1px solid var(--border); }
.iccas-logo img { height: 36px; width: auto; }
.header-panel { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }

/* Hauptmenü: Punkte ohne Unterseiten sind Links, Punkte mit Unterseiten ein Knopf (.menue-knopf, navigation.pt),
   der das Untermenü öffnet – eine Klickfläche mit Pfeil (Muster „Disclosure Navigation“) */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li > :is(a, .menue-knopf) {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; min-height: 2.5rem;
  color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.25;
  background: none; border: 0; border-radius: var(--radius-klein); position: relative; white-space: nowrap; cursor: pointer;
}
.main-nav > ul > li > :is(a, .menue-knopf):hover,
.main-nav .menue-knopf[aria-expanded="true"] { background: var(--flaeche); text-decoration: none; }
/* Pfeil am Knopf; zeigt nach oben, wenn das Untermenü offen ist */
.main-nav .menue-knopf::after {
  content: ""; width: 0.42rem; height: 0.42rem; border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.main-nav .menue-knopf[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
/* Aktiver Bereich: oranger Strich unter dem Menüpunkt */
.main-nav > ul > li.active > :is(a, .menue-knopf) { color: var(--petrol); }
.main-nav > ul > li.active > :is(a, .menue-knopf)::before {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -0.1rem; height: 3px;
  background: var(--akzent); border-radius: 2px;
}
.main-nav .dropdown {
  display: none; position: absolute; top: calc(100% + 0.6rem); left: 0; min-width: 260px; z-index: 10;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 0.5rem;
}
/* Unsichtbare Brücke, damit das Aufklappmenü beim Hinüberfahren mit der Maus offen bleibt */
.main-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.main-nav li.has-children:hover > .dropdown,
.main-nav li.has-children.offen > .dropdown { display: block; }
.main-nav .dropdown li a {
  display: block; padding: 0.5rem 0.75rem; color: var(--text); border-radius: var(--radius-klein); font-size: 0.975rem;
}
.main-nav .dropdown li a:hover { background: var(--flaeche); text-decoration: none; }
/* Übersichtsseite des Bereichs als erster Eintrag, durch eine Linie abgesetzt */
.main-nav .dropdown li.uebersicht { border-bottom: 1px solid var(--border); margin-bottom: 0.35rem; padding-bottom: 0.35rem; }
.main-nav .dropdown li.uebersicht a { font-weight: 600; }
.main-nav .dropdown li.active > a { color: var(--petrol); font-weight: 700; box-shadow: inset 3px 0 0 var(--akzent); }

/* Suche und Sprachwahl */
.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.search-form { margin: 0; }
.search-box {
  width: 170px; padding: 0.45rem 0.75rem 0.45rem 2.1rem; font: inherit; font-size: 0.95rem; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; background: var(--flaeche)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2356666d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E")
    no-repeat 0.75rem center;
  transition: width 0.2s, background-color 0.2s, border-color 0.2s;
}
.search-box:focus { width: 220px; background-color: #fff; border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px var(--blau-zart); }
.sprachwahl { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; white-space: nowrap; }
.sprachwahl a { padding: 0.2rem 0.6rem; border-radius: 999px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.sprachwahl a:hover { color: var(--text); text-decoration: none; }
.sprachwahl a.aktiv { background: var(--petrol); color: #fff; }

/* Menüknopf (nur kleine Bildschirme) */
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem;
  font: inherit; font-weight: 600; color: var(--petrol); background: var(--flaeche);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.menue-offen .nav-toggle-icon { background: transparent; }
.menue-offen .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.menue-offen .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; }
  .uni-logo img { height: 44px; }
  .iccas-logo img { height: 30px; }
  /* Ohne JavaScript bleibt das Menü sichtbar */
  .js .header-panel { display: none; }
  .header-panel {
    flex-basis: 100%; margin: 0 -1.5rem; padding: 0.5rem 1.5rem 1.25rem; border-top: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto;
  }
  .js .menue-offen .header-panel { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  /* ganze Zeile ist die Klickfläche; Pfeil rechts */
  .main-nav > ul > li > :is(a, .menue-knopf) { flex: 1; justify-content: space-between; padding: 0.85rem 0.25rem; min-height: 3rem; font-size: 1.05rem; }
  .main-nav > ul > li > :is(a, .menue-knopf):hover, .main-nav .menue-knopf[aria-expanded="true"] { background: none; }
  .main-nav .menue-knopf::after { margin-right: 0.5rem; }
  .main-nav > ul > li.active > :is(a, .menue-knopf)::before { left: 0; right: auto; top: 0.85rem; bottom: 0.85rem; width: 3px; height: auto; margin-left: -0.75rem; }
  .main-nav .dropdown { position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0.75rem 0.75rem; }
  .main-nav .dropdown::before { display: none; }
  .main-nav li.has-children:hover > .dropdown { display: none; }
  .main-nav li.has-children.offen > .dropdown { display: block; }
  /* Ohne JavaScript lassen sich die Knöpfe nicht bedienen: Untermenüs dann immer offen zeigen */
  html:not(.js) .main-nav li.has-children > .dropdown { display: block; }
  .header-tools { justify-content: space-between; }
  .search-form { flex: 1; }
  .search-box, .search-box:focus { width: 100%; }
}

/* ---------- Inhalt ---------- */
main { max-width: var(--textw); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
main:has(> .hero-banner) { max-width: none; padding: 0; }

/* Kopfbild über die volle Breite */
.hero-banner { width: 100%; background: var(--flaeche); }
.hero-banner img { width: 100%; height: auto; display: block; }
.grauer-verlauf { background: none; }
.content-page.has-hero { max-width: var(--textw); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.content-page { line-height: 1.65; }
.content-page h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--petrol); letter-spacing: -0.01em; margin: 0 0 1.5rem; }
.content-page h2 { font-size: 1.45rem; color: var(--petrol); margin: 2.5rem 0 1rem; letter-spacing: -0.005em; }
.content-page h3 { font-size: 1.2rem; color: var(--petrol); margin: 2rem 0 0.5rem; }
.content-page :is(h4, h5) { font-size: 1.05rem; color: var(--petrol); }
.content-page h2 a, .content-page h3 a { color: inherit; }
.content-page :is(p, li) { max-width: 78ch; hyphens: auto; overflow-wrap: break-word; }
.content-page .text-end, .content-page p.text-end { text-align: right; max-width: none; }
.content-page a {
  color: var(--blau); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 95, 140, 0.35); text-underline-offset: 0.18em;
}
.content-page a:hover { text-decoration-color: currentColor; }
.content-page figure { margin: 1rem 0; }
.content-page img { border-radius: var(--radius-klein); }
.content-page .frame > :first-child, .content-page .frame header > :first-child { margin-top: 0; }
.content-page > .frame > :last-child { margin-bottom: 0; }
.content-page .frame { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }

/* Gruppenüberschrift (Element „Nur Überschrift“): mit dem ICCAS-Pfeil als Markenzeichen */
.content-page > .frame-type-header h2,
.home-section h2 {
  display: flex; align-items: center; gap: 0.7rem; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem);
  margin: 3rem 0 1.25rem; color: var(--petrol);
}
.content-page > .frame-type-header:first-child h2 { margin-top: 0; }
.content-page > .frame-type-header h2::before, .home-section h2::before {
  content: ""; width: 1.4rem; height: 1.4rem; flex-shrink: 0; background: url(../img/pfeil.png) no-repeat center / contain;
}

/* Jedes Inhaltselement als ruhiger Kasten */
.content-page > .frame:not(.frame-type-header):not(.frame-kachel):not(.frame-buch):not(.frame-person):not([class*="frame-type-news_"]) {
  background: var(--flaeche); border-radius: var(--radius); padding: 2rem 2.25rem; margin: 0 0 1.25rem;
}
.content-page > .frame h2 { font-size: 1.35rem; margin-top: 2rem; }
.content-page > .frame header h2 { margin: 0 0 0.75rem; }
.content-page .ce-textpic img { box-shadow: none; }

/* Abschnitte mit verlinkter Überschrift (Forschungsbereiche): zwei Spalten als Karten */
.content-page:has(> .frame-type-text > header h2 > a) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; align-content: start;
}
.content-page:has(> .frame-type-text > header h2 > a) > * { grid-column: 1 / -1; }
.content-page > .frame-type-text:has(> header h2 > a) {
  grid-column: span 1; background: #fff !important; border: 1px solid var(--border); border-top: 4px solid var(--akzent);
  transition: box-shadow 0.2s, transform 0.2s;
}
.content-page > .frame-type-text:has(> header h2 > a):hover { box-shadow: var(--schatten); transform: translateY(-2px); }
.content-page > .frame-type-text:has(> header h2 > a) header h2 a { text-decoration: none; }
.content-page > .frame-type-text:has(> header h2 > a) header h2 a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .content-page:has(> .frame-type-text > header h2 > a) > .frame-type-text { grid-column: 1 / -1; }
}

/* Rahmen „Bild links, Überschrift oben“: Überschrift über beiden Spalten */
.content-page .frame-bild-links .ce-textpic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 2.25rem; }
.content-page .frame-bild-links .ce-bodytext { display: contents; }
.content-page .frame-bild-links .ce-bodytext > header { grid-column: 1 / -1; }
.content-page .frame-bild-links .ce-gallery { grid-column: 1; grid-row: 2 / span 20; float: none; margin: 0; }
.content-page .frame-bild-links .ce-gallery figure { margin: 0; }
.content-page .frame-bild-links .ce-gallery img { width: 100%; height: auto; border-radius: var(--radius-klein); }
.content-page .frame-bild-links .ce-bodytext > :not(header) { grid-column: 2; }
.content-page .frame-bild-links .ce-bodytext > p:first-of-type { margin-top: 0; }
@media (max-width: 700px) {
  .content-page .frame-bild-links .ce-textpic { grid-template-columns: 1fr; }
  .content-page .frame-bild-links .ce-gallery, .content-page .frame-bild-links .ce-bodytext > :not(header) { grid-column: 1; grid-row: auto; }
  .content-page .frame-bild-links .ce-gallery { margin-bottom: 1rem; }
}

/* ---------- Rahmen „Person“: kompakte Karten im Raster ---------- */
/* Ab drei Personen auf einer Seite (Mitarbeitende) als Raster, sonst eine breite Karte */
.content-page:has(> .frame-person ~ .frame-person ~ .frame-person) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 1rem; align-content: start;
}
.content-page:has(> .frame-person ~ .frame-person ~ .frame-person) > :not(.frame-person) { grid-column: 1 / -1; }
.content-page:has(> .frame-person ~ .frame-person ~ .frame-person) > .frame-type-header h2 { margin-bottom: 0.25rem; }
.content-page .frame-person {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 1.1rem; align-content: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.content-page:has(> .frame-person ~ .frame-person ~ .frame-person) > .frame-person { margin: 0; }
.content-page .frame-person:hover { box-shadow: var(--schatten); border-color: transparent; }
.content-page .frame-person > *, .content-page .frame-person .ce-bodytext > * { grid-column: 2; }
.content-page .frame-person .ce-textpic, .content-page .frame-person .ce-bodytext { display: contents; }
.content-page .frame-person .ce-gallery { grid-column: 1; grid-row: 1 / span 20; float: none; margin: 0; }
.content-page .frame-person .ce-gallery :is(figure, .ce-row, .ce-column) { margin: 0; }
.content-page .frame-person .ce-gallery img {
  width: 84px; height: 84px; object-fit: cover; object-position: center 25%; border-radius: 50%; box-shadow: none;
}
/* Ohne Foto: Platzhalter */
.content-page .frame-person.frame-type-text::before {
  content: ""; grid-column: 1; grid-row: 1 / span 20; width: 84px; height: 84px; border-radius: 50%;
  background: var(--flaeche) url(../img/kein-foto.png) no-repeat center / cover;
}
.content-page .frame-person header { margin-bottom: 0.5rem; }
.content-page .frame-person header h3 { margin: 0; font-size: 1.15rem; color: var(--petrol); line-height: 1.3; }
.content-page .frame-person header h4 { margin: 0.15rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); line-height: 1.35; }
.content-page .frame-person p { margin: 0.1rem 0; font-size: 0.925rem; line-height: 1.5; overflow-wrap: break-word; hyphens: none; }
.content-page .frame-person p strong { font-weight: 600; color: var(--muted); }
.content-page .frame-person p:last-child:has(> a:only-child) { margin-top: 0.5rem; }

/* ---------- Rahmen „Kachel“ und „Buch/Download“: nebeneinander ---------- */
.content-page:has(> .frame-kachel), .content-page:has(> .frame-buch) {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 1.25rem; align-content: start;
}
.content-page:has(> .frame-kachel) > *, .content-page:has(> .frame-buch) > * { grid-column: 1 / -1; }
.content-page > .frame-kachel { grid-column: span 3; }
.content-page > .frame-buch { grid-column: span 2; }
.content-page > .frame-kachel {
  padding: 1.75rem 1.75rem 2rem; margin: 0 0 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); color: var(--text);
}
.content-page > .frame-kachel.frame-layout-1 { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.content-page > .frame-kachel.frame-layout-1 a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.content-page > .frame-kachel.frame-layout-2 { background: var(--blau-zart); border-color: var(--blau-zart); }
.content-page > .frame-kachel :is(h2, h3) { font-size: 1.2rem; color: inherit; margin: 0 0 0.75rem; }
.content-page > .frame-kachel a { display: inline-block; margin-top: 0.75rem; font-weight: 600; }
.content-page > .frame-buch {
  margin: 0 0 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.content-page > .frame-buch .ce-textpic { display: flex; gap: 1.25rem; align-items: flex-start; }
.content-page > .frame-buch .ce-gallery { float: none; margin: 0; flex: 0 0 42%; }
.content-page > .frame-buch .ce-gallery :is(figure, .ce-row, .ce-column) { margin: 0; }
.content-page > .frame-buch .ce-gallery img { width: 100%; height: auto; box-shadow: 0 4px 12px rgba(14, 50, 62, 0.15); }
.content-page > .frame-buch header :is(h2, h3) { font-size: 1.05rem; color: var(--text); margin: 0 0 1rem; display: block; }
.content-page > .frame-buch header h2::before { display: none; }
.content-page > .frame-buch a, .knopf {
  display: inline-block; background: var(--petrol); color: #fff; padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.content-page > .frame-buch a:hover, .knopf:hover { background: var(--blau); color: #fff; text-decoration: none; }
@media (max-width: 900px) {
  .content-page > .frame-buch { grid-column: span 3; }
}
@media (max-width: 700px) {
  .content-page > .frame-kachel, .content-page > .frame-buch { grid-column: 1 / -1; }
}

/* Rahmen „Liste als Kacheln“: Listenpunkte als Kacheln */
.content-page .frame-listenkacheln ul {
  list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem;
}
.content-page .frame-listenkacheln li {
  max-width: none; min-height: 110px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; color: var(--petrol); font-weight: 600; border-radius: var(--radius-klein);
  border: 1px solid var(--border); border-top: 3px solid var(--blau-hell); padding: 0.75rem; hyphens: auto;
}

/* Rahmen „Aufklappbar“ (Publikationen): Akkordeon */
.content-page > .frame-aufklappbar {
  padding: 0 !important; margin-bottom: 0.75rem !important; background: #fff !important;
  border: 1px solid var(--border); overflow: hidden;
}
.content-page .frame-aufklappbar header { cursor: pointer; padding: 1rem 1.5rem; display: flex; align-items: center; }
.content-page .aufklapp-knopf {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; width: 100%;
  text-align: inherit; cursor: pointer; border-radius: 4px;
}
.content-page .frame-aufklappbar header:hover { background: var(--flaeche); }
.content-page .frame-aufklappbar header h2 { flex: 1; margin: 0; font-size: 1.25rem; color: var(--petrol); }
.content-page .frame-aufklappbar header::after {
  content: ""; width: 0.6rem; height: 0.6rem; border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 0.15s; margin: -0.3rem 0.25rem 0 1rem;
}
.content-page .frame-aufklappbar.offen header::after { transform: rotate(-135deg); margin-top: 0.3rem; }
.content-page .frame-aufklappbar:not(.offen) > :not(header) { display: none; }
.content-page .frame-aufklappbar.offen header { border-bottom: 1px solid var(--border); }
.content-page .frame-aufklappbar > :not(header) { margin-left: 1.5rem; margin-right: 1.5rem; }
.content-page .frame-aufklappbar > :last-child:not(header) { margin-bottom: 1.5rem; }
.content-page .frame-aufklappbar > header + * { margin-top: 1.25rem; }

/* ---------- News ---------- */
.news-date { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.25rem; }
.news-list { border-top: 1px solid var(--border); }
.news-item {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid var(--border); position: relative;
}
.news-item.ohne-bild { grid-template-columns: minmax(0, 1fr); }
.news-item-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); }
.content-page .news-item h2 { margin: 0.1rem 0 0.5rem; font-size: 1.35rem; line-height: 1.3; }
.content-page .news-item h2 a { color: var(--petrol); text-decoration: none; }
/* Ganze Meldung klickbar */
.content-page .news-item h2 a::after { content: ""; position: absolute; inset: 0; }
.news-item:hover h2 a { text-decoration: underline; }
.news-item .news-teaser-liste { margin: 0; color: var(--text); }
.news-item .more-link { display: none; }
@media (max-width: 700px) {
  .news-item { grid-template-columns: 1fr; gap: 1rem; }
}

.news-pagination ul { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.news-pagination li { max-width: none; }
.news-pagination li a, .news-pagination li.current {
  display: block; min-width: 2.5rem; padding: 0.4rem 0.8rem; text-align: center; text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px;
}
.news-pagination li a:hover { background: var(--flaeche); }
.news-pagination li.current { background: var(--petrol); color: #fff; border-color: var(--petrol); }

/* Meldung */
.content-page .news-rubrik { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.content-page .news-rubrik a { color: var(--akzent-text); text-decoration: none; }
.content-page .news-rubrik a::before { content: "← "; }
.news-detail { max-width: 800px; }
.content-page .news-detail h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin: 0 0 0.5rem; }
.news-detail .news-bilder { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.news-detail .news-bilder figure { margin: 0; flex: 1 1 260px; }
.news-detail .news-bilder img { width: 100%; height: auto; border-radius: var(--radius); }
.news-teaser { font-size: 1.15rem; font-weight: 600; color: var(--petrol); }
.news-zurueck { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- Startseite ---------- */
body.template-startseite main {
  max-width: none; padding: 0 0 5rem; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.25rem;
}
body.template-startseite main > * { flex: 1 1 100%; }

/* Kopfbild mit Einleitung, die das Bild unten überlappt */
.banner-wrap { position: relative; }
.banner-img { width: 100%; height: auto; display: block; }
.pitch-card-row { position: relative; max-width: var(--maxw); margin: -7rem auto 0; padding: 0 1.5rem; }
.pitch-card {
  width: min(640px, 100%); margin-left: auto; background: #fff; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(14, 50, 62, 0.18); border-top: 5px solid var(--akzent);
}
.pitch-card-inner { padding: 2.25rem 2.5rem 2.5rem; }
.pitch-card .pitch-subtitle {
  order: -1; font-size: 0.8125rem; font-weight: 700; color: var(--akzent-text); letter-spacing: 0.08em; margin: 0 0 0.75rem;
}
.pitch-card .pitch-title { font-size: 1.6rem; font-weight: 700; color: var(--petrol); margin: 0 0 0.6rem; line-height: 1.2; }
.pitch-card-inner { display: flex; flex-direction: column; }
.pitch-card p { font-size: 1rem; color: var(--text); line-height: 1.6; margin: 0; }
@media (max-width: 800px) {
  .pitch-card-row { margin-top: -2rem; padding: 0 1rem; }
  .pitch-card-inner { padding: 1.5rem; }
  .pitch-card .pitch-title { font-size: 1.3rem; }
}

/* Jeder Abschnitt mit Überschrift (Forschung, News, Video, Jahresbericht) in einem eigenen grauen Kasten */
.home-section { background: var(--flaeche); border-radius: var(--radius); padding: 2rem 2.25rem 2.25rem; width: 100%; }
body.template-startseite main > .home-section { flex: 0 1 calc(var(--maxw) - 3rem); margin: 1.5rem 1.5rem 0; }
body.template-startseite main > .home-forschung { margin-top: 3.5rem; }
/* breit genug für Forschung und News nebeneinander (2 × Abschnitt + Ränder): gleicher Abstand oben, gleiche Höhe */
@media (min-width: 2420px) { body.template-startseite main > .home-forschung + .home-news { margin-top: 3.5rem; } }
.home-section h2 { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-more { font-weight: 600; white-space: nowrap; }
.section-more::after { content: " →"; }

/* Forschungsbereiche */
.forschung-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.forschung-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: box-shadow 0.2s, transform 0.2s;
}
.forschung-card:hover { text-decoration: none; box-shadow: var(--schatten); transform: translateY(-3px); }
.forschung-card-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.forschung-card-text { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.25rem 1.4rem; border-top: 4px solid var(--akzent); flex: 1; }
.forschung-card-titel { font-size: 1.15rem; font-weight: 700; color: var(--petrol); line-height: 1.3; }
.forschung-card:hover .forschung-card-titel { text-decoration: underline; }
.forschung-card-leitung { font-size: 0.9rem; color: var(--muted); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.news-box {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
}
.news-box:hover { box-shadow: var(--schatten); transform: translateY(-3px); }
.news-box-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-box.ohne-bild { border-top: 4px solid var(--blau-hell); }
.news-box-text { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; }
.news-box .news-box-date { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.35rem; }
.news-box h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 0.5rem; }
.news-box h3 a { color: var(--petrol); }
.news-box h3 a::after { content: ""; position: absolute; inset: 0; }
.news-box:hover h3 a { text-decoration: underline; }
.news-box p { font-size: 0.925rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .news-grid, .forschung-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid, .forschung-grid { grid-template-columns: 1fr; } }

/* Video und Jahresbericht (aus dem Text der Startseite) nebeneinander */
body.template-startseite main > .frame:has(> .home-video-section),
body.template-startseite main > .frame:has(> .home-double) { display: flex; margin-top: 1.5rem; min-width: 0; }
body.template-startseite main > .frame:has(> .home-video-section) { flex: 0 1 calc((var(--maxw) - 4.25rem) * 0.62); }
body.template-startseite main > .frame:has(> .home-double) { flex: 0 1 calc((var(--maxw) - 4.25rem) * 0.38); }
.home-video-section h2, .home-double h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.double-col h2 {
  display: flex; align-items: center; gap: 0.7rem; color: var(--petrol); margin: 0 0 1.25rem;
}
.double-col h2::before { content: ""; width: 1.4rem; height: 1.4rem; flex-shrink: 0; background: url(../img/pfeil.png) no-repeat center / contain; }
.video-box {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--petrol);
  box-shadow: var(--schatten);
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.double-box {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.double-box img { width: 100%; height: 260px; object-fit: contain; padding: 1.25rem 1.25rem 0; }
.double-box p { padding: 1rem 1.25rem; font-size: 0.95rem; margin: 0; }
.pdf-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1.25rem;
  background: var(--petrol); color: #fff; font-weight: 600; padding: 0.7rem 1.2rem; border-radius: 999px; text-decoration: none;
}
.pdf-btn::before { content: "↓"; }
.pdf-btn:hover { background: var(--blau); color: #fff; text-decoration: none; }
.jahresbericht-alle { display: block; margin: -0.5rem 1.25rem 1.25rem; text-align: center; font-weight: 600; }
.jahresbericht-alle::after { content: " →"; }
@media (max-width: 900px) {
  body.template-startseite main > .frame:has(> .home-video-section),
  body.template-startseite main > .frame:has(> .home-double),
  body.template-startseite main > .home-section { flex-basis: 100%; margin-left: 1rem; margin-right: 1rem; }
  .home-section { padding: 1.5rem 1.25rem 1.75rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol); color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
main + .site-footer { margin-top: 0; }
.footer-main {
  max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer-titel {
  margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blau-hell);
}
.footer-about .footer-titel { font-size: 1.5rem; letter-spacing: 0.02em; text-transform: none; color: #fff; }
.footer-note { margin: 0 0 0.35rem; max-width: 42ch; }
.site-footer address { font-style: normal; margin: 0 0 0.75rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.18em; }
.site-footer a:hover { text-decoration-color: #fff; }
.footer-social ul { list-style: none; margin: 0; padding: 0; }
.footer-social li { margin: 0 0 0.5rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.footer-social img { width: 24px; height: 24px; border-radius: 4px; }
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Förderer: Logos auf weißer Fläche */
.footer-sponsors {
  background: #fff; padding: 1.25rem 1.5rem; display: flex; justify-content: center; align-items: center;
  gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--border);
}
.footer-sponsors-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-sponsors img { height: 40px; width: auto; }
.footer-bottom { background: var(--petrol-dunkel); }
.footer-links { max-width: var(--maxw); margin: 0 auto !important; padding: 1rem 1.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.footer-links .login-link { color: rgba(255, 255, 255, 0.55); text-decoration: none; }

/* ======================================================================
   Plone-spezifisch
   ====================================================================== */

/* Statusmeldungen (z. B. „Änderungen gespeichert“) und Formulare in Seitenbreite */
#global_statusmessage { max-width: var(--textw); margin: 0 auto; padding: 0 1.5rem; }
#global_statusmessage:empty { display: none; }
#global_statusmessage .alert { margin: 1rem 0 0; }
main > #viewlet-below-content:empty, main > footer:has(#viewlet-below-content:empty) { display: none; }

/* Suche (@@search) */
body.template-search main { max-width: var(--textw); }
body.template-search #search-results li { margin-bottom: 1.2rem; }
body.template-search .documentByLine, body.template-search .search-date-options,
body.template-search #search-filter-toggle { display: none; }

/* Hinweis für Redakteure an Meldungen, die Besucher noch nicht sehen */
.news-privat {
  display: inline-block; margin-left: 0.5rem; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 700;
  background: var(--akzent-text); color: #fff; border-radius: 999px; vertical-align: middle;
}

/* Löschen bestätigen: Banner (destruction.jpg) so breit wie das Formular darüber */
body.template-delete_confirmation main { max-width: none; }
.loeschen-layout { max-width: 1500px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.loeschen-banner { width: 100%; height: auto; margin-bottom: 1.5rem; }

/* Nachricht hinzufügen: Banner (news-banner.jpg) in Formularbreite über der Überschrift */
.news-anlegen-banner { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; }

/* Bearbeitungsleiste links (nur angemeldet): BauCapy im freien Platz über dem Benutzermenü.
   Das Bild schrumpft, wenn viele Menüpunkte da sind; eingeklappt oder oben: kein Bild */
body.plone-toolbar-left-expanded #edit-zone .plone-toolbar-main { flex: 1 1 auto; min-height: 0; }
body.plone-toolbar-left-expanded #edit-zone .plone-toolbar-main::after {
  content: ""; flex: 0 1 260px; min-height: 0; margin: auto 1rem 0.75rem;
  background: url(../img/baucapy.webp) no-repeat center bottom / contain;
}

/* Personenkarten auf schmalen Bildschirmen: kleineres Foto, mehr Platz für die E-Mail-Adresse */
@media (max-width: 500px) {
  .content-page .frame-person { grid-template-columns: 56px minmax(0, 1fr); padding: 1rem; column-gap: 0.85rem; }
  .content-page .frame-person .ce-gallery img, .content-page .frame-person.frame-type-text::before { width: 56px; height: 56px; }
}

/* YouTube erst nach Einwilligung: Platzhalter mit Knopf „Video laden“ (views.youtube_einwilligung, js/site.js).
   In der .video-box der Startseite füllt er den Kasten, sonst hat er selbst das Format 16:9. */
.video-einwilligung {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1d5568 0%, var(--petrol) 55%, var(--petrol-dunkel) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; margin: 1rem 0;
}
.video-box .video-einwilligung { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; border-radius: 0; }
.video-einwilligung-inhalt { padding: 1.25rem 1.5rem; max-width: 34rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.video-play {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.video-play::before {
  content: ""; margin-left: 0.3rem; border-style: solid; border-width: 0.7rem 0 0.7rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
.content-page .video-einwilligung p, .video-einwilligung p { margin: 0; max-width: none; color: #fff; }
.video-titel { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.video-laden {
  font: inherit; font-weight: 600; color: var(--petrol); background: #fff; border: 0; border-radius: 999px;
  padding: 0.55rem 1.4rem; cursor: pointer;
}
.video-laden:hover { background: var(--blau-zart); }
.video-laden:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 3px; }
.video-einwilligung .video-hinweis { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.video-einwilligung .video-hinweis a { white-space: nowrap; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 500px) {
  .video-play { display: none; }
  .video-einwilligung .video-hinweis { font-size: 0.78rem; }
}
/* Geladenes Video außerhalb der .video-box (z. B. in News): Format 16:9 */
iframe.video-geladen { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.video-box iframe.video-geladen { position: absolute; inset: 0; height: 100%; border-radius: 0; }

/* ---------- Seiten aus der alten Website (scripts/import_fehlende_seiten.py) ---------- */

/* Einleitung (z. B. Stellen): etwas größer */
.content-page .einleitung { font-size: 1.15rem; color: var(--petrol); }

/* Stellen & Abschlussarbeiten: jedes Angebot als Karte mit Download */
.content-page .angebot {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--akzent);
  border-radius: var(--radius-klein); padding: 1rem 1.25rem; margin: 0.75rem 0;
}
.content-page .angebot :is(h3, h4) { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--petrol); }
.content-page .angebot p { margin: 0.2rem 0; font-size: 0.95rem; }
.content-page .angebot .angebot-download {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-weight: 600; text-decoration: none;
}
.content-page .angebot .angebot-download::before { content: "↓"; }
.content-page .frame h3 + .angebot { margin-top: 0.5rem; }

/* Veranstaltungen: Datum und Ort */
.content-page .termin { padding: 0.6rem 0.9rem; background: #fff; border-radius: var(--radius-klein); font-size: 0.95rem; }

/* Medienspiegel und Partner: Listen ohne Punkte, Einträge durch Linien getrennt */
.content-page :is(.medienliste, .partnerliste) { list-style: none; padding: 0; margin: 0; }
.content-page :is(.medienliste, .partnerliste) li { max-width: none; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.content-page :is(.medienliste, .partnerliste) li:last-child { border-bottom: 0; }
.content-page .medienliste a { font-weight: 600; }
.content-page .medien-quelle, .content-page .partnerliste li { font-size: 0.925rem; color: var(--muted); }
.content-page .partnerliste strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .content-page .partnerliste { columns: 2; column-gap: 2.5rem; }
  .content-page .partnerliste li { break-inside: avoid; }
}

/* Videos: Raster aus Karten (Platzhalter „Video laden“ bis zur Einwilligung) */
.content-page > .frame:has(> .video-raster) { background: none !important; padding: 0 !important; }
.video-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 1.5rem; }
.video-raster .video { margin: 0; }
.video-raster .video-box {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--petrol);
}
.video-raster .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-raster figcaption { padding: 0.6rem 0.1rem 0; font-size: 0.925rem; color: var(--muted); line-height: 1.45; }
.video-raster figcaption strong { color: var(--petrol); font-size: 1rem; }

/* ---------- Barrierefreiheit ---------- */

/* Plone-Systemseiten (Suche, Fehlerseite, Formulare): Links im Text unterstrichen, nicht nur farbig (WCAG 1.4.1).
   Die Inhaltsseiten (.content-page) und die Startseite regeln das selbst. */
body:not(.template-startseite) main:not(:has(.content-page)) a:not(.btn) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
}
/* Sichtbare Beschriftung des Suchfelds auf der Suchseite (js/site.js) */
.suchbegriff-label { display: block; flex-basis: 100%; font-weight: 600; margin-bottom: 0.3rem; }
.input-group:has(> .suchbegriff-label) { flex-wrap: wrap; }
.input-group:has(> .suchbegriff-label) > .searchPage { border-top-left-radius: var(--bs-border-radius, 0.375rem) !important; border-bottom-left-radius: var(--bs-border-radius, 0.375rem) !important; }
/* Personenseiten: Tätigkeitsfeld unter dem Namen (früher als h3 ausgezeichnet, scripts/inhalte_korrigieren.py) */
.content-page .person-funktion { font-size: 1.2rem; font-weight: 700; color: var(--petrol); line-height: 1.3; margin: 0 0 1rem; }

/* News-Liste: Filter nach Rubrik und Jahr, RSS-Link */
.news-filter { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 1.75rem; }
.news-filter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.news-filter-name { font-weight: 700; color: var(--petrol); min-width: 4.5rem; font-size: 0.9rem; }
.content-page .news-filter a {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0.2rem 0.75rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; text-decoration: none; color: var(--text);
}
.content-page .news-filter a:hover { background: var(--flaeche); }
.content-page .news-filter a.aktiv { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.news-filter .anzahl { font-size: 0.8rem; opacity: 0.75; }
.content-page .news-filter a.news-rss { align-self: flex-start; border: 0; padding-left: 0; color: var(--blau); }

/* Responsive Bilder (srcset): width/height im HTML reservieren nur den Platz; die Höhe ergibt sich aus der Breite */
main img[srcset] { height: auto; }

/* Kontakt: Lageplan (Bild von OpenStreetMap, auf dem eigenen Server; scripts/inhalte_korrigieren.py) */
.content-page .lageplan { margin: 1.5rem 0; max-width: none; }
.content-page .lageplan img { width: 100%; height: auto; border-radius: var(--radius-klein); border: 1px solid var(--border); }
.content-page .lageplan figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* RSS-Feed-Link mit dem üblichen orangen RSS-Symbol (News-Liste und Startseite) */
.rss-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.925rem; }
.rss-link::before {
  content: ""; width: 1rem; height: 1rem; flex-shrink: 0; border-radius: 3px; background: #f26522
    radial-gradient(circle at 25% 75%, #fff 0 12%, transparent 13%);
}
/* Startseite: RSS-Link und „Alle News“ nebeneinander in der Kopfzeile des News-Kastens */
.section-links { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
