/* Bräuer Bau · Grundstil
   Aufbau: Variablen, Grundlagen, Bausteine, Abschnitte, Umbrüche.
   Alle Verweise sind relativ, damit die Seite im Vorschau-Unterordner
   genauso läuft wie später in der Domainwurzel. */


:root {
  /* Das Gruen aus dem Entwurf (#02913f) traegt weisse Kleinschrift nur mit
     4,1:1, gefordert sind 4,5:1. Dieser Ton liegt bei 6,1:1 und sieht
     praktisch gleich aus. */
  --gruen: #017233;
  --gruen-hell: #03a949;
  --gruen-dunkel: #015426;
  /* Fuer kleine Schrift auf hellem Grund: #02913f erreicht auf Weiss nur 4,1:1,
     die Richtlinie verlangt 4,5:1. Dieser Ton kommt auf 6,1:1. */
  --gruen-text: #017233;
  --schwarz: #0e1612;
  --marine: #14203a;
  --grau: #64698a;
  --grau-hell: #e5e6ea;
  --sand: #ececeb;
  --weiss: #fff;

  --breite: 1400px;
  --rand: 24px;

  --kopf-hoehe: 96px;

  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-zahl: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.nur-fuer-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Bausteine ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  font-family: var(--schrift);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border: 1px solid var(--gruen);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.knopf--voll {
  background: var(--gruen);
  color: var(--weiss);
}

.knopf--voll:hover,
.knopf--voll:focus-visible {
  background: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
}

.knopf--umriss {
  background: var(--weiss);
  color: var(--gruen-text);
}

.knopf--umriss:hover,
.knopf--umriss:focus-visible {
  background: var(--gruen);
  color: var(--weiss);
}

.knopf--hell {
  /* 0.1 statt 0.2: weiss auf dem Mischgruen braucht 4,5:1 */
  background: rgba(255, 255, 255, 0.1);
  color: var(--weiss);
  border-color: rgba(255, 255, 255, 0.55);
}

.knopf--hell:hover,
.knopf--hell:focus-visible {
  background: var(--weiss);
  color: var(--gruen-text);
}

:focus-visible {
  outline: 3px solid var(--schwarz);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95);
}

.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: 40px;
}

.abschnitt-kopf__text {
  flex: 1 1 420px;
}

.abschnitt-kopf h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 14px;
}

.abschnitt-kopf p {
  max-width: 46ch;
  color: var(--grau);
  font-size: 18px;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 18px rgba(12, 15, 26, 0.08);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}

.kopf__logo img {
  width: auto;
  height: 68px;
}

.kopf__menue {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  align-self: stretch;
}

.kopf__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(18, 25, 21, 0.86);
}

.kopf__nav a:hover,
.kopf__nav a[aria-current="page"] {
  color: var(--gruen);
  font-weight: 600;
}

.kopf__sozial {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kopf__sozial a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.kopf__sozial img {
  width: 26px;
  height: 26px;
}

.kopf__cta {
  align-self: stretch;
  min-height: 96px;
  border: 0;
  padding-inline: 24px;
}

.kopf__cta img {
  width: 18px;
  height: 18px;
}

.kopf__schalter {
  display: none;
  place-items: center;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--schwarz);
  background: none;
  border: 1px solid var(--grau-hell);
  cursor: pointer;
}

.kopf__schalter svg {
  grid-area: 1 / 1;
}

.kopf__schalter-zu,
.kopf__schalter[aria-expanded="true"] .kopf__schalter-auf {
  display: none;
}

.kopf__schalter[aria-expanded="true"] .kopf__schalter-zu {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(64px, 10vw, 150px) 0 clamp(120px, 14vw, 210px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(236, 235, 235, 0.9);
}

.hero__kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gruen-text);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 6.2vw, 72px);
  letter-spacing: -0.72px;
  line-height: 0.98;
}

.hero__text {
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  color: #4b534e;
}

.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero__aktionen .knopf {
  min-height: 54px;
}

/* ---------- Leistungskacheln ---------- */

.leistungen {
  position: relative;
  margin-top: clamp(-160px, -12vw, -110px);
  z-index: 5;
}

.leistungen__gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: 26px 30px 28px;
  color: var(--weiss);
  overflow: hidden;
  isolation: isolate;
}

.kachel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kachel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(1, 114, 51, 0.72);
  transition: background-color 0.25s ease;
}

.kachel:hover img {
  transform: scale(1.05);
}

