/* Hof Schulte, Ense-Höingen. Gestaltung nach Entwurf A (13.10.2026) */

@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --creme: #FFFDFB;
  --text: #1a1a1a;
  --text-2: #3d3d3d;
  --text-3: #5d5d61;
  --gruen: #3F7652;
  --gruen-dunkel: #2f5a3e;
  --gruen-hell: #EDF3EE;
  --linie: #DBDAD0;
  --flaeche: #F3F1EA;
  --grau: #8F8F8F;
  --breite: 1240px;
  --foto-h: clamp(300px, min(46vw, 100svh - 340px), 640px);
  --ueberlapp: clamp(120px, min(17vw, 30svh), 250px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--text); font-family: "Karla", system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gruen-dunkel); }
h1, h2, h3 { font-family: "Oswald", sans-serif; font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: 16px; }
.container { max-width: var(--breite); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gruen); color: var(--creme); padding: 12px 18px; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

/* Kopfzeile */
.kopf { position: relative; z-index: 10; background: var(--creme); border-bottom: 1px solid var(--linie); }
.kopf-innen { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marke { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 500; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.marke:hover { color: var(--text); }
.nav-liste { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; font-weight: 500; font-size: 16px; }
.nav-liste a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-liste a:hover, .nav-liste a[aria-current="page"] { color: var(--gruen); text-decoration: underline; }
.menue-knopf { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--linie); border-radius: 4px; color: var(--text); cursor: pointer; }
.menue-knopf svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .js .menue-knopf { display: inline-flex; }
  .js .nav-liste { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--creme); border-bottom: 1px solid var(--linie); flex-direction: column; padding: 8px 24px 16px; }
  .js .nav-offen .nav-liste { display: flex; }
  .js .nav-liste a { min-height: 48px; font-size: 18px; }
  .kopf-innen { flex-wrap: wrap; }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 3px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--gruen); background: var(--gruen); color: var(--creme); font-family: inherit; font-size: 17px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--creme); }
.knopf-rand { background: transparent; color: var(--gruen); }
.knopf-rand:hover { background: var(--gruen); color: var(--creme); }
.knopf-hell { background: var(--creme); border-color: var(--creme); color: var(--gruen-dunkel); }
.knopf-hell:hover { background: #fff; border-color: #fff; color: var(--gruen-dunkel); }
.link-pfeil { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* Startbild mit Hügellinie */
.start { position: relative; overflow: hidden; overflow: clip; }
.foto { position: relative; height: var(--foto-h); overflow: hidden; z-index: 0; background: #cfd6c8; }
.foto-bild { position: absolute; left: 0; right: 0; top: -40%; height: 140%; will-change: transform; backface-visibility: hidden; }
.foto-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.huegel { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(44px, 5.5vw, 80px); display: block; }

.papier-rahmen { position: relative; z-index: 3; max-width: 640px; margin: calc(-1 * var(--ueberlapp)) auto 0; padding: 0 16px; }
.papier { position: relative; background: var(--creme); border: 1.5px solid var(--text); padding: 108px clamp(22px, 5vw, 56px) 44px; text-align: center; box-shadow: 0 18px 40px -22px rgba(26, 26, 26, .35); }
/* stärkerer Schatten als eigene Ebene, beim Scrollen nur eingeblendet (läuft flüssig auf der Grafikkarte) */
.papier::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: 0 44px 70px -26px rgba(26, 26, 26, .5); opacity: var(--hebung, 0); will-change: opacity; }
.papier-logo { position: absolute; top: -82px; left: 50%; transform: translateX(-50%); width: 164px; height: 164px; border-radius: 50%; background: var(--creme); border: 1.5px solid var(--text); display: flex; align-items: center; justify-content: center; }
.papier-logo img { width: 128px; }
.papier h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.papier .einleitung { margin: 0 auto 30px; max-width: 480px; color: var(--text-2); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.papier .seit { margin-top: 28px; font-size: 15px; color: var(--text-3); }

@media (max-height: 760px) and (min-width: 761px) {
  :root { --foto-h: clamp(300px, min(46vw, 100svh - 240px), 640px); --ueberlapp: clamp(120px, min(18vw, 38svh), 250px); }
  .start:not(.seitenkopf) .papier-rahmen { max-width: 780px; }
  .papier { padding-top: 78px; padding-bottom: 32px; }
  .papier-logo { width: 128px; height: 128px; top: -64px; }
  .papier-logo img { width: 100px; }
  .papier h1 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
  .papier .einleitung { font-size: 16px; margin-bottom: 22px; }
  .papier .seit { margin-top: 18px; }
}

/* Startfoto scrollt langsamer als die Seite (Parallax). Der Browser koppelt es selbst an den Scrollbalken
   und rechnet auf der Grafikkarte, dadurch läuft es ohne Verzögerung. Firefox: Ersatz in main.js. */
@keyframes foto-parallax { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 28.572%, 0); } }
@keyframes papier-hebung { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .start { timeline-scope: --foto; }
    .start > .foto { view-timeline-name: --foto; }
    .foto-bild { animation: foto-parallax linear both; animation-timeline: --foto; animation-range: exit 0% exit 100%; }
        .start:not(.seitenkopf) .papier::after { animation: papier-hebung linear both; animation-timeline: --foto; animation-range: exit 0% exit 100%; }
  }
}

