﻿/* ════════════════════════════════════════════════════════════════════════════
   FMH THEME – main.css
   Verein Festungsmuseum Heldsberg  |  v1.0.0
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  --flaggenrot:   #D7181F;
  --ferngruen:    #7CC242;
  --schwarz:      #000000;
  --silber:       #BEBEBE;
  --weiss:        #FFFFFF;

  --dunkelgrau:   #111111;
  --mittelgrau:   #2A2A2A;
  --grau-900:     #1A1A1A;
  --grau-700:     #3A3A3A;
  --grau-200:     #E6E6E6;
  --grau-100:     #F4F4F2;
  --text-muted:   #666666;

  --font-head:    'Barlow Condensed', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease:         cubic-bezier(.4, 0, .2, 1);
  --dur:          .22s;
  --header-brand: 76px;   /* Höhe Brand-Bar */
  --header-nav:   64px;   /* Höhe Sticky Nav */
  --header-h:     0px;    /* Brand-Bar scrollt mit — kein fixer Offset nötig */
  --max-w:        1280px;
  --pad-x:        clamp(16px, 4vw, 40px);
  --section-py:   clamp(40px, 6vw, 80px);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grau-900);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); text-transform: uppercase; line-height: 1.05; font-weight: 800; letter-spacing: .04em; }

/* ── Layout helpers ─────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }
.section-py { padding-block: var(--section-py); }

/* ── Typography helpers ─────────────────────────────────────────────────────── */
.overline {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silber);
  margin-bottom: .75rem;
}
.overline.red  { color: var(--flaggenrot); }
.overline.dark { color: var(--grau-700); }
.section-overline {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0;
}


/* ── Brand-Bar (Schriftzug + Igel) ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: var(--flaggenrot);
}
.header-brand {
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.header-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.header-logo-link { display: flex; align-items: center; }
.header-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 80vw;
}
.header-logo path, .header-logo g { fill: #fff; }

/* ── Header Schnellmenü ──────────────────────────────────────────────────────── */
.header-quicknav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-quicknav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.header-quicknav li { display: block; }
.header-quicknav a {
  color: #fff;
  font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  padding: 6px 14px;
  transition: background var(--dur) var(--ease);
}
.header-quicknav a:hover { background: rgba(0,0,0,.25); }
@media (max-width: 640px) { .header-quicknav { display: none; } }

/* ── Sticky Navigation (Museen) ──────────────────────────────────────────────── */
.site-nav-sticky {
  position: sticky;
  top: calc(var(--header-brand) - 1px); /* -1px schliesst Subpixel-Lücke */
  z-index: 800;
  background: var(--dunkelgrau);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
}
.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

/* Primary nav */
.main-nav { display: flex; align-self: stretch; }
.main-nav > ul {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
}
.main-nav li {
  display: flex;
  align-items: center;
  position: relative;
  align-self: stretch;
}
.main-nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--weiss);
  padding: 20px 48px 20px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
