/* ==========================================================================
   schnitzel-rezepte.at — Styles
   Reines CSS, keine Abhängigkeiten. Tokens unten, Sektionen folgen der Seite.
   ========================================================================== */

/* --- Schriften (self-hosted, NÖ Bauernbund) ----------------------------- */
@font-face {
  font-family: "Veneer italic";
  src: url("../fonts/veneer-italic.woff2?v=3f5a0eac24") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VerbCondRegular";
  src: url("../fonts/verbcond-regular.woff2?v=b9206c77fe") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --paper: #faf7f0;
  --ink: #1b1f17;
  --muted: #5c6068;
  --green-950: #06301f;
  --green-900: #0a4e34;
  --green-800: #0a4e34;
  --green-700: #0a4e34;
  --green-600: #679d2e;
  --green-050: #edf3e1;
  --lime: #a0c855;
  --red: #c8102e;
  --line: rgba(30, 33, 24, 0.14);
  --line-strong: rgba(30, 33, 24, 0.28);
  --line-light: rgba(250, 247, 240, 0.18);

  --font-display: "Veneer italic", "Arial Narrow", Impact, sans-serif;
  --font-body: "VerbCondRegular", "Arial Narrow", -apple-system, Helvetica, sans-serif;

  --step-0: 1.125rem;
  --step-3: clamp(2rem, 3.6vw, 3rem);
  --step-4: clamp(2.5rem, 5.3vw, 4.55rem);

  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 7vw, 6rem);
  --space-2xl: clamp(5rem, 10vw, 8.5rem);

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset / Basis -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.58;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.99;
  text-wrap: balance;
}
h2 {
  color: var(--green-700);
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
::selection {
  background: var(--green-600);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(760px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--green-800);
  color: var(--paper);
}

/* --- Bausteine ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--green-700);
  border-radius: var(--radius);
  background: var(--green-700);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
}
.btn svg {
  flex: none;
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--green-900);
}
.btn--light:hover {
  background: var(--green-050);
  border-color: var(--green-050);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover {
  border-color: var(--green-600);
  gap: 0.7rem;
}
.link-arrow--light {
  border-color: var(--line-light);
}
.link-arrow--light:hover {
  border-color: var(--paper);
}

/* --- Kopf ----------------------------------------------------------------- */
.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: transparent;
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-block: clamp(1.1rem, 2.6vw, 1.9rem) 0;
}
.brand {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand__logo {
  height: 4rem;
  width: auto;
  flex: none;
}
.site-head .brand {
  gap: 0.85rem;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
}
.site-head .brand__logo {
  height: 5rem;
}
.site-head .brand__name {
  color: var(--paper);
}
.site-head .brand__name span {
  color: var(--lime);
}
.site-foot .brand__logo {
  height: 3rem;
}
.brand__name {
  color: var(--green-700);
  font-weight: 400;
}
.brand__name span {
  color: var(--green-600);
  font-weight: 400;
  text-transform: lowercase;
}

/* --- Hero (Vollbild) ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(32rem, 82vh, 46rem);
  padding-block: clamp(6.5rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem);
  background: var(--green-950);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 52%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 38, 25, 0.95) 0%,
      rgba(5, 38, 25, 0.88) 32%,
      rgba(5, 38, 25, 0.58) 56%,
      rgba(5, 38, 25, 0.16) 80%,
      rgba(5, 38, 25, 0.34) 100%
    ),
    linear-gradient(0deg, rgba(5, 38, 25, 0.55), transparent 48%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero__content {
  max-width: 38rem;
}
.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 1.3rem;
}
.hero h1 em {
  display: block;
  color: var(--lime);
}
.hero__lead {
  max-width: 33rem;
  font-size: 1.22rem;
  color: rgba(250, 247, 240, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
  margin-top: var(--space-l);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.62);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.hero__facts li + li::before {
  content: "";
  width: 1px;
  height: 0.9em;
  background: rgba(250, 247, 240, 0.3);
  flex: none;
}
.hero__facts strong {
  font-weight: 600;
  color: var(--paper);
}
.hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  background: rgba(5, 38, 25, 0.55);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 247, 240, 0.7);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__credit:hover {
  color: var(--paper);
  background: rgba(5, 38, 25, 0.8);
}

/* --- Intro ---------------------------------------------------------------- */
.intro {
  padding-block: calc(var(--space-2xl) / 2);
  border-top: 1px solid var(--line);
}
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.intro__aside {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.intro__aside h2,
.section-head h2 {
  font-size: var(--step-3);
}
.intro__body {
  font-size: 1.16rem;
  max-width: 35.5rem;
}
.intro__body .dropcap::first-letter {
  float: left;
  margin: 0.08em 0.15em 0 0;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  font-weight: 400;
  color: var(--green-700);
}
.pull {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1.1rem;
  align-items: start;
  margin: var(--space-l) 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--green-800);
}
.pull::before {
  content: "";
  width: clamp(1.9rem, 3vw, 2.25rem);
  aspect-ratio: 3 / 2;
  margin-top: 0.12em;
  background: linear-gradient(
    to bottom,
    var(--red) 0 33.33%,
    #fff 33.33% 66.66%,
    var(--red) 66.66%
  );
  box-shadow: inset 0 0 0 1px rgba(30, 33, 24, 0.12);
}
.claim-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-800);
}
.claim-line::before {
  content: "";
  width: 0.9rem;
  height: 0.6rem;
  flex: none;
  background: linear-gradient(
    to bottom,
    var(--red) 0 33%,
    #fff 33% 66%,
    var(--red) 66%
  );
  box-shadow: inset 0 0 0 1px rgba(30, 33, 24, 0.1);
}

