/* ==========================================================
   Die Glücklichen Sieben – Stylesheet
   ========================================================== */

/* Source Sans 3, selbst gehostet (keine Verbindung zu Google) */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* Work Sans, selbst gehostet (keine Verbindung zu Google) */
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-800-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-800-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --content: 1024px;           /* Breite Content-Bereich */
  --bg-side: #d9d9d9;          /* Grau hinter dem Content (Fallback) */
  --bg-image: url("../img/hintergrund/gras-1.jpg");  /* Hintergrundbild, Auswahl siehe hintergrund.html */
  --bg-box: #ebebeb;           /* Grauer Kasten */
  --green: #5c6f26;            /* aktiver Menüpunkt */
  --green-hover: #869e3a;      /* Hover im Menü, etwas heller als der aktive Punkt */
  --font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(44px, 7.4vw, 88px);
  --fs-lead: 22px;             /* Fließtext Startseite / Kontakt */
  --fs-body: 19px;             /* Fließtext Portraits / Geschichte */
  --fs-h2: 22px;
  --fs-menu: 26px;
  --pad-text: 104px;           /* Innenabstand Textbereich links/rechts */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-side);
  color: #000;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Hintergrundbild hinter dem Content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-side) var(--bg-image) center / cover no-repeat;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.menu :focus-visible { outline-color: #fff; }
.menu:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Grundgerüst: Footer immer unten ---------- */
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.content-wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  background: #fff;
  position: relative;
}

/* ---------- Hamburger ---------- */
.burger {
  position: absolute;
  top: 34px;
  left: 40px;
  z-index: 30;
  width: 44px; height: 44px;
  margin: -10px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  color: #fff;
}
.burger span { display: block; width: 24px; height: 3px; background: currentColor; }
.burger--dark { color: #000; }
.hero .burger { filter: drop-shadow(0 0 6px rgba(0,0,0,.35)); }

/* ---------- Menü-Overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: #000; color: #fff;
  display: flex; flex-direction: column;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .menu, .menu.is-open { transition: none; } }

.menu__top { flex: 1 0 auto; position: relative; padding: 34px 40px 60px; }
.menu__close {
  width: 44px; height: 44px; margin: -10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 26px; line-height: 1;
}
.menu__list, .menu__sub { list-style: none; margin: 0; padding: 0; }
.menu__list { margin-top: 26px; padding-left: 4px; }
.menu__list > li.has-sub { margin: 16px 0; }
.menu__list > li + li:not(.has-sub) { margin-top: 16px; }
.menu__top a, .menu__toggle {
  display: inline-block;
  font-weight: 900; font-size: var(--fs-menu); line-height: 1.25;
  text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; text-align: left;
}
.menu__top a:hover, .menu__toggle:hover { color: var(--green-hover); }
.menu__top a[aria-current="page"] { color: var(--green); }
.menu__sub { padding-left: 38px; display: none; }
.menu__sub > li.is-spaced { margin-top: 10px; }
.has-sub.is-expanded .menu__sub { display: block; }

/* ---------- Hero (Start, Geschichte, Kontakt) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  background: #3a3a3a;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
/* Hero als <picture>: das Bild darin füllt den Rahmen */
picture.hero__slide { display: block; }
picture.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero--static .hero__slide { opacity: 1; }

.hero__title {
  position: absolute; left: 0; right: 0;
  padding: 0 20px;
  text-align: center;
  font-weight: 900; font-size: var(--fs-hero);
  line-height: .98; letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(0,0,0,.25);
  pointer-events: none;
  transition: opacity .8s ease;
}
/* Titel nur über dem ersten Bild */
.hero__title.is-hidden { opacity: 0; }
.hero__title--center { top: 50%; transform: translateY(-62%); }
.hero__title--bottom { bottom: 150px; }

.more {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px;
  font-weight: 900; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,.3);
}
.more svg { width: 14px; height: 30px; margin-top: 2px; }