.kachel:hover::after {
  background: rgba(1, 114, 51, 0.84);
}

.kachel__nummer {
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 700;
  line-height: 1;
}

.kachel__fuss {
  display: flex;
  max-width: 72%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: 0.21px;
  text-transform: uppercase;
}

/* ---------- Über uns ---------- */

.ueber {
  padding: clamp(60px, 8vw, 110px) 0;
}

.ueber__gitter {
  display: grid;
  grid-template-columns: 6fr 7fr;
  align-items: center;
}

.ueber__bild img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.ueber__inhalt {
  background: var(--weiss);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 66px);
  margin-left: clamp(-90px, -5vw, -40px);
  box-shadow: 0 18px 50px rgba(20, 32, 58, 0.08);
}

.ueber__inhalt h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 18px;
}

.ueber__inhalt > p {
  color: var(--grau);
  font-size: 18px;
  line-height: 1.5;
}

.balken {
  margin-top: 26px;
}

.balken__kopf {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.balken__kopf span:last-child {
  color: var(--grau);
}

.balken__spur {
  height: 8px;
  background: var(--grau-hell);
}

.balken__fuellung {
  height: 100%;
  background: var(--gruen);
}

.ueber__inhalt .knopf {
  margin-top: 30px;
}

/* ---------- Karriere ---------- */

.karriere {
  padding: clamp(50px, 7vw, 90px) 0;
}

.karriere__gitter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.karriere__titel {
  font-size: clamp(26px, 3.4vw, 35px);
}

.karriere__text {
  margin-top: 14px;
  color: var(--grau);
  font-size: 18px;
}

.karriere__karten {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.jobkarte {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  background: var(--gruen);
  border: 1px solid var(--gruen-hell);
  color: var(--weiss);
}

.jobkarte__icon {
  display: grid;
  place-items: center;
  width: 59px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  flex: none;
}

.jobkarte__icon img {
  width: 30px;
  height: auto;
}

.jobkarte h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.jobkarte__unter {
  font-size: 16px;
  font-weight: 500;
}

.jobkarte p:last-of-type {
  font-size: 16px;
}

.karriere__bild img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

/* ---------- Projekte ---------- */

.projekte {
  padding: clamp(50px, 7vw, 90px) 0;
}

.slider {
  position: relative;
}

.slider__spur {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.folie {
  position: relative;
  display: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.folie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folie--sichtbar {
  display: block;
  animation: folie-auf 0.35s ease;
}

.folie--sichtbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.folie--mitte {
  aspect-ratio: 5 / 4;
}

.folie--mitte::after {
  display: none;
}

@keyframes folie-auf {
  from {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folie--sichtbar {
    animation: none;
  }
}

.slider__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 69px;
  border: 0;
  background: var(--gruen);
  color: var(--weiss);
  font-family: var(--schrift);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.slider__pfeil:hover {
  background: var(--gruen-dunkel);
}

.slider__pfeil--zurueck {
  left: calc(25% - 38px);
}

.slider__pfeil--vor {
  right: calc(25% - 38px);
}

/* ---------- Bewertungen ---------- */

.bewertungen {
  padding: clamp(50px, 7vw, 90px) 0;
}

.bewertungen__kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.bewertungen__kopf h2 {
  flex: 1 1 480px;
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--marine);
  letter-spacing: -0.19px;
}

.google {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--gruen);
  color: var(--weiss);
}

.google:hover,
.google:focus-visible {
  background: var(--gruen-dunkel);
}

.google__logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--weiss);
  border-radius: 50%;
  color: var(--gruen-text);
  font-family: var(--schrift-zahl);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.google__note {
  font-family: var(--schrift-zahl);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.google__sterne {
  color: #ffc107;
  font-size: 14px;
  letter-spacing: 1px;
}

.google__link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.bewertungen__gitter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bewertung {
  display: flex;
  flex-direction: column;
  padding: 26px 27px 24px;
  background: var(--weiss);
  border: 1px solid rgba(2, 145, 63, 0.25);
  box-shadow: 0 12px 30px rgba(20, 32, 58, 0.07);
}

.bewertung__zeichen {
  font-size: 52px;
  font-weight: 700;
  line-height: 0.6;
  color: var(--gruen-text);
}

.bewertung__sterne {
  margin: 22px 0 12px;
  color: var(--gruen-text);
  font-size: 14px;
  letter-spacing: 1px;
}

.bewertung__text {
  font-size: 15px;
  line-height: 1.56;
  color: rgba(20, 32, 58, 0.85);
}

.bewertung__name {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--marine);
}

/* ---------- Grüner Abschluss ---------- */

.anruf {
  background: var(--gruen);
  color: var(--weiss);
  padding: clamp(40px, 6vw, 58px) 0;
}

.anruf__innen {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 60px;
  justify-content: space-between;
}

.anruf h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  letter-spacing: -0.7px;
  text-transform: none;
  margin-bottom: 12px;
}

.anruf p {
  font-family: var(--schrift-zahl);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.anruf__nummer {
  font-family: var(--schrift-zahl);
  font-size: clamp(26px, 3.4vw, 35px);
  font-weight: 600;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Fußzeile ---------- */

.fuss {
  padding: clamp(40px, 6vw, 64px) 0 40px;
  font-family: var(--schrift-zahl);
  color: var(--grau);
  font-size: 13px;
}

.fuss__gitter {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, 1fr);
  gap: 36px 40px;
}

.fuss__logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 22px;
}

.fuss__kontakt a:hover {
  color: var(--gruen);
}

.fuss h2 {
  font-family: var(--schrift-zahl);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.26px;
  margin-bottom: 16px;
  color: var(--grau);
}

.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.fuss li a {
  display: inline-block;
  padding: 7px 0;
}

.fuss a:hover {
  color: var(--gruen);
}

.fuss__zeile {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grau-hell);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.fuss__zeile {
  align-items: center;
}

/* Groesse wie auf allen Contentura-Seiten: 150 px, auf dem Handy 120 px */
.fuss__contentura {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: transform 0.2s;
}

.fuss__contentura:hover {
  transform: scale(0.95);
}

.fuss__contentura img {
  display: block;
  width: 150px;
  max-width: none;
  height: auto;
}

@media (max-width: 479px) {
  .fuss__contentura img {
    width: 120px;
  }
}

/* ---------- Umbrüche ---------- */

@media (max-width: 1100px) {
  .ueber__gitter {
    grid-template-columns: 1fr;
  }

  .ueber__inhalt {
    margin-left: 0;
    margin-top: -40px;
    margin-inline: clamp(16px, 4vw, 48px);
  }

  .karriere__gitter {
    grid-template-columns: 1fr;
  }

  .karriere__bild {
    order: -1;
  }

  .karriere__bild img {
    min-height: 260px;
  }

  .bewertungen__gitter {
    grid-template-columns: 1fr 1fr;
  }

  .fuss__gitter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .kopf__innen {
    position: relative;
    flex-wrap: wrap;
  }

  .kopf__menue {
    display: none;
  }

  .kopf__schalter {
    display: grid;
  }

  .kopf--offen .kopf__menue {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin-left: 0;
    padding: 4px 0 22px;
    border-top: 1px solid var(--grau-hell);
  }

  .kopf--offen .kopf__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .kopf--offen .kopf__nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--grau-hell);
    font-size: 17px;
  }

  .kopf--offen .kopf__cta {
    min-height: 54px;
  }

  .leistungen__gitter {
    grid-template-columns: 1fr 1fr;
  }

  .leistungen {
    margin-top: clamp(-90px, -8vw, -60px);
  }

  .slider__spur {
    grid-template-columns: 1fr;
  }

  .folie--sichtbar:not(.folie--mitte) {
    display: none;
  }

  .folie--mitte {
    aspect-ratio: 4 / 3;
  }

  .slider__pfeil--zurueck {
    left: 0;
  }

  .slider__pfeil--vor {
    right: 0;
  }

  .bewertungen__gitter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-bottom: clamp(90px, 20vw, 130px);
  }

  .jobkarte {
    grid-template-columns: auto 1fr;
  }

  .jobkarte .knopf {
    grid-column: span 2;
  }

  .fuss__gitter {
    grid-template-columns: 1fr;
  }

  .anruf__innen {
    flex-direction: column;
  }
}

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