/* --- Kapitel -------------------------------------------------------------- */
.chapters {
  padding-block: calc(var(--space-2xl) / 2);
  background: var(--green-050);
  border-block: 1px solid rgba(31, 61, 20, 0.1);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: var(--space-l);
  align-items: end;
  margin-bottom: var(--space-xl);
}
.section-head > p {
  max-width: 27rem;
  justify-self: end;
  font-size: 1.02rem;
  color: #46503a;
}
.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 61, 20, 0.22);
}
.chapter {
  border-bottom: 1px solid rgba(31, 61, 20, 0.16);
}
.chapter a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0.2rem;
  text-decoration: none;
  transition: padding 0.25s var(--ease), color 0.2s var(--ease);
}
.chapter a:hover {
  padding-left: 0.75rem;
  color: var(--green-700);
}
.chapter__num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
}
.chapter__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.05;
}
.chapter__count {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.chapter__page {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.5rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chapter a:hover .chapter__page svg {
  transform: translateX(3px);
}
.chapter__page svg {
  transition: transform 0.25s var(--ease);
}
.chapters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: var(--space-l);
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Vorschau ------------------------------------------------------------- */
.preview {
  padding-block: calc(var(--space-2xl) / 2);
  background: var(--green-900);
  color: var(--paper);
  overflow: hidden;
}
.preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.preview h2 {
  font-size: var(--step-3);
  margin-bottom: 1.1rem;
}
.preview h2 {
  color: var(--lime);
}
.preview h2 em {
  color: var(--paper);
}
.preview p {
  max-width: 27rem;
  color: rgba(250, 247, 240, 0.72);
  font-size: 1.02rem;
}
.preview .link-arrow {
  margin-top: var(--space-m);
  color: var(--paper);
}
.preview__stack {
  position: relative;
  height: clamp(14.9rem, 24vw, 20.5rem);
  perspective: 1200px;
}
.page-card {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  width: clamp(10.5rem, 17vw, 14.5rem);
  aspect-ratio: 595 / 842;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.page-card:nth-child(1) {
  transform: translateX(-50%) translateX(-10.5rem) rotate(-8deg);
  z-index: 1;
  opacity: 0.88;
}
.page-card:nth-child(2) {
  transform: translateX(-50%) translateX(-5.5rem) rotate(-4deg);
  z-index: 2;
  opacity: 0.95;
}
.page-card:nth-child(3) {
  transform: translateX(-50%) translateY(-0.4rem);
  z-index: 3;
}
.page-card:nth-child(4) {
  transform: translateX(-50%) translateX(5.5rem) rotate(4deg);
  z-index: 2;
  opacity: 0.95;
}
.page-card:nth-child(5) {
  transform: translateX(-50%) translateX(10.5rem) rotate(8deg);
  z-index: 1;
  opacity: 0.88;
}
.preview__stack:hover .page-card:nth-child(1) {
  transform: translateX(-50%) translateX(-11.5rem) rotate(-10deg) translateY(-0.5rem);
}
.preview__stack:hover .page-card:nth-child(2) {
  transform: translateX(-50%) translateX(-6rem) rotate(-5deg) translateY(-0.9rem);
}
.preview__stack:hover .page-card:nth-child(3) {
  transform: translateX(-50%) translateY(-1.4rem);
}
.preview__stack:hover .page-card:nth-child(4) {
  transform: translateX(-50%) translateX(6rem) rotate(5deg) translateY(-0.9rem);
}
.preview__stack:hover .page-card:nth-child(5) {
  transform: translateX(-50%) translateX(11.5rem) rotate(10deg) translateY(-0.5rem);
}
.page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* --- Rezepte-Teaser ------------------------------------------------------- */
.teasers {
  padding-block: calc(var(--space-2xl) / 2);
}
.teasers__title {
  font-size: var(--step-3);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.teaser {
  display: block;
  text-decoration: none;
  color: var(--green-700);
}
.teaser__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-050);
}
.teaser__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.teaser:hover .teaser__media img {
  transform: scale(1.035);
}
.teaser__name {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.teaser:hover .teaser__name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* --- Abschluss-CTA -------------------------------------------------------- */
.closing {
  position: relative;
  padding-block: calc(var(--space-2xl) / 2);
  background: var(--green-800);
  color: var(--paper);
  overflow: hidden;
}
.closing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}
.closing h2 {
  font-size: var(--step-4);
  margin-bottom: 1rem;
}
.closing h2 {
  color: var(--lime);
}
.closing h2 em {
  color: var(--paper);
}
.closing p {
  max-width: 30rem;
  color: rgba(250, 247, 240, 0.72);
}
.closing .btn {
  margin-top: var(--space-l);
}
.closing__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.5);
}
.closing__ghost {
  position: absolute;
  right: -3rem;
  bottom: -4.5rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(9rem, 24vw, 22rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 247, 240, 0.13);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Fuß ------------------------------------------------------------------ */
.site-foot {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: var(--space-l);
}
.site-foot h3 {
  margin-bottom: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot p {
  max-width: 23rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-foot__claim {
  margin-top: 1rem;
}
.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.site-foot a {
  font-size: 0.92rem;
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn svg,
  .link-arrow,
  .chapter a,
  .chapter__page svg,
  .page-card {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(5, 38, 25, 0.95) 0%,
        rgba(5, 38, 25, 0.9) 52%,
        rgba(5, 38, 25, 0.7) 74%,
        rgba(5, 38, 25, 0.45) 100%
      ),
      linear-gradient(0deg, rgba(5, 38, 25, 0.35), transparent 55%);
  }
}

@media (max-width: 700px) {
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(5, 38, 25, 0.9) 0%,
      rgba(5, 38, 25, 0.74) 55%,
      rgba(5, 38, 25, 0.92) 100%
    );
  }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .intro__grid,
  .section-head,
  .preview__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    min-height: 0;
    padding-block: clamp(6rem, 12vw, 7rem) clamp(3rem, 7vw, 4.5rem);
  }
  .hero__bg {
    object-position: 58% 55%;
  }
  .hero__credit {
    display: none;
  }
  .intro__aside {
    position: static;
  }
  .section-head > p {
    justify-self: start;
  }
  .preview__stack {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    perspective: none;
  }
  .page-card,
  .page-card:nth-child(n),
  .preview__stack:hover .page-card:nth-child(n) {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    opacity: 1;
  }
  .page-card:nth-child(n + 4) {
    display: none;
  }
  .teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-foot__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .site-foot__grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .brand {
    gap: 0.55rem;
  }
  .brand__logo {
    height: 3.1rem;
  }
  .site-head .brand__logo {
    height: 4rem;
  }
  .site-head .brand {
    gap: 0.6rem;
    font-size: 1.1rem;
  }
  .chapter a {
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.95rem 0.1rem;
  }
  .chapter__page {
    display: none;
  }
  .chapter a:hover {
    padding-left: 0.3rem;
  }
  .hero__facts {
    gap: 0.4rem 1.2rem;
  }
  .hero__facts li + li::before {
    display: none;
  }
  .site-foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .teaser-grid {
    gap: 1.35rem 0.85rem;
  }
  .teaser__name {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .page-card:nth-child(3) {
    display: none;
  }
}
