/* Traber Landwirtschaft. Gestaltung nach DESIGN.md (Skizze C nach der Wix-Seite, 05.11.2026). */

@font-face {
  font-family: "Jost";
  src: url("/schriften/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/schriften/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --gruen: #1e3a0e;
  --gruen-hover: #2d5016;
  --schwarz: #1a1a1a;
  --text-hell: #333;
  --grau: #5a5a5a;
  --flaeche: #f1f2ef;
  --linie: #dcdcdc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--schwarz);
  background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gruen); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.sprung:focus { top: 12px; }

/* Kopf: Logo links, Menü rechts, als letzter Punkt die Handynummer */
.kopf {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px 56px; background: #fff;
}
.kopf .logo { flex: none; display: block; }
.kopf .logo img { height: 58px; width: auto; }
.kopf nav ul { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.kopf nav a { text-decoration: none; white-space: nowrap; padding: 6px 0; }
.kopf nav a:hover { color: var(--gruen); }
.kopf nav a[aria-current="page"] { color: var(--gruen); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.kopf nav .tel a { color: var(--gruen); font-weight: 500; }
.kopf nav .nur-handy { display: none; }
.menue { display: none; }

/* Titelbild */
.titel { position: relative; height: min(78vh, 760px); min-height: 480px; overflow: hidden; color: #fff; background: #2b2b25; }
.titel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.titel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,0) 55%);
}
.titel .text { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2; text-align: center; padding: 0 24px; }
.titel h1 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.4vw, 62px);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.05;
}
.titel p { font-weight: 300; font-size: 19px; margin-top: 10px; letter-spacing: .01em; }
.titel.unterseite { height: min(54vh, 500px); min-height: 380px; }
.titel.unterseite h1 { font-size: clamp(36px, 3.8vw, 54px); }

/* Knöpfe: Ecken 4 px, voll in Grün oder leer mit grünem Rand */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 30px; border-radius: 4px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; background: var(--gruen); color: #fff; border: 1.5px solid var(--gruen); cursor: pointer;
}
.knopf:hover { background: var(--gruen-hover); border-color: var(--gruen-hover); }
.knopf.leer { background: transparent; color: var(--gruen); }
.knopf.leer:hover { background: var(--flaeche); }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Einstieg unter dem Titelbild */
.einstieg { text-align: center; padding: 64px 24px 24px; max-width: 780px; margin: 0 auto; }
.einstieg p { font-size: 19px; font-weight: 300; color: var(--text-hell); }
.einstieg p + p { margin-top: 12px; }
.einstieg .knoepfe { margin-top: 28px; }

/* Abschnittsüberschriften */
h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.2; text-align: center; }

/* Tätigkeitsgebiete */
.gebiete { padding: 72px 0 0; }
.gebiete h2 { margin-bottom: 44px; padding: 0 20px; }
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kachel { text-decoration: none; display: flex; flex-direction: column; }
.kachel img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .2s; }
.kachel:hover img { opacity: .9; }
.kachel span { display: block; flex: 1; text-align: center; font-weight: 300; font-size: 19px; padding: 30px 20px 40px; }
.kachel:nth-child(odd) span { background: var(--flaeche); }
.kachel span small { display: block; font-size: 15px; color: var(--grau); margin-top: 6px; }

/* Aktuelles vom Hof, gleiche Kachelsprache */
.aktuelles { padding: 80px 0 0; }
.aktuelles h2 { margin-bottom: 14px; padding: 0 20px; }
.aktuelles .vorspann { text-align: center; color: var(--text-hell); font-weight: 300; font-size: 18px; margin: 0 auto 40px; max-width: 34em; padding: 0 20px; }
.beitraege { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.beitraege > li { display: flex; }
.beitrag { flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.beitrag img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .2s; }
a.beitrag:hover img { opacity: .9; }
.beitrag-text { flex: 1; display: block; padding: 22px 26px 34px; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--text-hell); }
.beitraege > :nth-child(even) .beitrag-text { background: var(--flaeche); }
.beitrag time, .beitrag-datum { display: block; font-family: var(--sans); font-weight: 400; font-size: 13.5px; letter-spacing: .04em; color: var(--grau); margin-bottom: 8px; }
.beitraege.kurz .auszug { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.aktuelles .mehr { text-align: center; padding: 40px 20px 0; }

.beitraege.voll { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.beitraege.voll .beitrag-text { padding: 26px 30px 40px; }
.beitraege.voll .beitrag-text p + p { margin-top: 12px; }
.beitraege.voll > :nth-child(even) .beitrag-text { background: none; }
.beitraege.voll > :nth-child(6n+2) .beitrag-text,
.beitraege.voll > :nth-child(6n+4) .beitrag-text,
.beitraege.voll > :nth-child(6n+6) .beitrag-text { background: var(--flaeche); }
.beitrag:target .beitrag-text { box-shadow: inset 0 3px 0 var(--gruen); }

/* Text neben Bild */
.bloecke { padding-top: 72px; }
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.block .text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 72px 64px; }
.block .text h2 { font-size: clamp(32px, 3vw, 44px); margin-bottom: 20px; max-width: 13em; }
.block .text p { max-width: 30em; color: var(--text-hell); font-weight: 300; font-size: 18px; }
.block .text p + p { margin-top: 12px; }
.block .text .knopf { margin-top: 28px; }
.block .bild { width: 100%; min-width: 0; aspect-ratio: 6 / 5; overflow: hidden; }
.block img { width: 100%; height: 100%; object-fit: cover; }
.block.links .bild { order: -1; }

/* Kontaktblock am Ende jeder Seite */
.kontakt { text-align: center; padding: 88px 24px 72px; }
.kontakt h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 44px); color: var(--gruen); }
.kontakt p { font-weight: 300; font-size: 18px; margin: 12px 0 28px; }
.kontakt .knopf { padding: 14px 36px; font-size: 17px; }

