/* Durmiag Strassen- und Tiefbau AG – Stylesheet
   Farben aus dem Logo: Signalrot #ff0000 und Schwarz. Gestaltungsidee: die Diagonale
   aus dem Logozeichen (rotes Quadrat, schwarze Dreiecke) als schräger Abschluss von
   Bühne und Seitenköpfen, jeweils mit rotem Keil. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --signal: #ff0000;        /* Logorot, für Flächen und Keile */
  --rot: #d40000;           /* Rot für Text und Knöpfe auf Weiss (Kontrast ≥ 5:1) */
  --rot-dunkel: #a80000;
  --schwarz: #000000;
  --tinte: #000000;
  --text: #2b2b2b;
  --leise: #646464;
  --linie: #e3e3e3;
  --flaeche: #ffffff;
  --flaeche-sanft: #f2f2f2;
  --dunkel-text: rgba(255, 255, 255, 0.72);
  --radius: 2px;
  --kopf-hoehe: 80px;
  --schraege: 7vw;          /* Höhe des schrägen Abschlusses */
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body.menu-offen { overflow: hidden; }

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

a { color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
a[href^="tel:"] { white-space: nowrap; }

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

h1, h2, h3 {
  color: var(--tinte);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-voll { fill: currentColor; stroke: none; }

.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: 16px;
  top: -60px;
  z-index: 100;
  background: var(--schwarz);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
}
.sprung:focus { top: 12px; color: #fff; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn .icon { width: 18px; height: 18px; }

.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--schwarz); color: #fff; }

.btn-hell { background: #fff; color: var(--schwarz); }
.btn-hell:hover { background: var(--signal); color: #fff; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-top: 4px solid var(--signal);
  transition: box-shadow 0.2s;
}
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--linie), 0 10px 30px rgba(0, 0, 0, 0.07); }

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

.logo { display: block; flex: none; }
.logo img { height: 38px; width: auto; }

.hauptnav { margin-left: auto; }

.nav-liste {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liste > li { position: relative; }

.nav-liste > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--tinte);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-liste > li > a .icon { width: 16px; height: 16px; color: var(--leise); transition: transform 0.2s; }
.nav-liste > li > a:hover,
.nav-liste > li.ist-aktiv > a { color: var(--rot); }
.nav-liste > li.ist-aktiv > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc((var(--kopf-hoehe) - 42px) / -2);
  height: 4px;
  background: var(--signal);
}
.hat-unter:hover > a .icon,
.hat-unter:focus-within > a .icon { transform: rotate(180deg); }

