/* Dr. Hafner Interim Management, gemeinsames Stylesheet (warme Variante: Beige, Braun, Ocker)
   Farben, Schriften und Abstände sind oben als Variablen definiert und lassen sich zentral ändern.
   Es werden keine externen Schriften oder Dienste geladen. */

@font-face { font-family: "Inter"; src: url(fonts/inter-400.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-600.woff) format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-700.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sand: #f1e8da;
  --papier: #fbf7f0;
  --kaffee: #2e2019;
  --ocker: #8a5a1c;
  --leinen: #e8d9bf;
  --honig: #e2a53b;
  --umber: #6f4325;
  --linie: #d6c6aa;
  --text: #33261d;
  --text-leise: #6b5a4b;

  --head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ocker); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--honig); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 1.1rem + 3.8vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.45rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 40rem; }

.wrap {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--honig);
  color: var(--kaffee);
  font-family: var(--head);
  font-weight: 700;
}
.skip:focus { left: 0; }

/* Kopfbereich und Navigation */

.kopf { background: var(--sand); border-top: 6px solid var(--honig); }

.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.marke {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--kaffee);
  text-decoration: none;
}
.marke small {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-leise);
}

.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.hauptnav a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--kaffee);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.hauptnav a:hover { border-bottom-color: var(--linie); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--ocker); }

.nav-knopf {
  display: none;
  font: inherit;
  font-family: var(--head);
  font-weight: 700;
  padding: 0.5rem 1rem;
  color: var(--kaffee);
  background: transparent;
  border: 2px solid var(--kaffee);
  cursor: pointer;
}

@media (max-width: 52rem) {
  .js .nav-knopf { display: inline-block; }
  .js .hauptnav { display: none; width: 100%; }
  .js .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; gap: 0; }
  .hauptnav a { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
  .hauptnav a[aria-current="page"] { border-bottom: 3px solid var(--ocker); }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--kaffee);
  background: var(--honig);
  border: 2px solid var(--honig);
  text-decoration: none;
}
.btn:hover { background: var(--papier); border-color: var(--papier); }

.btn-leise {
  color: var(--papier);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-leise:hover { color: var(--kaffee); }

.btn-dunkel {
  color: var(--papier);
  background: var(--kaffee);
  border-color: var(--kaffee);
}
.btn-dunkel:hover { color: var(--kaffee); background: transparent; border-color: var(--kaffee); }

.aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 2rem 0 0; }

/* Dunkle Flächen: Hero, Seitenkopf, Bänder, Fuss */

.on-dark { color: var(--papier); }
.on-dark a:not(.btn) { color: var(--papier); }
.on-dark .lead { color: rgba(255, 255, 255, 0.9); }

.hero {
  background-color: var(--kaffee);
  background-size: cover;
  background-position: center;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-text h1 { margin-bottom: 0.5em; }

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 36rem;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { max-width: 15rem; }
}

/* Eckmarkierung wie bei Bodenmarkierungen an Stellplätzen */

.marker { position: relative; margin: 0; padding: 0.9rem; }
.marker::before, .marker::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border: 0 solid var(--honig);
}
.marker::before { top: 0; left: 0; border-width: 6px 0 0 6px; }
.marker::after { bottom: 0; right: 0; border-width: 0 6px 6px 0; }
.marker img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; }

.facts {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.5rem 1.4rem 0;
}
.facts li + li { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.facts strong {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1;
  color: var(--honig);
}
.facts span { font-size: 1rem; color: rgba(255, 255, 255, 0.88); }

@media (max-width: 40rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: 1rem 0; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
}

.seitenkopf {
  background-color: var(--kaffee);
  background-image: url(images/header.svg);
  background-size: cover;
  background-position: right center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.seitenkopf h1 { margin-bottom: 0.35em; }
.seitenkopf .lead { margin-bottom: 0; }

/* Bänder */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-hell { background: var(--sand); }
.band-weiss { background: var(--papier); }
.band-dunkel { background: var(--kaffee); }
.band-akzent { background: var(--umber); }
.band h2 { max-width: 40rem; }

/* Listen und Raster */

.zeilen { list-style: none; margin: 2rem 0 0; padding: 0; }
.zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--linie);
}
.zeile:last-child { border-bottom: 1px solid var(--linie); }
.zeile h3 { margin: 0; }
.zeile p { margin: 0; }
.on-dark .zeile { border-color: rgba(255, 255, 255, 0.25); }

@media (max-width: 44rem) {
  .zeile { grid-template-columns: minmax(0, 1fr); }
}

.paare {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
}
.paare li { padding: 1.25rem 0; border-top: 1px solid var(--linie); }
.paare h3 { margin: 0 0 0.25em; }
.paare p { margin: 0; }

.ergebnis {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.ergebnis:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.ergebnis-zahl {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1;
  color: var(--honig);
}
.ergebnis p { margin: 0; }
.ergebnis-liste { list-style: none; margin: 2rem 0 0; padding: 0; }

@media (max-width: 40rem) {
  .ergebnis { grid-template-columns: minmax(0, 1fr); }
}

.drei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}
.drei > div { border-top: 6px solid var(--kaffee); padding-top: 1rem; }
.drei h3 { margin-bottom: 0.3em; }
.drei p { margin: 0; }

.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.zweispaltig-portrait { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }

