/* ============================================================
   visit-magdeburg.de — Komponenten v2
   Header · Mega-Menu · Section-Head · Cards · Footer
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,0.18);
}
.site-header .bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 28px;
  height: 76px;
}

/* Logo */
.logo-block {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
}
.logo-block img { height: 48px; width: auto; }
.logo-text-stack {
  display: flex; flex-direction: column; line-height: 1;
  border-left: 1px solid var(--line); padding-left: 14px;
}
.logo-text-stack .lt-1 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400; margin-bottom: 4px;
}
.logo-text-stack .lt-2 {
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}

/* Pillar-Navigation */
.pillars {
  display: flex; align-items: stretch;
  justify-content: center; gap: 4px;
}
/* Säule = Link auf die Übersichtsseite + eigener Chevron-Button fürs Mega-Menü.
   Getrennte Ziele, weil ein Element nicht gleichzeitig navigieren und aufklappen
   kann: mit der Maus öffnet der Hover über der ganzen Säule, per Touch/Tastatur
   der Chevron. Der Name bleibt damit für die Übersichtsseite frei. */
.pillar-item {
  position: relative;
  display: inline-flex; align-items: stretch;
}
.pillar-item.is-open::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--md-rot);
}
.pillar {
  display: inline-flex; align-items: center;
  padding: 0 4px 0 16px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.005em; text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  transition: color 140ms ease;
}
.pillar-toggle {
  display: inline-flex; align-items: center;
  padding: 0 12px 0 2px;
  color: var(--ink);
  background: transparent; border: 0; cursor: pointer;
  transition: color 140ms ease;
}
.pillar-toggle .chev {
  opacity: 0.5;
  transition: transform 160ms ease, opacity 160ms ease;
  flex-shrink: 0;
}
.pillar-item.is-open .chev { transform: rotate(180deg); opacity: 1; }
.pillar:hover,
.pillar-item:hover .pillar,
.pillar-item:hover .pillar-toggle,
.pillar-item.is-open .pillar,
.pillar-item.is-open .pillar-toggle { color: var(--md-rot); }
.pillar:focus-visible,
.pillar-toggle:focus-visible { outline: 2px solid var(--md-rot); outline-offset: -2px; border-radius: 4px; }

/* Pillar-Sublines — Besucherfragen aus dem Konzept */
.pillar-stack {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
  text-align: left;
}
.pillar-label { display: inline-flex; align-items: center; white-space: nowrap; }
.pillar-sub {
  font-size: 11px; font-weight: 400; line-height: 1;
  color: var(--ink-4); letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 140ms ease;
}
.pillar-item:hover .pillar-sub,
.pillar-item.is-open .pillar-sub { color: var(--md-rot); }