.seiten-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 384px;
  padding: clamp(60px, 8vw, 96px) 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.seiten-hero__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.seiten-hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seiten-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(236, 235, 235, 0.9);
}

.seiten-hero__kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gruen-text);
}

.seiten-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5.6vw, 72px);
  color: #050806;
}

.seiten-hero__text {
  max-width: 70ch;
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  color: #2e3833;
}

.seiten-hero .knopf {
  margin-top: 26px;
  min-height: 56px;
  min-width: 190px;
}

.intro {
  padding: clamp(56px, 8vw, 120px) 0 0;
}

.intro__gitter {
  display: grid;
  grid-template-columns: 610fr 650fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.intro__bild img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
}

.intro h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  line-height: 1.35;
  color: #080a09;
  margin-bottom: 22px;
}

.intro p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: #4f5754;
}

.bereiche {
  padding: clamp(56px, 8vw, 84px) 0 0;
}

.bereiche h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  color: #080a09;
  margin-bottom: 34px;
}

.bereiche__gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bereich-karte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: 26px 28px;
  background: var(--gruen);
  color: var(--weiss);
}

.bereich-karte__nummer {
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 600;
  line-height: 1;
}

.bereich-karte h3 {
  font-size: 21px;
}

.bereich-karte p {
  font-size: 16px;
  line-height: 1.45;
}

