@charset "utf-8";

/* =========================================================================
   Melhartbauer's Eierspeis – Stylesheet
   1. Schrift
   2. Design-Tokens
   3. Basis & Typografie
   4. Hilfsklassen
   5. Buttons
   6. Header, Navigation, Logo
   7. Hero mit Scroll-Zoom
   8. Sektionen & Komponenten
   9. Footer
  10. Bewegungsreduktion & Druck
   ========================================================================= */

/* 1. Schrift ------------------------------------------------------------- */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design-Tokens ------------------------------------------------------- */

:root {
  /* Farben – abgeleitet aus dem Logo */
  --c-text: #4a3228;
  --c-text-soft: #6b5245;
  --c-accent: #c48032;
  --c-accent-dark: #a2661f;
  --c-surface: #ffffff;
  --c-surface-alt: #edd9c1;
  --c-cream: #faf4ec;
  --c-line: rgba(74, 50, 40, 0.16);
  --c-line-strong: rgba(74, 50, 40, 0.28);
  --c-shadow: rgba(74, 50, 40, 0.13);

  /* Maße */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Header */
  --logo-h: 4rem;
  --logo-h-small: 2rem;
  --header-pad: 1rem;
  --header-h: calc(var(--logo-h) + 2 * var(--header-pad));

  /* Kurven */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Basis & Typografie -------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Hintergrund nicht mitscrollen, solange das mobile Menü offen ist */
body.nav-open { overflow: hidden; }
html:has(body.nav-open) { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, picture, svg { max-width: 100%; }
img { height: auto; border: 0; }

ul { margin: 0; padding: 0; }

address { font-style: normal; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  vertical-align: middle;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 4. Hilfsklassen -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  z-index: 200;
  translate: -50% -200%;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--c-text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: translate 0.2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

.kicker {
  margin: 0 0 0.9rem;
  color: var(--c-accent-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
}

.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* 5. Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, translate 0.2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { translate: 0 -2px; }

.btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--c-text);
}

/* 6. Header, Navigation, Logo -------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
body.is-scrolled .header {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 26px -18px var(--c-shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--header-pad) var(--gutter);
  transition: padding 0.35s var(--ease);
}
body.is-scrolled .header__inner { --header-pad: 0.75rem; }

/* Logo: volles Logo blendet aus, das Icon rutscht nach links und schrumpft */
.logo {
  --icon-h: calc(var(--logo-h) * 0.574374);
  --icon-w: calc(var(--logo-h) * 0.561868);
  position: relative;
  z-index: 95; /* bleibt über dem mobilen Menü sichtbar */
  display: block;
  flex: none;
  width: calc(var(--logo-h) * 1.776531);
  height: var(--logo-h);
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.logo__full,
.logo__icon {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

.logo__full {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s var(--ease);
}

.logo__icon {
  width: var(--icon-w);
  height: var(--icon-h);
  opacity: 0;
  translate: calc(var(--logo-h) * 1.135216) calc(var(--logo-h) * 0.330278);
  transition: opacity 0.3s var(--ease), translate 0.45s var(--ease),
    width 0.45s var(--ease), height 0.45s var(--ease);
}

body.is-scrolled .logo {
  width: calc(var(--logo-h-small) * 0.978192);
  height: var(--logo-h-small);
}
body.is-scrolled .logo__full { opacity: 0; }
body.is-scrolled .logo__icon {
  width: calc(var(--logo-h-small) * 0.978192);
  height: var(--logo-h-small);
  opacity: 1;
  translate: 0 0;
}

/* Navigation */
.nav { margin-inline-start: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
  list-style: none;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--c-accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__item:focus-within > .nav__link::after,
.nav__link[aria-current="page"]::after { scale: 1 1; }
.nav__link[aria-current="page"] { color: var(--c-accent-dark); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: -1.1rem;
  z-index: 5;
  min-width: 17rem;
  padding: 0.6rem;
  margin-top: 0.55rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 22px 42px -22px var(--c-shadow), 0 0 0 1px var(--c-line);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.22s var(--ease), translate 0.22s var(--ease), visibility 0.22s;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__item--has-sub.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.nav__sub::before {
  /* unsichtbare Brücke, damit die Maus nicht durchfällt */
  content: "";
  position: absolute;
  inset: -0.85rem 0 auto;
  height: 0.85rem;
}

.nav__sub a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.nav__sub a:hover,
.nav__sub a:focus-visible { background: var(--c-cream); color: var(--c-accent-dark); }
.nav__sub a[aria-current="page"] { color: var(--c-accent-dark); font-weight: 700; }

.header__meta {
  position: relative;
  z-index: 95; /* Menü-Button muss über dem geöffneten Panel liegen */
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);
  flex: none;
}

/* Social-Icons */
.social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.social__btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--c-text);
  transition: background-color 0.2s, color 0.2s, translate 0.2s var(--ease);
}
.social__btn .icon { width: 1.15rem; height: 1.15rem; }
.social__btn:hover,
.social__btn:focus-visible {
  background: var(--c-accent);
  color: #fff;
  translate: 0 -2px;
}

.social--nav { display: none; }

/* Menü-Button (mobil) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: translate 0.25s var(--ease), rotate 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  translate: 0 6px;
  rotate: 45deg;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  translate: 0 -6px;
  rotate: -45deg;
}

@media (max-width: 1080px) {
  .header__meta { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .social--header { display: none; }
  .social--nav { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    margin: 0;
    pointer-events: none;
  }
  /* Die Abdunkelung liegt unter dem Header, damit die Kopfzeile mit Logo
     und Menü-Button klar sichtbar bleibt. */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(74, 50, 40, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  body.nav-open::after { opacity: 1; }

  .nav__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(24rem, 88vw);
    padding: calc(var(--header-h) + 1.5rem) clamp(1.25rem, 5vw, 2rem) 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-surface);
    box-shadow: -20px 0 50px -30px var(--c-shadow);
    translate: 100% 0;
    transition: translate 0.35s var(--ease);
  }
  body.nav-open .nav { pointer-events: auto; }
  body.nav-open .nav__panel { translate: 0 0; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item + .nav__item { border-top: 1px solid var(--c-line); }
  .nav__link {
    padding: 0.85rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--c-accent);
    vertical-align: 0.1em;
  }

  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 0.9rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  .nav__sub::before { display: none; }
  .nav__sub a {
    padding: 0.45rem 0 0.45rem 1rem;
    border-left: 2px solid var(--c-line);
    border-radius: 0;
    color: var(--c-text-soft);
  }
  .nav__sub a:hover,
  .nav__sub a:focus-visible {
    background: none;
    border-left-color: var(--c-accent);
  }

  .social--nav {
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-line);
  }
  .social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
  }
  .social__link:hover { color: var(--c-accent-dark); }
}

