/*
 * Bilder der Woche – Teaser (z. B. Startseite). Taurerwirt-Design wie die Bild/Text-Abschnitte (tw_elements mediabox):
 * Crimson Pro (Überschriften) + Barlow Condensed (Text), Navy/Gold, alles eckig. Nur auf Seiten mit dem Element geladen.
 * Hintergrund: hell (#ececec, Standard) / weiß / navy – als Band über die ganze Breite.
 */
.twbw-teaser {
  --tt-navy: var(--tw-navy, #293349);
  --tt-gold: var(--tw-gold, #d2be6f);
  --tt-bg: #ececec;
  --tt-text: var(--tw-text, #333333);
  --tt-titel: var(--tt-navy);
  --tt-leise: #5c616c;
  --tt-hand: #666666;
  --tt-fokus: var(--tt-navy);
  --tt-sw: min(100vw - 2 * var(--tw-side, 24px), 1320px);
  --tt-band-h: 240px;
  position: relative;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: clamp(56px, 7vw, 112px) 0;
  background: var(--tt-bg);
  color: var(--tt-text);
  text-align: left;
  scroll-margin-top: var(--tw-header-h, 80px);
}
.twbw-teaser--weiss { --tt-bg: #ffffff; }
.twbw-teaser--navy { --tt-bg: var(--tt-navy); --tt-text: #ffffff; --tt-titel: #ffffff; --tt-leise: #d9dce3; --tt-hand: var(--tt-gold); --tt-fokus: var(--tt-gold); }
.twbw-teaser *, .twbw-teaser *::before, .twbw-teaser *::after { box-sizing: border-box; border-radius: 0; }
.twbw-teaser [hidden] { display: none !important; }
.twbw-teaser img { max-width: 100%; }
.twbw-teaser ul { list-style: none; margin: 0; padding: 0; }
.twbw-teaser li { margin: 0; padding: 0; }
.twbw-teaser li::before { content: none; }
.twbw-teaser a:focus-visible, .twbw-teaser button:focus-visible { outline: 3px solid var(--tt-fokus); outline-offset: 3px; }
.twbw-teaser__innen { width: var(--tt-sw); margin: 0 auto; }

/* Überschriften (wie Startseite: Crimson Pro, goldener Strich darunter) */
.twbw-teaser h2, .twbw-teaser h3 { color: var(--tt-titel); }
.twbw-teaser__kopf { max-width: 48rem; margin: 0 auto clamp(22px, 3vw, 40px); text-align: center; }
.twbw-teaser__ueberschrift, .twbw-teaser__titel {
  margin: 0 0 .6em;
  font-family: var(--font-family-headings, 'Crimson Pro', Georgia, serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.12;
}
.twbw-teaser__ueberschrift::after, .twbw-teaser__titel::after {
  content: "";
  display: block;
  width: 72px; height: 2px;
  margin-top: .45em;
  background: var(--tt-gold);
}
.twbw-teaser__ueberschrift { margin-bottom: 0; }
.twbw-teaser__ueberschrift::after { margin: .45em auto 0; }
.twbw-teaser__unterzeile { margin: .9em 0 0; font-size: clamp(1.05rem, 1.15vw, 1.25rem); line-height: 1.5; color: var(--tt-leise); }
.twbw-teaser__titel a { color: inherit; text-decoration: none; }
.twbw-teaser__titel a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* Dachzeile „Bilder der Woche“ in Handschrift (wie die Akkordeon-Titel), darunter das Datum */
.twbw-teaser__dach {
  margin: 0;
  font-family: var(--font-family-script, 'Oooh Baby', cursive);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.1;
  color: var(--tt-hand) !important;
}
.twbw-teaser__datum { margin: .5em 0 .55em; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--tt-leise); }
.twbw-teaser__untertitel { margin: -.2em 0 .6em; font-family: var(--font-family-headings, 'Crimson Pro', Georgia, serif); font-style: italic; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.25; color: var(--tt-titel); }
.twbw-teaser__auszug { margin: 0 0 .9em; font-size: clamp(1.05rem, 1.15vw, 1.25rem); line-height: 1.55; }
.twbw-teaser__info { margin: 0 0 1em; font-size: 17px; color: var(--tt-leise); }

/* Knöpfe: Navy (auf Navy: Gold) + Textlink mit Pfeil wie „Das Hotel im Überblick“ */
.twbw-teaser__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 1.4em 0 0; }
.twbw-teaser__aktionen--mitte { justify-content: center; margin-top: clamp(24px, 3vw, 40px); }
.twbw-teaser a.twbw-teaser__knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px;
  border: 2px solid var(--tt-navy); background: var(--tt-navy); color: #ffffff;
  font-family: var(--font-family-bold, 'Barlow Condensed', sans-serif); font-size: 17px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.twbw-teaser a.twbw-teaser__knopf:hover { background: #ffffff; color: var(--tt-navy); }
.twbw-teaser--navy a.twbw-teaser__knopf { border-color: var(--tt-gold); background: var(--tt-gold); color: var(--tt-navy); }
.twbw-teaser--navy a.twbw-teaser__knopf:hover { background: transparent; color: var(--tt-gold); }
.twbw-teaser a.twbw-teaser__link {
  display: inline-flex; align-items: center; gap: .9em; min-height: 44px;
  font-family: var(--font-family-bold, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--tt-titel); text-decoration: none;
}
.twbw-teaser__link .tw-arrow { position: relative; display: block; width: 3.2em; height: 2px; margin: 0; background: currentColor; transition: transform .3s var(--tw-ease, ease); }
.twbw-teaser__link .tw-arrow::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-style: solid; border-width: 6px 0 6px 13px; border-color: transparent transparent transparent currentColor; }
.twbw-teaser__link:hover .tw-arrow, .twbw-teaser__link:focus-visible .tw-arrow { transform: translateX(8px); }

/* ---------- A: neueste Wanderung groß (Text links, Bild rechts – wählbar) ---------- */
.twbw-teaser__a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(36px, 6.5vw, 120px); }
.twbw-teaser--bild-links .twbw-teaser__a { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.twbw-teaser--bild-links .twbw-teaser__cover { order: -1; }
.twbw-teaser__text { max-width: 36rem; }
.twbw-teaser__cover { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tt-navy); }
.twbw-teaser__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.twbw-teaser__mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 1.2em 0 0; max-width: 30rem; }
.twbw-teaser__mini a { display: block; overflow: hidden; }
.twbw-teaser__mini img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- B: Fotostreifen ---------- */
.twbw-teaser__neu { margin: 0 0 clamp(18px, 2.4vw, 28px); text-align: center; }
.twbw-teaser .twbw-teaser__neu a { color: var(--tt-titel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: clamp(1.05rem, 1.2vw, 1.25rem); }
.twbw-teaser__neu-marke { display: inline-block; margin-right: .4em; padding: 1px 8px; background: var(--tt-navy); color: #ffffff; font-size: .85em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.twbw-teaser--navy .twbw-teaser__neu-marke { background: var(--tt-gold); color: var(--tt-navy); }
.twbw-teaser__neu-datum { color: var(--tt-leise); }
/* ohne JavaScript bzw. bei „Bewegung reduzieren“: Band zum seitlichen Wischen/Scrollen */
.twbw-teaser__band { position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.twbw-teaser__band::-webkit-scrollbar { display: none; }
.twbw-teaser__spur { display: flex; width: max-content; }
.twbw-teaser__reihe { display: flex; gap: 8px; padding-right: 8px !important; }
.twbw-teaser__reihe--kopie { display: none; }
.twbw-teaser__foto a { display: block; height: var(--tt-band-h); }
.twbw-teaser__foto img { display: block; width: auto; height: 100%; max-width: none; }
/* mit JavaScript: Band wandert langsam nach links (Kopie hängt dahinter → nahtlos); Maus/Fokus/Knopf hält an */
.twbw-teaser__band.ist-bewegt { overflow: hidden; }
.twbw-teaser__band.ist-bewegt .twbw-teaser__reihe--kopie { display: flex; }
.twbw-teaser__band.ist-bewegt .twbw-teaser__spur { animation: twbw-band var(--twbw-dauer, 90s) linear infinite; }
/* nur Maus/Fokus auf den Fotos hält an – nicht auf dem Knopf (sonst läuft es nach „weiter“ erst beim Wegklicken) */
.twbw-teaser__band.ist-bewegt .twbw-teaser__spur:hover,
.twbw-teaser__band.ist-bewegt .twbw-teaser__spur:focus-within,
.twbw-teaser__band.ist-pausiert .twbw-teaser__spur { animation-play-state: paused; }
@keyframes twbw-band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.twbw-teaser__pause {
  position: absolute; right: max(8px, calc((100vw - var(--tt-sw)) / 2)); bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: var(--tt-navy); color: var(--tt-gold); cursor: pointer; opacity: .9;
}
.twbw-teaser__pause:hover { opacity: 1; }
.twbw-teaser__pause-symbol { display: block; width: 14px; height: 16px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.twbw-teaser__pause[aria-pressed="true"] .twbw-teaser__pause-symbol { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent currentColor; }
.twbw-teaser__pause-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- C: letzte 3 Wanderungen als Kacheln ---------- */
.twbw-teaser__kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.twbw-teaser a.twbw-teaser__kachel-link, .twbw-teaser a.twbw-teaser__kachel-link:hover, .twbw-teaser a.twbw-teaser__kachel-link:visited { position: relative; display: block; overflow: hidden; background: var(--tt-navy); color: #ffffff; text-decoration: none; }
.twbw-teaser__kachel-bild { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.twbw-teaser__kachel-text { position: absolute; inset: auto 0 0 0; padding: 64px 18px 16px; background: linear-gradient(rgba(20, 26, 40, 0), rgba(20, 26, 40, .62) 38%, rgba(20, 26, 40, .92)); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.twbw-teaser__kachel-datum { display: block; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-gold); }
.twbw-teaser__kachel-titel { display: block; font-family: var(--font-family-headings, 'Crimson Pro', Georgia, serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.twbw-teaser__kachel-info { display: block; margin-top: 2px; font-size: 15px; color: #e3e5ea; }

/* ---------- Effekte – im Element einzeln schaltbar (Rene 01.12.) ---------- */
.twbw-teaser__cover img, .twbw-teaser__mini img, .twbw-teaser__kachel-bild, .twbw-teaser__foto img { transition: transform .6s ease; }
.twbw-teaser__mini a, .twbw-teaser__foto a { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .twbw-teaser--fx-hover .twbw-teaser__cover:hover img { transform: scale(1.04); }
  .twbw-teaser--fx-hover .twbw-teaser__mini a:hover img,
  .twbw-teaser--fx-hover .twbw-teaser__foto a:hover img { transform: scale(1.08); }
  .twbw-teaser--fx-hover a.twbw-teaser__kachel-link:hover .twbw-teaser__kachel-bild { transform: scale(1.06); }
  .twbw-teaser--fx-hover .twbw-teaser__mini a:hover::after,
  .twbw-teaser--fx-hover .twbw-teaser__foto a:hover::after { opacity: 1; transform: none; }
}
.twbw-teaser--fx-hover .twbw-teaser__mini a:focus-visible img,
.twbw-teaser--fx-hover .twbw-teaser__foto a:focus-visible img { transform: scale(1.08); }
.twbw-teaser--fx-hover a.twbw-teaser__kachel-link:focus-visible .twbw-teaser__kachel-bild { transform: scale(1.06); }
/* Lupe auf Fotos, die direkt dieses Foto in der Großansicht öffnen */
.twbw-teaser--fx-hover .twbw-teaser__mini a::after,
.twbw-teaser--fx-hover .twbw-teaser__foto a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: rgba(41, 51, 73, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2be6f' stroke-width='2.2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.4 15.4 21 21M10.5 7.6v5.8M7.6 10.5h5.8'/%3E%3C/svg%3E") center / 24px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.twbw-teaser--fx-hover .twbw-teaser__mini a:focus-visible::after,
.twbw-teaser--fx-hover .twbw-teaser__foto a:focus-visible::after { opacity: 1; transform: none; }
/* Ken Burns: Titelbild zoomt langsam (Eigenschaft „scale“ – verträgt sich mit dem Hover-Zoom) */
.twbw-teaser--fx-kenburns .twbw-teaser__cover img { animation: twbw-kb 22s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes twbw-kb { from { scale: 1; } to { scale: 1.1; } }
/* Einblenden beim Scrollen (effekte.js) – ohne JavaScript ist alles sofort da */
.twbw-fx-bereit .twbw-fx-item { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--fx-v, 0ms); }
.twbw-fx-bereit .twbw-fx-item:not(.ist-da) { opacity: 0; transform: translateY(22px); }

/* ---------- Tablet/Handy ---------- */
@media (max-width: 900px) {
  .twbw-teaser { --tt-sw: calc(100vw - 2 * var(--tw-side, 16px)); }
  .twbw-teaser--neueste { padding-top: 0; }
  .twbw-teaser__a, .twbw-teaser--bild-links .twbw-teaser__a { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .twbw-teaser__cover { order: -1; margin-inline: calc(50% - 50vw); }
  .twbw-teaser__text { max-width: none; }
  .twbw-teaser__kacheln { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 360px); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(50% - 50vw); padding: 0 var(--tw-side, 16px) 6px; scroll-padding-inline: var(--tw-side, 16px); scrollbar-width: thin; }
  .twbw-teaser__kachel { scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .twbw-teaser { --tt-band-h: 170px; }
  .twbw-teaser__aktionen { gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .twbw-teaser__band.ist-bewegt .twbw-teaser__spur { animation: none; }
  .twbw-teaser__link .tw-arrow { transition: none; }
  .twbw-teaser img { transition: none !important; transform: none !important; animation: none !important; }
  .twbw-fx-bereit .twbw-fx-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .twbw-teaser__band { overflow: visible; }
  .twbw-teaser__pause { display: none !important; }
}
