/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--cream-deep) 96%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: 1.5rem;
}

/* Der Header läuft randlos wie der Hero darunter und teilt sich dessen linke
   Kante. Vorher saß das Logo auf der 1180px-Mitte, also weit rechts von der
   Hero-Überschrift – auf breiten Bildschirmen las sich das als Fehler.
   Eigene Regel mit .site-header davor, weil responsive.css später noch
   .container-Breiten setzt; die Spaltenaufteilung bleibt bewusst in der
   einfachen .header-inner-Regel darüber, damit responsive.css sie weiterhin
   auf zwei Spalten umstellen kann. */
.site-header .header-inner {
  width: auto;
  padding-inline: var(--page-inset);
}

/* Minimal header for standalone subpages (e.g. Thermomix recipes): no nav,
   just a way back. Same sticky chrome as .site-header so the page doesn't
   feel unbranded. */
.back-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--cream-deep) 96%, transparent);
  backdrop-filter: blur(16px);
}

.back-header .container {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
}

.back-link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-deep);
  transition:
    background-color var(--motion-base) var(--ease-smooth),
    transform var(--motion-base) var(--ease-smooth);
}

.back-link svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .back-link:hover {
    background: var(--sage-pale);
    transform: translateX(-2px);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 46px;
  flex: 0 0 auto;
}

/* Logo-only wordmark: no text beside it, so the signet can carry more
   visual weight in the header. */
.brand-logo-only .brand-logo {
  height: 68px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.brand-suffix {
  margin-top: 0.15rem;
  color: var(--warm);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.15rem, 2vw, 2rem);
}

.desktop-nav a {
  position: relative;
  padding-block: 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--green);
  content: "";
  transform-origin: right;
  transition: transform var(--motion-base) var(--ease-smooth);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a[aria-current="page"] {
  color: var(--green-deep);
  font-weight: 700;
}

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding-inline: 1.25rem;
  font-size: 0.78rem;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* Hero – "Warmer Raum, kuratiert"
   Kontrollierte Komposition statt randlosem Band: zwei Spalten, mittig
   aufgehängt am Seitenmaß. Links das lesbare Maß, rechts das Foto in einem
   abgerundeten Rahmen mit vier dekorativen Elementen (Sage-Panel, Bogen,
   Olivenzweig, Handschrift-Notiz). Deko ist rein visuell und wird auf
   schmalen Viewports abgebaut. */
.section.hero {
  position: relative;
  /* overflow-x: clip haelt die Atmosphaeren-Blobs und die nach aussen
     ragende Notizkarte im Rahmen, ohne einen horizontalen Scrollbalken zu
     erzeugen; vertikal darf die Komposition frei atmen. */
  overflow-x: clip;
  padding-block: clamp(2rem, 4vw, 4rem) clamp(3.5rem, 7vw, 6.5rem);
  background: var(--cream);
}

.hero::after {
  display: none;
}

/* Weiche, unscharfe Farbfelder in zwei Ecken – die CSS-Annaeherung an die
   fotografisch-unscharfe Botanik aus dem Entwurf. Jederzeit gegen ein echtes
   Bild austauschbar. */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-atmosphere-blob--tl {
  top: -18%;
  left: -12%;
  width: min(46vw, 34rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, var(--sage), transparent 70%);
}

.hero-atmosphere-blob--br {
  right: -14%;
  bottom: -24%;
  width: min(44vw, 32rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 60% 60%, var(--apricot-soft), transparent 70%);
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4.5rem);
  max-width: calc(var(--container) + 180px);
  margin-inline: auto;
  padding-inline: var(--page-inset);
}

/* --- Spalte 1: das Maß ---------------------------------------------------- */
.hero-copy {
  align-self: center;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}

/* "Von Mama zu Mama." war eine zentrierte figcaption, verwaist unter dem Foto.
   Das ist keine Bildunterschrift, sondern eine Stimme – sie sitzt jetzt als
   Serifen-Kontrapunkt neben der Versalzeile. */
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.17em;
}

.hero-eyebrow em {
  font-family: "Lora", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Displaygröße wächst mit dem Fenster, der Fließtext darunter bewusst nicht.
   max-width in ch begrenzt die Zeilenlänge; die Textspalte selbst gibt die
   Breite vor. text-wrap: pretty statt balance – balance zog "Dein" allein in
   eine erste Zeile. */
.hero-title {
  max-width: 24ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.15rem, 1.4rem + 1.75vw, 3.05rem);
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--green-soft);
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem);
  line-height: 1.7;
}

/* Button und Sekundärlink stehen in einer Zeile. Abstand und Innenabstand sind
   so bemessen, dass die Zeile über den gesamten Desktop-Bereich nicht umbricht –
   ein Umbruch, der je nach Fensterbreite mal auftritt und mal nicht, liest sich
   als Fehler. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 0.85rem;
}

.hero-actions .button-primary {
  padding-inline: 1.7rem;
}

/* Vorher .text-link: 1.5px transparenter Rahmen bis zum Hover, also im
   Ruhezustand kein Hinweis darauf, dass es ein Link ist. Jetzt dauerhaft
   unterstrichen bei 42% Deckkraft, voll beim Hover, mit einem Pfeil nach
   unten, der beim Hover nachgibt. .text-link selbst bleibt unverändert –
   die Klasse wird weiter unten noch viermal verwendet. */