/* Ab zweitem Item: Abstand für den Trenner */
.main-nav li + li a { padding-left: 48px; padding-right: 48px; }
.main-nav li::after {
  content: '';
  position: absolute;
  inset-block-end: 0; inset-inline: 0;
  height: 5px;
  background: var(--flaggenrot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.main-nav li:hover > a,
.main-nav li.current-menu-item > a { color: var(--silber); }
.main-nav li:hover::after,
.main-nav li.current-menu-item::after { transform: scaleX(1); }
/* Museum-Name: Museumsfarbe bei Hover/Aktiv */
.main-nav li:hover .nav-museum-name,
.main-nav li.current-menu-item .nav-museum-name { color: var(--flaggenrot); }
.main-nav li.museum-color-gruen:hover .nav-museum-name,
.main-nav li.museum-color-gruen.current-menu-item .nav-museum-name { color: var(--ferngruen); }

/* Akzentfarbe per Museum */
.main-nav li.museum-color-gruen::after { background: var(--ferngruen); }

/* Standorttext unter Museumsnamen */
.main-nav .nav-museum-name {
  display: block;
  line-height: 1.1;
}
.main-nav .nav-museum-location {
  display: block;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--silber);
  margin-top: 4px;
  line-height: 1;
  font-family: var(--font-body);
}
.main-nav li a {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── Dropdown-Submenü ────────────────────────────────────────────────────────── */
.main-nav li.has-submenu { position: relative; }
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: var(--dunkelgrau);
  border-top: none;
  list-style: none;
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.main-nav li.has-submenu:hover > .nav-submenu,
.main-nav li.has-submenu:focus-within > .nav-submenu { display: block; }
.nav-submenu li a {
  display: block;
  width: 100%; box-sizing: border-box;
  padding: 10px 20px;
  color: #fff;
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-submenu li:last-child a { border-bottom: none; }
.nav-submenu li a:hover,
.nav-submenu li.current a { color: var(--weiss); background: var(--grau-700); }
.nav-submenu li { display: block; position: static; }
.nav-submenu li::after { display: none; }
.main-nav .nav-submenu li a,
.main-nav .nav-submenu li + li a { padding: 10px 48px; }
.main-nav li + li .nav-submenu li a,
.main-nav li + li .nav-submenu li + li a { padding-left: 48px; padding-right: 48px; }
.nav-submenu li a::before { display: none; }
/* Sub-Submenu (3. Ebene) Desktop */
.nav-sub-submenu { display: block; list-style: none; padding: 0; border-top: 1px solid rgba(255,255,255,.06); }
.nav-sub-submenu li a {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  padding: 8px 48px;
  color: var(--weiss); font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  transition: color var(--dur), background var(--dur);
}
.nav-sub-icon { flex-shrink: 0; margin-left: 7px; margin-top: -3px; }
.nav-sub-submenu li:last-child a { border-bottom: none; }
.nav-sub-submenu li a:hover,
.nav-sub-submenu li.current a { color: var(--weiss); background: var(--grau-700); }

/* Trenner zwischen Menü-Items */
.main-nav li + li a::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,.15);
}

.nav-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Igel Signet rechts in der Nav */
.nav-igel-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-igel-link:hover { opacity: .5; }
.nav-igel-svg {
  display: block;
  height: 44px;
  width: auto;
}
.nav-igel-svg path, .nav-igel-svg g { fill: #fff; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: absolute;
  right: var(--pad-x);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--weiss);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── STANDORTKARTE (Leaflet) ────────────────────────────────────────────────── */
.map-section { background: var(--dunkelgrau); position: relative; margin-top: 0; }
body > #main, body > main, #main { margin-top: 0; padding-top: 0; }

.map-slogan {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  left: var(--pad-x);
  z-index: 1000;
  pointer-events: none;
  color: var(--weiss);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
/* Kartenhöhe per Breakpoint */
#fmh-map {
  height: 380px;   /* Desktop */
  width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
@media (max-width: 1280px) { #fmh-map { height: 340px; } }
@media (max-width: 1024px) { #fmh-map { height: 300px; } }
@media (max-width: 768px)  { #fmh-map { height: 340px; } }
@media (max-width: 480px)  { #fmh-map { height: 300px; } }

/* Mobile Hinweistext auf Leaflet-Karte */
.fmh-map-hint {
  display: none;
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.85);
  font-family: var(--font-body);
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
@media (max-width: 1024px) { .fmh-map-hint { display: block; } }

/* Tiles heller + Seam-Fix (weisse Linien zwischen Kacheln) */
.leaflet-tile { filter: brightness(2.4) contrast(0.85); }
#fmh-map, #museum-arrival-map, #news-arrival-map { background: #111; }
.leaflet-tile-container { image-rendering: -webkit-optimize-contrast; }

/* Karten-Responsive */
@media (max-width: 768px) {
  /* Infoboxen kleiner */
  .fmh-card { padding: 7px 10px; }
  .fmh-card-name { font-size: .9rem; }
  .fmh-card-ort  { font-size: .8rem; }
  /* Abstand Dot→Karte */
  .fmh-mwrap { gap: 10px; }
  /* Slogan */
  .map-slogan { font-size: 1rem; top: 12px; }
}
@media (max-width: 480px) {
  /* Infoboxen auf sehr kleinen Screens ausblenden — nur Dots */
  .fmh-card { display: none; }
  .map-slogan { font-size: .85rem; top: 8px; }
}

/* Anfahrtskarte: Legende unterhalb der Karte (Desktop & Mobile) */
.fmh-arrival-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.fmh-arrival-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fmh-arrival-legend-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-head);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.fmh-arrival-legend-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}
.fmh-arrival-legend-body strong {
  font-size: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--grau-900);
}
.fmh-arrival-legend-desc {
  font-size: 1rem;
  color: var(--grau-700);
  line-height: 1.4;
}
.fmh-arrival-legend-desc strong,
.fmh-arrival-legend-desc b {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: 700;
}
.fmh-arrival-legend-link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
}
.fmh-arrival-legend-link:hover { text-decoration: underline; }

/* Leaflet Attribution */
.leaflet-control-attribution {
  background: rgba(42,42,42,0.5) !important;
  color: rgba(255,255,255,.55) !important;
  font-size: 10px !important;
  border-radius: 4px 0 0 0 !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,.7) !important; }
.leaflet-control-attribution.fmh-attr-collapsed { padding: 2px 5px !important; }
.fmh-attr-icon-inner {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  line-height: 1;
  padding: 1px 2px;
}
.fmh-attr-icon-inner svg { width: 14px; height: 14px; display: block; }

/* Leaflet Zoom-Buttons */
.leaflet-control-zoom a {
  background: var(--mittelgrau) !important;
  color: var(--weiss) !important;
  border-color: rgba(255,255,255,.1) !important;
}
.leaflet-control-zoom a:hover { background: var(--grau-700) !important; }

/* Marker-Wrapper (Dot + Karte nebeneinander) */
.fmh-mwrap {
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

/* Infobox-Karte (Hotspot-Map) */
.fmh-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "ort ";
  row-gap: 3px;
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: 3px solid var(--mc);
  padding: 10px 14px;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
  pointer-events: auto;
  white-space: nowrap;
}
.fmh-card:hover { background: rgba(24,24,24,.95); }
.fmh-card-status {
  display: block;
  font-size: 1rem; font-weight: 700;
  color: #7CC242;
  margin-top: 4px;
  letter-spacing: .03em;
}
.fmh-card-topic {
  display: block;
  font-size: .8rem;
  color: rgba(124,194,66,.75);
  font-style: italic;
}
.fmh-card-name {
  grid-area: name;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--weiss); line-height: 1.2;
}
.fmh-card-ort {
  grid-area: ort;
  font-size: .875rem; color: var(--silber);
}
/* Pulsierender Marker-Dot */
.fmh-dot {
  width: 22px; height: 22px;
  min-width: 22px; min-height: 22px;
  background: var(--mc);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 0 14px var(--mc);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fmh-dot:hover { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 0 24px var(--mc); }
.fmh-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: var(--mc);
  opacity: 0;
  animation: fmhPulse 2.4s ease-out infinite;
}
@keyframes fmhPulse {
  0%   { transform: scale(.7); opacity: .55; }
  100% { transform: scale(2.2); opacity: 0; }
}


/* ── HERO (front page) ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dunkelgrau);
}
.hero-bg {
  position: absolute; inset: -30% 0;
  background-size: cover;
  background-position: center 65%;
  scale: 1.04;
  transition: scale 1.2s var(--ease);
}
.hero.loaded .hero-bg { scale: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 100%);
}
.hero-watermark {
  position: absolute;
  inset-block-end: 32px; inset-inline-end: 32px;
  width: min(420px, 40vw);
  opacity: .22;
  pointer-events: none;
  user-select: none;
}
.hero-watermark img { width: 100%; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 760px;
  color: var(--weiss);
  padding-block: 140px 80px;
}
.hero-overline {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--flaggenrot);
  margin-bottom: 1rem;
  text-shadow:
    0 1px 3px rgba(0,0,0,.9),
    0 2px 12px rgba(0,0,0,.7),
    0 0 24px rgba(215,24,31,.35);
}
.hero-title {
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  letter-spacing: .01em;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--flaggenrot);
  color: var(--weiss);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-cta:hover { background: #b5141a; transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  inset-block-end: 28px; inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: heroScroll 2.5s var(--ease) infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: .7; }
}

/* ── SECTION HEADERS ────────────────────────────────────────────────────────── */
.section-header { margin-bottom: clamp(36px, 5vw, 60px); }
.section-title {
  font-size: clamp(1.95rem, 3.5vw, 3rem);
  color: var(--schwarz);
  letter-spacing: .02em;
}
.section-title.light { color: var(--weiss); }