/* Galloway-Herde */
.herde { position: absolute; left: 0; right: 0; top: calc(var(--foto-h) + 24px); height: 150px; z-index: 2; pointer-events: none; }
.herde-lauf { position: absolute; inset: 0; will-change: transform; }
.rind { position: absolute; bottom: 0; overflow: visible; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .herde { display: none; } }

/* Abschnitte */
.abschnitt { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.abschnitt-titel { font-size: clamp(30px, 3vw, 40px); margin-bottom: 36px; }
.text-2 { color: var(--text-2); }
.stapel { display: flex; flex-direction: column; gap: 16px; }

/* Hofladen und Verkaufstermine */
.hofladen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1.5px solid var(--text); }
.hofladen-block { background: var(--gruen); color: var(--creme); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.hofladen-block h3 { font-size: 24px; }
.hofladen-block .gross { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; }
.hofladen-block a { color: var(--creme); }
.hofladen-block .trenner { border: 0; border-top: 1px solid rgba(255, 253, 251, .3); margin: 14px 0 4px; }
.region-liste { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 20px; color: var(--gruen-hell); }
.region-liste li { padding: 7px 0; border-bottom: 1px solid rgba(255, 253, 251, .2); }
.termin-block { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; background: var(--creme); }
.termin-block h3 { font-size: 24px; }
.termin { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 24px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.datum { font-family: "Oswald", sans-serif; font-weight: 500; line-height: 1; text-align: center; min-width: 110px; }
.datum-tag { font-size: 76px; display: block; }
.datum-monat { font-size: 22px; display: block; margin-top: 8px; }
.termin-text { flex: 1 1 240px; }
.termin-text .gross { font-size: 22px; font-weight: 700; line-height: 1.3; }
.erinnerung { display: flex; flex-direction: column; gap: 8px; }
.erinnerung label { font-weight: 700; font-size: 15px; }
.feld-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.feld { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--grau); border-radius: 3px; font: inherit; background: #fff; color: var(--text); }
.feld:focus { border-color: var(--gruen); outline: none; box-shadow: 0 0 0 3px rgba(63, 118, 82, .2); }
.hinweis-demo { font-size: 14px; color: var(--text-3); }
.hinweis-demo[hidden] { display: none; }
@media (max-width: 860px) { .hofladen-raster { grid-template-columns: 1fr; } }

/* Betriebszweige */
.flaeche { background: var(--flaeche); }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.karte { background: var(--creme); display: flex; flex-direction: column; }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte-text { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.karte-text h2 { font-size: 28px; }
.karte-text p { color: var(--text-2); flex-grow: 1; }

/* Bild und Text nebeneinander */
.paar { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.paar-umgekehrt { flex-wrap: wrap-reverse; }
.paar > img, .paar > figure { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; }
.paar > .stapel { flex: 1 1 380px; }
.linie-oben { border-top: 1px solid var(--linie); }

/* Unterseiten */
.seitenkopf .foto { height: clamp(220px, min(30vw, 100svh - 380px), 420px); }
.seitenkopf .papier-rahmen { max-width: 820px; margin-top: calc(-1 * clamp(70px, 8vw, 110px)); }
.seitenkopf .papier { padding: clamp(28px, 4vw, 44px) clamp(22px, 5vw, 56px); text-align: left; }
.seitenkopf h1 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 16px; }
.seitenkopf .einleitung { color: var(--text-2); font-size: 18px; }
.seitenkopf-schlicht { padding-top: clamp(48px, 7vw, 88px); }
.seitenkopf-schlicht h1 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 16px; }
.inhalt { max-width: 760px; }
.inhalt h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 0; }
.inhalt h3 { font-size: 22px; margin-top: 8px; }
.liste-linien { margin: 0; padding: 0; list-style: none; }
.liste-linien li { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.liste-linien li:first-child { border-top: 1px solid var(--linie); }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.fakt { border-top: 1.5px solid var(--text); padding-top: 14px; }
.fakt strong { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 34px; display: block; line-height: 1.1; }
.zeitleiste { margin: 0; padding: 0; list-style: none; }
.zeitleiste li { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--linie); }
.zeitleiste li:last-child { border-bottom: 1px solid var(--linie); }
.zeitleiste .jahr { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 22px; min-width: 96px; }
.personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.platzhalter { border: 1.5px dashed var(--grau); padding: 24px; color: var(--text-3); background: #fff; }

/* Kontakt */
.kontakt-raster { display: flex; flex-wrap: wrap; gap: 56px; }
.kontakt-raster > .stapel { flex: 1 1 300px; }
.formular { flex: 1 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.formular .voll { grid-column: 1 / -1; }
.formular label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.formular .feld { width: 100%; }
.formular textarea.feld { padding: 12px 14px; min-height: 140px; resize: vertical; }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.einwilligung input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--gruen); }
.formular .einwilligung label { font-weight: 400; margin: 0; }

/* Rechtstexte */
.rechtstext h2 { font-size: 24px; margin: 28px 0 8px; }
.rechtstext p { margin: 0 0 12px; }

/* Fußzeile */
.fuss { background: var(--gruen); color: var(--creme); margin-top: 0; }
.fuss a { color: var(--creme); text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss-innen { padding-top: 72px; padding-bottom: 8px; }
.fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.fuss h2 { font-size: 20px; margin-bottom: 8px; }
.fuss p { color: var(--gruen-hell); }
.fuss-logo { width: 150px; }
.fuss-links { display: flex; flex-direction: column; }
.fuss-links a { min-height: 44px; display: inline-flex; align-items: center; }
.fuss-unten { display: flex; flex-wrap: wrap; gap: 0 28px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 8px; border-top: 1px solid rgba(255, 253, 251, .25); font-size: 14px; color: var(--gruen-hell); }
.fuss-unten nav { display: flex; gap: 28px; }
.fuss-unten a, .fuss-unten span { min-height: 44px; display: inline-flex; align-items: center; }

.kt-credit { display: flex; justify-content: flex-end; margin-top: 18px; border-top: 1px solid rgba(255, 253, 251, .25); font-size: 12px; line-height: 1; }
.kt-credit a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gruen-hell); font-weight: 400; text-decoration: none; }
.kt-credit a:hover, .kt-credit a:focus-visible { color: #ffffff; }
.kt-credit a:hover span { text-decoration: underline; }
.kt-credit svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Einblenden beim Scrollen */
.js [data-einblenden] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-einblenden].sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-einblenden] { opacity: 1; transform: none; transition: none; }
  .foto-bild, .herde-lauf { transform: none !important; }
}

/* Großbildschirm: Seite wird vergrößert */
@media (min-width: 2200px) { html { zoom: 1.25; } }