/* Nav-Right */
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.icon-btn svg, .icon-btn .arr { transition: transform 200ms ease; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn:hover svg, .icon-btn:hover .arr { transform: translateX(2px); }

/* Modifier — Galerie-Navigation (location.css/touristcard.css): einzige
   bewusst größere Ausnahme im Button-System (Stufe 2, 16.08.2026). */
.icon-btn--lg { width: 48px; height: 48px; font-size: 18px; }

/* ============================================================
   UTILITY-BAR (über der Hauptbar): Sprache · Einfache Sprache · Suche
   Größe/Farben der Eye-Able-Widgets kommen aus den HTML-Attributen, NICHT
   von hier: deren Shadow-DOM nutzt :host{…!important} und schlägt laut
   CSS-Scoping-Spec jede Regel aus diesem Stylesheet.
   ============================================================ */
.utility-bar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.utility-inner {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; height: 38px;
}
/* Wrapper hält das Sprach-Dropdown (liegt im Shadow-DOM, position:absolute)
   sicher über CTA-Button und Mega-Menü (z-index 190). Der z-index gehört an den
   Wrapper, nicht ans z-index-Attribut des Widgets: dessen Wert wirkt nur
   innerhalb des Hosts, und der Host ist position:static. */
.utility-item { position: relative; z-index: 300; display: inline-flex; flex: none; }
/* Eye-Able setzt visibility:hidden auf <easy-speech>, wenn die aktive Sprache keine
   Einfache Sprache kennt — dann auch den Platz einsparen. */
.utility-item:has(easy-speech[style*="visibility: hidden"]) { display: none; }
.utility-search {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--ink-3);
  border: 1px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.utility-search:hover { border-color: var(--line-2); color: var(--ink); }
.utility-search[aria-expanded="true"] { border-color: var(--md-rot); color: var(--md-rot); }

/* ---- Such-Overlay (Öffner = .utility-search, Logik in v2/js/nav.js) ----
   Liegt über dem Mega-Menü (z-index 190) und unter dem Mobile-Menü. */
.su-ov {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(17, 22, 36, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
}
.su-ov[hidden] { display: none; }
.su-ov__panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--paper);
  padding: 28px 56px 28px 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.su-ov__form { display: flex; gap: 10px; }
.su-ov__form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  font-size: 16px;                    /* < 16px lässt iOS beim Fokus zoomen */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
}
.su-ov__go {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  color: #fff; background: var(--md-rot);
  border: 0; cursor: pointer;
  transition: background 120ms ease;
}
.su-ov__go:hover { background: var(--md-rot-700); }
.su-ov__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--ink-3);
  background: none; border: 0; cursor: pointer;
}
.su-ov__close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .su-ov { padding: 8vh 14px 14px; }
  .su-ov__panel { padding: 22px 48px 22px 20px; }
}
.cta-book {
  background: var(--md-rot); color: #fff;
  padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px;
  transition: background 140ms ease;
}
.cta-book:hover { background: var(--md-rot-700); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.22);
  animation: megaIn 180ms ease-out;
  z-index: 190;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.mega-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  padding: 40px 0 48px;
  gap: 48px;
}
.mega .columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 36px;
}
/* Spaltenlabel im Mega-Menü: bewusst KEIN <h…>. Das Menü steht vor dem <h1> der
   Seite, jede Überschrift dort erzeugt einen Ebenensprung (axe: heading-order). */
.mega .col h4, .mega .col .col-h {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 12px;
}
.mega .col ul { list-style: none; margin: 0; padding: 0; }
.mega .col li + li { border-top: 1px solid var(--line); }
.mega .col a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 15px; color: var(--ink-2);
  transition: color 120ms ease;
}
.mega .col a:hover { color: var(--md-rot); }
.mini-arrow { opacity: 0; transition: opacity 120ms ease; }
.mega .col a:hover .mini-arrow { opacity: 1; }

.mega .blurb {
  font-size: 18px; color: var(--ink-2); max-width: 360px;
  margin: 0 0 28px; line-height: 1.45;
}
.mega .all-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; color: var(--md-rot);
  font-weight: 500; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: opacity 140ms ease;
}
.mega .all-link:hover { opacity: 0.7; }
/* Zwei Fußlinks nebeneinander (Übersicht + Schwerpunkt) — ohne Abstand stoßen
   die Unterstriche aneinander und lesen sich wie ein Link. */
.mega .all-link + .all-link { margin-left: 28px; }
.mega .all-link .arr { transition: transform 140ms ease; }
.mega .all-link:hover .arr { transform: translateX(4px); }

/* Teaser-Bilder: Desktop 2 nebeneinander, 900×600-Karten (3:2), Text als Overlay */
.mega .teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mega .teaser { position: relative; display: block; text-decoration: none; overflow: hidden; }
.mega .teaser .ph { aspect-ratio: 3 / 2; overflow: hidden; background-size: cover; background-position: center; }
.mega .teaser .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega .teaser .meta {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 44px 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,0) 100%);
}
.mega .teaser .e {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.mega .teaser .t {
  font-size: 15px; font-weight: 600; color: #fff; line-height: 1.25;
}
.mega .teaser::after {
  content: ""; position: absolute; right: 12px; bottom: 13px;
  width: 16px; height: 16px; opacity: 0;
  transform: translateX(-4px); transition: opacity 140ms ease, transform 140ms ease;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M2 8h12M10 3l5 5-5 5' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E");
}
.mega .teaser:hover::after { opacity: .95; transform: translateX(0); }

/* ------------------------------------------------------------
   Differenzierte Mega-Inhalte (Council-Empfehlung 07/2026):
   gleiches Skelett, vier verschiedene Füllungen —
   Bildkarten (Inspiration) · Event-Datum (Erleben) ·
   Icon-Listen + Thumbnails (Sehenswertes) · CTA-Kacheln (Planen)
   ------------------------------------------------------------ */
.mega-inner--full { grid-template-columns: 1fr; }
.mega-inner--full .blurb { max-width: 880px; } /* Intro darf bis ~3. Karte laufen */

/* Inspiration: Bildkarten-Galerie */
.mega .mega-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mega .mega-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Erleben: Datums-Badge auf Event-Karten */
.mega .teaser .ph { position: relative; }
.mega .ev-date {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; color: var(--ink);
  padding: 6px 9px 5px; line-height: 1;
}
.mega .ev-date b { font-size: 16px; font-weight: 700; }
.mega .ev-date i {
  font-style: normal; font-size: 10px; margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3);
}