/* ── MUSEUMS SECTION ─────────────────────────────────────────────────────────── */
.museums-section {
  background: var(--grau-100);
  padding-block: var(--section-py);
}
.museums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .museums-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Museum Card */
.museum-card {
  background: var(--weiss);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.museum-card:hover { transform: translateY(-5px); box-shadow: 0 12px 48px rgba(0,0,0,.14); }

.museum-card-img { height: 240px; overflow: hidden; position: relative; flex-shrink: 0; }
.museum-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.museum-card:hover .museum-card-img img { transform: scale(1.06); }
.museum-card-placeholder {
  width: 100%; height: 100%;
  background: var(--dunkelgrau);
  display: flex; align-items: center; justify-content: center;
}
.museum-card-placeholder img { height: 80px; opacity: .25; }

.museum-card-accent { height: 5px; flex-shrink: 0; }
.accent-rot   { background: var(--flaggenrot); }
.accent-gruen { background: var(--ferngruen); }

.museum-card-body { padding: clamp(20px, 3vw, 28px); flex: 1; display: flex; flex-direction: column; gap: 0; }

.museum-card-location {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--silber);
  margin-bottom: 8px;
}
.museum-card-title {
  font-size: clamp(1.45rem, 2vw, 1.6rem);
  letter-spacing: .01em;
  color: var(--schwarz);
}
.museum-card-title a { color: inherit; text-decoration: none; }
.museum-card-title a:hover { color: var(--accent, var(--flaggenrot)); }
.museum-card-title {
  margin-bottom: 20px;
  line-height: 1.1;
}

.museum-card-dates { margin-bottom: 0; }
.museum-sidebar .museum-card-dates { margin-bottom: 0; }
.dates-paginator { height: 500px; overflow: visible; clip-path: inset(0 0 0 -30px); }
.museum-card .dates-paginator { height: 350px; }
.museum-card-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dates-label {
  font-family: var(--font-head);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--schwarz); margin-bottom: 6px;
}
.dates-label-open {
  color: var(--ferngruen) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pulsierender grüner Kreis */
.open-pulse-dot {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ferngruen);
  position: relative;
  flex-shrink: 0;
}
.open-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--ferngruen);
  opacity: 0;
  animation: openPulse 2.4s ease-out infinite;
}
@keyframes openPulse {
  0%   { transform: scale(.6); opacity: .6; }
  100% { transform: scale(2.4); opacity: 0; }
}
.dates-subnote {
  font-size: .875rem; color: var(--text-muted);
  margin-bottom: 10px; line-height: 1.5;
}
/* Datum-Gruppen (pro Tag) */
.date-group {
  padding: 9px 0;
  border-bottom: 1px solid var(--grau-200);
}
.date-group:last-child { border-bottom: none; }
.date-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.date-group > .date-text,
.date-head > .date-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; letter-spacing: .01em;
}
.date-open-now {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-size: .875rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ferngruen);
  white-space: nowrap;
}
.date-event {
  font-size: 1rem; color: var(--grau-700);
  font-family: var(--font-body);
  line-height: 1.65;
}
.date-event + .date-event { margin-top: 3px; }
.date-event--open-now { display: flex; align-items: center; gap: 8px; }
.date-event--open-now > .open-pulse-dot::after { inset: -5px; }
.date-event--open-now .date-event-topic { color: var(--ferngruen) !important; font-weight: 600; }
.date-time { display: inline; color: var(--grau-700); }
.date-time--red { color: var(--flaggenrot); }
.date-event-topic {
  display: inline;
  color: var(--flaggenrot); /* event_open / event_registration = rot */
  font-weight: 400; font-style: normal;
  word-break: break-word; overflow-wrap: break-word;
}
.date-event-regular {
  color: var(--grau-700) !important; /* regular / event_during_regular = grau */
  font-weight: 400;
}
.date-event-link {
  text-decoration: none;
  color: inherit;
}
.date-event-link:hover { text-decoration: underline; text-decoration-color: var(--flaggenrot); }
.date-event-link--regular:hover { text-decoration-color: var(--grau-700); }
.date-event-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  flex-shrink: 0;
  opacity: .65;
  color: var(--grau-700);
}
.date-event-link:not(.date-event-link--regular) .date-event-arrow { color: var(--flaggenrot); }

.date-event-chip {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-left: 5px;
  white-space: nowrap;
  color: var(--museum-accent, var(--accent, #D7181F));
  border: 1px solid var(--museum-accent, var(--accent, #D7181F));
  opacity: .85;
}

/* ── FMH Anmeldung via News Block ── */
.fmh-anmeldung-block {
  background: var(--grau-100);
  padding: 24px 28px;
}
.fmh-anmeldung-facts {
  display: grid;
  gap: 10px;
}
.fmh-anmeldung-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--grau-200);
}
.fmh-anmeldung-event-topic {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}
.fmh-anmeldung-event-date {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.fmh-anmeldung-fact {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
}
.fmh-anmeldung-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--grau-700);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: 2px;
}
.fmh-anmeldung-value {
  font-size: .9375rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.fmh-anmeldung-btn { text-decoration: none !important; }
.fmh-anmeldung-block .date-event-chip {
  font-size: .8rem;
  padding: 0 10px 0 0;
  line-height: 2.4;
  position: static;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.fmh-anmeldung-block .date-event-chip::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 2.4em;
  height: 2.4em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Links im Öffnungszeiten-Hinweis */
.date-item .date-event-topic a {
  color: var(--museum-accent, var(--accent, #D7181F));
  text-decoration: none;
}
.date-item .date-event-topic a::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background-color: var(--museum-accent, var(--accent, #D7181F));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Rückwärtskompatibilität */
.date-item { padding: 9px 0; border-bottom: 1px solid var(--grau-200); display: grid; gap: 2px; }
.date-item:last-child { border-bottom: none; }
.date-text { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.date-topic { font-size: .875rem; color: var(--text-muted); }
.date-topic-special { display: inline-flex; align-items: center; gap: 4px; color: var(--flaggenrot); font-weight: 500; }

/* Pagination */
.dates-pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; gap: 8px;
}
.dates-prev, .dates-next {
  background: var(--grau-100); border: 1px solid var(--grau-200);
  color: var(--grau-900); padding: 4px 12px; cursor: pointer;
  font-size: 1.1rem; line-height: 1; transition: background var(--dur) var(--ease);
  font-family: inherit;
}
.dates-prev:hover, .dates-next:hover { background: var(--grau-200); }
.dates-prev:disabled, .dates-next:disabled { opacity: .35; cursor: default; }
.dates-page-info { font-size: .85rem; color: var(--text-muted); font-family: var(--font-head); }

.museum-card-price {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--grau-700);
  background: var(--grau-100);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.museum-card-open-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ferngruen);
  margin-bottom: 12px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 24px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-rot   { background: var(--flaggenrot); color: var(--weiss); border-color: var(--flaggenrot); }
.btn-rot:hover { box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.25); border-color: rgba(0,0,0,0.25); }
.btn-gruen { background: var(--ferngruen);  color: var(--weiss); border-color: var(--ferngruen); }
.btn-gruen:hover { box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.25); border-color: rgba(0,0,0,0.25); }
.btn-onlightbg { box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.12); }
.btn-onlightbg:hover { box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.25); border-color: rgba(0,0,0,0.25); color: inherit !important; }
.btn-ondarkbg { box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.12); color: var(--weiss) !important; }
.btn-ondarkbg:hover { box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.25); color: var(--weiss) !important; }
.btn-full { width: 100%; }

