/* ==========================================================
   Mispelkamp Bedachungen · Stylesheet
   ========================================================== */

/* ---------- Schriften (liegen auf dem eigenen Server) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.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-400.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-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-System ---------- */
:root {
  /* Farben: Rot aus dem Logo, Anthrazit, warmes Weiß, helles Grau */
  --rot: #E8350F;
  --rot-dunkel: #C42A0A;
  --anthrazit: #1C1C1C;
  --weiss: #FAF7F2;
  --grau: #E6E3DE;

  --text: var(--anthrazit);
  --text-leise: #56524C;
  --linie: rgba(28, 28, 28, .14);

  --titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fliess: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --breite: 1200px;
  --rand: clamp(16px, 4vw, 40px);
  --abstand: clamp(72px, 10vw, 140px);
  --kopf-hoehe: 84px;
  --kurve: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 859px) {
  :root { --kopf-hoehe: 68px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf-hoehe);
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--fliess);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .005em;
}

h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: .95;
  text-transform: uppercase;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 3px;
}

::selection { background: var(--rot); color: #fff; }

.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;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--anthrazit);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.sprung:focus { top: 12px; }

.behaelter {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.abschnitt { padding-block: var(--abstand); }

.abschnitt__kopf {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 76px);
}

/* Kleine Zeile über Überschriften, mit roter Linie */
.dachzeile {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rot-dunkel);
}
.dachzeile::before {
  content: "";
  flex: none;
  width: 36px;
  height: 2px;
  background: var(--rot);
  transform-origin: left center;
}

/* ---------- Knopf (die eine Handlungsaufforderung) ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 2px;
  background: var(--rot);
  color: #fff;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--kurve), transform .35s var(--kurve);
}
.knopf svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .4s var(--kurve);
}
.knopf:hover { background: var(--rot-dunkel); }
.knopf:hover svg { transform: translateX(4px); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .6; cursor: progress; }

.knopf--klein {
  min-height: 46px;
  padding: 0 22px;
}
.kopf__cta { gap: 0; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, box-shadow .4s ease;
  animation: kopf-rein .9s var(--kurve) both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .kopf {
    background: rgba(250, 247, 242, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}
.kopf.ist-gescrollt {
  border-bottom-color: var(--linie);
  box-shadow: 0 10px 30px -24px rgba(28, 28, 28, .5);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: 36px;
  height: var(--kopf-hoehe);
}

.kopf__logo {
  flex: none;
  margin-right: auto;
}
.kopf__logo img {
  width: auto;
  height: 58px;
}

.kopf__nav ul {
  display: flex;
  gap: 34px;
}
.kopf__nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopf__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--kurve);
}
.kopf__nav a:hover::after { transform: scaleX(1); }

.kopf__menue { display: none; }

@media (max-width: 859px) {
  .kopf__innen { gap: 10px; }
  .kopf__logo img { height: 44px; }
  .kopf__cta .lang { display: none; }
  .kopf__cta.knopf--klein { padding: 0 18px; min-height: 44px; }

  .kopf__menue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--anthrazit);
    cursor: pointer;
  }
  .no-js .kopf__menue { display: none; }

  .kopf__striche,
  .kopf__striche::before,
  .kopf__striche::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .4s var(--kurve), opacity .3s ease;
  }
  .kopf__striche { position: relative; }
  .kopf__striche::before,
  .kopf__striche::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .kopf__striche::before { top: -7px; }
  .kopf__striche::after { top: 7px; }
  .kopf__menue[aria-expanded="true"] .kopf__striche { background: transparent; }
  .kopf__menue[aria-expanded="true"] .kopf__striche::before { transform: translateY(7px) rotate(45deg); }
  .kopf__menue[aria-expanded="true"] .kopf__striche::after { transform: translateY(-7px) rotate(-45deg); }

  .kopf__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 24px 40px -30px rgba(28, 28, 28, .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .35s var(--kurve), transform .45s var(--kurve), visibility 0s linear .45s;
  }
  .kopf__nav.ist-offen {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .35s var(--kurve), transform .45s var(--kurve), visibility 0s;
  }
  .no-js .kopf__nav { display: none; }

  .kopf__nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px var(--rand) 22px;
  }
  .kopf__nav a {
    padding: 15px 0;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--linie);
  }
  .kopf__nav a::after { display: none; }
}

/* ---------- Großer Kopfbereich mit Bild ---------- */
.held {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, calc(100vh - var(--kopf-hoehe)), 920px);
  min-height: clamp(540px, calc(100svh - var(--kopf-hoehe)), 920px);
  overflow: hidden;
  background: var(--anthrazit);
  color: #fff;
}