.unter {
  position: absolute;
  top: calc(100% + 19px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border-top: 4px solid var(--signal);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.unter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 20px;
}
.unter-zweispaltig {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  min-width: 460px;
}
.unter a {
  display: block;
  padding: 10px 12px;
  color: var(--tinte);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background-color 0.15s;
}
.unter a:hover,
.unter a[aria-current="page"] { background: var(--flaeche-sanft); border-left-color: var(--signal); color: var(--tinte); }

.hat-unter:hover > .unter,
.hat-unter:focus-within > .unter {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Instagram und Facebook rechts neben der Telefonnummer */
.kopf-sozial { display: flex; gap: 8px; margin-left: -16px; }
.sozial {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  color: var(--schwarz);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.sozial:hover,
.sozial:focus-visible { background: var(--signal); border-color: var(--signal); color: #fff; }
.sozial .icon { width: 19px; height: 19px; }

/* Markenfarben: Instagram orange, Facebook blau (Kopf, Handy-Menü, Fusszeile) */
a[href*="instagram.com"] { --marke: #f56040; }
a[href*="facebook.com"] { --marke: #1877f2; }
.sozial[href*="instagram.com"],
.sozial[href*="facebook.com"],
.rund[href*="instagram.com"],
.rund[href*="facebook.com"],
.nav-sozial a .icon { color: var(--marke); }
.sozial[href*="instagram.com"]:hover,
.sozial[href*="facebook.com"]:hover,
.sozial[href*="instagram.com"]:focus-visible,
.sozial[href*="facebook.com"]:focus-visible,
.rund[href*="instagram.com"]:hover,
.rund[href*="facebook.com"]:hover { background: var(--marke); border-color: var(--marke); color: #fff; }

.nav-sozial { display: none; }

.menu-knopf {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--schwarz);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-knopf .icon { width: 22px; height: 22px; }
.menu-knopf .icon-zu { display: none; }
.menu-knopf[aria-expanded="true"] .icon-auf { display: none; }
.menu-knopf[aria-expanded="true"] .icon-zu { display: block; }

/* ---------- Schräger Abschluss mit rotem Keil (aus dem Logozeichen) ---------- */

.buehne,
.seitenkopf {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--schraege)));
}
.buehne::after,
.seitenkopf::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 38%;
  height: calc(var(--schraege) * 2.4);
  background: var(--signal);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* ---------- Bühne (Startseite) ---------- */

.buehne {
  position: relative;
  height: clamp(500px, 84vh, 780px);
  overflow: hidden;
  background: var(--schwarz);
  color: #fff;
}

.folie {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.folie.ist-aktiv { opacity: 1; visibility: visible; z-index: 1; }
.folie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.folie.ist-aktiv img { transform: scale(1); }
.folie::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 62%);
}

.folie-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--schraege) + 112px);
  z-index: 2;
}
.folie-titel {
  max-width: 100%;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 8.4vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  hyphens: auto;
  overflow-wrap: break-word;
  letter-spacing: -0.045em;
}
.folie-titel::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.folie-unter {
  max-width: 44ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* Text der aktiven Folie fährt kurz ein */
.folie .folie-text > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.folie.ist-aktiv .folie-text > * { opacity: 1; transform: none; }
html.intro-an .folie.ist-aktiv .folie-text > * { opacity: 0; transform: translateY(28px); }
.folie.ist-aktiv .folie-text > :nth-child(2) { transition-delay: 0.1s; }
.folie.ist-aktiv .folie-text > :nth-child(3) { transition-delay: 0.2s; }

.buehne-steuerung {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--schraege) + 40px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.punkte { display: flex; gap: 6px; }
.punkt {
  width: 44px;
  height: 24px;
  padding: 10px 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  background-clip: content-box;
  cursor: pointer;
  transition: background-color 0.2s, width 0.3s;
}
.punkt:hover { background-color: rgba(255, 255, 255, 0.75); }
.punkt[aria-current="true"] { width: 72px; background-color: var(--signal); }

.pfeile { display: flex; gap: 8px; }
.pfeil {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pfeil:hover { background: #fff; border-color: #fff; color: var(--schwarz); }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: clamp(64px, 8vw, 112px); }
.abschnitt-sanft { background: var(--flaeche-sanft); }
.abschnitt:not(.abschnitt-sanft) + .abschnitt:not(.abschnitt-sanft) { padding-top: 0; }

.strich {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Begrüssung: schwarzer Block mit grosser Schrift */
.abschnitt:has(> .willkommen) {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--schwarz);
  overflow: hidden;
}
.abschnitt:has(> .willkommen)::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(120px, 18vw, 260px);
  height: clamp(120px, 18vw, 260px);
  background: var(--signal);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.willkommen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.willkommen h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.willkommen p { margin: 0; max-width: 58ch; color: var(--dunkel-text); font-size: 1.15rem; line-height: 1.7; }

/* ---------- Karten ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.karte::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.karte:has(a:hover)::after,
.karte:focus-within::after { transform: scaleX(1); }
.karte:has(a:hover) { border-color: #cfcfcf; }

.karte-bild { aspect-ratio: 3 / 2; overflow: hidden; background: var(--flaeche-sanft); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.karte:has(a:hover) .karte-bild img { transform: scale(1.04); }

.karte-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 28px;
}
.karte h2,
.karte h3 { font-size: 1.3rem; margin: 0 0 8px; }
.karte-unter {
  margin: 0 0 12px;
  color: var(--rot);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.karte-beschrieb { margin: 0 0 22px; color: var(--leise); font-size: 0.97rem; }

.mehr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--tinte);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.mehr .icon { width: 18px; height: 18px; color: var(--rot); transition: transform 0.2s; }
.mehr:hover { color: var(--rot); }
.mehr:hover .icon { transform: translateX(3px); }
.karte .mehr::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.karten-quer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karten-quer .karte { flex-direction: row; }
.karten-quer .karte-bild { flex: 0 0 44%; aspect-ratio: auto; min-height: 260px; }
.karten-quer .karte-text { padding: 32px; }

/* ---------- Partner ---------- */

.partner-kopf {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.partner-kopf .strich { width: 28px; height: 28px; margin: 0 0 6px; }
.partner-kopf h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; }

.partner-liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
  border-left: 1px solid var(--linie);
}
.partner-liste li { border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.partner-liste a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(112px, 11vw, 148px);
  padding: 24px clamp(18px, 2.4vw, 32px);
  background: #fff;
}
.partner-liste a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: var(--signal);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.partner-liste img {
  width: auto;
  height: var(--h, 44px);   /* pro Logo optisch abgestimmt */
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.25s, opacity 0.25s;
}
.partner-liste a:hover img,
.partner-liste a:focus-visible img { filter: none; opacity: 1; }
.partner-liste a:hover::after,
.partner-liste a:focus-visible::after { opacity: 1; }

/* ---------- Standort ---------- */

.standort {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
}
.karte-rahmen {
  min-height: 420px;
  overflow: hidden;
  background: var(--flaeche-sanft);
}
.karte-rahmen iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.35); }