/* ── NEWS SECTION ───────────────────────────────────────────────────────────── */
.news-section {
  background: var(--dunkelgrau);
  padding-block: var(--section-py);
}
.news-section .section-overline { color: var(--weiss); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.news-card {
  background: var(--mittelgrau);
  display: flex; flex-direction: column;
  transition: background var(--dur) var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { background: var(--grau-700); transform: translateY(-5px); }
.news-card-img { height: 200px; overflow: hidden; flex-shrink: 0; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-placeholder {
  width: 100%; height: 100%;
  background: var(--dunkelgrau);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.news-card-body { padding: 24px; flex: 1; }
.news-card .news-card-date    { font-size: 1rem; color: var(--silber); margin-bottom: 8px; font-family: var(--font-head); letter-spacing: .05em; }
.news-card .news-card-title   { font-size: 1.2rem; color: var(--weiss) !important; margin-bottom: 10px; }
.news-card .news-card-excerpt { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--schwarz); }
.footer-top { padding-block: clamp(48px, 7vw, 80px) clamp(40px, 5vw, 64px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand { text-align: right; }
.footer-brand img { width: 220px; max-width: 100%; margin-bottom: 20px; margin-left: auto; opacity: .7; }
.footer-tagline { color: rgba(255,255,255,.5); font-size: 1rem; line-height: 1.7; }
.footer-nav h4 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--weiss);
  margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: 1rem; transition: color var(--dur) var(--ease); }
.footer-nav a:hover { color: var(--weiss); }
.footer-contact { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.9; }
.footer-contact strong {
  display: block; margin-bottom: 8px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--weiss);
}
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--weiss); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; color: rgba(255,255,255,.65);
}
.footer-bottom-inner ul { display: flex; gap: 24px; }
.footer-bottom-inner a { color: rgba(255,255,255,.65); }
.footer-bottom-inner a:hover { color: rgba(255,255,255,.7); }

/* ── Mobile Trennbalken (zwischen Karte und Hero auf Tablet/Mobile) ──────────── */
.mobile-nav-divider { display: none; }
@media (max-width: 1024px) {
  .mobile-nav-divider {
    display: block;
    height: 4px;
    background: var(--flaggenrot);
  }
}