.held__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 38%;
  animation: bild-rein 2.6s var(--kurve) both;
}

.held__verlauf {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, .82) 0%, rgba(18, 16, 14, .5) 38%, rgba(18, 16, 14, 0) 68%),
    linear-gradient(0deg, rgba(18, 16, 14, .55) 0%, rgba(18, 16, 14, 0) 42%);
}

.held__inhalt {
  width: 100%;
  padding-block: clamp(56px, 11vh, 128px);
}

.held h1 { font-weight: 700; }

.held .dachzeile {
  color: #fff;
  animation: hoch 1s var(--kurve) .3s both;
}
.held .dachzeile::before { animation: linie 1s var(--kurve) .45s both; }

.held__gross {
  display: block;
  margin-top: 26px;
  font-size: clamp(3.6rem, 8.6vw, 7.6rem);
  line-height: .9;
  text-transform: uppercase;
}

/* Zeilen gleiten aus einer unsichtbaren Maske nach oben */
.zeile {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
}
.zeile > span {
  display: inline-block;
  animation: zeile 1.2s var(--kurve) both;
  animation-delay: calc(.45s + var(--n, 0) * .13s);
}

.held__text {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  animation: hoch 1.1s var(--kurve) .85s both;
}

.held .knopf {
  margin-top: 40px;
  animation: hoch 1.1s var(--kurve) 1s both;
}

/* Handy: Bild bleibt im Hintergrund, der Text wird kürzer, damit der Dachdecker sichtbar bleibt */
@media (max-width: 639px) {
  .held {
    min-height: calc(90vh - var(--kopf-hoehe));
    min-height: calc(90svh - var(--kopf-hoehe));
  }
  .held__bild { object-position: 63% 50%; }
  .held__verlauf {
    background:
      linear-gradient(0deg, rgba(18, 16, 14, .88) 0%, rgba(18, 16, 14, .6) 34%, rgba(18, 16, 14, 0) 62%);
  }
  .held__inhalt { padding-block: 40px 32px; }
  .held__gross { margin-top: 16px; }
  .held__text { display: none; }
  .held .knopf { width: 100%; margin-top: 26px; }
}

/* ---------- Leistungen ---------- */
.karten {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}

.karte__bild {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grau);
}
.karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--kurve), scale 1.2s var(--kurve);
}
.karte:hover .karte__bild img { scale: 1.045; }

.karte__text { padding-top: 24px; }

.karte__nr {
  display: block;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--rot-dunkel);
}

.karte h3 {
  position: relative;
  margin-top: 8px;
  padding-bottom: 16px;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.karte h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--rot);
  transition: width .6s var(--kurve);
}
.karte:hover h3::after { width: 64px; }

.karte p {
  margin-top: 16px;
  color: var(--text-leise);
}

