/* ==========================================================================
   Startseiten-Hero (Testversion 2026-09-20)
   Eigene Datei, damit yolenn-main.min.css unangetastet bleibt.
   Eingebunden von _home_hero.php. Breakpoints wie im Hauptstylesheet: 640 / 1024 / 1200 / 1440.
   Das Content-Raster (.grid-container) ist im Hauptstylesheet 448 / 840 / 960 / 1080 px breit,
   mit 0.625rem (unter 640px) bzw. 0.9375rem Innenabstand. --hero2-container spiegelt das.
   ========================================================================== */

.hero2 {
  --hero2-bg: #f6efe2;
  --hero2-page: #fdfaf4;
  --hero2-ink: #2a2622;
  --hero2-ink-soft: #493f35;
  --hero2-muted: #7d766f;
  --hero2-cream: #f2ebdc;
  --hero2-container: 448px;
  --hero2-gutter: 0.625rem;

  position: relative;
  padding: 0;
  background-color: var(--hero2-bg);
  color: var(--hero2-ink);
}

.hero2__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Textspalte ---------- */

.hero2__text {
  width: 100%;
  max-width: var(--hero2-container);
  margin: 0 auto;
  padding: 1.75rem var(--hero2-gutter) 2.25rem;
}

.hero2__eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero2-muted);
}
.hero2__eyebrow::before {
  display: none;           /* Strich vor der Rubrik entfernt (Kris, 2026-09-24) */
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  margin-top: 0.75em; /* auf die Mitte der ersten Zeile, auch wenn die Zeile umbricht (FR) */
  background-color: currentColor;
  opacity: 0.7;
}

.hero2__headline {
  margin: 0;
  font-family: "Butler", Georgia, serif;
  font-weight: 500;
  font-size: 2.15rem;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--hero2-ink);
  text-wrap: balance;
}

.hero2__subline {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hero2-ink-soft);
}

.hero2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.hero2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.95em 1.6em;
  border: 0;
  border-radius: 0;
  background-color: var(--hero2-ink);
  color: var(--hero2-page);
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero2__cta:hover,
.hero2__cta:focus-visible {
  background-color: var(--hero2-ink-soft);
  color: var(--hero2-page);
  transform: translateY(-1px);
}
.hero2__cta:focus-visible {
  outline: 2px solid var(--hero2-ink-soft);
  outline-offset: 3px;
}

.hero2__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hero2-ink-soft);
  text-decoration: none;   /* keine Unterstreichung (Kris, 2026-09-24) */
  transition: color 0.2s ease;
}
.hero2__link:hover,
.hero2__link:focus-visible {
  color: var(--hero2-ink);
}
.hero2__link-arrow {
  position: relative;
  width: 0.55em;
  height: 0.55em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.hero2__link:hover .hero2__link-arrow {
  transform: rotate(45deg) translate(0, 0);
}

/* ---------- Bildspalte ---------- */

.hero2__media {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
  max-height: 62vh;
  background-color: var(--hero2-cream);
}

.hero2__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 38%;
}

.hero2__seal {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem var(--hero2-bg), 0 10px 30px rgba(42, 38, 34, 0.18);
}

/* Mobile-Variante "Überlagerung": Bild läuft in die Creme-Fläche aus, Headline sitzt im Auslauf.
   Nur unter 640px aktiv; ab Tablet greift die normale Aufteilung. */
@media (max-width: 639.98px) {
  .hero2--overlay .hero2__media {
    aspect-ratio: 4 / 5;
    max-height: 72vh;
    overflow: hidden;
  }
  /* Bild etwas größer und unten bündig, damit die leere Wand oben wegfällt und das Gesicht höher sitzt */
  .hero2--overlay .hero2__image {
    top: auto;
    bottom: 0;
    height: 116%;
    object-position: 70% 100%;
  }
  .hero2--overlay .hero2__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(
      to bottom,
      rgba(246, 239, 226, 0) 0%,
      rgba(246, 239, 226, 0.5) 38%,
      rgba(246, 239, 226, 0.92) 64%,
      #f6efe2 100%
    );
    pointer-events: none;
  }
  .hero2--overlay .hero2__seal {
    display: none;
  }
  .hero2--overlay .hero2__text {
    position: relative;
    z-index: 1;
    margin-top: -36%;
    padding-top: 0;
  }
}

/* ---------- Bereich unter dem Hero: Tour-Zeile + Angebots-Karten ----------
   Der innere Wrapper trägt die Klasse .grid-container aus dem Hauptstylesheet und ist damit
   exakt so breit wie der Content darunter. Keine Trennlinien, keine Rahmen. */

.hero2__below {
  background-color: var(--hero2-page);
  padding: 1.5rem 0 1.75rem;
}

/* Tour-Zeile */