@media (max-width: 620px) {
  :root {
    --logo-h: 2.9rem;
    --logo-h-small: 1.9rem;
    --header-pad: 0.7rem;
  }
}

/* 7. Hero mit Scroll-Zoom ------------------------------------------------ */

.hero { position: relative; }

.hero__track { height: 200vh; }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--c-text);
}

.hero__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 62% 60%;
  will-change: transform;
}
.hero__zoom picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img,
.hero__img--hi {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__img--hi {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.hero__img--hi.is-ready { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(58, 38, 29, 0.82) 0%, rgba(58, 38, 29, 0.38) 34%, rgba(58, 38, 29, 0) 66%),
    linear-gradient(to bottom, rgba(58, 38, 29, 0.28) 0%, rgba(58, 38, 29, 0) 22%);
}

.hero__content {
  position: absolute;
  inset: auto 0 clamp(4rem, 11vh, 8rem);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: #fff;
}
@media (min-width: 1240px) {
  .hero__content { left: 50%; right: auto; translate: -50% 0; }
}

.hero__kicker {
  margin: 0 0 0.7rem;
  color: #f3dcb9;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 22ch;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(40, 25, 18, 0.35);
}
.hero__title span { color: #f0c887; }

.hero__lead {
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(40, 25, 18, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
}

.hero__hint {
  position: absolute;
  inset: auto 0 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__hint-icon {
  width: 1.4rem;
  height: 1.4rem;
  animation: hint 2s var(--ease) infinite;
}
@keyframes hint {
  0%, 100% { translate: 0 0; opacity: 0.7; }
  50% { translate: 0 5px; opacity: 1; }
}

/* Der Hero-Inhalt wird per JS beim Zoom ausgeblendet */
.hero__content,
.hero__hint { transition: opacity 0.25s linear; }

@media (max-width: 1080px) {
  .hero { padding-top: var(--header-h); }
  .hero__track { height: auto; }
  .hero__stage {
    position: relative;
    height: auto;
    overflow: visible;
    background: var(--c-surface);
  }
  .hero__zoom {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    transform: none;
    will-change: auto;
  }
  .hero__scrim,
  .hero__hint { display: none; }
  .hero__content {
    position: relative;
    inset: auto;
    translate: none;
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter) clamp(2.25rem, 6vw, 3.5rem);
    color: var(--c-text);
  }
  .hero__kicker { color: var(--c-accent-dark); }
  .hero__title { text-shadow: none; }
  .hero__title span { color: var(--c-accent-dark); }
  .hero__lead {
    color: var(--c-text-soft);
    text-shadow: none;
  }
  .hero .btn--ghost { color: inherit; }
  .hero .btn--ghost:hover,
  .hero .btn--ghost:focus-visible {
    background: var(--c-text);
    border-color: var(--c-text);
    color: #fff;
  }
}

/* 8. Sektionen & Komponenten -------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(3.75rem, 8vw, 7rem);
  background: var(--c-surface);
}
.section--alt { background: var(--c-surface-alt); }

/* Startseite – feste Sektionshintergründe */
@media (min-width: 1081px) {
  .home main > .section[aria-labelledby="social-title"],
  .home main > .section[aria-labelledby="quick-title"] {
    background: var(--c-surface);
  }
  .home main > .section[aria-labelledby="quote-title"] {
    background: var(--c-surface-alt);
  }
}
@media (max-width: 1080px) {
  /* Hero-Text startet in weißer Box → abwechselnd beige */
  .home main > .section[aria-labelledby="social-title"],
  .home main > .section[aria-labelledby="quick-title"] {
    background: var(--c-surface-alt);
  }
  .home main > .section[aria-labelledby="quote-title"] {
    background: var(--c-surface);
  }
  .home main > .section[aria-labelledby="quote-title"] .quote__portrait {
    box-shadow: 0 0 0 6px var(--c-surface), 0 0 0 7px var(--c-line);
  }
  .home .hero + .section[aria-labelledby="social-title"] {
    padding-top: clamp(2.5rem, 7vw, 4rem);
  }
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section__head:has(.section__lead) {
  max-width: none;
}
.section__head--tight {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section__head--wide {
  max-width: 40rem;
}
.section__head.section__head--wide:has(.section__lead) {
  max-width: 40rem;
}
.section__head--wide .section__lead + p {
  margin-top: 1em;
  color: var(--c-text-soft);
}
.section__title { margin-bottom: 0.5em; }
.section__lead {
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.1875rem);
  color: var(--c-text-soft);
}

/* Partner-Logoleiste */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--c-cream);
}
.logo-strip__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 3.75rem;
  object-fit: contain;
}
.logo-strip__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--c-cream);
  color: rgba(74, 50, 40, 0.38);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose {
  max-width: 40rem;
}
.prose p { color: var(--c-text-soft); }
.prose p + p { margin-top: 1em; }
.prose .section__title { color: var(--c-text); }

