/* Optisch inspiriert von: https://oberoesterreich.neos.eu/ — Magenta, viel Weiß, klare Typo */

:root {
  --neos-magenta: #e2007a;
  --magenta-bunt: #ff4fa3;
  --dunkel: #1a1030;
  --schrift: #1f1a24;
  --flaeche: #fefbfd;
  --karte: #ffffff;
  --schatten: 0 18px 48px rgba(226, 0, 120, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family:
    "Segoe UI",
    "Segoe UI Variable",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--schrift);
  background: radial-gradient(
      1200px 600px at 20% 0%,
      rgba(255, 79, 163, 0.12),
      transparent
    ),
    var(--flaeche);
  line-height: 1.45;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Erste Seite (Öffnungszeiten) im Wechsel: Foto hinter Titel + Inhalt, hell überlagert */
body.ansicht-erste-seite {
  background-color: var(--flaeche);
  background-image:
    linear-gradient(
      180deg,
      rgba(254, 251, 253, 0.78) 0%,
      rgba(254, 251, 253, 0.9) 45%,
      rgba(254, 251, 253, 0.88) 100%
    ),
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 79, 163, 0.08), transparent),
    var(--hintergrund-erste-seite, none);
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center 40%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
}

body.ansicht-erste-seite .kicker,
body.ansicht-erste-seite .titel {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Seite 1: Inhalt füllt Platz zwischen Kopf/Hero und Fuß; Bilder füllen Rest der Karte */
body.ansicht-erste-seite {
  min-height: 100vh;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.ansicht-erste-seite > .top-bar,
body.ansicht-erste-seite > .seitenkopf,
body.ansicht-erste-seite > .hero,
body.ansicht-erste-seite > .fuss {
  flex-shrink: 0;
}

body.ansicht-erste-seite > .fuss {
  padding: 0.35rem 1.25rem 0.45rem;
}

body.ansicht-erste-seite:not(.seite-5-bueroeroeffnung) .fuss-tagzeile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.05rem;
  min-width: 0;
}

body.ansicht-erste-seite:not(.seite-5-bueroeroeffnung) #bildunterschrift {
  display: block;
  flex: 0 0 auto;
  order: 2;
  margin: 0;
  width: 100%;
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow-wrap: normal;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body.ansicht-erste-seite:not(.seite-5-bueroeroeffnung) .fuss-tagzeile-kontakt {
  order: 1;
  margin: 0;
}

body.ansicht-erste-seite .hilfe {
  display: none;
}

body.ansicht-erste-seite .hero {
  padding: 0.65rem 1.25rem 0.5rem;
}

body.ansicht-erste-seite .titel {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
}

body.ansicht-erste-seite .inhalte {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1rem 0.35rem;
  max-width: min(1100px, 100%);
}

body.ansicht-erste-seite .text-spalte {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ansicht-erste-seite .erste-zeile-zwei-spalten {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ansicht-erste-seite #karte-oeffnungszeiten {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.85rem 1.1rem 0.9rem;
}

body.ansicht-erste-seite #karte-oeffnungszeiten > .blocktitel,
body.ansicht-erste-seite #karte-oeffnungszeiten > .fliesstext,
body.ansicht-erste-seite #karte-oeffnungszeiten .oe-willkommen {
  flex-shrink: 0;
}

body.ansicht-erste-seite #karte-oeffnungszeiten .oe-willkommen {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

body.ansicht-erste-seite .willkommen-absatz {
  margin-bottom: 0.5rem;
}

/* Zweite Seite (Ansprechpersonen) im Wechsel */
body.ansicht-zweite-seite {
  background-color: var(--flaeche);
  background-image:
    linear-gradient(
      180deg,
      rgba(254, 251, 253, 0.78) 0%,
      rgba(254, 251, 253, 0.9) 45%,
      rgba(254, 251, 253, 0.88) 100%
    ),
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 79, 163, 0.08), transparent),
    var(--hintergrund-zweite-seite, none);
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center 45%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
}

body.ansicht-zweite-seite .kicker,
body.ansicht-zweite-seite .titel {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.top-bar {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--neos-magenta), var(--magenta-bunt));
}