/* ── MUSEUM PAGE ────────────────────────────────────────────────────────────── */
.museum-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 7vw, 72px);
  padding-top: var(--header-h);
  background: var(--dunkelgrau);
  overflow: hidden;
}
.museum-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.museum-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.1) 100%);
}
.museum-hero-content { position: relative; z-index: 1; color: var(--weiss); }
.museum-hero-location {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.museum-hero-accent-line { display: block; width: 32px; height: 3px; flex-shrink: 0; }
.museum-hero-title {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.museum-hero-sub { font-size: 1rem; color: rgba(255,255,255,.65); }

/* Facts bar */
.museum-facts { background: var(--schwarz); }
.museum-facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact-item {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  color: var(--weiss);
}
.museum-facts-inner .fact-item:first-child { padding-left: 0 !important; }
.fact-item:last-child { border-right: none; }
.museum-facts-inner .fact-label svg { stroke: var(--museum-accent, #D7181F); }
.sidebar-card-title svg { stroke: var(--grau-700); }
/* ── Sidebar Typografie-System ────────────────────────────────────────────── */
/* Label (Abschnittstitel): alle gleich */
.fact-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.fact-value { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.fact-value a { color: inherit; }
.fact-value a:hover { text-decoration: underline; }

/* Museum layout */
.museum-main { padding-block: var(--section-py); }
.museum-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
/*
  Museum-Layout: 2 Grid-Kinder
  Desktop: museum-left-col (links, flex) | museum-sidebar (rechts, sticky)
  Mobile:  display:contents unwrapped → CSS order 1–6 bestimmt Reihenfolge
*/
.museum-left-col {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  min-width: 0;
}
.museum-body { min-width: 0; }
.museum-body h2,
.museum-map-section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: 20px;
}
.museum-body h2:first-child { margin-top: 0; }
/* Anfahrt & Lage: Flex-Gap ersetzt margin-top, padding-top gibt den gleichen optischen Abstand */
.museum-map-section h2 { margin-top: 0; }
.museum-body p  { margin-bottom: 1rem; color: var(--grau-700); line-height: 1.75; }
.museum-body ul { margin-bottom: 1rem; padding-left: 1.2em; list-style: square; color: var(--grau-700); }
.museum-body li { margin-bottom: 6px; }
.museum-body a  { color: var(--flaggenrot); text-decoration: underline; }
.museum-body a:hover { color: #b5141a; }
/* Scroll-Offset: Sticky-Nav nicht überdecken */
#anfahrt { scroll-margin-top: 100px; }
.museum-map { height: 400px; margin-top: 20px; }
.museum-map iframe { width: 100%; height: 100%; border: none; }
#museum-arrival-map { width: 100%; }

/* Museum sidebar: rechte Spalte, sticky
   KEIN display:flex auf dem sticky Element → vermeidet WebKit-Rendering-Bug
   (flex+sticky-Kombination kann Kinder beim Scrollen überlagern lassen) */
.museum-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.museum-sidebar > * + * { margin-top: 20px; }
.museum-sidebar-mid > * + * { margin-top: 20px; }
.museum-boxes-section > * + * { margin-top: 20px; }
.museum-sp-boxes-section > * + * { margin-top: 20px; }
/* Sidebar-Überschriften – global einheitlich */
.sidebar-card-title,
.dates-label {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .04em;
}
.sidebar-card { background: var(--grau-100); padding: 24px; }
.sidebar-card-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--grau-700);
  margin-bottom: 12px;
}
.sidebar-text { font-family: var(--font-body); font-size: 1rem; color: var(--grau-700); line-height: 1.65; margin-bottom: 4px; }
.sidebar-note { font-family: var(--font-body); font-size: 1rem; color: var(--silber); margin-top: 8px; }

/* Preis-Tabelle Sidebar */
.sidebar-price-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.fmh-price-table .sidebar-price-table { border-bottom: 1px solid var(--grau-200); }
.fmh-price-table .price-row:last-child td { border-bottom: none; }
.price-row td { padding: 5px 0; border-bottom: 1px solid var(--grau-200); vertical-align: baseline; }
.price-row:last-child td { border-bottom: none; }
.price-name  { font-size: 1rem; color: var(--grau-700); }
.price-amount { text-align: right; white-space: nowrap; width: 1%; }
.price-info-icon {
  font-style: normal; font-weight: 700; font-size: .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #0073aa; color: #fff;
  cursor: help; margin-left: 6px; flex-shrink: 0;
  text-decoration: none; line-height: 1;
  position: relative; top: -2px;
}
.price-info-icon:hover { background: var(--grau-700); }

/* JS-Tooltip (body-level, kein overflow-Problem) */
.fmh-price-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--grau-700);
  color: var(--weiss);
  font-size: .85rem; font-weight: 400;
  padding: 7px 13px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .15s ease;
}
.price-amount { font-size: 1rem; text-align: right; white-space: nowrap; width: 1%; padding-left: 12px; }
.price-prefix { color: var(--grau-700); font-size: .875rem; margin-right: 2px; }
.price-name svg { vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.price-chf {
  color: var(--text-muted); font-size: .875rem;
  display: inline-block; width: 30px; text-align: right;
  margin-right: 4px;
}
.price-int {
  font-weight: 600; color: var(--grau-900);
  font-variant-numeric: tabular-nums;
  display: inline-block; width: 24px; text-align: right;
}
.price-dec {
  font-weight: 600; color: var(--grau-900);
  font-variant-numeric: tabular-nums;
}
.price-gratis { color: var(--ferngruen); font-weight: 600; }

.sidebar-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--grau-700);
  margin-bottom: 10px;
}
.sidebar-price-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.sidebar-price-list li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 1rem; color: var(--grau-700); line-height: 1.4;
}
.sidebar-price-list li::before {
  content: '▪';
  color: var(--silber);
  flex-shrink: 0;
  font-size: .85rem;
}
.sidebar-date-item { padding: 10px 0; border-bottom: 1px solid var(--grau-200); }
.sidebar-date-item:last-child { border-bottom: none; }
.sidebar-date-main { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.sidebar-date-time { font-size: 1rem; color: var(--text-muted); }
.sidebar-date-topic { display: flex; align-items: center; gap: 4px; font-size: 1rem; color: var(--flaggenrot); font-weight: 500; margin-top: 2px; }

.sidebar-card-accent { color: var(--weiss); }

/* ── PAGE / GENERIC ─────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--grau-100);
  padding-block-start: calc(var(--header-h) + clamp(32px, 5vw, 56px));
  padding-block-end: clamp(32px, 5vw, 56px);
}
.page-hero-title { font-size: clamp(2.15rem, 4vw, 3.5rem); color: var(--grau-900); }

.page-content { padding-block: var(--section-py); }
.page-content-inner { max-width: 820px; }
.page-sidebar { position: sticky; top: calc(var(--header-brand) + var(--header-nav) + 32px); }
.page-sidebar > * + * { margin-top: 20px; }

/* Führung buchen Layout */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.book-sidebar {
  position: sticky;
  top: calc(var(--header-brand) + var(--header-nav) + 32px);
}
.book-sidebar > * + * { margin-top: 20px; }
.entry-content h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 2.5rem 0 1rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: clamp(1.25rem, 1.5vw, 1.4rem); margin: 2rem 0 .75rem; }
.entry-content p  { margin-bottom: 1rem; color: var(--grau-700); line-height: 1.75; }
.entry-content ul { margin-bottom: 1rem; padding-left: 1.2em; list-style: square; }
.entry-content ul li { margin-bottom: 6px; color: var(--grau-700); }
.entry-content ol { margin-bottom: 1rem; padding-left: 24px; }
.entry-content ol li { margin-bottom: 6px; color: var(--grau-700); }
.entry-content a { color: var(--flaggenrot); text-decoration: underline; }
.entry-content a:hover { color: #b5141a; }
.entry-content a.btn { text-decoration: none !important; }
.fmh-button-wrap a { text-decoration: none !important; }
.entry-content strong { color: var(--grau-900); }
.entry-content img { margin-block: 2rem; max-width: 100%; }
.wp-block-image { margin-block: 2rem; }
.wp-block-image img { margin-block: 0; }
.wp-block-image figcaption { margin-top: 6px; color: var(--grau-700); font-size: .875rem; }
.wp-block-verse { font-family: var(--font-head); text-transform: uppercase; font-weight: 800; letter-spacing: .04em; font-size: 1.25rem; line-height: 1.4; color: var(--grau-900); white-space: pre-wrap; margin-block: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content td, .entry-content th { padding: 10px 14px; border: 1px solid var(--grau-200); font-size: 1rem; }
.entry-content th { background: var(--grau-100); font-family: var(--font-head); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.entry-content hr { border: none; border-top: 1px solid var(--grau-200); margin-block: 2rem; }

/* ── Museum-News Layout Grid ────────────────────────────────────────────────── */
/* Desktop: article oben links | aside rechts (2 Zeilen) | Karte unten links   */
/* Mobile DOM-Order: article → aside → Karte (Karte immer unter Adress-Sidebar) */
.news-museum-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.news-museum-grid .news-museum-article {
  grid-column: 1;
  grid-row: 1;
}
.news-museum-grid aside {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.news-museum-grid .news-museum-map-col {
  grid-column: 1;
  grid-row: 2;
}
@media (max-width: 1024px) {
  .news-museum-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .news-museum-grid .news-museum-article,
  .news-museum-grid aside,
  .news-museum-grid .news-museum-map-col {
    grid-column: 1;
    grid-row: auto;
  }
  .news-museum-grid aside { position: static !important; }
}

/* ── FMH Custom Blocks ──────────────────────────────────────────────────────── */
.wp-block-fmh-infobox { margin-block: 1.5em; }
.wp-block-fmh-infobox:first-child { margin-top: 0; }
.wp-block-fmh-infobox:last-child  { margin-bottom: 0; }
.wp-block-fmh-button { margin-block: 1em; }
.fmh-infobox { padding: 24px; }
.fmh-infobox-overline {
  font-family: var(--font-head); font-weight: 700; font-size: 0.875rem;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 3px;
}
.fmh-infobox-title { margin: 0 0 12px; }
.fmh-infobox-overline + .fmh-infobox-title { margin-top: 4px; }
.fmh-infobox-content { line-height: 1.75; margin: 0 0 20px; opacity: .9; }
.fmh-infobox strong, .fmh-infobox b { color: inherit; }
.fmh-infobox-content:last-child,
.fmh-infobox-title:last-child { margin-bottom: 0; }
.fmh-infobox-btn { margin-top: 4px; text-decoration: none !important; }
.fmh-infobox-btn:hover,
.fmh-block-btn:hover,
.sidebar-box-btn:hover,
.fmh-reviews-footer-btn:hover,
.sidebar-card .btn-onlightbg:hover {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: transparent;
  color: inherit;
}
.fmh-button-wrap { margin-block: 4px; }
/* Globale Sidebar-Boxen */
.sidebar-box-text  { font-size:1rem;line-height:1.7;margin:0; }
.sidebar-box-text a { text-decoration:none !important; }
.sidebar-box-text a:hover { text-decoration:underline !important; }
.sidebar-box-btn   { margin-top:16px;text-decoration:none !important; }

/* ── POSTS ──────────────────────────────────────────────────────────────────── */
.post-hero-section { min-height: 50vh; }
.post-hero-section.no-hero-image { background: var(--grau-100); min-height: clamp(160px, 16vw, 220px); padding-top: calc(var(--header-h) + clamp(32px, 4vw, 48px)); padding-bottom: clamp(24px,3vw,40px); }
.post-hero-section.no-hero-image .museum-hero-overlay { display: none; }
.post-hero-section.no-hero-image .museum-hero-content { color: var(--grau-900); }
.post-hero-section.no-hero-image .museum-hero-title { color: var(--grau-900); }
.post-hero-section.no-hero-image .museum-hero-location { color: var(--grau-700); }
.post-hero-museum-name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-top: 12px; }
.hero-loc-text { display: inline; }
@media (max-width: 640px) {
  .hero-loc-sep { display: none; }
  .hero-loc-date, .hero-loc-museum { display: block; }
}
.post-featured-img { padding-block: 40px; background: var(--grau-100); }
.post-featured-img img { border: none; }
.post-content { padding-block: clamp(32px, 5vw, 64px); }
.post-content-inner { max-width: 760px; }
.post-back { padding-block-end: clamp(24px, 4vw, 48px); }

/* ── WPForms Styling ─────────────────────────────────────────────────────────── */
/* Readonly-Felder: WPForms disabled-Grau überschreiben (Führung buchen + Anmeldung) */
#wpforms-307-field_18-container textarea,
#wpforms-307-field_18-container input,
#wpforms-307-field_18,
#wpforms-442-field_24-container textarea,
#wpforms-442-field_24-container input,
#wpforms-442-field_22-container textarea,
#wpforms-442-field_22-container input,
#wpforms-442-field_16-container textarea,
#wpforms-442-field_16-container input,
#wpforms-442-field_18-container textarea,
#wpforms-442-field_18-container input {
  color: var(--wpforms-field-text-color) !important;
  -webkit-text-fill-color: var(--wpforms-field-text-color) !important;
  opacity: 1 !important;
}
.wpforms-submit-container .wpforms-submit,
.wpforms-form button[type=submit] {
  background: var(--flaggenrot) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-head) !important;
  font-size: .875rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  cursor: pointer !important;
  transition: background var(--dur) var(--ease) !important;
}
.wpforms-submit-container .wpforms-submit:hover,
.wpforms-form button[type=submit]:hover {
  background: #b5141a !important;
}


/* ── Formulare ──────────────────────────────────────────────────────────────── */
.fmh-form { display: flex; flex-direction: column; gap: 16px; }
.fmh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .fmh-form-row { grid-template-columns: 1fr; } }
.fmh-form-group { display: flex; flex-direction: column; gap: 6px; }
.fmh-form-label { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grau-900); }
.fmh-form-label .req { color: var(--flaggenrot); font-size: .85em; }
.fmh-form-input {
  width: 100%; padding: 10px 14px; box-sizing: border-box;
  border: 1px solid var(--grau-200); background: var(--weiss);
  font-family: var(--font-body); font-size: 1rem; color: var(--grau-900);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-radius: 0;
}
.fmh-form-input:focus { outline: none; border-color: var(--flaggenrot); box-shadow: 0 0 0 3px rgba(215,24,31,.12); }
.fmh-form-input::placeholder { color: var(--grau-400, #9ca3af); }
.fmh-form-sep { border: none; border-top: 1px solid var(--grau-200); margin: 4px 0; }

/* Post list (index.php) */
.post-list-item { margin-bottom: 56px; }
.post-list-item.has-thumb { display: grid; grid-template-columns: 1fr 40%; gap: 24px; align-items: stretch; }
.post-list-item.has-thumb .post-list-thumb { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; border-radius: 3px; }
.post-list-item.has-thumb .post-list-body  { grid-column: 1; grid-row: 1; }
.post-list-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-list-item.has-thumb:hover .post-list-thumb img { transform: scale(1.04); }
.post-list-date { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--silber); margin-bottom: 8px; }
.post-list-title { font-size: clamp(1.55rem, 2vw, 2rem); margin-bottom: 12px; }
.post-list-title a { color: var(--schwarz); }
.post-list-title a:hover { color: var(--post-accent, var(--flaggenrot)); }
.post-list-item .btn-onlightbg:hover { background: var(--post-accent-btn, var(--flaggenrot)); border-color: var(--post-accent-btn, var(--flaggenrot)); color: #fff; box-shadow: none; }
.post-list-excerpt { margin-bottom: 16px; color: var(--grau-700); }

/* Archive */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.archive-card { background: var(--grau-100); overflow: hidden; }
.archive-card-img { height: 220px; overflow: hidden; }
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-body { padding: 24px; }
.archive-card-date { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--silber); margin-bottom: 8px; }
.archive-card-title { font-size: 1.3rem; margin-bottom: 12px; }
.archive-card-title a { color: var(--schwarz); }
.archive-card-title a:hover { color: var(--flaggenrot); }
.archive-card-excerpt { margin-bottom: 16px; font-size: 1rem; color: var(--grau-700); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination .current {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-head); font-weight: 700;
  border: 1px solid var(--grau-200);
  font-size: .9rem; transition: all var(--dur) var(--ease);
}
.pagination a:hover { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.pagination .current { background: var(--flaggenrot); color: var(--weiss); border-color: var(--flaggenrot); }

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.error-404-wrap {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  padding-block: calc(var(--header-h) + 40px) 80px;
}
.error-404-content { text-align: center; max-width: 560px; }
.error-igel { margin-bottom: 24px; display: flex; justify-content: center; }
.error-number {
  font-family: var(--font-head); font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800; color: var(--grau-200); line-height: 1; margin-bottom: 8px;
}
.error-title { font-size: clamp(1.65rem, 3vw, 2rem); margin-bottom: 12px; }
.error-text  { color: var(--text-muted); margin-bottom: 32px; }

/* ══ MOBILE DRAWER ═══════════════════════════════════════════════════════════ */
.fmh-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  flex-shrink: 0;
}
.fmh-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fmh-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.fmh-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fmh-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.fmh-drawer-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 1099;
  opacity: 0; transition: opacity .3s;
}
.fmh-drawer-backdrop.open { display: block; opacity: 1; }