.ablauf {
  padding: clamp(56px, 8vw, 84px) 0 clamp(56px, 8vw, 84px);
}

.ablauf h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  color: #080a09;
  margin-bottom: 34px;
}

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

.schritt {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--gruen);
  color: var(--gruen-text);
}

.schritt__nummer {
  font-size: 20px;
  font-weight: 600;
}

.schritt h3 {
  font-size: 21px;
}

.schritt p {
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .intro__gitter {
    grid-template-columns: 1fr;
  }

  .bereiche__gitter,
  .ablauf__gitter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .bereiche__gitter,
  .ablauf__gitter {
    grid-template-columns: 1fr;
  }

  .bereich-karte {
    min-height: 0;
  }
}

/* ---------- Über uns ---------- */

.bildpaar {
  position: relative;
  padding-bottom: 60px;
  padding-right: 60px;
}

.bildpaar img {
  width: 100%;
  object-fit: cover;
}

.bildpaar img.bildpaar__zweites {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  border: 10px solid var(--weiss);
  box-shadow: 0 18px 40px rgba(20, 32, 58, 0.12);
}

.intro__zweiter {
  margin-top: 18px;
}

.zeitleiste {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.zeitleiste h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 34px;
}

.zeitleiste__gitter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marke {
  padding-top: 20px;
  border-top: 2px solid var(--gruen);
}

.marke__jahr {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--gruen-text);
}

.marke p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--grau);
}

.nachweise {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.nachweise h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 34px;
}

.nachweise__gitter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nachweis {
  padding: 26px 28px;
  border: 1px solid rgba(2, 145, 63, 0.35);
}

.nachweis img {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}

.nachweis__zeile {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gruen-text);
  margin-bottom: 8px;
}

.nachweis h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.nachweis p:last-child {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grau);
}

.nachweis-balken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--gruen);
  color: var(--weiss);
}

.nachweis-balken .nachweis__zeile {
  color: rgba(255, 255, 255, 0.88);
}

.nachweis-balken h3 {
  font-size: 19px;
}

.technik {
  padding: clamp(56px, 8vw, 96px) 0;
}

.technik__kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gruen-text);
  margin-bottom: 12px;
}

.technik h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 34px;
}

.technik__gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.geraete {
  padding: 26px 28px;
  border: 1px solid var(--grau-hell);
}

.geraete img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.geraete__zeile {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gruen-text);
  margin-bottom: 8px;
}

.geraete h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.geraete ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--grau);
}

@media (max-width: 1100px) {
  .zeitleiste__gitter {
    grid-template-columns: repeat(3, 1fr);
  }

  .nachweise__gitter,
  .technik__gitter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .zeitleiste__gitter {
    grid-template-columns: 1fr 1fr;
  }

  .nachweise__gitter,
  .technik__gitter,
  .nachweis-balken {
    grid-template-columns: 1fr;
  }

  .bildpaar {
    padding-bottom: 40px;
    padding-right: 30px;
  }
}

/* ---------- Karriere ---------- */

.stellen {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.stellen__titel {
  font-size: clamp(26px, 3.4vw, 35px);
  text-align: center;
}

.stellen__hinweis {
  margin: 14px 0 40px;
  text-align: center;
  color: var(--grau);
}

.stellen__gitter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  justify-content: center;
}

.wendekarte {
  display: flex;
  flex-direction: column;
  perspective: 1400px;
}