/* Striche (Slider-Anzeige) */
.dashes {
  display: flex; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.dashes button {
  display: block; width: 44px; height: 24px; position: relative;
}
.dashes button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 5px; margin-top: -2px;
  background: #fff; transition: background .3s;
}
.dashes button[aria-current="true"]::before { background: #000; }

.hero__dashes-wrap {
  position: absolute; left: 0; right: 0; bottom: 22px;
  max-width: var(--content); margin: 0 auto;
  padding: 0 40px;
  display: flex; justify-content: flex-end;
  z-index: 5;
}
.hero--home .hero__dashes-wrap { max-width: none; }

/* ---------- Textbereich ---------- */
.text-section { padding: 70px var(--pad-text) 80px; }
.text-section h2 {
  font-weight: 900; font-size: var(--fs-h2); line-height: 1.25;
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 16px;
}
.text-section p + p { margin-top: 1.1em; }
.text-section--lead { font-size: var(--fs-lead); }
.text-section--lead p + p { margin-top: 1.3em; }
.klappentext { font-weight: 700; margin-top: 2.6em !important; }
.hinweis { font-size: .85em; }

/* ---------- Portraitseiten ---------- */
.portrait { display: flex; align-items: stretch; }
.p-col { width: 50%; display: flex; flex-direction: column; }
.p-grow { flex: 1 0 auto; }

.p-head {
  position: relative;
  flex: none;
  min-height: 420px;
  aspect-ratio: 423 / 569;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.p-name {
  font-weight: 900; font-size: clamp(30px, 4vw, 40px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .02em;
}
.p-name sup { font-size: .55em; vertical-align: top; position: relative; top: -.1em; margin-left: .04em; }
.p-date { font-weight: 500; font-size: 19px; margin-top: 6px; }
.p-head .more {
  color: #000; text-shadow: none; bottom: 22px; font-size: 15px;
}

.p-slider { position: relative; flex: none; padding-top: 134.5%; /* Fallback für ältere Browser */ aspect-ratio: 423 / 569; overflow: hidden; background: #ddd; cursor: pointer; }
@supports (aspect-ratio: 1 / 1) {
  .p-slider { padding-top: 0; }
}
/* Pfeile zum Weiterklicken (Desktop) */
.slider-nav {
  position: absolute; top: 0; bottom: 0; width: 24%; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .25s;
  text-shadow: 0 0 10px rgba(0,0,0,.5);
}
.slider-nav--prev { left: 0; }
.slider-nav--next { right: 0; }
.slider-nav svg { width: 30px; height: 30px; }
.p-slider:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.p-slider .dashes { position: absolute; left: 0; right: 0; bottom: 22px; justify-content: center; gap: 4px; z-index: 5; }
.p-slider .dashes button { width: 42px; }

/* Die beiden Einzelbilder (nicht der Slider) haben immer dieselbe Höhe,
   unabhängig vom Text daneben. Höhe = Breite / 0,726. */
.p-img { margin: 0; flex: none; overflow: hidden; }
.p-img--tall { aspect-ratio: 423 / 569; }
.p-img--wide { aspect-ratio: 423 / 300; }
.p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-box { padding: 36px 30px 40px; font-size: var(--fs-body); line-height: 1.5; background: #fff; }
.p-box--grey { background: var(--bg-box); }
.p-box h2 {
  font-weight: 900; font-size: 18px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: 14px;
}
.p-box p + p { margin-top: .9em; }
.p-book { padding-top: 30px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
}
.arrow-link svg { width: 26px; height: 12px; flex: none; }
.arrow-link:hover { color: var(--green); }

/* ---------- Unsere Geschichte ---------- */
.text-section { position: relative; }
.badge {
  position: absolute;
  top: 58px; right: var(--pad-text);
  transform: rotate(3deg);
  background: #677231; color: #fff;
  font-weight: 900; font-size: 24px; letter-spacing: .02em; text-transform: uppercase;
  padding: 8px 18px 10px;
}
.story-fond { background: var(--bg-box); padding: 54px var(--pad-text) 60px; }
.story-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  align-items: start;
}
.hang { position: relative; }
.hang > .hang__arrow {
  position: absolute; left: -38px; top: .34em;
  width: 26px; height: 12px;
}
.story-item + .story-item { margin-top: 44px; }
.story-item h3 {
  font-weight: 900; font-size: 19px; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 16px;
}
.story-item h3 a { text-decoration: none; }
.story-item h3 a:hover { color: var(--green); }
.story-item p { font-size: var(--fs-body); line-height: 1.45; }
.fas-thumb { display: block; border: 1px solid #000; background: #fff; }
.fas-thumb img { width: 100%; height: auto; }

/* ---------- Kontakt ---------- */
.contact { font-size: var(--fs-lead); line-height: 1.4; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--green); }
.contact .hang { margin-top: 16px; display: inline-block; }
.contact .hang > .hang__arrow { top: .42em; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: 130px; }
.legal h1 {
  font-weight: 900; font-size: 40px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 30px;
}

/* ---------- Nach oben ---------- */
.to-top-wrap { display: flex; justify-content: center; padding: 10px 0 34px; background: #fff; }
.p-book .to-top-wrap { padding: 26px 0 6px; }
.to-top {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
  font-weight: 900; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 8px 14px;
}
.to-top svg { width: 14px; height: 30px; }
.to-top:hover { color: var(--green); }

/* schwebender Button, erscheint beim Scrollen (vor allem fürs Smartphone) */
.to-top-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top-float svg { width: 13px; height: 26px; }
.to-top-float.is-visible { opacity: 1; visibility: visible; }
body.menu-open .to-top-float { opacity: 0; visibility: hidden; }

/* ---------- Datenschutz / Impressum ---------- */
.legal-text { font-size: 17px; line-height: 1.5; }
.legal-text h2 {
  font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: .03em;
  margin: 34px 0 8px;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p + p { margin-top: 1em; }
.legal-text a { word-break: break-word; }
.ds-quelle { margin-top: 28px; font-size: 15px; }

.impressum { font-size: var(--fs-body); line-height: 1.5; }
.impressum h1 { font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px; }
.impressum h2 {
  font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: .03em;
  margin: 34px 0 6px;
}
.impressum .mail { margin-top: 18px; }
.impressum .hang > .hang__arrow { top: .3em; }
.impressum a { text-decoration: none; }
.impressum a:hover { color: var(--green); }
.impressum .copy { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; background: #000; color: #fff; }
.footer-inner {
  max-width: var(--content); margin: 0 auto;
  padding: 28px 40px 22px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
}
.footer-title { font-weight: 900; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 8px 0 0; padding: 0; font-weight: 500; font-size: 12.5px; line-height: 1.45; }
.footer-links a { text-decoration: none; }
.footer-links a::before { content: "›"; margin-right: 6px; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-weight: 500; font-size: 12.5px; margin-top: 30px; }
.footer-logo { width: 150px; flex: none; }
.footer-logo img { width: 100%; height: auto; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  :root { --pad-text: 48px; --fs-lead: 20px; --fs-body: 18px; }
  .story-grid { grid-template-columns: 1fr 220px; gap: 30px; }
}

@media (max-width: 760px) {
  :root { --pad-text: 24px; --fs-lead: 18px; --fs-body: 17px; --fs-menu: 24px; }
  .burger { left: 26px; top: 28px; }
  .menu__top { padding: 28px 26px 50px; }
  .text-section { padding-top: 50px; padding-bottom: 60px; }
  .hero__title--bottom { bottom: 110px; }
  /* Startseite: Schriftzug am Handy höher, damit die Kühe frei bleiben */
  .hero--home .hero__title--center { top: 32%; transform: translateY(-50%); }

  /* Headline-Bilder am Handy: eigener Rahmen im Verhältnis 423:569 wie im
     Layout, dazu die von Yvonne zugeschnittenen Smartphone-Bilder. */
  .hero { height: auto; aspect-ratio: 423 / 569; min-height: 0; }
  picture.hero__slide img { object-position: 50% 50% !important; }

  /* Hero: Striche mittig und oberhalb vom Mehr-Button */
  .hero__dashes-wrap { justify-content: center; bottom: 84px; padding: 0 16px; }
  .hero__dashes-wrap .dashes { gap: 8px; }
  .hero__dashes-wrap .dashes button { width: 38px; }

  /* Portrait einspaltig: Kopf, Slider, Text, Bild, Kasten, Bild, Buch */
  .portrait { flex-direction: column; }
  .p-col { display: contents; }
  .p-head { order: 1; aspect-ratio: auto; min-height: 260px; padding: 90px 24px 110px; }
  .p-slider { order: 2; aspect-ratio: 4 / 5; }
  .p-text { order: 3; }
  .p-img--tall { order: 4; }
  .p-box--grey { order: 5; }
  .p-img--wide { order: 6; }
  .p-book { order: 7; }
  .p-box { padding: 30px 24px 34px; }

  /* Störer am Handy ebenfalls oben rechts */
  .badge { top: 46px; right: var(--pad-text); font-size: 16px; padding: 6px 12px 7px; }
  .has-badge h2 { padding-right: 130px; }
  .story-fond { padding: 40px var(--pad-text) 46px; }
  .story-grid { grid-template-columns: 1fr; }
  .fas-thumb { max-width: 280px; }
  .hang > .hang__arrow { position: static; display: inline-block; margin-right: 8px; vertical-align: middle; }

  .legal { padding-top: 100px; }
  .legal h1 { font-size: 32px; }

  .footer-inner { padding: 24px 24px 20px; }
  .footer-logo { width: 110px; }
}