.fmh-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: min(340px, 90vw);
  background: var(--dunkelgrau);
  z-index: 1100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.fmh-drawer.open { transform: translateX(0); }

.fmh-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--flaggenrot);
  flex-shrink: 0;
}
.fmh-drawer-logo { display: flex; align-items: center; }
.fmh-drawer-close {
  background: none; border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
  line-height: 1;
}

/* Quicknav direkt nach Museums-Liste, identisches Styling wie Museums-Titel */
.fmh-drawer-quicknav {
  padding: 0;
}
.fmh-drawer-quicknav ul { list-style: none; display: flex; flex-direction: column; }
.fmh-drawer-quicknav li { display: block; border-bottom: 1px solid rgba(255,255,255,.08); }
.fmh-drawer-quicknav a {
  flex: 1; padding: 14px 20px;
  text-decoration: none; color: #fff;
  display: flex; align-items: center;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.1;
  transition: background var(--dur) var(--ease);
}
.fmh-drawer-quicknav a:hover { background: rgba(255,255,255,.07); }
.fmh-drawer-quicknav li.current-menu-item a { background: var(--grau-700); }

/* flex:1 entfernt → Quicknav folgt direkt nach Museums-Block */
.fmh-drawer-museums { padding: 0; }

.fmh-drawer-museum { border-bottom: 1px solid rgba(255,255,255,.08); }