@media (max-width: 52rem) {
  .zweispaltig, .zweispaltig-portrait { grid-template-columns: minmax(0, 1fr); }
  .zweispaltig-portrait .marker { max-width: 15rem; }
}

.bild { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--leinen); }
.bild img { width: 100%; height: 100%; object-fit: cover; }

/* Referenzen */

.referenz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.75rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--linie);
}
.referenz:last-child { border-bottom: 1px solid var(--linie); }
.referenz h2 { font-size: 1.45rem; margin: 0 0 0.4em; max-width: none; }
.referenz-meta { margin: 0; font-size: 0.98rem; color: var(--text-leise); }
.referenz ul { margin: 0; padding-left: 1.2rem; }
.referenz li { margin-bottom: 0.45em; max-width: 40rem; }
.referenz li::marker { color: var(--ocker); }

@media (max-width: 52rem) {
  .referenz { grid-template-columns: minmax(0, 1fr); }
}

/* Werdegang */

.werdegang { margin: 1.5rem 0 0; padding: 0; }
.werdegang div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--linie);
}
.werdegang div:last-child { border-bottom: 1px solid var(--linie); }
.werdegang dt { font-family: var(--head); font-weight: 700; color: var(--ocker); }
.werdegang dd { margin: 0; }

@media (max-width: 40rem) {
  .werdegang div { grid-template-columns: minmax(0, 1fr); }
}

/* Ablauf: hier ist die Nummerierung berechtigt, weil es eine Reihenfolge ist */

.ablauf {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem;
  counter-reset: schritt;
}
.ablauf li { counter-increment: schritt; border-top: 6px solid var(--kaffee); padding-top: 0.9rem; }
.ablauf li::before {
  content: counter(schritt);
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ocker);
}
.ablauf h3 { margin: 0.2em 0 0.3em; }
.ablauf p { margin: 0; font-size: 1rem; }

/* Kontakt und Textseiten */

.kontaktdaten { font-style: normal; font-size: 1.25rem; line-height: 1.8; margin: 0 0 1rem; }
.textseite h2 { font-size: 1.5rem; margin-top: 2rem; }
.textseite p, .textseite address { max-width: 40rem; }
.textseite address { font-style: normal; margin-bottom: 1.1em; }

/* Fuss */

.fuss {
  background: var(--kaffee);
  border-top: 6px solid var(--honig);
  padding-block: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}
.fuss-innen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
}
.fuss p { margin: 0 0 0.75em; }
.fuss-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

/* Hero-Porträt etwas flacher, damit Kennzahlen auf kleineren Bildschirmen sichtbar bleiben */
.hero-portrait img { aspect-ratio: 4 / 5; object-position: 50% 10%; }

/* Werkzeugkasten: Begriffe als Liste und gruppierte Aufzählungen */
.tags { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  padding: 0.45rem 0.95rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--kaffee);
  background: var(--sand);
  border: 1.5px solid var(--linie);
}
.drei ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.drei li { margin-bottom: 0.4em; }
.drei li::marker { color: var(--ocker); }

/* Illustrationen */
.bild { position: relative; }
.bild::before, .bild::after { content: ""; position: absolute; width: 2.2rem; height: 2.2rem; border: 0 solid var(--honig); z-index: 1; }
.bild::before { top: 0.9rem; left: 0.9rem; border-width: 5px 0 0 5px; }
.bild::after { bottom: 0.9rem; right: 0.9rem; border-width: 0 5px 5px 0; }
.bild-breit { aspect-ratio: 12 / 5; margin-bottom: 2.5rem; }
.bild-breit img { object-position: 50% 42%; }
.bild-abstand { margin-top: 2rem; }
.bild-oben { margin-top: 2rem; margin-bottom: 0.5rem; }
.bildhinweis { margin: 0 0 0.5rem; max-width: none; text-align: right; font-size: 0.85rem; color: var(--text-leise); }

/* Heller Seitenkopf mit Bild */
.seitenkopf { background: var(--sand); background-image: none; color: var(--text); border-bottom: 1px solid var(--linie); padding-block: clamp(2rem, 5vw, 3.5rem); }
.seitenkopf h1 { color: var(--kaffee); }
.seitenkopf .lead { color: var(--text-leise); }
.seitenkopf-grid { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.seitenkopf.mit-bild .seitenkopf-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.seitenkopf-bild { aspect-ratio: 16 / 9; margin: 0; }
@media (max-width: 800px) { .seitenkopf.mit-bild .seitenkopf-grid { grid-template-columns: minmax(0, 1fr); } }
.streifen { line-height: 0; background: var(--kaffee); }
.streifen img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; }

/* Startseite: Hallenfoto als Hintergrund */
.hero {
  background-color: var(--kaffee);
  background-image: linear-gradient(90deg, rgba(46, 32, 25, 0.95) 0%, rgba(46, 32, 25, 0.86) 45%, rgba(46, 32, 25, 0.55) 100%), url(images/hero-startseite.jpg);
  background-size: cover;
  background-position: center;
}
@media (max-width: 800px) {
  .hero { background-image: linear-gradient(180deg, rgba(46, 32, 25, 0.92) 0%, rgba(46, 32, 25, 0.82) 100%), url(images/hero-startseite.jpg); }
}

/* Telefon und E-Mail linksbündig untereinander */
.kd { display: inline-grid; grid-template-columns: max-content auto; column-gap: 1rem; justify-items: start; }