.wendekarte__innen {
  position: relative;
  min-height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.wendekarte--gedreht .wendekarte__innen {
  transform: rotateY(180deg);
}

/* Am Rechner dreht schon das Zeigen mit der Maus, auf dem Handy und mit der
   Tastatur uebernimmt das der Knopf unter der Karte. */
@media (hover: hover) {
  .wendekarte:hover .wendekarte__innen,
  .wendekarte:focus-within .wendekarte__innen {
    transform: rotateY(180deg);
  }
}

.wendekarte__mehr {
  margin-top: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  font-family: var(--schrift);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--gruen-text);
  background: none;
  border: 1px solid var(--grau-hell);
  cursor: pointer;
}

.wendekarte__mehr:hover {
  border-color: var(--gruen);
}

.wendekarte__mehr-zu,
.wendekarte--gedreht .wendekarte__mehr-auf {
  display: none;
}

.wendekarte--gedreht .wendekarte__mehr-zu {
  display: inline;
}

@media (hover: hover) {
  .wendekarte__mehr {
    display: none;
  }
}

.wendekarte__vorn,
.wendekarte__hinten {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  padding: 26px 28px;
  backface-visibility: hidden;
}

.wendekarte__vorn {
  background: var(--weiss);
  border: 1px solid rgba(3, 169, 73, 0.45);
}

.wendekarte__hinten {
  position: absolute;
  inset: 0;
  background: var(--gruen);
  color: var(--weiss);
  transform: rotateY(180deg);
}

.wendekarte__kopf {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wendekarte__symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--gruen);
}

.wendekarte__art {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gruen-text);
}

.wendekarte__art--hell {
  color: rgba(255, 255, 255, 0.88);
}

.wendekarte__titel {
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.wendekarte__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grau);
}

.wendekarte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wendekarte__meta span {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(1, 114, 51, 0.1);
  color: var(--gruen-text);
}

.wendekarte__ort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--grau-hell);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--grau);
}

.wendekarte__liste {
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.wendekarte__liste span {
  padding-left: 26px;
  position: relative;
}

.wendekarte__liste span::before {
  content: "✓";
  position: absolute;
  left: 0;
}

.wendekarte__kasten {
  display: block;
  margin-top: auto;
  padding: 16px 18px;
  background: var(--weiss);
  color: var(--gruen-text);
  font-size: 14px;
  line-height: 1.4;
}

.wendekarte__kasten strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wendekarte__knopf {
  margin-top: 14px;
  width: 100%;
}

.vorteile {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.vorteile h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 34px;
}

.vorteile__gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vorteil {
  position: relative;
  padding: 26px 28px;
  border: 1px solid rgba(3, 169, 73, 0.45);
}

.vorteil img {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.vorteil__nummer {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gruen-text);
}

.vorteil h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.vorteil p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grau);
}

.bewerbung {
  padding: clamp(56px, 8vw, 96px) 0;
}

.bewerbung h2 {
  font-size: clamp(26px, 3.4vw, 35px);
  margin-bottom: 40px;
}

.bewerbung__gitter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bewerbungsschritt {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid rgba(3, 169, 73, 0.45);
}

.bewerbungsschritt__symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: var(--gruen);
}

.bewerbungsschritt__nummer {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gruen-text);
}

.bewerbungsschritt h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.bewerbungsschritt p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grau);
}

.bewerben-cta {
  padding: clamp(48px, 7vw, 76px) 0;
  background: var(--gruen);
  color: var(--weiss);
}

.bewerben-cta__innen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bewerben-cta__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 14px;
}

.bewerben-cta h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 14px;
}

.bewerben-cta__wege {
  display: grid;
  gap: 16px;
}

.kontaktweg {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.kontaktweg span {
  display: block;
  font-size: 13px;
  color: var(--weiss);
}

.kontaktweg strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
  color: var(--weiss);
}

.kontaktweg--weiss {
  background: var(--weiss);
}

.kontaktweg--weiss span {
  color: var(--grau);
}

.kontaktweg--weiss strong {
  color: var(--gruen-text);
}

.kontaktweg:hover {
  background: rgba(0, 0, 0, 0.14);
}

.kontaktweg--weiss:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1100px) {
  .stellen__gitter,
  .bewerbung__gitter {
    grid-template-columns: 1fr 1fr;
  }

  .vorteile__gitter {
    grid-template-columns: 1fr 1fr;
  }

  .bewerben-cta__innen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stellen__gitter,
  .bewerbung__gitter,
  .vorteile__gitter {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wendekarte__innen {
    transition: none;
  }
}

/* ---------- Referenzen ---------- */

.galerie {
  padding: clamp(56px, 8vw, 96px) 0;
}

.galerie__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 34px;
}