@media (max-width: 1023px) {
  .karten { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

/* Handy: kompakte Liste mit kleinem Bild statt großer Karten */
@media (max-width: 639px) {
  .karten { grid-template-columns: 1fr; gap: 0; }
  .karte {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: start;
    padding-block: 20px;
    border-top: 1px solid var(--linie);
  }
  .karte:last-child { border-bottom: 1px solid var(--linie); }
  .karte__bild { aspect-ratio: 1; }
  .karte__text { padding-top: 0; }
  .karte__nr { display: none; }
  .karte h3 { margin-top: 0; padding-bottom: 0; font-size: 1.5rem; }
  .karte h3::after { display: none; }
  .karte p { margin-top: 6px; font-size: 1rem; line-height: 1.5; }
}

/* ---------- Über uns ---------- */
.ueber {
  background: var(--anthrazit);
  color: #fff;
}
.ueber .dachzeile { color: rgba(255, 255, 255, .85); }

.ueber__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

/* Markenbild: das rote Dach aus dem Logo */
.marke {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}
.marke__keil {
  position: absolute;
  inset: 0;
  background: var(--rot);
  clip-path: polygon(100% 40%, 100% 100%, 0 100%);
  transition: clip-path 1.6s var(--kurve) .2s;
}
.marke__spruch {
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: clamp(24px, 4vw, 48px);
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .92;
  text-transform: uppercase;
}
.marke__wort {
  position: absolute;
  right: clamp(20px, 3.5vw, 40px);
  bottom: clamp(16px, 3vw, 32px);
  font-family: var(--titel);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ueber__text h2 { margin-top: 20px; }
.ueber__text p {
  max-width: 46ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, .78);
}
.ueber__text h2 + p { margin-top: 30px; }

@media (max-width: 859px) {
  .ueber__raster { grid-template-columns: 1fr; }
  .marke { aspect-ratio: 16 / 10; }
}

/* ---------- Referenzen ---------- */
.galerie {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(16px, 2.2vw, 30px);
  height: clamp(380px, 44vw, 580px);
}
.galerie figure {
  overflow: hidden;
  background: var(--grau);
}
.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--kurve), scale 1.2s var(--kurve);
}
.galerie figure:hover img { scale: 1.035; }
.galerie__gross img { object-position: 45% 50%; }
.galerie__klein img { object-position: 50% 45%; }

@media (max-width: 639px) {
  .galerie { grid-template-columns: 1fr; height: auto; }
  .galerie__gross { aspect-ratio: 3 / 2; }
  .galerie__klein { aspect-ratio: 1; }
}

/* ---------- Anfrage ---------- */
.anfrage { background: var(--grau); }

.anfrage__raster {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.anfrage__info h2 { margin-top: 20px; }
.anfrage__info > p {
  max-width: 34ch;
  margin-top: 26px;
  color: var(--text-leise);
}

.kontaktliste {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.kontaktliste li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.kontaktliste svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--rot-dunkel);
}
.kontaktliste a {
  /* Innenabstand vergrößert die Tippfläche, ohne das Layout zu verschieben */
  padding-block: 10px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--rot), var(--rot)) no-repeat 0 100% / 0 2px;
  background-origin: content-box;
  background-clip: content-box;
  transition: background-size .5s var(--kurve);
}
.kontaktliste a:hover { background-size: 100% 2px; }

.formular {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  padding: clamp(24px, 4vw, 52px);
  background: var(--weiss);
}

.feld {
  display: grid;
  gap: 8px;
  align-content: start;
}
.feld--breit { grid-column: 1 / -1; }

.feld label {
  font-weight: 600;
  font-size: .95rem;
}
.feld label small {
  font-weight: 400;
  font-size: .9rem;
  color: var(--text-leise);
}

.feld input,
.feld textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(28, 28, 28, .22);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.feld textarea {
  min-height: 150px;
  resize: vertical;
}
.feld input:hover,
.feld textarea:hover { border-color: rgba(28, 28, 28, .4); }
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--anthrazit);
  box-shadow: 0 0 0 3px rgba(232, 53, 15, .2);
}
.feld input:user-invalid,
.feld textarea:user-invalid { border-color: var(--rot-dunkel); }

.zustimmung {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-leise);
  cursor: pointer;
}
.zustimmung input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rot-dunkel);
  cursor: pointer;
}
.zustimmung a { color: var(--text); padding-block: 8px; }

/* Unsichtbares Feld gegen Spam-Programme */
.formular__falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular__fuss {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.formular__status {
  font-weight: 600;
  line-height: 1.45;
}
.formular__status:empty { display: none; }
.formular__status.ist-erfolg,
.formular__status.ist-fehler {
  animation: hoch .6s var(--kurve) both;
}
.formular__status.ist-erfolg { color: var(--anthrazit); }
.formular__status.ist-erfolg::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--rot);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.formular__status.ist-fehler { color: var(--rot-dunkel); }