.seitenkopf {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.neos-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  text-decoration: none;
  user-select: none;
  background: transparent;
}

.neos-logo-img {
  display: block;
  width: auto;
  max-width: min(240px, 55vw);
  height: auto;
  max-height: clamp(2.25rem, 5.5vw, 3.25rem);
  object-fit: contain;
  object-position: left top;
  background: transparent;
}

.neos-logo-untertitel {
  margin-top: 0.22rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #5d4b59;
  font-weight: 700;
}

/* Datum + Uhrzeit rechts, untereinander, optisch in der Nähe der Logohöhe */
.kopf-datum-text {
  margin: 0 0 0 auto;
  padding: 0;
  max-width: min(100%, 22rem);
  font-size: clamp(0.8rem, 2.1vw, 0.95rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  color: #5c4c5a;
  min-height: clamp(2.75rem, 6.5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
}

.kopf-datum-zeile {
  display: block;
  font: inherit;
  color: inherit;
  font-weight: 600;
}

.kopf-datum-zeit {
  display: block;
  font-size: clamp(0.78rem, 2.05vw, 0.9rem);
  font-weight: 600;
  color: #6a5a68;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hero {
  text-align: center;
  padding: 1.2rem 1.5rem 1.5rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #7a5f6e;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.titel {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dunkel);
  line-height: 1.1;
}

.titel .akzent {
  color: var(--neos-magenta);
  font-style: normal;
  font-weight: 800;
}

.inhalte {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

/* Ansprechpersonen (Wechsel Seite 2): Hero/Hilfe aus, Kontakt flächig */
body.seite-2-ansprech .hero,
body.seite-2-ansprech .hilfe {
  display: none;
}

/* Büroeröffnung: Bild füllt Karte; Fuß mit Bürodaten bleibt sichtbar */
body.seite-5-bueroeroeffnung {
  min-height: 100vh;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.seite-5-bueroeroeffnung > .top-bar,
body.seite-5-bueroeroeffnung > .seitenkopf,
body.seite-5-bueroeroeffnung > .hero,
body.seite-5-bueroeroeffnung > .fuss {
  flex-shrink: 0;
}

body.seite-5-bueroeroeffnung .hero {
  padding: 0.5rem 1.15rem 0.4rem;
}

body.seite-5-bueroeroeffnung .hero .titel {
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
}

body.seite-5-bueroeroeffnung .hilfe,
body.seite-5-bueroeroeffnung #bildunterschrift {
  display: none;
}

body.seite-5-bueroeroeffnung > .fuss {
  display: block;
  padding: 0.3rem 1.25rem 0.4rem;
}

body.seite-5-bueroeroeffnung .fuss-buero {
  margin-bottom: 0.05rem;
}

body.seite-5-bueroeroeffnung .fuss-tagzeile-kontakt:not([hidden]) {
  margin-top: 0.05rem;
}

body.seite-5-bueroeroeffnung .inhalte {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  max-width: min(1400px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.15rem 1rem 0.25rem;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

body.seite-5-bueroeroeffnung .text-spalte {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.seite-5-bueroeroeffnung #karte-bueroeroeffnung {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  padding: 0.6rem 1rem 0.65rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
  overflow: hidden;
}

.bueroeroeffnung-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-bueroeroeffnung .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.bueroeroeffnung-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.bueroeroeffnung-bild-wrap {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f4eef2;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(30, 16, 48, 0.08);
}

.bueroeroeffnung-bild {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f4eef2;
  transition: opacity 0.3s ease;
}

.bueroeroeffnung-bild[src=""],
.bueroeroeffnung-bild:not([src]) {
  display: none;
}

.bueroeroeffnung-hinweis {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a3d4a;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(226, 0, 120, 0.18);
}

/* Sechste Seite: mittendrin (Gemeindezeitung) — statisches Cover-Bild
   (Hintergrund kommt aus ansicht-zweite-seite, siehe appng.js setHintergrundSeitenKlassen) */
body.seite-6-mittendrin .hero {
  padding: 0.8rem 1.5rem 0.6rem;
}

body.seite-6-mittendrin .hilfe,
body.seite-6-mittendrin #bildunterschrift {
  display: none;
}

body.seite-6-mittendrin .fuss-buero {
  margin-bottom: 0.5rem;
}

body.seite-6-mittendrin .inhalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1400px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 0.5rem;
  gap: 0;
  min-height: 0;
}

body.seite-6-mittendrin .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.seite-6-mittendrin #karte-mittendrin {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
}

.mittendrin-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-mittendrin .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.mittendrin-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.mittendrin-bild-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f4eef2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 16, 48, 0.08);
}