.galerie__kopf h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter__knopf {
  min-height: 44px;
  padding: 11px 20px;
  font-family: var(--schrift);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--gruen-text);
  background: var(--weiss);
  border: 1px solid var(--gruen);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.filter__knopf:hover {
  background: rgba(2, 145, 63, 0.1);
}

.filter__knopf--aktiv {
  background: var(--gruen);
  color: var(--weiss);
}

.filter__knopf--aktiv:hover {
  background: var(--gruen-dunkel);
}

.galerie__gitter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.projekt {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.projekt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projekt:hover img {
  transform: scale(1.04);
}

.projekt[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .galerie__gitter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .galerie__gitter {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kontakt ---------- */

.kontakt {
  padding: clamp(56px, 8vw, 96px) 0;
}

.kontakt__gitter {
  display: grid;
  grid-template-columns: 500fr 796fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.kontakt h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.kontakt__vorspann {
  color: var(--grau);
  font-size: 17px;
  margin-bottom: 30px;
}

.kontaktliste {
  margin: 0;
  display: grid;
  gap: 20px;
}

.kontaktliste dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gruen-text);
  margin-bottom: 5px;
}

.kontaktliste dd {
  margin: 0;
  font-size: 17px;
}

.kontaktliste a:hover {
  color: var(--gruen);
  text-decoration: underline;
}

.kontakt__kasten {
  margin-top: 34px;
  padding: 24px 26px;
  background: var(--gruen);
  color: var(--weiss);
}

.kontakt__kasten h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.kontakt__kasten p {
  font-size: 15px;
  line-height: 1.5;
}

.formular {
  display: grid;
  gap: 20px;
}

.formular__feld {
  display: grid;
  gap: 8px;
}

.formular label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gruen-text);
}

.formular input,
.formular select,
.formular textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--schrift);
  font-size: 16px;
  color: var(--schwarz);
  background: var(--weiss);
  border: 1px solid var(--grau-hell);
  border-radius: 0;
}

.formular input:focus,
.formular select:focus,
.formular textarea:focus {
  outline: 2px solid var(--gruen);
  outline-offset: -1px;
  border-color: var(--gruen);
}

.formular textarea {
  min-height: 132px;
  resize: vertical;
}

.formular__falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular__senden {
  justify-self: start;
  min-height: 54px;
  min-width: 200px;
}

.formular__hinweis {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grau);
}

.formular__hinweis a {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .kontakt__gitter {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sprungmarke ---------- */

.sprungmarke {
  position: absolute;
  left: -9999px;
  z-index: 60;
  padding: 14px 22px;
  background: var(--gruen-dunkel);
  color: var(--weiss);
  font-size: 15px;
  font-weight: 600;
}

.sprungmarke:focus {
  left: 12px;
  top: 12px;
}

[id="inhalt"] {
  scroll-margin-top: 110px;
}

.formular__legende {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--grau);
}

.formular__pflicht {
  color: var(--gruen-text);
}

/* ---------- Rechtstexte ---------- */

.rechtstext {
  padding: clamp(48px, 7vw, 90px) 0;
}

.rechtstext .bereich {
  max-width: 760px;
  margin-inline: auto;
}

.rechtstext h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 28px;
}

.rechtstext h2 {
  font-size: 20px;
  margin: 34px 0 12px;
}

.rechtstext h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}

.rechtstext h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.rechtstext p {
  margin-bottom: 14px;
  color: var(--grau);
  line-height: 1.6;
}

.rechtstext ul {
  margin: 0 0 14px 20px;
  padding: 0;
  list-style: disc;
}

.rechtstext li {
  margin-bottom: 8px;
  color: var(--grau);
  line-height: 1.6;
}

.rechtstext a {
  text-decoration: underline;
}

.rechtstext__hinweis {
  padding: 16px 20px;
  background: rgba(1, 114, 51, 0.08);
  color: var(--gruen-text);
  font-weight: 500;
}

/* Verweise auf Facebook und Instagram, im Fuss und auf der Kontaktseite. */
.sozial,
.fuss .sozial {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.sozial a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
}

.sozial a:hover,
.sozial a:focus-visible {
  color: var(--gruen);
}

.fuss .sozial a:hover,
.fuss .sozial a:focus-visible {
  opacity: 0.7;
  color: inherit;
}

.kontakt__folgen {
  margin-top: 28px;
  font-size: 17px;
}