/* Sehenswertes: Icon-Listen + Ort-Thumbnails */
.mega .cat-l { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mega .cat-l svg { color: var(--ink-4); flex-shrink: 0; transition: color 120ms ease; }
.mega .col a:hover .cat-l svg { color: var(--md-rot); }
.mega .spot-thumb {
  width: 40px; height: 40px; flex-shrink: 0; display: inline-block;
  background-size: cover; background-position: center;
}

/* ============================================================
   SECTION-HEAD (Inhaltsbereich)
   ============================================================ */
.section-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 32px;
  margin-bottom: var(--s-7);
}
.section-head .left { flex: 0 0 auto; max-width: 480px; }
.section-head .left h2 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  /* Ohne eigene Zeilenhöhe erbte die Überschrift die 1.55 des Fließtextes —
     bei 40px klaffte zwischen zwei Zeilen eine Lücke (28.08.2026).
     1.08 ist der Wert der Display-Klasse .h-2 in tokens.css. */
  line-height: 1.08;
  letter-spacing: -0.02em; margin: 8px 0 0;
}
.section-head .right {
  flex: 0 0 auto; max-width: 360px; text-align: right;
  padding-top: 8px;
}
.section-head .right p {
  font-size: 15px; color: var(--ink-3); line-height: 1.55; margin: 0 0 16px;
}
/* .link / .link--ink: Definition + Hover jetzt zentral in tokens.css
   (Button-System, Stufe 1) */

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
/* bottom 104px statt 32px: darunter sitzt die Eye-Able-Assist-Bubble
   (Floating-Öffner unten rechts). Bei 32px lagen beide übereinander.
   Wert nach Deploy gegen die reale Bubble-Größe prüfen — die kommt aus der
   Dashboard-Config, nicht aus diesem Stylesheet. */
.scroll-top {
  position: fixed; bottom: 104px; right: 32px; z-index: 100;
  width: 44px; height: 44px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--md-rot); }

/* ---- Breadcrumb-Bar ---- */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

/* Joomla-eigene Wrapper direkt in <main>: kein Abstand nach Breadcrumb */
#system-message-container { margin: 0; padding: 0; min-height: 0; }
.item-page, .com-content-article { margin: 0 !important; padding: 0 !important; }
#main-content > div:not(.breadcrumb-bar) { margin-top: 0; }
.breadcrumb-bar + * { margin-top: 0; }
.breadcrumb-bar ~ .item-page,
.breadcrumb-bar ~ .com-content-article { margin-top: 0 !important; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3); text-decoration: none;
}
.breadcrumb a:hover { color: var(--md-rot); }
.breadcrumb .sep {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4, rgba(17,22,36,0.3));
}
.breadcrumb .current {
  color: var(--ink); font-weight: 500;
}

/* ============================================================
   Bildnachweis-Badge (.vm-credit) — PHP: php/credit.php
   Kleines © auf dem Bild; bei Hover/Fokus fährt der Fotografen-
   name aus. Elternelement braucht position:relative (Heroes:
   .banner, sonst .vm-imgwrap).
   ============================================================ */
.vm-imgwrap { position: relative; }