.hero-secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.42em;
  transition:
    text-decoration-color var(--motion-base) var(--ease-smooth),
    color var(--motion-fast) ease;
}

.hero-secondary-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-base) var(--ease-spring);
}

.hero-secondary-link:hover,
.hero-secondary-link:focus-visible {
  text-decoration-color: currentColor;
}

.hero-secondary-link:hover svg {
  transform: translateY(2px);
}

/* Vorher auf 340px gedeckelt und dadurch in zwei enge Zeilen gebrochen.
   Ohne Deckel läuft die Zeile bis zum Spaltenrand und bleibt einzeilig. */
.hero-note {
  margin: 0;
  font-size: 0.82rem;
}

/* --- Spalte 2: die Komposition ----------------------------------------- */
.hero-media {
  display: grid;
  place-items: center;
  margin: 0;
}

/* Positionierungsrahmen fuer Foto + Deko. Deko haengt an den Rand-Prozenten
   dieses Elements, skaliert also mit dem Foto. */
.hero-composition {
  position: relative;
  width: min(100%, 27rem);
  /* Luft rundherum, damit Panel (oben/rechts), Zweig (unten/links) und
     Notizkarte (rechts aussen) Platz haben, ohne die Section zu verlassen. */
  margin-block: clamp(1rem, 3vw, 2.5rem);
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 0 30px 60px -22px rgba(20, 30, 24, 0.32);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 8%;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

/* Sage-Panel: sitzt versetzt hinter dem Foto, oben und rechts sichtbar. */
.hero-deco-panel {
  z-index: 1;
  top: -7%;
  right: -9%;
  width: 64%;
  height: 72%;
  border-radius: clamp(16px, 1.8vw, 24px);
  background: color-mix(in srgb, var(--sage) 52%, var(--paper));
}

/* Bogen: dünner Ring, nur die untere rechte Rundung schaut hinter dem Foto
   hervor. */
.hero-deco-arc {
  z-index: 1;
  right: -13%;
  bottom: -13%;
  width: 108%;
  aspect-ratio: 1;
  color: var(--apricot);
  opacity: 0.55;
}

.hero-deco-arc svg {
  width: 100%;
  height: 100%;
}

/* Olivenzweig: liegt vor dem Foto, überlappt die untere linke Ecke. */
.hero-deco-branch {
  z-index: 3;
  bottom: -7%;
  left: -13%;
  width: clamp(78px, 11vw, 122px);
  color: var(--green);
  opacity: 0.92;
}

.hero-deco-branch svg {
  width: 100%;
  height: auto;
}

/* Handschrift-Notiz: gekippte Karte rechts aussen, vertikal mittig. */
.hero-note-card {
  position: absolute;
  z-index: 4;
  top: 52%;
  right: clamp(-3.25rem, -4vw, -2rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 11.5rem;
  margin: 0;
  padding: 0.85rem 1.1rem 0.95rem;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%) rotate(5deg);
}

.hero-note-script {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-deep);
}

.hero-note-heart {
  width: 18px;
  height: 18px;
  align-self: flex-end;
  fill: var(--apricot);
}

/* --- Vertrauensleiste: schwebende Karte ------------------------------- */
.trust-strip {
  position: relative;
  z-index: 5;
  margin-top: clamp(-3rem, -4vw, -1.5rem);
  border: 0;
  background: transparent;
}

.trust-grid {
  max-width: calc(var(--container) + 130px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  padding: clamp(0.85rem, 1.6vw, 1.15rem) clamp(0.9rem, 1.8vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: clamp(16px, 2vw, 24px);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--green-soft);
  font-size: clamp(0.74rem, 0.66rem + 0.26vw, 0.82rem);
  line-height: 1.25;
}

.trust-grid span {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-inline: clamp(0.7rem, 1.1vw, 1rem);
  border-left: 1px solid var(--border);
  text-align: left;
}

.trust-grid span:first-child {
  border-left: 0;
}

.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1051px) {
  .trust-grid span {
    white-space: nowrap;
    transition:
      color var(--motion-fast) ease,
      transform var(--motion-base) var(--ease-smooth);
  }

  @media (hover: hover) and (pointer: fine) {
    .trust-grid span:hover {
      color: var(--green-deep);
      transform: translateY(-2px);
    }
  }
}