.mittendrin-bild {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f4eef2;
}

.mittendrin-bild[src=""],
.mittendrin-bild:not([src]) {
  display: none;
}

.mittendrin-hinweis {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a3d4a;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(226, 0, 120, 0.18);
}

/* Siebte Seite: Nocturne in Gmunden — 4 Bilder im 2×2-Raster */
body.seite-7-nocturne {
  min-height: 100vh;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.seite-7-nocturne .hero,
body.seite-7-nocturne .hilfe,
body.seite-7-nocturne #bildunterschrift {
  display: none;
}

body.seite-7-nocturne > .top-bar,
body.seite-7-nocturne > .seitenkopf,
body.seite-7-nocturne > .fuss {
  flex-shrink: 0;
}

body.seite-7-nocturne .inhalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1600px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.2rem 1rem 0.45rem;
  gap: 0;
  min-height: 0;
}

body.seite-7-nocturne .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.seite-7-nocturne #karte-nocturne {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
}

.nocturne-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-nocturne .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.nocturne-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.nocturne-raster {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.nocturne-kachel {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 0, 120, 0.14);
  box-shadow: 0 4px 14px rgba(226, 0, 120, 0.08);
  background: #f4eef2;
}

.nocturne-bild {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Achte Seite: Wochenmarkt Bad Ischl — 2 Bilder nebeneinander */
body.seite-8-wochenmarkt {
  min-height: 100vh;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.seite-8-wochenmarkt .hero,
body.seite-8-wochenmarkt .hilfe,
body.seite-8-wochenmarkt #bildunterschrift {
  display: none;
}

body.seite-8-wochenmarkt > .top-bar,
body.seite-8-wochenmarkt > .seitenkopf,
body.seite-8-wochenmarkt > .fuss {
  flex-shrink: 0;
}

body.seite-8-wochenmarkt .inhalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1600px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.2rem 1rem 0.45rem;
  gap: 0;
  min-height: 0;
}

body.seite-8-wochenmarkt .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.seite-8-wochenmarkt #karte-wochenmarkt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
}

.wochenmarkt-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-wochenmarkt .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.wochenmarkt-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.wochenmarkt-raster {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0.65rem;
}

.wochenmarkt-kachel {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 0, 120, 0.14);
  box-shadow: 0 4px 14px rgba(226, 0, 120, 0.08);
  background: #f4eef2;
}

.wochenmarkt-bild {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 700px) {
  .wochenmarkt-raster {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

/* Zehnte Seite: Zeitgeschichte Museum Ebensee — Facebook-Klarstellung */
body.seite-10-ebensee .hero {
  padding: 0.8rem 1.5rem 0.6rem;
}

body.seite-10-ebensee .hilfe,
body.seite-10-ebensee #bildunterschrift {
  display: none;
}

body.seite-10-ebensee .fuss-buero {
  margin-bottom: 0.5rem;
}

body.seite-10-ebensee .inhalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1400px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 0.5rem;
  gap: 0;
  min-height: 0;
}

body.seite-10-ebensee .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.seite-10-ebensee #karte-ebensee {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
}

.ebensee-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-ebensee .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.ebensee-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.ebensee-bild-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f4eef2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 16, 48, 0.08);
}

.ebensee-bild {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f4eef2;
}

.ebensee-bild[src=""],
.ebensee-bild:not([src]) {
  display: none;
}

.ebensee-hinweis {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a3d4a;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(226, 0, 120, 0.18);
}

/* Event-Seite (letzte Rotationsseite) */
body.seite-9-event {
  min-height: 100vh;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.seite-9-event .hilfe,
body.seite-9-event #bildunterschrift {
  display: none;
}