/* Kontaktseite */
.wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: 56px auto 0; border-top: 1px solid var(--linie); }
.wege > div { padding: 30px 24px; text-align: center; }
.wege > div + div { border-left: 1px solid var(--linie); }
.wege h2 { font-size: 22px; margin-bottom: 8px; }
.wege p { font-weight: 300; color: var(--text-hell); }
.wege a { color: var(--gruen); }
.formular { max-width: 680px; margin: 0 auto; padding: 72px 24px 88px; }
.formular h2 { margin-bottom: 12px; }
.formular > p { text-align: center; font-weight: 300; font-size: 18px; color: var(--text-hell); margin-bottom: 32px; }
.feld { margin-bottom: 20px; }
.feld label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 17px; color: var(--schwarz);
  padding: 12px 14px; border: 1px solid #9a9a9a; border-radius: 4px; background: #fff;
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen); }
.formular .hinweis { font-size: 14.5px; color: var(--grau); margin: 4px 0 24px; text-align: left; }
.formular .hinweis a { color: var(--gruen); }
.versteckt { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rechtstexte und einfache Seiten */
.schlicht { max-width: 780px; margin: 0 auto; padding: 56px 24px 88px; }
.schlicht h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); color: var(--gruen); line-height: 1.1; margin-bottom: 28px; }
.schlicht h2 { text-align: left; font-size: 24px; font-weight: 400; margin: 36px 0 10px; }
.schlicht h3 { font-size: 18px; font-weight: 500; margin: 22px 0 6px; }
.schlicht p, .schlicht li { font-weight: 300; color: var(--text-hell); }
.schlicht p + p { margin-top: 10px; }
.schlicht ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.schlicht a { color: var(--gruen); }
.schlicht a.knopf { color: #fff; }
.schlicht a.knopf.leer { color: var(--gruen); }
.ganz { white-space: nowrap; }
.fehlt { background: #fff3c4; color: #5a4300; padding: 0 4px; font-weight: 500; }

/* Fuß */
.fuss { text-align: center; padding: 40px 24px 48px; border-top: 1px solid var(--linie); font-weight: 300; font-size: 15px; line-height: 1.9; }
.fuss strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 8px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--gruen); text-decoration: underline; }
.fuss .klein { margin-top: 14px; color: var(--grau); font-size: 14px; }
.fuss .klein a { display: inline-block; padding: 6px 8px; }

/* Band „Gestaltet und gebaut von Traber Digital“, Aufbau wie bei website-pascha, auf Marcos Wunsch größer
   als dort, weil es zugleich Werbeschild ist (05.11.2026). Das TD-Zeichen behält seine eigenen Farben. */
