/* EXT:tw_elements · taurerwirt/hero */
/* ---------- 4.1 HERO ---------- */
.tw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: max(520px, 100svh);
  color: #fff;
}
/* Hintergrund (Bild/Video/Parallax): .tw-bg aus base.css */
.tw-hero { --tw-bg-pos: 50% 60%; }
.tw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 32%);
}
.tw-hero__text {
  display: grid;
  width: fit-content;
  max-width: calc(100% - 2 * var(--tw-side));
  margin: 0 auto;
  padding-top: clamp(84px, 7.6vw, 150px);
}
.tw-hero .tw-hero__title {
  /* H1 = Slogan + Unterzeile (zwei Zeilen, versetzt wie im Layout) */
  display: grid;
  justify-self: start;
  margin: 0;
  font-family: var(--font-family-headings);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: var(--tw-shadow);
}
.tw-hero .tw-hero__claim { justify-self: start; }
.tw-hero .tw-hero__subline {
  display: block;
  justify-self: end;
  font-style: normal;
  margin: .1em 0 0 clamp(0px, 7vw, 135px);
  font-family: var(--font-family-normal);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-shadow: var(--tw-shadow);
}
.tw-hero__badge {
  /* Farben: im Backend je Hero einstellbar (CSS-Variablen inline), hier die Standardwerte */
  --b-bg: rgba(226, 226, 226, .93);
  --b-c: var(--tw-navy, #293349);
  --b-bg-h: var(--tw-navy, #293349);
  --b-c-h: #ffffff;
  --b-border: transparent;
  --b-size: clamp(160px, 12.5vw, 250px);
  position: absolute;
  width: var(--b-size);
  aspect-ratio: 1;
  border: 2px solid var(--b-border);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center; text-decoration: none;
  background-color: var(--b-bg);
  color: var(--b-c);
  container-type: inline-size;   /* Schrift + Pfeil wachsen/schrumpfen mit dem Button (cqi) */
  transition: background-color .3s, color .3s, scale .3s var(--tw-ease, ease);
}
.tw-hero__badge--square { border-radius: 0; }
.tw-hero__badge--size-s { --b-size: clamp(130px, 10vw, 200px); }
.tw-hero__badge--size-l { --b-size: clamp(190px, 15.5vw, 310px); }
.tw-hero__badge--pos-br { right: clamp(72px, 11.5vw, 230px); bottom: clamp(28px, 11vh, 160px); }
.tw-hero__badge--pos-mr { right: clamp(72px, 11.5vw, 230px); top: 50%; translate: 0 -50%; }
.tw-hero__badge--pos-tr { right: clamp(72px, 11.5vw, 230px); top: clamp(150px, 22vh, 240px); }
.tw-hero__badge--pos-bl { left: clamp(16px, 5.75vw, 115px); bottom: clamp(110px, 20vh, 240px); }
a.tw-hero__badge:not(.tw-hero__badge--fx-none):hover,
a.tw-hero__badge:not(.tw-hero__badge--fx-none):focus-visible { background-color: var(--b-bg-h); color: var(--b-c-h); }
a.tw-hero__badge--fx-zoom:hover, a.tw-hero__badge--fx-zoom:focus-visible { scale: 1.04; }
a.tw-hero__badge:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.tw-hero__badge-inner { display: grid; justify-items: center; padding: 0 11%; }
.tw-hero__badge p {
  margin: 0;
  font-family: var(--font-family-normal);
  font-weight: 400;
  font-size: clamp(.78rem, .95vw, 1.125rem);
  font-size: 7.2cqi;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
}
.tw-hero__badge p:first-child {
  margin-bottom: .45em;
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.75vw, 1.9rem);
  font-size: 13.5cqi;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}
.tw-hero__badge strong { font-weight: 700; }
.tw-hero__badge .tw-arrow { width: 3.6em; width: 40cqi; margin-top: .65em; margin-top: 5cqi; }
.tw-hero__partners {
  position: absolute;
  left: clamp(16px, 5.75vw, 115px);
  bottom: clamp(24px, 5.6vh, 80px);
  display: flex; align-items: flex-end;
  gap: clamp(20px, 4.4vw, 88px);
  margin: 0; padding: 0; list-style: none;
}
.tw-hero__partners li { margin: 0; }
.tw-hero__partners a { display: block; line-height: 0; }
.tw-hero .tw-hero__partners img { display: block; width: auto; height: clamp(44px, 5.25vw, 105px); }
@media (max-width: 768px) {
  .tw-hero { height: max(520px, 88svh); }
  .tw-hero__text { justify-items: center; text-align: center; padding-top: 150px; }
  .tw-hero .tw-hero__title, .tw-hero .tw-hero__claim, .tw-hero .tw-hero__subline { justify-self: center; margin-left: 0; }
  .tw-hero__badge { right: 16px; bottom: 96px; left: auto; top: auto; translate: none; --b-size: clamp(155px, 44vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-hero__badge { transition: none; }
}