.adresse {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  background: var(--schwarz);
  color: var(--dunkel-text);
  font-size: 1.05rem;
  overflow: hidden;
}
.adresse::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.adresse h2 { max-width: 16ch; color: #fff; font-size: 1.7rem; margin: 0 0 20px; }
.adresse p { margin: 0 0 18px; }
.adresse p:last-child { margin-bottom: 0; }
.adresse a { color: #fff; text-decoration: none; }
.adresse a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- Unterseiten ---------- */

.seitenkopf {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) calc(clamp(56px, 7vw, 96px) + var(--schraege));
  background: var(--schwarz);
  color: #fff;
}
.seitenkopf h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  line-height: 1;
  hyphens: auto;
  overflow-wrap: break-word;
  letter-spacing: -0.045em;
}

.pfad {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}
.pfad li + li::before { content: "/"; margin-right: 8px; color: var(--signal); }
.pfad a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.pfad a:hover { color: #fff; }

.seitenkopf + .abschnitt { padding-top: clamp(40px, 5vw, 72px); }

.artikel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.artikel-text { font-size: 1.1rem; line-height: 1.75; }
.artikel-text p { max-width: 64ch; }
.artikel-text > p:first-child { color: var(--tinte); font-size: 1.25rem; line-height: 1.6; }
.artikel-text h2 { font-size: 1.5rem; margin-top: 1.2em; }
.artikel-bild { position: relative; isolation: isolate; }
.artikel-bild img { width: 100%; border-radius: var(--radius); }
.artikel-bild::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 64px;
  height: 64px;
  background: var(--signal);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.artikel-bild.hochformat { max-width: 380px; }

.blaettern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}
.blaettern a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 26px;
  background: var(--flaeche-sanft);
  border-left: 4px solid transparent;
  color: var(--tinte);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.blaettern a:hover { background: var(--schwarz); border-left-color: var(--signal); color: #fff; }
.blaettern small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--leise);
  font-size: 0.88rem;
  font-weight: 500;
}
.blaettern a:hover small { color: rgba(255, 255, 255, 0.65); }
.blaettern small .icon { width: 16px; height: 16px; color: var(--rot); }
.blaettern a:hover small .icon { color: var(--signal); }
.blaettern strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.blaettern .weiter { grid-column: 2; align-items: flex-end; text-align: right; border-left: 0; border-right: 4px solid transparent; }
.blaettern .weiter:hover { border-right-color: var(--signal); }

.leistungen-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.leistungen-raster .karte-text p { font-size: 0.97rem; color: var(--leise); }
.leistungen-raster .karte-text p:last-of-type { margin-bottom: 0; }
.leistungen-raster h2 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tinte);
  text-decoration: none;
}
.leistungen-raster h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.leistungen-raster h2 a .icon { width: 18px; height: 18px; color: var(--rot); transition: transform 0.2s; }
.leistungen-raster .karte:has(a:hover) h2 a { color: var(--rot); }
.leistungen-raster .karte:has(a:hover) h2 a .icon { transform: translateX(3px); }

/* Offene Stellen */

.stellen {
  margin: 8px 0 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
}
.stellen li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
  color: var(--tinte);
  font-weight: 700;
}
.stellen li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.bewerbung {
  margin-top: 8px;
  padding: 26px 30px;
  background: var(--flaeche-sanft);
  border-left: 4px solid var(--signal);
}
.bewerbung p { margin: 0 0 4px; }
.bewerbung p:last-child { margin: 12px 0 0; }