/* Header-Höhe ab Tablet fixieren (nicht Hero-bezogen, bleibt erhalten). */
@media (min-width: 761px) {
  .site-header,
  .header-inner {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    transition: none;
  }

  .brand-logo-only .brand-logo {
    height: 68px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image-frame {
    transform: none !important;
  }
}

/* Startseiten-Hero: Editorial-Komposition mit ruhigem Textfeld, hohem
   Portrait und einer eingebetteten botanischen Vordergrundebene. */
.section.hero {
  min-height: clamp(44rem, 72svh, 52rem);
  padding-block: clamp(4rem, 6vw, 6.25rem) clamp(8.5rem, 10vw, 10.5rem);
  background:
    radial-gradient(circle at 8% 12%, rgba(221, 231, 218, 0.5), transparent 23rem),
    var(--cream);
}

.hero-atmosphere {
  display: none;
}

.hero-grid {
  width: min(calc(100% - 12rem), 100rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(26rem, 0.8fr);
  gap: clamp(3rem, 4.5vw, 5.25rem);
  max-width: none;
  min-height: 35rem;
  padding-inline: 0;
}

.hero-copy {
  padding-block: 0;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-title {
  max-width: none;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 2.1rem + 1.5vw, 3rem) !important;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-title span {
  display: block;
  white-space: nowrap !important;
}

.hero-lead {
  max-width: 35rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 0.88rem + 0.45vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  gap: 1.25rem 2rem;
  margin-bottom: 0.9rem;
}

.header-cta::after {
  margin-left: 0.5rem;
  content: "\2192";
  font-size: 1.1em;
  line-height: 0;
}

.hero-media {
  place-items: center end;
}

.hero-composition {
  width: min(100%, 27rem);
  margin: 0 3.75rem 0 0;
}

.hero-image-frame {
  z-index: 3;
  aspect-ratio: 0.75;
  border: 0;
  border-radius: clamp(22px, 2vw, 30px);
  box-shadow: 0 30px 60px -30px rgba(22, 37, 30, 0.42);
}

.hero-image-frame img {
  object-position: 50% 6%;
}

.hero-deco-panel {
  top: 5%;
  right: -42%;
  z-index: 2;
  width: 76%;
  height: 83%;
  border-radius: 1.65rem;
  /* Vordere Notizfläche: ein heller, warmer Salbeiton. */
  background-color: #eaebde;
  background-image:
    linear-gradient(118deg, rgba(255, 255, 255, 0.18), transparent 48%),
    radial-gradient(ellipse at 78% 18%, rgba(104, 112, 91, 0.06), transparent 68%);
}

.hero-deco-panel--rear {
  top: -5%;
  left: 17%;
  right: auto;
  z-index: 1;
  width: 92%;
  height: 74%;
  /* Die hintere Kachel ist bewusst einen Ton gedeckter und erzeugt damit
     Tiefe, ohne die ruhige Bildkomposition zu verändern. */
  background: #dfe1cd;
}

.hero-deco-arc {
  display: none;
}

.hero-deco-branch {
  display: block;
  z-index: 4;
  bottom: 17%;
  left: -11%;
  width: clamp(5.5rem, 8vw, 8.25rem);
  color: #345c49;
  opacity: 0.88;
  pointer-events: none;
}

.hero-note-card {
  z-index: 5;
  top: 40%;
  right: -32%;
  width: 7.25rem;
  max-width: none;
  min-height: 12rem;
  justify-content: flex-start;
  padding: 1.2rem 0.8rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%) rotate(-5deg);
  --hero-note-ink: #5a6255;
}

.hero-note-card::after {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  width: 3.9rem;
  height: 0.7rem;
  border-top: 1.35px solid var(--hero-note-ink);
  border-radius: 50% 50% 0 0;
  content: "";
  opacity: 0.78;
  transform: translateX(-50%) rotate(-12deg);
}

.hero-note-script {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.65rem, 1.25rem + 0.72vw, 2rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--hero-note-ink);
}

.hero-note-script span {
  display: block;
  white-space: nowrap;
}

.hero-note-heart {
  position: absolute;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  bottom: 2.2rem;
  left: 50%;
  margin: 0;
  fill: transparent;
  stroke: var(--hero-note-ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-50%) rotate(-9deg);
}

.trust-strip {
  z-index: 6;
  margin-top: clamp(-6rem, -5vw, -4rem);
  padding-bottom: clamp(4rem, 4.5vw, 5.5rem);
}

.trust-grid {
  width: min(calc(100% - 12rem), 100rem);
  max-width: none;
  min-height: 6.4rem;
  padding: 1rem 1.5rem;
  border-radius: 1.55rem;
  box-shadow: 0 24px 50px -42px rgba(24, 43, 34, 0.45);
  font-size: clamp(0.8rem, 0.72rem + 0.2vw, 0.92rem);
}

.trust-grid span {
  justify-content: flex-start;
  gap: 0.8rem;
  padding-inline: clamp(1rem, 2vw, 2rem);
}

.trust-icon {
  width: 3.15rem;
  height: 3.15rem;
  padding: 0.72rem;
  background: color-mix(in srgb, var(--sage-pale) 78%, var(--paper));
  stroke-width: 1.7;
}

@media (min-width: 1051px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
    gap: clamp(1.75rem, 3vw, 3.5rem);
  }

  .hero-composition {
    transform: translateX(clamp(-9rem, calc(18rem - 22.5vw), 0rem));
  }
}

@media (min-width: 1051px) and (max-width: 1399px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.78fr);
  }

  .hero-composition {
    width: min(100%, 24rem);
    margin-right: 0;
    transform: translateX(-1rem);
  }

  .hero-note-card {
    right: -28%;
  }
}