/* Intro */
.intro {
  display: grid;
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 1080px) {
  .hero + .section { padding-top: 0; }
  .intro {
    background: var(--c-surface-alt);
    margin-inline: calc(-1 * var(--gutter));
    padding: clamp(2.5rem, 7vw, 4rem) var(--gutter);
  }
}
@media (min-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "kicker text" "title text";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 0;
  }
  .intro .kicker { grid-area: kicker; }
  .intro .section__title { grid-area: title; margin-bottom: 0; }
  .intro__text { grid-area: text; }
}
.intro__text p + p { margin-top: 1.1em; }
.intro__text p:not(.lead) { color: var(--c-text-soft); }

/* Editorial Feature: Text + Bild asymmetrisch */
.feature {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
  }
  .feature--flip {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  .feature--flip .feature__copy { order: 2; }
  .feature--narrow-media {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
  .feature--narrow-media.feature--flip {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  }
  .feature--portrait {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }
  .feature--portrait.feature--flip {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  }
}
.feature__copy .kicker {
  margin-bottom: 0.65rem;
  color: var(--c-accent-dark);
}
.feature__copy .section__title { margin-bottom: 0.7em; }
.feature__copy p {
  color: var(--c-text-soft);
  max-width: 36rem;
}
.feature__copy p.kicker { color: var(--c-accent-dark); }
.feature__copy p + p { margin-top: 1em; }
.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.6rem;
}