.vm-credit {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center;
  max-width: calc(100% - 24px);
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; line-height: 1; letter-spacing: 0.02em;
  cursor: help;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.vm-credit--br { right: 16px; bottom: 16px; }
.vm-credit--bl { left: 16px; bottom: 16px; }
.vm-credit--tr { right: 16px; top: 16px; }
.vm-credit--tl { left: 16px; top: 16px; }

.vm-credit__c {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
}

/* Zusammengeklappt per max-width (nicht display:none) — der Name bleibt
   im Accessibility-Tree, Screenreader lesen das aria-label ohnehin. */
.vm-credit__txt {
  display: block;
  max-width: 0; padding-right: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  opacity: 0;
  transition: max-width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.2s ease 0.05s,
              padding-right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vm-credit:hover,
.vm-credit:focus,
.vm-credit.is-open { background: rgba(0, 0, 0, 0.8); }
.vm-credit:hover .vm-credit__txt,
.vm-credit:focus .vm-credit__txt,
.vm-credit.is-open .vm-credit__txt {
  max-width: min(78vw, 340px);
  padding-right: 12px;
  opacity: 1;
}

/* Karten-Variante: <span> statt <button>, weil in Karten-Links kein
   interaktives Element stecken darf. Klappt nur per Maus-Hover aus; ein Klick
   fällt an den umgebenden Karten-Link durch (kein toter Bereich). */
.vm-credit--static { cursor: inherit; }
.vm-imgwrap:hover .vm-credit--static,
a:hover .vm-credit--static,
.grid-item:hover .vm-credit--static { background: rgba(0, 0, 0, 0.7); }

/* Teaser-Karten: eine Stufe kleiner als auf den Heroes */
.vm-credit--sm { font-size: 10px; }
.vm-credit--sm .vm-credit__c { width: 18px; height: 18px; font-size: 11px; }
.vm-credit--sm.vm-credit--br { right: 10px; bottom: 10px; }
.vm-credit--sm.vm-credit--bl { left: 10px; bottom: 10px; }
.vm-credit--sm.vm-credit--tr { right: 10px; top: 10px; }
.vm-credit--sm.vm-credit--tl { left: 10px; top: 10px; }
.vm-credit--sm:hover .vm-credit__txt,
.vm-credit--sm.is-open .vm-credit__txt { padding-right: 10px; }

/* Helle Variante für Bilder auf weißem Grund / kleine Teaser */
/* KI-Bilder (Art. 50 EU-KI-VO): Funkel-Icon statt ©, dahinter das Wort
   „KI-generiert" bzw. „KI-bearbeitet" — dauerhaft sichtbar, denn die
   Kennzeichnung darf nicht erst beim Hover erscheinen, und sie muss den Fall
   benennen (erzeugt vs. generativ verändert). Ein Icon-Unterschied wäre zu
   schwach; die Unterscheidung trägt das Wort. Farbe und Aufklapp-Verhalten wie
   beim ©-Badge; der Fotografen-/Toolname kommt erst beim Überfahren. */
.vm-credit--ai .vm-credit__c { padding-left: 2px; }
.vm-credit--ai .vm-credit__c svg { display: block; }
.vm-credit--ai .vm-credit__ki {
  padding-right: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.vm-credit--sm.vm-credit--ai .vm-credit__ki { padding-right: 8px; }
/* Trennstrich zum Namen, sobald aufgeklappt */
.vm-credit--ai:hover .vm-credit__ki,
.vm-credit--ai:focus .vm-credit__ki,
.vm-credit--ai.is-open .vm-credit__ki {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  margin-right: 9px;
}

.vm-credit--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.vm-credit--light:hover,
.vm-credit--light:focus,
.vm-credit--light.is-open { background: #fff; }

/* ---- Touch-Geräte: Nachweis liegt waagerecht und dauerhaft auf dem Bild ----
   Bis 15.09.2026 stand er hier hochkant am rechten Bildrand (Muster
   hamburg-tourismus.de). Auf einem 412px-Gerät las das niemand: „KI-generiert
   Dasda Design" wurde zu einer 156px hohen Buchstabensäule, die eher nach einem
   Fehler aussah als nach einer Kennzeichnung.

   Jetzt dieselbe Pille wie auf Desktop, nur dauerhaft offen — auf Touch gibt es
   kein Hover, also muss der Nachweis von sich aus lesbar sein. Der Name wird bei
   Platzmangel per Ellipse gekürzt; die KI-Kennzeichnung steht davor und bleibt
   damit immer stehen (Art. 50 EU-KI-VO).

   Bewusst an `hover: none` gehängt, nicht an eine Breite — entscheidend ist die
   Eingabeart, nicht die Fenstergröße. Ein schmales Desktop-Fenster behält das
   aufklappbare Badge. */
@media (hover: none) {
  .vm-credit {
    max-width: calc(100% - 20px);
    font-size: 9px;
    /* Der Tipp gehört dem Nachweis; v2/js/credit-tap.js hält ihn vom
       Karten-Link fern, in dem das Badge steckt. */
    pointer-events: auto;
  }

  /* Zugeklappt wie auf Desktop: sichtbar ist nur das Zeichen, bei KI-Bildern
     zusätzlich das Pflichtwort. Der Name kommt beim Antippen (is-open) — die
     Regel dafür steht oben bei den Hover-Zuständen und gilt hier mit.
     Vorher stand der Name dauerhaft auf dem Bild und war auf hellen Motiven
     das Auffälligste daran (Rückmeldung Eileen, 15.09.2026). */
  .vm-credit__c { width: 18px; height: 18px; font-size: 10px; }
  .vm-credit--ai .vm-credit__ki {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    margin-right: 7px;
    padding-right: 7px;
  }
  .vm-credit--ai .vm-credit__c svg { width: 9px; height: 9px; }

  /* Kleine Teaser-Thumbs — `.ph-wrap` ist der gemeinsame Wrapper der
     Related-Listen (Spots, Touren, CityTours, Events, Blog, Reiseangebote,
     Themen); mobil schrumpft er auf 96×96. Antippen geht auch dort.
     Der Name passt nicht in 96px Breite, deshalb darf die Pille beim Ausklappen
     über das Bild hinaus in den Textbereich ragen: Wrapper und Karte geben ihr
     Beschneiden solange auf (`overflow` steht dort wegen Bild bzw. Float). */
  .ph-wrap .vm-credit { font-size: 8px; right: 4px; bottom: 4px; }
  .ph-wrap .vm-credit--ai .vm-credit__ki { border: 0; margin: 0; padding-right: 6px; }
  .ph-wrap .vm-credit--ai.is-open .vm-credit__ki {
    border-right: 1px solid rgba(255, 255, 255, 0.35); margin-right: 6px;
  }
  .ph-wrap:has(.vm-credit.is-open),
  .item:has(.vm-credit.is-open) { overflow: visible; }
  /* Ausgeklappt vom linken Bildrand nach rechts wachsen lassen. Mit dem
     `right`-Anker der Ruhelage wäre die Pille nach links aus dem Bildschirm
     gewachsen und der Anfang des Namens abgeschnitten. */
  .ph-wrap .vm-credit.is-open {
    z-index: 30;
    left: 4px; right: auto;
    max-width: none; white-space: nowrap;
  }

  /* Hover gibt es nicht; :focus soll das Badge nicht heller machen. Ausgeklappt
     wird allein über .is-open (v2/js/credit-tap.js). */
  .vm-credit:hover, .vm-credit:focus { background: rgba(0, 0, 0, 0.55); }
  .vm-credit.is-open { background: rgba(0, 0, 0, 0.78); }
  .vm-credit--light:hover, .vm-credit--light:focus { background: rgba(255, 255, 255, 0.92); }
  .vm-credit--light.is-open { background: #fff; }

  /* Ausgeklappt darf der Name die ganze Bildbreite nutzen. */
  .vm-credit.is-open .vm-credit__txt { max-width: min(80vw, 320px); padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-credit, .vm-credit__txt { transition: none; }
}

/* ConvertForms an visit2026 angleichen (25.09.2026, Weihnachtsstadt-Angebot).
   Die Formular-Optik kommt sonst aus den Form-Einstellungen (Arial, Gold,
   feste Breite). Hier auf Seitenschrift, volle Textbreite und Style-1-Button. */
.convertforms {
  --font: var(--font-sans) !important;
  --max-width: 100% !important;
  --label-color: var(--ink-2) !important;
  --input-border-color: var(--line-2) !important;
  --input-border-radius: 0 !important;
  --button-background-color: var(--accent, var(--md-rot)) !important;
  --button-color: #fff !important;
  --button-border-radius: 0 !important;
  --button-border: 1px solid var(--accent, var(--md-rot)) !important;
  --button-padding: 14px 22px !important;
  --button-font-size: 15px !important;
  font-family: var(--font-sans) !important;
  max-width: 100% !important;
  margin-top: 32px;
}
.convertforms .cf-form-wrap { padding: 20px 0; }
.convertforms .cf-label { font-weight: 500; }
.convertforms .cf-heading { font-family: var(--font-sans); font-weight: 500; }
.convertforms .cf-input:focus { border-color: var(--ink) !important; }
.convertforms .cf-btn { font-weight: 500; letter-spacing: 0.01em; transition: background 160ms ease; }
.convertforms .cf-btn:hover { opacity: 1; background-color: var(--md-rot-700); }