.macher { margin: 36px -24px -48px; border-top: 1px solid var(--linie); }
.macher__inner { display: flex; align-items: center; justify-content: center; gap: 34px; max-width: 1200px; margin: 0 auto; padding: 44px 20px 46px; text-align: left; }
.macher__zeichen { display: block; flex: none; }
.macher__zeichen svg { display: block; width: 116px; height: 76px; }
.macher__text { border-left: 1px solid var(--linie); padding-left: 34px; font-size: 17px; line-height: 1.6; color: var(--grau); }
.macher__text p { margin: 0; }
.macher__text p:first-child a { display: block; margin-top: 6px; }
.macher__text img { display: block; width: auto; height: 22px; }
.macher__links { display: flex; flex-wrap: wrap; align-items: center; margin: 12px 0 0; font-size: 15px; }
.macher__links li { display: flex; align-items: center; }
.macher__links li + li::before { content: "·"; margin: 0 12px; }
.fuss .macher__links a { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; color: var(--grau); }
.fuss .macher__links a:hover { color: var(--gruen); text-underline-offset: 4px; }
.macher__links svg { width: 17px; height: 17px; flex: none; }
.macher__name { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin-top: 4px !important; }
.fuss .macher__name a { color: var(--schwarz); text-decoration: none; }
.fuss .macher__name a:hover { color: var(--gruen); }
.macher__unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1180px) {
  .kopf { padding: 12px 20px; }
  .kopf .logo img { height: 44px; }
  .kopf nav { display: none; }
  .menue { display: flex; gap: 8px; }
  .menue a {
    display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 4px;
    border: 1.5px solid var(--gruen); color: var(--gruen); font-weight: 500; font-size: 15px; text-decoration: none;
  }
  .menue a.voll { background: var(--gruen); color: #fff; }
  .menue-offen .kopf nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
    padding: 6px 20px 18px;
  }
  .menue-offen .kopf nav ul { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .menue-offen .kopf nav li + li { border-top: 1px solid var(--flaeche); }
  .menue-offen .kopf nav a { display: block; padding: 12px 0; }
  .menue-offen .kopf nav .nur-handy { display: block; }
}

@media (max-width: 1100px) {
  .beitraege.voll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beitraege.voll > * .beitrag-text { background: none !important; }
  .beitraege.voll > :nth-child(4n+2) .beitrag-text, .beitraege.voll > :nth-child(4n+3) .beitrag-text { background: var(--flaeche) !important; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .titel, .titel.unterseite { height: auto; min-height: 0; color: var(--gruen); background: none; }
  .titel img { position: relative; height: auto; aspect-ratio: 3 / 2; object-position: 50% 50% !important; }
  .titel::after { display: none; }
  .titel .text { position: relative; bottom: auto; padding: 30px 20px 0; }
  .titel h1, .titel.unterseite h1 { font-size: 31px; letter-spacing: .03em; }
  .titel p { font-size: 17px; color: var(--text-hell); }
  .einstieg { padding: 16px 20px 8px; }
  .einstieg p { font-size: 17.5px; }
  .einstieg .knopf { flex: 1 1 100%; }
  .gebiete { padding-top: 56px; }
  .gebiete h2 { margin-bottom: 28px; }
  .kacheln, .beitraege { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel span { font-size: 17px; padding: 18px 10px 24px; }
  .kachel span small { font-size: 14px; }
  .kachel:nth-child(odd) span { background: none; }
  .kachel:nth-child(4n+1) span, .kachel:nth-child(4n) span { background: var(--flaeche); }
  .aktuelles { padding-top: 56px; }
  .aktuelles .vorspann { font-size: 17px; margin-bottom: 28px; }
  .beitraege > * .beitrag-text { background: none; }
  .beitraege > :nth-child(4n+1) .beitrag-text, .beitraege > :nth-child(4n) .beitrag-text { background: var(--flaeche); }
  .beitrag-text { padding: 16px 14px 24px; font-size: 15px; }
  .bloecke { padding-top: 48px; }
  .block { grid-template-columns: minmax(0, 1fr); }
  .block .bild { order: -1; aspect-ratio: 4 / 3; }
  .block .text { padding: 44px 20px 52px; }
  .block .text p { font-size: 17px; }
  .kontakt { padding: 56px 20px; }
  .kontakt .knopf { flex: 1 1 100%; }
  .wege { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .wege > div + div { border-left: 0; border-top: 1px solid var(--linie); }
  .formular { padding: 56px 20px 64px; }
  .schlicht { padding: 40px 20px 64px; }
}

@media (max-width: 900px) {
  .macher__inner { flex-direction: column; gap: 18px; padding: 36px 20px 40px; }
  .macher__zeichen svg { width: 96px; height: 63px; }
  .macher__text { border-left: 0; padding-left: 0; text-align: center; font-size: 16px; }
  .macher__text img { height: 19px; margin: 0 auto; }
  .macher__links { justify-content: center; }
  .macher__foto { border-top: 1px solid var(--linie); padding-top: 22px; margin-top: 8px; width: 100%; max-width: 320px; }
}

@media (max-width: 639px) {
  .beitraege.voll { grid-template-columns: minmax(0, 1fr); }
  .beitraege.voll > * .beitrag-text { background: none !important; }
  .beitraege.voll > :nth-child(even) .beitrag-text { background: var(--flaeche) !important; }
  .beitraege.voll .beitrag-text { padding: 22px 20px 34px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