body.seite-9-event > .top-bar,
body.seite-9-event > .seitenkopf,
body.seite-9-event > .fuss {
  flex-shrink: 0;
}

body.seite-9-event .inhalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1400px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.2rem 1rem 0.45rem;
  gap: 0;
  min-height: 0;
}

body.seite-9-event .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.seite-9-event #karte-event {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  background: linear-gradient(165deg, #ffffff 0%, #fffbfd 60%, #fff5fa 100%);
  border: 1px solid rgba(226, 0, 120, 0.18);
  box-shadow: 0 10px 40px rgba(226, 0, 120, 0.1);
}

.event-seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.14);
  flex-shrink: 0;
}

#karte-event .blocktitel {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 0;
}

.event-untertitel {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  font-weight: 600;
  color: #6a5868;
}

.event-inhalt {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.55fr);
  gap: 0.85rem 1rem;
  align-items: stretch;
  position: relative;
}

.event-karte-link {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 0, 120, 0.14);
  box-shadow: 0 6px 24px rgba(226, 0, 120, 0.1);
  background: #fff5fa;
}

.event-karte-link:focus-visible {
  outline: 2px solid var(--neos-magenta);
  outline-offset: 3px;
}

.event-bild {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  background: #fff5fa;
}

.event-karte-text {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(26, 16, 48, 0.92), #1a1030);
  color: #fff;
}

.event-cta {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #fff;
}

.event-cta::after {
  content: " →";
  color: var(--magenta-bunt);
}

.event-url {
  margin: 0;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
}

.event-qr-block {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 0, 120, 0.16);
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(226, 0, 120, 0.08);
}

.event-qr-link {
  display: block;
  line-height: 0;
  border-radius: 8px;
  outline-offset: 3px;
}

.event-qr-link:focus-visible {
  outline: 2px solid var(--neos-magenta);
}

.event-qr-bild {
  display: block;
  width: min(100%, 240px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.event-qr-hinweis {
  margin: 0;
  text-align: center;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--neos-magenta);
}

@media (max-width: 900px) {
  .event-inhalt {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .event-qr-block {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
  }

  .event-qr-bild {
    width: 110px;
  }
}

/* Bildunterschrift weglassen, Bürozeilen im Fuß sichtbar lassen */
body.seite-2-ansprech #bildunterschrift {
  display: none;
}

body.seite-2-ansprech .seitenkopf {
  padding-bottom: 0.4rem;
}

body.seite-2-ansprech .inhalte {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: min(1400px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 0.5rem;
  gap: 0.65rem;
}

body.seite-2-ansprech .text-spalte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.seite-2-ansprech #karte-kontakt {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.15rem;
}

body.seite-2-ansprech #karte-kontakt .blocktitel {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.event-countdown[hidden] {
  display: none !important;
}

.event-countdown:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 0.45rem;
  flex-shrink: 0;
  margin: 0.15rem 1.25rem 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(226, 0, 120, 0.12),
    rgba(255, 79, 163, 0.08)
  );
  border: 1px solid rgba(226, 0, 120, 0.28);
  color: var(--neos-magenta);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
}