.hero2__tour {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background-color: var(--hero2-cream);
  color: var(--hero2-ink);
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.hero2__tour:hover,
.hero2__tour:focus-visible {
  background-color: #ece3d0;
  color: var(--hero2-ink);
}
.hero2__tour:focus-visible {
  outline: 2px solid var(--hero2-ink-soft);
  outline-offset: 2px;
}
.hero2__tour-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}
.hero2__tour-star {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--hero2-ink-soft);
}
.hero2__tour-title {
  font-family: "Butler", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}
.hero2__tour-text {
  flex: 1 1 16rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--hero2-ink-soft);
}
.hero2__tour-cta {
  flex: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;   /* keine Unterstreichung; der feine Pfeil zeigt den Link */
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.hero2__tour-cta::after {
  content: "";
  flex: none;
  width: 1.15em;
  height: 0.7em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 14'%3E%3Cpath d='M1 7h20M15 1.5L21 7l-6 5.5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 14'%3E%3Cpath d='M1 7h20M15 1.5L21 7l-6 5.5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Angebots-Karten: Bild, Titel, Text. Ohne Rahmen, ohne Kasten. */

.hero2__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.75rem;
}

.hero2__card {
  margin: 0;
  min-width: 0;
}

.hero2__card-link {
  display: block;
  color: var(--hero2-ink);
  text-decoration: none;
}
.hero2__card-link:hover,
.hero2__card-link:focus-visible {
  color: var(--hero2-ink);
}
.hero2__card-link:focus-visible {
  outline: 2px solid var(--hero2-ink-soft);
  outline-offset: 4px;
}

.hero2__card-media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--hero2-cream);
}
.hero2__card-media picture,
.hero2__card-image {
  display: block;
  width: 100%;
  height: 100%;
}
.hero2__card-image {
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero2__card-link:hover .hero2__card-image {
  transform: scale(1.04);
}

.hero2__card-body {
  display: block;
  padding: 0.7rem 0 0;
}
.hero2__card-title {
  display: block;
  font-family: "Butler", Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--hero2-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero2__card-link:hover .hero2__card-title,
.hero2__card-link:focus-visible .hero2__card-title {
  color: var(--hero2-ink-soft);
}
.hero2__card-text {
  display: block;
  margin-top: 0.3rem;
  font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--hero2-muted);
}

/* ---------- ab 640px (Tablet) ---------- */

@media (min-width: 640px) {
  .hero2 {
    --hero2-container: 840px;
    --hero2-gutter: 0.9375rem;
  }
  .hero2__text {
    padding: 2.5rem var(--hero2-gutter) 3rem;
  }
  .hero2__headline {
    font-size: 2.7rem;
  }
  .hero2__subline {
    font-size: 1.05rem;
  }
  .hero2__media {
    aspect-ratio: 16 / 9;
    max-height: 480px;
  }
  .hero2__seal {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 5.5rem;
    height: 5.5rem;
  }

  .hero2__below {
    padding: 1.75rem 0 1.25rem;
  }
  .hero2__tour {
    flex-wrap: nowrap;
    padding: 0.95rem 1.25rem;
  }
  .hero2__cards {
    gap: 1.5rem 1.25rem;
  }
  .hero2__card-body {
    padding-top: 0.8rem;
  }
  .hero2__card-title {
    font-size: 1.3rem;
  }
  .hero2__card-text {
    font-size: 0.85rem;
  }
}

/* ---------- ab 1024px (Desktop, zweispaltig) ---------- */

@media (min-width: 1024px) {
  .hero2 {
    --hero2-container: 960px;
  }
  .hero2__inner {
    /* Seitenrand | Textspalte | Bildspalte | Seitenrand. Text- und Bildspalte zusammen sind so breit
       wie das Content-Raster, damit die linke Textkante mit dem Content darunter fluchtet.
       Das Bild läuft rechts bis zum Bildschirmrand. */
    grid-template-columns:
      minmax(var(--hero2-gutter), 1fr)
      minmax(0, calc(var(--hero2-container) * 0.56))
      minmax(0, calc(var(--hero2-container) * 0.44))
      minmax(var(--hero2-gutter), 1fr);
    align-items: stretch;
  }
  .hero2__text {
    grid-column: 2;
    align-self: center;
    max-width: none;
    margin: 0;
    padding: 4rem 3.5rem 4rem var(--hero2-gutter);
  }
  .hero2__headline {
    font-size: 2.9rem;
  }
  .hero2__subline {
    margin-top: 1.4rem;
  }
  .hero2__actions {
    margin-top: 2.25rem;
  }
  .hero2__media {
    grid-column: 3 / 5;
    order: 0;
    aspect-ratio: auto;
    max-height: none;
    min-height: clamp(520px, 70vh, 760px);
  }
  .hero2__image {
    object-position: 68% 40%;
  }
  .hero2__seal {
    right: auto;
    left: -3.25rem;
    bottom: 3rem;
    width: 6.5rem;
    height: 6.5rem;
    box-shadow: 0 0 0 0.5rem var(--hero2-bg), 0 14px 36px rgba(42, 38, 34, 0.18);
  }

  .hero2__below {
    padding: 2rem 0 1rem;
  }
  .hero2__tour {
    margin-bottom: 1.5rem;
  }
  .hero2__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* ---------- ab 1200px (Desktop-Navigation ist fixiert, Content-Raster 1080px) ---------- */

@media (min-width: 1200px) {
  .hero2 {
    --hero2-container: 1080px;
  }
  .hero2__text {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .hero2__headline {
    font-size: 3.3rem;
  }
  .hero2__subline {
    font-size: 1.1rem;
  }
  /* Bildspalte wird breiter, Yolenn soll nicht am rechten Rand kleben */
  .hero2__image {
    object-position: 100% 40%;
  }
}

/* ---------- ab 1440px ---------- */

@media (min-width: 1440px) {
  .hero2__headline {
    font-size: 3.5rem;
  }
  .hero2__text {
    padding-right: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero2__cta,
  .hero2__link,
  .hero2__link-arrow,
  .hero2__tour,
  .hero2__card-image,
  .hero2__card-title {
    transition: none;
  }
}

/* ==========================================================================
   Runde 2 (2026-09-23): mehr Hoehe, mehr Platz fuer die Headline,
   Gesicht rechnerisch platziert
   ========================================================================== */

/* Die Headline kann ihre Groesse an der verfuegbaren Breite ausrichten */
.hero2__text {
  container-type: inline-size;
}

@media (min-width: 1024px) {
  /* Textspalte 60 statt 56 %, damit "gelebter Uebergaenge" in eine Zeile passt */
  .hero2__inner {
    grid-template-columns:
      minmax(var(--hero2-gutter), 1fr)
      minmax(0, calc(var(--hero2-container) * 0.6))
      minmax(0, calc(var(--hero2-container) * 0.4))
      minmax(var(--hero2-gutter), 1fr);
  }
  .hero2__text,
  .hero2__text:is(*) {
    padding-right: 2.5rem;
  }

  /* Hoehe: fast das ganze Fenster, unten bleiben Tour-Leiste und der
     Anfang der Kacheln angeschnitten sichtbar (Kopfzeile ~80px + ~150px) */
  /* Die Mindesthoehe sitzt auf der Rasterzeile, nicht auf der Bildspalte:
     Die Spalte wird so immer nur gestreckt. Traegt sie ihre Hoehe selbst,
     rechnet Chrome die Containerhoehe (cqh) unten im Bild falsch. */
  .hero2__inner {
    grid-template-rows: minmax(clamp(560px, calc(100vh - 230px), 1000px), auto);
    grid-template-rows: minmax(clamp(560px, calc(100svh - 230px), 1000px), auto);
  }
  .hero2__media {
    min-height: 0;
    container-type: size;
    overflow: hidden;
  }

  /*
   * Bild ohne object-fit, rechnerisch platziert. Foto 1119 x 596
   * (Seitenverhaeltnis 1.8775), Gesicht bei 63 % Breite / 45 % Hoehe.
   * Ziel: Gesicht bei --face-x vom linken Rand der Bildspalte, also im
   * rechten Teil des Content-Rasters - nie unter dem Text, nie ausserhalb.
   * --hi = gerenderte Bildhoehe: mindestens Spaltenhoehe x Zoom, und so
   * gross, dass das Bild rechts bis zum Fensterrand reicht.
   */
  .hero2__image {
    --zoom: 1;         /* die groessere Hoehe zoomt schon; 1.12 war zu nah */
    --face-x: calc(var(--hero2-container) * 0.26);   /* etwas weiter rechts */
    --hi: max(calc(100cqh * var(--zoom)), calc((100cqw - var(--face-x)) / 0.676));
    position: absolute;
    inset: auto;
    width: calc(var(--hi) * 1.8775);
    height: var(--hi);
    max-width: none;
    object-fit: fill;
    left: calc(var(--face-x) - var(--hi) * 1.8775 * 0.63);
    top: clamp(calc(100cqh - var(--hi)), calc(100cqh * 0.42 - var(--hi) * 0.45), 0px);
  }
}

/* Niedrige Fenster (z. B. Laptop 800px): weniger Luft um den Text, damit
   unten Tour-Leiste und Kacheln angeschnitten sichtbar bleiben, auch mit
   den laengeren franzoesischen Texten */
@media (min-width: 1024px) and (max-height: 880px) {
  .hero2__text {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