@media (max-width: 859px) {
  .anfrage__raster { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .anfrage { padding-bottom: 0; }
  .formular {
    grid-template-columns: 1fr;
    margin-inline: calc(var(--rand) * -1);
    padding: 28px var(--rand) 48px;
  }
  .formular__fuss .knopf { width: 100%; }
  .kontaktliste { margin-top: 30px; }
}

/* ---------- Fußbereich ---------- */
.fuss {
  padding-block: 72px 34px;
  background: var(--anthrazit);
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
}

.fuss__raster {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 36px;
  align-items: start;
}

.fuss__marke {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
.fuss__marke svg {
  width: 52px;
  height: auto;
  flex: none;
}
.fuss__name {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: .95;
  text-transform: uppercase;
}
.fuss__name span {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .62);
}

.fuss a { text-decoration: none; transition: color .3s ease; }
.fuss__raster a:not(.fuss__marke):hover { color: #fff; }

.fuss__titel {
  display: block;
  margin-bottom: 10px;
  font-family: var(--titel);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.fuss__recht {
  display: grid;
  gap: 4px;
}

.fuss__unten {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 859px) {
  .fuss__raster { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .fuss__raster > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .fuss { padding-top: 56px; }
  .fuss__raster { grid-template-columns: 1fr; row-gap: 28px; }
  /* größere Tippflächen für Links */
  .fuss__raster a:not(.fuss__marke) { display: inline-block; padding-block: 9px; }
  .fuss__recht { gap: 0; }
  .fuss__titel { margin-bottom: 2px; }
  .fuss__unten { margin-top: 40px; }
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.recht { padding-block: clamp(56px, 8vw, 110px); }
.recht__innen { max-width: 780px; }

.recht h1 {
  margin-top: 20px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: .95;
  text-transform: uppercase;
}
.recht h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.1;
}
.recht h3 {
  margin-top: 30px;
  font-size: 1.3rem;
  line-height: 1.2;
}
.recht p,
.recht ul,
.recht address { margin-top: 14px; }
.recht ul {
  padding-left: 1.2em;
  list-style: disc;
}
.recht li + li { margin-top: 6px; }
.recht a {
  padding-block: 9px; /* größere Tippfläche, ohne die Zeilen zu verschieben */
  text-decoration-color: var(--rot);
  text-underline-offset: 3px;
}

.hinweis {
  margin-top: 34px;
  padding: 18px 22px;
  border-left: 3px solid var(--rot);
  background: var(--grau);
  font-size: 1rem;
}
.luecke {
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(232, 53, 15, .12);
  color: var(--rot-dunkel);
  font-weight: 600;
}

/* ---------- Bewegung: sanftes Einblenden ---------- */
@keyframes kopf-rein {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes bild-rein {
  from { opacity: 0; transform: scale(1.09); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hoch {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes zeile {
  from { transform: translateY(108%); }
  to { transform: none; }
}
@keyframes linie {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Inhalte erscheinen beim Scrollen (nur wenn JavaScript aktiv ist) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--kurve), transform 1.1s var(--kurve);
  transition-delay: var(--verz, 0s);
}
.js [data-reveal].ist-sichtbar {
  opacity: 1;
  transform: none;
}

.js [data-reveal] .dachzeile::before {
  transform: scaleX(0);
  transition: transform 1s var(--kurve) .3s;
}
.js [data-reveal].ist-sichtbar .dachzeile::before { transform: scaleX(1); }

.js .karte[data-reveal] .karte__bild img,
.js .galerie [data-reveal] img { transform: scale(1.12); }
.js .karte[data-reveal].ist-sichtbar .karte__bild img,
.js .galerie [data-reveal].ist-sichtbar img { transform: none; }

.js [data-reveal] .marke__keil { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); }
.js [data-reveal].ist-sichtbar .marke__keil { clip-path: polygon(100% 40%, 100% 100%, 0 100%); }

/* Wer weniger Bewegung möchte, bekommt alles sofort angezeigt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