.event-countdown-zahl {
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-countdown-wort {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92em;
}

.event-countdown-rest {
  font-weight: 650;
  color: #5a3a52;
  font-size: 0.92em;
}

.event-countdown-hinweis {
  font-weight: 700;
  color: var(--neos-magenta);
  font-size: 0.92em;
}

body.seite-2-ansprech .kontakt-block#kontaktInhalt {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

body.seite-2-ansprech .ansprech-foto-wrap {
  width: 140px;
  height: 140px;
}

body.seite-2-ansprech .ansprech-name {
  font-size: 1.12rem;
}

.text-spalte {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Öffnungszeiten + News nebeneinander (breitere Viewports) */
.erste-zeile-zwei-spalten {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
}

.erste-zeile-zwei-spalten .karte {
  min-width: 0;
}

@media (min-width: 720px) {
  .erste-zeile-zwei-spalten:not(:has(> #karte-news[hidden])) {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }
}

.blocktitel {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neos-magenta);
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}

.fliesstext {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3a2f3a;
  white-space: pre-line;
}

.willkommen-block {
  font-size: 1.08rem;
  line-height: 1.58;
  color: #3a2f3a;
}

.willkommen-absatz {
  margin: 0 0 0.85rem;
}

.willkommen-absatz:last-child {
  margin-bottom: 0;
}

.willkommen-unterschrift {
  margin-top: 0.35rem;
  font-weight: 700;
  color: #4a3d4a;
}

.buero-block {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3a2f3a;
}

.buero-zeile {
  margin: 0.2rem 0;
}

.kontakt-block {
  font-size: 1.1rem;
  line-height: 1.65;
}

#kontaktInhalt:has(.ansprech-karte) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.15rem;
  row-gap: 0.9rem;
  align-items: stretch;
}

#kontaktInhalt:has(.ansprech-karte) .ansprech-karte {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  padding: 0.7rem 0.85rem 0.85rem;
  border: 1px solid rgba(226, 0, 120, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fffbfd 100%);
  box-shadow: 0 4px 16px rgba(226, 0, 120, 0.06);
}

@media (max-width: 640px) {
  #kontaktInhalt:has(.ansprech-karte) {
    grid-template-columns: 1fr;
  }
}

.kontakt-zeile {
  margin: 0.15rem 0;
  color: #3a2f3a;
}

.kontakt-link {
  color: var(--neos-magenta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 0, 120, 0.35);
}

.kontakt-link:hover {
  border-bottom-color: var(--neos-magenta);
}

.ansprech-karte {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 0, 120, 0.12);
}

.ansprech-karte:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Kein translateZ/isolation: In Chromium kann das weiche Skalierung der Fotos
   erzeugen. Größerer Kreis = mehr Pixel aus der Datei sichtbar. */
.ansprech-foto-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5eef2;
  border: 2px solid rgba(226, 0, 120, 0.2);
}

.ansprech-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  /* Leichter Kontrast, wirkt etwas prägnanter bei stark verkleinerten Fotos */
  filter: contrast(1.03);
}

.ansprech-body {
  min-width: 0;
  flex: 1;
}

.ansprech-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3a2f3a;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.ansprech-rolle {
  font-size: 0.95rem;
  color: #5c4c5a;
  margin: 0 0 0.2rem;
}

.ansprech-mail {
  font-size: 0.95rem;
  word-break: break-all;
}

.ansprech-telefon {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.karte {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(226, 0, 120, 0.1);
}

/* Willkommenstext in der Öffnungszeiten-Karte */
#karte-oeffnungszeiten .oe-willkommen {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(226, 0, 120, 0.15);
}

#karte-oeffnungszeiten .oe-willkommen .willkommen-block {
  margin-top: 0;
}

#karte-oeffnungszeiten .erste-seite-bilder {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(226, 0, 120, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.erste-seite-bilder-raster {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
}

.erste-seite-bild-kachel {
  margin: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(226, 0, 120, 0.14);
  box-shadow: 0 4px 14px rgba(226, 0, 120, 0.08);
  background: #f4eef2;
}

.erste-seite-bild {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 640px) {
  .erste-seite-bilder-raster {
    grid-template-columns: 1fr;
  }
}

/* News: eigenes Kartenfeld, hervorgehoben */
#karte-news.karte {
  background: linear-gradient(
    145deg,
    rgba(255, 79, 163, 0.16) 0%,
    #fff8fc 32%,
    #ffffff 100%
  );
  border: 1px solid rgba(226, 0, 120, 0.28);
  border-left: 5px solid var(--neos-magenta);
  box-shadow:
    0 8px 32px rgba(226, 0, 120, 0.14),
    0 22px 64px rgba(226, 0, 120, 0.12);
  padding: 1.65rem 1.9rem 1.75rem;
  position: relative;
  z-index: 1;
}

#karte-news .blocktitel {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neos-magenta);
  margin-bottom: 0.75rem;
}

#karte-news .fliesstext {
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 600;
  color: #2d2430;
}

#karte-news .news-countdown {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  color: var(--neos-magenta);
  letter-spacing: 0.02em;
  padding: 0.6rem 0.5rem 0.15rem;
  border-top: 1px solid rgba(226, 0, 120, 0.2);
}

