/* =========================================================
   Jürgen Brüna — juergen.bruena.de
   Farben und Schriften nach Markenhandbuch (LIESMICH.txt)
   ========================================================= */

:root {
  --olive:      #76835C;
  --olive-dark: #5C6849;
  --lehm:       #BE7C56;
  --sonne:      #E0B47C;
  --tinte:      #2B2420;
  --papier:     #F8F3EA;
  --papier-2:   #F2EADD;
  --grau:       #A0917F;
  --linie:      rgba(43, 36, 32, .14);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  /* Eine Schrift für alles: EB Garamond. --sans bleibt als Name erhalten. */
  --sans:  var(--serif);
  --karte: #FDFAF4;
  --text-weich: #4A4038;

  --max:   1160px;
  --schmal: 760px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--olive-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .005em;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.3rem; }

p, li { overflow-wrap: break-word; text-wrap: pretty; }
strong, b { font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow,
p.eyebrow {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lehm);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.3rem; line-height: 1.5; color: var(--text-weich); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap--schmal { width: min(100% - 2.5rem, var(--schmal)); margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--papier2 { background: var(--papier-2); }
.section--olive { background: var(--olive); color: var(--papier); }
.section--olive h2, .section--olive h3 { color: var(--papier); }
.section--olive a { color: var(--sonne); }
.section--tinte { background: var(--tinte); color: var(--papier-2); }
.section--tinte h2, .section--tinte h3 { color: var(--papier); }

hr.regel {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 3rem 0;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 93%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.kopf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .7rem 0;
}

.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.marke:hover { text-decoration: none; }
.marke svg { width: 42px; height: auto; flex: none; }
.marke__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--tinte);
  letter-spacing: .035em;
}
.marke__claim {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--lehm);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font-size: 1.08rem;
  color: var(--tinte);
  letter-spacing: .02em;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { text-decoration: none; border-bottom-color: var(--lehm); }
.nav a[aria-current="page"] { border-bottom-color: var(--olive); color: var(--olive-dark); }

.nav-schalter {
  display: none;
  background: none;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinte);
  cursor: pointer;
}

@media (max-width: 1060px) {
  .nav-schalter { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav.ist-offen { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
  .nav .knopf { margin-top: .9rem; text-align: center; }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--papier);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.knopf:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--papier); text-decoration: none; }

.knopf--linie { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf--linie:hover { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }

.knopf--hell { background: var(--papier); color: var(--tinte); border-color: var(--papier); }
.knopf--hell:hover { background: var(--sonne); border-color: var(--sonne); color: var(--tinte); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Kopfbild ---------- */

.buehne { position: relative; background: var(--tinte); }
.buehne__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}
.buehne__inner {
  position: relative;
  padding: clamp(5rem, 14vw, 10rem) 0 clamp(4rem, 10vw, 7rem);
  color: var(--papier);
  max-width: 42rem;
}
.buehne h1 { color: var(--papier); text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.buehne .eyebrow { color: var(--sonne); }
.buehne p { color: rgba(248, 243, 234, .92); font-size: 1.28rem; line-height: 1.5; }
.buehne p.eyebrow { font-size: .84rem; line-height: 1.4; }

.buehne--klein .buehne__inner { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.buehne--klein h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }

/* ---------- Raster und Karten ---------- */

.raster { display: grid; gap: 1.6rem; }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.section--papier2 .karte { background: var(--karte); }
.karte:has(.karte__link):hover { box-shadow: 0 10px 30px rgba(43, 36, 32, .08); transform: translateY(-2px); }
.karte p.karte__nr {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lehm);
  margin-bottom: .8rem;
}
.karte h3 { margin-bottom: .6rem; }
.karte p { font-size: 1.08rem; line-height: 1.55; color: var(--text-weich); }
.karte p.eyebrow { font-size: .84rem; color: var(--lehm); }
.karte p.karte__fuss { margin-top: auto; padding-top: 1.2rem; }
.karte__link {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive-dark);
}

.karte--bild { padding: 0; overflow: hidden; }
.karte--bild img { width: 100%; height: 210px; object-fit: cover; }
.karte--bild .karte__text { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- Zweispalter ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.duo__bild img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.duo--umgekehrt .duo__bild { order: 2; }
@media (max-width: 720px) { .duo--umgekehrt .duo__bild { order: 0; } }

/* ---------- Zitat ---------- */

.zitat {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  text-align: center;
  max-width: 34ch;
  margin-inline: auto;
}
.zitat--links { text-align: left; margin-inline: 0; }

/* ---------- Kennzahlen ---------- */

.zahlen { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; }
.zahl__wert { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--olive); }
.section--olive .zahl__wert, .section--tinte .zahl__wert { color: var(--sonne); }
.zahl__text { font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); margin-top: .5rem; }

/* ---------- Liste mit Haken ---------- */

.liste { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.liste li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.liste li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lehm);
}

/* ---------- Preistafel ---------- */

.preis {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  align-items: baseline;
  border-top: 1px solid var(--linie);
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  font-size: 1rem;
}
.preis p.preis__wert { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; color: var(--olive-dark); }
.preis p.preis__hinweis { color: var(--text-weich); font-size: .98rem; }

/* ---------- Aufklapper (FAQ) ---------- */

.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--lehm);
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: 1rem; }
.faq details > *:last-child { padding-bottom: .6rem; }

/* ---------- Bilderreihe ---------- */

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.galerie img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Formular ---------- */

.formular { display: grid; gap: 1.1rem; }
.formular__reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.1rem; }
.feld { display: flex; flex-direction: column; gap: .4rem; }
.feld label { font-size: .86rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-weich); }
.feld input, .feld select, .feld textarea {
  font-family: var(--sans);
  font-size: 1.08rem;
  color: var(--tinte);
  background: #FFFDF9;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  width: 100%;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--olive);
}
.formular__hinweis, p.formular__hinweis { font-size: .98rem; color: var(--text-weich); }

/* ---------- Kontaktzeile ---------- */

.kontaktzeile { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-size: 1.05rem; }
.kontaktzeile a { color: inherit; border-bottom: 1px solid var(--lehm); }
.kontaktzeile a:hover { text-decoration: none; border-bottom-width: 2px; }

/* ---------- Partnerlogos ---------- */

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 2rem; align-items: center; }
.logos img { height: 74px; width: auto; margin-inline: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* ---------- Stimmen ---------- */

.stimme { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.8rem; }
.stimme blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.stimme cite { font-style: normal; font-size: .95rem; letter-spacing: .08em; color: var(--grau); }
.stimme cite strong { display: block; color: var(--tinte); font-weight: 600; letter-spacing: 0; font-size: .98rem; }

/* ---------- Rechtstexte ---------- */

.rechtstext h2 { margin-top: 2.6rem; font-size: 1.7rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .35rem; }

/* ---------- Fußzeile ---------- */

.fuss { background: var(--tinte); color: rgba(248, 243, 234, .82); padding: 4.5rem 0 2rem; font-size: 1.05rem; }
.fuss h3 { color: var(--sonne); font-size: .84rem; font-family: var(--sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.fuss a { color: rgba(248, 243, 234, .8); }
.fuss a:hover { color: var(--sonne); text-decoration: none; }
.fuss__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 2.5rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .5rem; }
.fuss__marke svg { width: 64px; height: auto; margin-bottom: 1rem; }
.fuss__unten {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 243, 234, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  justify-content: space-between;
  font-size: .95rem;
  color: rgba(248, 243, 234, .6);
}

/* ---------- Kleinkram ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.zentriert { text-align: center; }
.zentriert .knopf-reihe { justify-content: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