.fmh-drawer-museum-header {
  display: flex; align-items: center;
}
.fmh-drawer-museum-link {
  flex: 1; padding: 14px 20px;
  text-decoration: none; color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.fmh-drawer-museum-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.1;
  color: var(--flaggenrot);
}
.fmh-drawer-museum-loc {
  font-size: .8rem; color: var(--silber);
  font-family: var(--font-body); font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.fmh-drawer-museum.active .fmh-drawer-museum-loc { color: var(--weiss); }
/* Museumsfarbe immer sichtbar */
.fmh-drawer-museum.color-gruen .fmh-drawer-museum-name { color: var(--ferngruen); }
.fmh-drawer-museum.color-rot   .fmh-drawer-museum-name { color: var(--flaggenrot); }
/* Hover und aktiv: dunklerer Hintergrund */
.fmh-drawer-museum:hover,
.fmh-drawer-museum.active { background: var(--grau-700); }

.fmh-drawer-accordion-toggle {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: 14px 20px; line-height: 1;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fmh-drawer-accordion-toggle[aria-expanded="true"] { transform: rotate(180deg); color: #fff; }

.fmh-drawer-submenu {
  list-style: none; display: none;
  background: var(--schwarz); padding: 0;
}
.fmh-drawer-submenu.open { display: block; }
.fmh-drawer-submenu li a {
  display: block; padding: 10px 20px 10px 32px;
  color: var(--weiss); text-decoration: none;
  font-family: var(--font-head); font-size: .9rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: color var(--dur), background var(--dur);
}
.fmh-drawer-submenu li a:hover { color: var(--weiss); background: var(--grau-700); }
.fmh-drawer-submenu li a.current { color: var(--weiss); background: var(--grau-700); font-weight: 800; }
/* Sub-Submenu (3. Ebene) Mobile Drawer */
.fmh-drawer-sub-submenu { list-style: none; display: block; padding: 0; }
.fmh-drawer-sub-submenu li a {
  display: flex; align-items: center; padding: 8px 20px 8px 32px;
  color: var(--weiss); text-decoration: none;
  font-family: var(--font-head); font-size: .82rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: color var(--dur), background var(--dur);
  border-top: 1px solid rgba(255,255,255,.04);
}
.fmh-drawer-sub-submenu li a::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 13px; height: 13px; margin-left: 7px; margin-right: 10px; margin-top: -4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3,2 V11 H13'/%3E%3Cpath d='M10,8 L13,11 L10,14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}
.fmh-drawer-sub-submenu li a:hover { color: var(--weiss); background: var(--grau-700); }
.fmh-drawer-sub-submenu li a.current { color: var(--weiss); background: var(--grau-700); font-weight: 800; }

/* ── Museum-Unterseite Layout ───────────────────────────────────────────────── */
.museum-sp-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
  padding-block: 0;
}
.museum-sp-left-col {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  min-width: 0;
}
.museum-sp-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.museum-sp-sidebar > * + * { margin-top: 20px; }
#museum-sp-arrival-map { background: #111; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Museum: 1-Spalten-Layout, display:contents + order für gewünschte Reihenfolge */
  .museum-layout { grid-template-columns: 1fr; }
  .museum-left-col { display: contents; }
  .museum-sidebar  { display: contents; position: static; }
  .museum-dates-section   { order: 1; }
  .museum-body            { order: 2; }
  .museum-sidebar-mid     { order: 3; }
  .museum-map-section     { order: 5; }
  .museum-boxes-section   { order: 6; }
  /* Museum-Unterseite */
  .museum-sp-layout { grid-template-columns: 1fr; }
  .museum-sp-left-col { display: contents; }
  .museum-sp-sidebar  { display: contents; position: static; }
  .museum-sp-body          { order: 1; }
  .museum-sp-boxes-section { order: 2; }
  .museum-sp-dates-section { order: 3; }
  .museum-sp-prices        { order: 4; }
  .museum-sp-address       { order: 5; }
  .museum-sp-map-section   { order: 6; }
  .archive-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

/* Sticky-Nav zu breit für mittlere Viewports → Drawer übernimmt ab ≤1100px */
@media (max-width: 1100px) {
  .fmh-hamburger { display: flex; }
  .header-quicknav { display: none; }
  .nav-toggle { display: none; }
  .site-nav-sticky { display: none; }
}

/* Tablet klein (≤768px) */
@media (max-width: 768px) {
  /* Layout-Grids */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-grid    { grid-template-columns: 1fr; }
  .museums-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  /* Post/Page Sidebars stapeln */
  .museum-layout,
  section[style*="grid-template-columns:1fr 360px"],
  section[style*="grid-template-columns:1fr 340px"],
  section[style*="grid-template-columns:1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Führung buchen / Kontakt: einspaltig, Content vor Sidebar */
  .book-layout { grid-template-columns: 1fr; }
  .book-sidebar { position: static; }

  /* Hero */
  .hero-content { padding-block: 80px 48px; }
  .hero-watermark { width: min(195px, 42vw); }

  /* Museum-Hero */
  .museum-hero { min-height: 50vh; }

  /* Neuigkeiten-Sidebar unter Artikel + Allgemeine Seiten-Sidebar */
  .page-content .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .page-sidebar { position: static; }

  /* Post-Liste: Bild über Text auf Mobile */
  .post-list-item.has-thumb {
    grid-template-columns: 1fr;
    grid-template-rows: 170px auto;
    gap: 12px;
    overflow: hidden;
  }
  .post-list-item.has-thumb .post-list-thumb {
    grid-column: 1; grid-row: 1;
    height: 170px;
    position: relative;
    margin-left: -16px;
    width: calc(100% + 16px);
  }
  .post-list-item.has-thumb .post-list-thumb::after { display: none; }
  .post-list-item.has-thumb .post-list-body {
    grid-column: 1; grid-row: 2;
    margin-top: 0;
    position: static;
    z-index: auto;
  }
}

/* Mobile (≤540px) */
@media (max-width: 540px) {
  :root { --header-brand: 64px; }

  .header-brand { padding: 14px 0; }

  /* Karten */
  .museum-card-body { padding: 16px; }
  .museum-card-img  { height: 180px; }

  /* Footer */
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-brand img { margin-inline: auto; }

  /* Formulare */
  .fmh-form-row { grid-template-columns: 1fr; }

  /* FMH Infobox */
  .fmh-infobox { padding: 20px; }

  /* Hero */
  .hero-scroll { display: none; }
  .hero-content { padding-block: 60px 40px; }
}

/* ── FMH Reviews Carousel ──────────────────────────────────────────────────── */
.fmh-reviews-carousel { margin-block: 40px; }

.fmh-reviews-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.fmh-reviews-google-g { flex-shrink: 0; }
.fmh-reviews-stars-header { color: #FBBC05; font-size: 20px; letter-spacing: 2px; line-height: 1; flex-shrink: 0; }
.fmh-reviews-meta-text { font-size: 13px; color: #666; }

.fmh-reviews-wrap {
  position: relative;
}

.fmh-reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.fmh-reviews-controls {
  display: flex;
  gap: 8px;
}
.fmh-reviews-track::-webkit-scrollbar { display: none; }

.fmh-review-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fmh-review-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fmh-review-avatar {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
}
.fmh-review-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D7181F;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.fmh-review-author-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fmh-review-author {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fmh-review-date { font-size: 11px; line-height: 1.2; color: #888; }
.fmh-review-google-icon { flex-shrink: 0; margin-left: auto; }

.fmh-review-stars { color: #FBBC05; font-size: 15px; letter-spacing: 1px; }

.fmh-review-source {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.fmh-review-text-wrap { display: flex; flex-direction: column; gap: 4px; }

.fmh-review-text {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fmh-review-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.fmh-review-more {
  display: inline;
  align-self: flex-start;
  background: none;
  border: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fmh-review-more:hover { color: #444; }

.fmh-reviews-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0;
}
.fmh-reviews-nav:hover:not(:disabled) { background: #f5f5f5; border-color: #bbb; }
.fmh-reviews-nav:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 640px) {
  .fmh-reviews-controls { display: none; }
  .fmh-review-card { min-width: 240px; max-width: 260px; padding: 16px; }
}

.fmh-reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.fmh-reviews-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fmh-reviews-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 12px;
  text-decoration: none !important;
  transition: box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}


/* ── Footer Info-Tooltip ─────────────────────────────────────────────── */
.fmh-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  vertical-align: middle;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.fmh-info-tip:hover { color: rgba(255,255,255,.9); }
.fmh-info-tip svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.fmh-tip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: #fff;
  color: var(--grau-900);
  font-size: .8125rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  white-space: normal;
  font-style: normal;
  text-align: left;
  z-index: 100;
}
.fmh-tip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}
.fmh-info-tip:hover .fmh-tip-text,
.fmh-info-tip:focus-within .fmh-tip-text { opacity: 1; }

/* ── Social Media Icons (Startseite unter Neuigkeiten-Button) ─────────── */
.fmh-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.fmh-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.fmh-social-icon:hover { color: rgba(255,255,255,.9); }
.fmh-social-icon svg { width: 26px; height: 26px; display: block; }