.fuss {
  text-align: center;
  padding: 0.55rem 1.25rem 1rem;
  font-size: 0.95rem;
  color: #6b5a6a;
}

.fuss > .fuss-tagzeile {
  margin-top: 0.05rem;
}

.fuss .buero-zeile {
  margin: 0;
  line-height: 1.22;
}

#bueroInhalt .buero-zeile-kontakt {
  display: none;
}

.fuss-tagzeile-kontakt:not([hidden]) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin: 0.05rem auto 0;
  line-height: 1.22;
  font-size: clamp(0.78rem, 1.45vw, 1rem);
  font-weight: 600;
  color: #6b5a6a;
  white-space: nowrap;
}

.fuss-kontakt-teil .kontakt-link {
  color: var(--neos-magenta);
  font-weight: 700;
}

.fuss-kontakt-trenner {
  color: rgba(226, 0, 120, 0.45);
  font-weight: 700;
  user-select: none;
}

/* Tagline (Seite 1): stärker als übriger Fußtext, umbrechend ohne Scrollbalken */
#bildunterschrift {
  margin: 0.6rem auto 0;
  max-width: min(44rem, 100%);
  padding: 0 0.5rem;
  font-size: clamp(1.12rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--neos-magenta);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.6);
}

.fuss-buero {
  max-width: 40rem;
  margin: 0 auto 0.05rem;
}

.fuss-buero-titel {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neos-magenta);
  margin: 0 0 0.06rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Büro-/Kontakt-Footer nur auf Seite 1 */
body:not(.seite-1-start) > .fuss {
  display: none;
}

body.seite-2-ansprech > .fuss {
  display: none;
}

body.seite-2-ansprech .fuss-buero-titel {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

body.seite-2-ansprech .fuss .buero-zeile {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.1rem 0;
}

.hilfe {
  text-align: center;
  font-size: 0.75rem;
  color: #9a8a99;
  padding: 0 1rem 1.25rem;
  opacity: 0.9;
}

/* NEOS „Die Reformkraft“-Logo, unten rechts (Seite 1 & 2) */
.eck-logo-neos {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: block;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.15s ease;
  background: transparent;
}

.eck-logo-neos:hover {
  opacity: 1;
}

.eck-logo-neos:focus-visible {
  outline: 2px solid var(--neos-magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Über Hilfezeile auf Seite 1; auf Seite 2 etwas tiefer möglich */
body:not(.seite-2-ansprech) .eck-logo-neos {
  bottom: max(2.85rem, env(safe-area-inset-bottom, 0px));
}

body.seite-2-ansprech .eck-logo-neos {
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
}

.eck-logo-neos-img {
  display: block;
  width: auto;
  max-width: min(260px, 36vw);
  height: auto;
  max-height: clamp(2.25rem, 5.5vh, 3.4rem);
  object-fit: contain;
  object-position: right bottom;
  background: transparent;
}

kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid #dcc9d4;
  background: #fff;
  color: #4a3d4a;
}

@media (prefers-contrast: more) {
  .titel,
  .fliesstext,
  .willkommen-absatz,
  .willkommen-unterschrift,
  .buero-zeile,
  .fuss-buero-titel,
  .kontakt-zeile,
  .ansprech-name,
  .ansprech-rolle,
  .ansprech-telefon,
  .fuss,
  .kopf-datum-text,
  .kopf-datum-zeile,
  .kopf-datum-zeit,
  #bildunterschrift {
    color: #000;
  }
  #bildunterschrift {
    text-shadow: none;
  }
  .karte {
    border: 2px solid #000;
  }
  #karte-oeffnungszeiten .oe-willkommen {
    border-top-color: #000;
  }
  #karte-news.karte {
    background: #fff;
    border: 2px solid #000;
    border-left-width: 6px;
    box-shadow: none;
  }
  #karte-news .fliesstext,
  #karte-news .blocktitel,
  #karte-news .news-countdown {
    color: #000;
  }
  #kontaktInhalt:has(.ansprech-karte) .ansprech-karte {
    border: 2px solid #000;
    background: #fff;
    box-shadow: none;
  }
}