/* Kontakt */

.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.kontaktdaten {
  position: relative;
  padding: clamp(32px, 4vw, 44px);
  background: var(--schwarz);
  color: var(--dunkel-text);
  overflow: hidden;
}
.kontaktdaten::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.kontaktdaten h2,
.formular h2 { font-size: 1.45rem; margin: 0 0 20px; }
.kontaktdaten h2 { color: #fff; }
.kontaktdaten .firma { color: #fff; font-weight: 700; margin-bottom: 20px; }
.kontaktdaten .ort { margin-bottom: 18px; }
.kontaktdaten .ort strong { display: block; color: #fff; font-weight: 600; }
.kontaktdaten a { color: #fff; }

.kontakt-zeilen { margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.kontakt-zeilen li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.kontakt-zeilen .icon { color: var(--signal); }
.kontakt-zeilen a { color: #fff; text-decoration: none; }
.kontakt-zeilen a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); }

.formular {
  padding: clamp(32px, 4vw, 44px);
  background: var(--flaeche-sanft);
}
.formular fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.formular legend { padding: 0; margin-bottom: 6px; color: var(--tinte); font-weight: 700; }
.pflicht-hinweis { color: var(--leise); font-size: 0.9rem; margin-bottom: 24px; }
.stern { color: var(--rot); }

.feld { margin-bottom: 18px; }
.feld label { display: block; margin-bottom: 6px; color: var(--tinte); font-size: 0.95rem; font-weight: 600; }
.feld input,
.feld textarea {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 2px solid #c9c9c9;
  border-radius: 0;
  background: #fff;
  color: var(--tinte);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s;
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-bottom-color: var(--signal);
}
.feld-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.haken { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 24px; font-size: 0.95rem; line-height: 1.5; }
.haken input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rot); }
.haken .optional { color: var(--leise); }

.karte-gross { margin-top: clamp(48px, 6vw, 72px); }
.karte-gross h2 { font-size: 1.45rem; }
.karte-gross .karte-rahmen,
.karte-gross iframe { min-height: 420px; }

/* ---------- Fuss ---------- */

.fuss {
  position: relative;
  background: var(--schwarz);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}
.fuss::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--signal);
}

.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-block: 80px 60px;
}
.fuss h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fuss-zeichen {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--signal);
  color: #fff;
}
.fuss-zeichen .icon { width: 18px; height: 18px; }
.fuss p { margin: 0 0 12px; }
.fuss .betont { color: #fff; font-weight: 600; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.fuss .mehr { color: #fff; }
.fuss .mehr .icon { color: var(--signal); }
.fuss .mehr:hover { color: #fff; }

.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.fuss-unten p { margin: 0; }
.fuss-aktionen { display: flex; align-items: center; gap: 10px; }
.rund {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}
.rund:hover { background: var(--signal); border-color: var(--signal); }
.rund .icon { width: 18px; height: 18px; }

/* ---------- Logo-Intro (einmal pro Besuch) ---------- */

.intro { display: none; }

html.intro-an { overflow: hidden; }
html.intro-an .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.42s;
}
/* roter Vorhang, der zum Schluss von unten hochfährt */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
html.intro-an .intro.ist-weg::after { transform: scaleY(1); }
html.intro-an .intro.ist-weg { transform: translateY(-100%); }

.intro-logo {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 28px);
}