/* Referenzfotos: Kachel als Knopf und Grossansicht darueber. */
.projekt__knopf {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.projekt__knopf picture {
  display: block;
  height: 100%;
}

.projekt__knopf:focus-visible img {
  transform: scale(1.04);
}

body.lupe-offen {
  overflow: hidden;
}

.lupe[hidden] {
  display: none;
}

.lupe {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 16, 13, 0.92);
}

.lupe__flaeche {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.lupe__figur {
  max-width: min(1200px, 100%);
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lupe__bild {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lupe__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.lupe__zaehler {
  color: rgba(255, 255, 255, 0.6);
}

.lupe__knopf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--weiss);
  cursor: pointer;
}

.lupe__knopf:hover,
.lupe__knopf:focus-visible {
  background: var(--gruen);
  border-color: var(--gruen);
}

.lupe__zu {
  top: 20px;
  right: 20px;
}

.lupe__zurueck {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lupe__vor {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .lupe {
    padding: 12px;
  }

  .lupe__bild {
    max-height: calc(100vh - 190px);
  }

  .lupe__zurueck,
  .lupe__vor {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lupe__zurueck {
    left: 50%;
    margin-left: -62px;
  }

  .lupe__vor {
    right: 50%;
    margin-right: -62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projekt__knopf:focus-visible img {
    transform: none;
  }
}

/* ---------- Fuss: Social-Symbole und schmalere Handyfassung ---------- */

/* ".fuss li a" (inline-block mit Innenabstand) hat die runden Knoepfe
   ueberschrieben, das Symbol sass dadurch nicht mittig. */
.fuss .sozial a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-color: var(--grau-hell);
  color: var(--grau);
  transition: color 0.2s, border-color 0.2s;
}

.fuss .sozial a:hover,
.fuss .sozial a:focus-visible {
  opacity: 1;
  color: var(--gruen);
  border-color: var(--gruen);
}

.fuss .sozial svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .fuss {
    padding: 36px 0 24px;
  }

  .fuss__gitter {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .fuss__kontakt,
  .fuss__gitter > div:last-child {
    grid-column: 1 / -1;
  }

  .fuss__logo img {
    max-width: 200px;
    margin-bottom: 14px;
  }

  .fuss h2 {
    margin-bottom: 8px;
  }

  .fuss li a {
    padding: 5px 0;
  }

  /* Rechtliches als eine Zeile statt einer dritten Spalte */
  .fuss__gitter > div:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .fuss__zeile {
    margin-top: 24px;
    padding-top: 14px;
  }
}

/* ---------- Kopf: Aufklappmenue Leistungen ---------- */

.kopf__gruppe {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.kopf__leistungen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.kopf__leistungen svg {
  transition: transform 0.2s ease;
}

.kopf__leistungen:hover,
.kopf__leistungen--aktiv {
  color: var(--gruen);
  font-weight: 600;
}

.kopf__unter {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: -22px;
  z-index: 30;
  min-width: 220px;
  padding: 8px 0;
  background: var(--weiss);
  border-top: 3px solid var(--gruen);
  box-shadow: 0 16px 32px rgba(12, 15, 26, 0.12);
}

.kopf__unter a {
  display: block;
  padding: 11px 22px;
  font-weight: 500;
}

.kopf__unter a:hover,
.kopf__unter a:focus-visible {
  color: var(--gruen);
  background: #f2f7f3;
}

.kopf__gruppe--offen .kopf__unter {
  display: flex;
}

.kopf__gruppe--offen .kopf__leistungen svg {
  transform: rotate(180deg);
}

@media (min-width: 901px) {
  .kopf__gruppe:hover .kopf__unter,
  .kopf__gruppe:focus-within .kopf__unter {
    display: flex;
  }

  .kopf__gruppe:hover .kopf__leistungen svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 900px) {
  .kopf--offen .kopf__gruppe {
    display: block;
  }

  .kopf--offen .kopf__leistungen {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--grau-hell);
    font-size: 17px;
  }

  .kopf--offen .kopf__unter {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    border-top: 0;
    box-shadow: none;
  }

  .kopf--offen .kopf__nav .kopf__unter a {
    padding: 12px 0;
    font-size: 16px;
  }
}

/* ---------- Startseite: Pfeile, Kacheln, Hero-Knoepfe (Feinschliff 11.09.) ---------- */

/* Pfeile buendig an der Innenkante der aeusseren Bilder. Die Spur hat die
   Spalten 1fr 1.55fr 1fr mit zweimal 14px Abstand, eine Seitenspalte ist
   also (100% - 28px) / 3.55 breit. */
.slider__pfeil--zurueck {
  left: calc((100% - 28px) / 3.55 - 76px);
}

.slider__pfeil--vor {
  right: calc((100% - 28px) / 3.55 - 76px);
}

@media (max-width: 1100px) {
  .slider__pfeil {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .slider__pfeil--zurueck {
    left: 0;
  }

  .slider__pfeil--vor {
    right: 0;
  }
}

@media (max-width: 560px) {
  .kachel {
    padding: 16px 16px 18px;
  }

  .kachel__nummer {
    font-size: 34px;
  }

  .kachel__fuss {
    max-width: none;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .hero__aktionen {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero__aktionen .knopf {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-align: center;
  }
}

/* ---------- Ueber uns: Bildpaar auf dem Handy untereinander ---------- */

@media (max-width: 900px) {
  .bildpaar {
    display: grid;
    gap: 10px;
    padding: 0;
  }

  .bildpaar img,
  .bildpaar img.bildpaar__zweites {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
    box-shadow: none;
  }
}

/* ---------- Optische Pruefung 11.09.2026 ---------- */

/* Menue: Logo bleibt beim Oeffnen stehen */
@media (max-width: 900px) {
  .kopf--offen .kopf__innen {
    align-content: flex-start;
  }

  .kopf__logo {
    display: flex;
    align-items: center;
    min-height: 72px;
  }
}

/* Bewertungen: Anfuehrungszeichen naeher an die Sterne */
.bewertung__zeichen {
  height: 24px;
  line-height: 1;
}

.bewertung__sterne {
  margin: 8px 0 10px;
}

.intro h2 {
  line-height: 1.1;
}

/* Startseite: Foto nicht unter der Karte hervorstehen lassen */
.ueber__gitter {
  align-items: end;
}

/* Kontakt: Beschriftung gehoert zum eigenen Wert */
.kontaktliste {
  gap: 0;
}

.kontaktliste dd {
  margin-bottom: 20px;
}

.kontaktliste dd:last-child {
  margin-bottom: 0;
}

.sozial a {
  border-color: var(--grau-hell);
}

.seiten-hero__text {
  text-wrap: balance;
}

.rechtstext h2,
.rechtstext h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Tablet */
@media (min-width: 561px) and (max-width: 900px) {
  .kachel {
    aspect-ratio: 4 / 3;
  }

  .ueber__bild img,
  .karriere__bild img {
    max-height: 420px;
  }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .bewertungen__gitter {
    grid-template-columns: 1fr 1fr;
  }
}

/* Handy */
@media (max-width: 560px) {
  .wendekarte__innen,
  .wendekarte__vorn,
  .wendekarte__hinten {
    min-height: 360px;
  }

  .kontaktweg {
    padding: 18px;
  }

  .kontaktweg strong {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .jobkarte {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jobkarte .knopf {
    grid-column: auto;
  }

  .jobkarte__icon {
    width: 44px;
    height: 44px;
  }

  .jobkarte__icon img {
    width: 24px;
  }

  .nachweis,
  .geraete {
    padding: 20px;
  }

  .nachweis img,
  .geraete img {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }

  .schritt {
    gap: 6px;
  }

  .bereich-karte {
    gap: 10px;
    min-height: 0;
  }

  .bereich-karte__nummer {
    font-size: 34px;
  }

  .galerie__gitter {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Impeccable-Kritik 11.09.2026 */
.stellen__hinweis,
.formular__hinweis {
  max-width: 65ch;
  margin-inline: auto;
}

.formular__hinweis {
  margin-inline: 0;
}

.kontaktliste a {
  color: var(--gruen-text);
  font-weight: 600;
}

/* Handy: schmalerer Kopf, mehr Platz fuer den Inhalt */
@media (max-width: 900px) {
  :root {
    --kopf-hoehe: 72px;
  }

  .kopf__innen {
    min-height: 72px;
  }

  .kopf__logo img {
    height: 52px;
  }
}

/* Auswahl "Anliegen": eigener Pfeil statt Systemoptik */
.formular select {
  appearance: none;
  padding-right: 44px;
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
  cursor: pointer;
}

/* Sprungziele (z. B. #formular) nicht unter dem festen Kopf verstecken */
html {
  scroll-padding-top: calc(var(--kopf-hoehe) + 16px);
}