.place {
  --place-pin-h: 2lh;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.place__pin {
  flex: none;
  width: calc(var(--place-pin-h) * 0.75);
  height: var(--place-pin-h);
  color: var(--c-accent);
  fill: currentColor;
}
.page-hero__copy .place { color: var(--c-text-soft); }
.feature__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-surface-alt);
  aspect-ratio: 5 / 4;
}
.feature__media--portrait { aspect-ratio: 4 / 5; }
.feature__media--wide { aspect-ratio: 16 / 10; }
.feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bildhöhe folgt der Textspalte */
@media (min-width: 900px) {
  .feature--match-media {
    align-items: stretch;
  }
  .feature--match-media .feature__media {
    aspect-ratio: auto;
    min-height: 0;
    align-self: stretch;
  }
  .feature--match-media .feature__media picture,
  .feature--match-media .feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Werte-Duo: zwei Motive nebeneinander */
.values-duo {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
}
@media (min-width: 780px) {
  .values-duo {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}
.values-duo__item {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.values-duo__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-surface-alt);
  aspect-ratio: 4 / 5;
}
.values-duo__item:last-child .values-duo__media { aspect-ratio: 5 / 4; }
@media (min-width: 780px) {
  .values-duo__item:last-child .values-duo__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .values-duo__item:last-child .values-duo__media img {
    position: absolute;
    inset: 0;
  }
  .values-duo__item:last-child .values-duo__media { position: relative; }
}
.values-duo__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.values-duo__item h3 { margin-bottom: 0.35em; }
.values-duo__item p {
  color: var(--c-text-soft);
  font-size: 0.975rem;
  line-height: 1.65;
  max-width: 34rem;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Keyfacts */
.facts {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--c-line);
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-accent-dark);
}
.fact__icon .icon { width: 1.65rem; height: 1.65rem; }
.fact__title { margin-bottom: 0.45em; }
.fact p {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Quicklink-Karten */
.cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--c-cream);
  box-shadow: 0 1px 0 var(--c-line);
  cursor: pointer;
  transition: translate 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card:hover,
.card:focus-within {
  translate: 0 -6px;
  box-shadow: 0 26px 40px -28px var(--c-shadow), 0 1px 0 var(--c-line);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-accent-dark);
  transition: background-color 0.28s, color 0.28s;
}
.card__icon .icon { width: 1.75rem; height: 1.75rem; }
.card:hover .card__icon,
.card:focus-within .card__icon { background: var(--c-accent); color: #fff; }
.card__title { margin-bottom: 0.5em; }
.card__text {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--c-accent-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card__link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: translate 0.22s var(--ease);
}
.card__link:hover .icon,
.card:hover .card__link .icon,
.card:focus-within .card__link .icon { translate: 4px 0; }
.card:hover .card__link,
.card:focus-within .card__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Foto-Karten (Startseite: Wohin darf's gehen?) */
.cards--photo {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card--photo {
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: 0 16px 44px -24px rgba(74, 50, 40, 0.34);
  transition: translate 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.card--photo:hover,
.card--photo:focus-within {
  translate: 0 -10px;
  box-shadow: 0 36px 64px -28px rgba(74, 50, 40, 0.38);
}

.card--photo .card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-text);
}

.card--photo .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 18%,
    rgba(74, 50, 40, 0.18) 48%,
    rgba(32, 21, 16, 0.88) 100%
  );
  pointer-events: none;
  transition: background 0.32s var(--ease);
}

.card--photo:hover .card__media::after,
.card--photo:focus-within .card__media::after {
  background: linear-gradient(
    180deg,
    transparent 10%,
    rgba(74, 50, 40, 0.28) 42%,
    rgba(32, 21, 16, 0.94) 100%
  );
}

.card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: scale 0.6s var(--ease);
}

.card--photo:hover .card__img,
.card--photo:focus-within .card__img {
  scale: 1.06;
}

.card__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.card--photo .card__title {
  margin-bottom: 0.4em;
  color: #fff;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.card--photo .card__text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.875rem;
  line-height: 1.55;
}

.card--photo .card__link {
  position: static;
  align-self: flex-start;
  margin-top: 1.15rem;
  padding-top: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.card--photo .card__link::after {
  inset: 0;
}

.card--photo .card__link .icon {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
  transition: background-color 0.28s, border-color 0.28s, translate 0.22s var(--ease);
}

.card--photo:hover .card__link,
.card--photo:focus-within .card__link {
  text-decoration: none;
}

.card--photo:hover .card__link .icon,
.card--photo:focus-within .card__link .icon {
  background: var(--c-accent);
  border-color: var(--c-accent);
  translate: 4px 0;
}

@media (min-width: 900px) {
  .cards--photo {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.35rem, 2vw, 2rem);
  }
}

/* Zitat */
.section--quote { text-align: center; }

.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin: 0 auto;
}

.quote__portrait {
  width: clamp(7.5rem, 14vw, 10.5rem);
  height: clamp(7.5rem, 14vw, 10.5rem);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--c-surface), 0 0 0 7px var(--c-line);
}
.section--alt .quote__portrait {
  box-shadow: 0 0 0 6px var(--c-surface-alt), 0 0 0 7px var(--c-line);
}