.intro-zeichen {
  flex: none;
  width: clamp(72px, 12vw, 128px);
  height: auto;
  overflow: visible;
}
.intro-zeichen .z-flaeche {
  animation: intro-flaeche 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-zeichen .z-dreieck {
  transform-box: fill-box;
  animation: intro-dreieck 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-zeichen .z-gross { transform-origin: 72% 0; animation-delay: 0.32s; }
.intro-zeichen .z-oben { transform-origin: 50% 0; animation-delay: 0.42s; }
.intro-zeichen .z-links { transform-origin: 0 50%; animation-delay: 0.5s; }
.intro-zeichen .z-linie {
  stroke-dasharray: 70;
  animation: intro-linie 0.45s ease-out 0.6s both;
}

.intro-wort {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}
.intro-name {
  display: flex;
  overflow: hidden;
  color: var(--schwarz);
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.intro-name span {
  display: block;
  animation: intro-buchstabe 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.intro-name span:nth-child(1) { animation-delay: 0.38s; }
.intro-name span:nth-child(2) { animation-delay: 0.43s; }
.intro-name span:nth-child(3) { animation-delay: 0.48s; }
.intro-name span:nth-child(4) { animation-delay: 0.53s; }
.intro-name span:nth-child(5) { animation-delay: 0.58s; }
.intro-name span:nth-child(6) { animation-delay: 0.63s; }
.intro-name span:nth-child(7) { animation-delay: 0.68s; }
.intro .r { color: var(--signal); }

.intro-unter {
  color: var(--schwarz);
  font-size: clamp(0.85rem, 1.9vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: intro-unter 0.5s ease 0.85s both;
}

@keyframes intro-flaeche {
  from { clip-path: polygon(0 0, 0 0, 0 0); }
  to { clip-path: polygon(0 0, 200% 0, 0 200%); }
}
@keyframes intro-dreieck {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes intro-linie {
  from { stroke-dashoffset: 70; }
  to { stroke-dashoffset: 0; }
}
@keyframes intro-buchstabe {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes intro-unter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Anpassungen ---------- */

@media (max-width: 1080px) {
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leistungen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --kopf-hoehe: 64px; --schraege: 44px; }
  .kopf-innen { gap: 10px; }
  .logo img { height: 30px; }
  .menu-knopf { display: inline-flex; }
  .kopf-tel { margin-left: auto; padding: 0; width: 44px; height: 44px; justify-content: center; }
  .kopf-tel span { display: none; }
  .kopf-sozial { display: none; }
  .nav-sozial { display: flex; gap: 10px; padding-top: 24px; }
  .nav-sozial a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    color: var(--tinte);
    font-weight: 600;
    text-decoration: none;
  }
  .nav-sozial a:hover { border-color: var(--signal); color: var(--rot); }

  .hauptnav {
    position: fixed;
    top: calc(var(--kopf-hoehe) + 4px);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    margin: 0;
    padding: 8px 20px 40px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--linie);
  }
  .hauptnav.ist-offen { display: block; }
  .nav-liste { flex-direction: column; gap: 0; }
  .nav-liste > li > a {
    padding: 18px 4px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--linie);
  }
  .nav-liste > li > a .icon { display: none; }
  .nav-liste > li.ist-aktiv > a::after { display: none; }
  .unter,
  .unter-zweispaltig {
    position: static;
    display: block;
    min-width: 0;
    padding: 6px 0 12px 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .unter::before { display: none; }
  .unter a { padding: 10px 12px; font-size: 1rem; }

  .willkommen,
  .standort,
  .artikel,
  .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .willkommen { gap: 24px; }
  .artikel-bild { max-width: 640px; }
  .karten-quer { grid-template-columns: minmax(0, 1fr); }
  .buehne::after,
  .seitenkopf::after { width: 55%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .karten,
  .leistungen-raster,
  .fuss-spalten { grid-template-columns: minmax(0, 1fr); }
  .fuss-spalten { gap: 36px; padding-block: 56px 40px; }
  .partner-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-liste img { height: calc(var(--h, 44px) * 0.8); }
  .karten-quer .karte { flex-direction: column; }
  .karten-quer .karte-bild { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .karten-quer .karte-text { padding: 24px 24px 28px; }
  .folie-text { bottom: calc(var(--schraege) + 96px); }
  .folie-titel::before { width: 40px; height: 40px; margin-bottom: 18px; }
  .buehne-steuerung { bottom: calc(var(--schraege) + 28px); }
  .pfeil { width: 44px; height: 44px; }
  .punkt { width: 32px; }
  .punkt[aria-current="true"] { width: 52px; }
  .feld-reihe { grid-template-columns: minmax(0, 1fr); }
  .blaettern { grid-template-columns: minmax(0, 1fr); }
  .blaettern .weiter { grid-column: 1; }
  .karte-rahmen,
  .karte-rahmen iframe { min-height: 320px; }
  .artikel-bild::after { right: -8px; bottom: -8px; width: 44px; height: 44px; }
  .intro-logo { flex-direction: column; text-align: center; }
  .intro-wort { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