.quote__body {
  position: relative;
  margin: 2rem 0 0;
  padding-top: 3.25rem;
}
.quote__body::before {
  /* hohes Anführungszeichen: sitzt im oberen Teil der Zeile und bleibt
     damit über dem Zitattext */
  content: "\201C";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  color: var(--c-accent);
  font-size: 4.75rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.75;
}
.quote__body p {
  font-size: clamp(1.35rem, 1.1rem + 1.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.quote__caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.75rem;
}
.quote__name { font-weight: 700; }
.quote__role {
  color: var(--c-text-soft);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .section--quote { text-align: left; }

  .quote {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(2.5rem, 4vw, 4rem);
    row-gap: 1.25rem;
    align-items: start;
    max-width: 56rem;
  }

  .quote picture {
    grid-row: 1 / -1;
    align-self: center;
  }

  .quote__portrait {
    width: clamp(9rem, 12vw, 11.5rem);
    height: clamp(9rem, 12vw, 11.5rem);
  }

  .quote__body {
    margin: 0;
    padding-top: 2.75rem;
  }

  .quote__body::before {
    left: 0;
    translate: 0 0;
  }

  .quote__caption {
    margin-top: 0;
    align-items: flex-start;
  }
}

/* Social-Media-Wall */
.social-wall {
  display: grid;
  place-items: center;
  min-height: clamp(14rem, 30vw, 20rem);
  padding: 2rem;
  border: 2px dashed var(--c-line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
}
.social-wall__note {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.social-wall__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

/* Seitenkopf der Unterseiten – Text bündig mit Logo, Motiv kann ausbrechen */
.page-hero {
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2.75rem, 7vw, 5rem);
  background: var(--c-surface);
}
.page-hero .container { max-width: var(--wrap); }
.page-hero__lead {
  max-width: 42ch;
  margin: 0 0 1em;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--c-text-soft);
}
.page-hero h1 {
  margin-bottom: 0.45em;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem);
}

/* Breadcrumb immer im normalen Logo-Wrap */
.page-hero > .container > .breadcrumb {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.page-hero__stage {
  width: 100%;
}
.page-hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding-inline: var(--gutter);
  max-width: var(--wrap);
  margin-inline: auto;
}
@media (min-width: 960px) {
  .page-hero--split .page-hero__stage {
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  }
  .page-hero--split .page-hero__grid {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    grid-template-columns: minmax(16rem, 28rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4.5vw, 4rem);
    align-items: stretch;
  }
}
.page-hero__copy { max-width: 34rem; }
.page-hero__copy > p:not(.page-hero__lead):not(.kicker) {
  color: var(--c-text-soft);
  font-size: 0.9875rem;
  line-height: 1.65;
}
.page-hero__copy > p + p { margin-top: 0.85em; }
.page-hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-surface-alt);
  aspect-ratio: 5 / 4;
}
@media (min-width: 960px) {
  .page-hero__media {
    aspect-ratio: auto;
    min-height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}
.page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.breadcrumb {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(74, 50, 40, 0.45);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(74, 50, 40, 0.28);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--c-text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb [aria-current="page"] { color: rgba(74, 50, 40, 0.55); }

.page main { padding-top: var(--header-h); }

.placeholder {
  max-width: 46rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
}
.placeholder h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.placeholder p { color: var(--c-text-soft); }
.placeholder p:last-of-type { margin-bottom: 0; }

/* 9. Footer -------------------------------------------------------------- */

.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 0;
  border-top: 4px solid var(--c-accent);
  background: #e3c9a7;
  color: var(--c-text);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer__grid { grid-template-columns: 1.15fr 1fr 0.85fr; }
}

.footer__logo {
  width: clamp(11rem, 18vw, 14rem);
  height: auto;
}

.footer__slogan {
  margin: 1.4rem 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

.footer__head {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__head--sub { margin-top: 2rem; }

.footer__address { line-height: 1.85; }

.footer__list {
  list-style: none;
  line-height: 1.85;
}

.footer__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--c-accent-dark);
  border-bottom-color: currentColor;
}

.footer__muted { color: var(--c-text-soft); }

.social--footer { margin-top: 0.25rem; }
.footer .social__btn {
  border: 1px solid var(--c-line-strong);
  background: rgba(255, 255, 255, 0.4);
}
.footer .social__btn:hover,
.footer .social__btn:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-soft);
  font-size: 0.8125rem;
}
.footer__bar p { margin: 0; }

/* 10. Bewegungsreduktion & Druck ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
  .hero__track { height: auto; }
  .hero__stage { position: relative; }
  .hero__hint { display: none; }
}

@media print {
  .header, .nav, .hero__hint, .social-wall, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section, .footer { background: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
