/* =========================================================================
   Bühner Baumpflege — Stylesheet
   Referenz-Design: Figma 1440 px. Desktop skaliert vw-basiert (1rem = 1
   Design-px), gedeckelt bei 1728 px und zentriert. Mobile (< 901px): eigener
   Fluss, 16px-Basis. Farben/Schrift exakt nach Figma-Variablen.
   ========================================================================= */

:root {
  --c-blue:   #2f52e0;
  --c-yellow: #f7e733;
  --c-ink:    #000000;
  --c-white:  #ffffff;
  --c-grey:   #c4c4c4;

  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* ---- Marker-Hervorhebung (Text auf schwarzem Balken) ---- */
.mark {
  background: var(--c-ink);
  color: var(--c-yellow);
  display: inline-block;
  /* Die Schrift soll unten auf der Balkenkante aufsitzen.
     Bei line-height 1.0 ist das unmöglich: unter der Grundlinie liegt der
     Unterlängen-Bereich der Schrift (~0.18em), der den Balken nach unten
     aufbläht – auch bei Versalien ohne Unterlänge. Deshalb wird die
     Zeilenhöhe auf 0.7 gekürzt (schneidet oben und unten gleich viel weg)
     und die Höhe oben per Padding wieder aufgebaut. Ergebnis: 0.02em unten,
     0.07em über den Umlautpunkten. Alle Balken sind einzeilig – geprüft. */
  line-height: 0.7;
  padding: 0.39em 0.14em var(--mark-bottom, 0.02em);
}
/* Die Sonderfälle mitziehen – sonst schneidet die kürzere Zeilenhöhe sie
   oben ab. Werte so gewählt, dass der obere Abstand exakt bleibt wie zuvor. */
.mark--sm { padding: 0.20em 0.3em var(--mark-bottom, 0.02em); }

/* ---- Skip-Link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff; padding: 0.6em 1em; z-index: 3000;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   MOBILE-FIRST BASIS (gilt < 901px, wird für Desktop überschrieben)
   ========================================================================= */

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; text-transform: uppercase;
  font-size: 17px; line-height: 1; letter-spacing: 0.01em;
  padding: 16px 26px; border-radius: 999px; border: none;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
/* Doppelte Klasse = höhere Spezifität. Schützt die Button-Schriftfarbe davor,
   von Nachfahren-Regeln wie „.xyz a { color: … }" überschrieben zu werden. */
.btn.btn--blue    { background: var(--c-blue); color: #fff; text-decoration: none; }
.btn.btn--black   { background: var(--c-ink); color: var(--c-yellow); text-decoration: none; }
.btn.btn--outline { background: transparent; color: var(--c-ink); border: 3px solid var(--c-ink); text-decoration: none; }
.btn:hover    { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }

.tel-link { text-decoration: underline; }

.h2 { font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1.0; }
.h2--white { color: #fff; }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: var(--c-blue);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header--overlay { background: transparent; }
.site-header.is-shrunk { background: var(--c-blue); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.header__logo img { width: 60px; height: 60px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer; z-index: 210;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; display: block; border-radius: 2px; }

.site-nav {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  background: var(--c-blue); padding: 90px 26px 26px;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
}
.site-nav.is-open { transform: translateX(0); }
.site-nav ul { display: flex; flex-direction: column; gap: 16px; }
.nav-link { text-decoration: none; }
.nav-link span {
  font-weight: 800; text-transform: uppercase; font-size: 16px;
  color: var(--c-yellow); background: var(--c-ink); padding: 3px 9px 5px; display: inline-block;
  transition: transform 0.18s var(--ease);
}
.nav-link:hover span { transform: scale(1.08); }

/* Abstand für Seiten ohne Hero (fixierter Header) */
.has-fixed-header { padding-top: 84px; }

/* Logo sitzt im Hero auf dem Bild, nicht in der Navigationsleiste */
.hero__logo { position: absolute; z-index: 3; top: 14px; left: 22px; display: block; }
.hero__logo img { width: 84px; height: auto; }
.header__spacer { display: block; width: 0; }

/* ---- Hero ---- */
.hero { position: relative; height: 100vh; height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* Bildausschnitt getrennt für Mobil (--pos-m) und Desktop (--pos-d) steuerbar.
   Beide werden je Seite inline gesetzt. Mobil zählt zuerst (mobile-first). */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 40%); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.12) 62%, rgba(0,0,0,.42) 100%); }
.hero__inner { position: relative; z-index: 2; padding-bottom: 40px; padding-top: 120px; }
.hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero__title .mark { font-size: 40px; font-weight: 800; text-transform: uppercase; }
.hero__cta { margin-top: 22px; }

/* ---- Blaues Band (Intro + Leistungen-Teaser) ---- */
.band-blue { background: var(--c-blue); color: #fff; padding: 44px 0 56px; }
.band-blue__intro { font-weight: 700; font-size: 20px; line-height: 1.28; max-width: 60ch; }
.teaser { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.teaser__left { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.teaser__text { font-weight: 500; font-size: 17px; line-height: 1.63; }

/* ---- Sektionen allgemein ---- */
.section { padding: 56px 0; }

/* ---- Team ---- */
.team__grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
.team-card__photo {
  aspect-ratio: 220 / 274; background: var(--c-grey); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { margin-top: 14px; font-weight: 800; text-transform: uppercase; font-size: 17px; text-align: center; }
.team-card__role { font-weight: 600; font-size: 14px; text-align: center; }
.team__foot { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.team__text { font-weight: 500; font-size: 17px; line-height: 1.63; }

/* ---- Unser Nest ---- */
.nest__inner { display: flex; flex-direction: column; gap: 34px; }
.nest__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nest__img { overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.25); aspect-ratio: 1 / 1; }
.nest__img img { width: 100%; height: 100%; object-fit: cover; }
.nest__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.nest__text .h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nest__text p { font-weight: 500; font-size: 17px; line-height: 1.63; }

/* ---- Leistungen (Bild + Liste) ---- */
.band-blue--slim .band-slim__inner { display: flex; flex-direction: column; gap: 24px; }
.band-slim__cta { align-self: flex-start; }

.leistungen { display: flex; flex-direction: column; }
.leistungen__media { overflow: hidden; aspect-ratio: 1000 / 1499; }
.leistungen__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s var(--ease); }
.leistungen__list { padding: 44px 22px; display: flex; flex-direction: column; gap: 34px; align-items: flex-start; }
.leistungen__list .service:not(:first-child) { border-top: 2px solid #ececf2; padding-top: 34px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.service__title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: pointer; }
.service__title:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 4px; }
.service__panel { display: flex; flex-direction: column; gap: 14px; }
.service:not(.is-open) .service__panel { display: none; }
.service.is-open .service__more { display: none; }
.service__lead { font-weight: 700; font-size: 20px; line-height: 1.28; }
.service__text { font-family: "Mulish", var(--font); font-weight: 600; font-size: 17px; line-height: 1.63; }
.accent { color: var(--c-blue); }
.divider { width: 100%; max-width: 435px; height: auto; margin: 4px 0; }

/* ---- Jobs-Akkordeon ---- */
.jobs { padding: 44px 0; }
.jobs .job:not(:first-child) { border-top: 2px solid #ececf2; padding-top: 34px; margin-top: 34px; }
.job__row { display: flex; flex-direction: column; gap: 16px; }
.job__head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.job__title { cursor: pointer; }
.job__title:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 4px; }
.job__teaser { font-family: "Mulish", var(--font); font-weight: 600; font-size: 19px; line-height: 1.6; }
.job:not(.is-open) .job__detail { display: none; }
.job.is-open .job__more { display: none; }
.job__detail { display: flex; flex-direction: column; gap: 28px; margin-top: 22px; }
.job__detail-left { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.job__detail-left p { font-family: "Mulish", var(--font); font-weight: 600; font-size: 19px; line-height: 1.6; }
.job__detail-left a:not(.btn) { color: var(--c-blue); text-decoration: underline; font-weight: 700; }
.job__detail-right { display: flex; flex-direction: column; gap: 8px; }
.job__subhead { font-weight: 800; text-transform: uppercase; font-size: 18px; }
.job__list { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-family: "Mulish", var(--font); font-weight: 600; font-size: 18px; line-height: 1.55; }
.divider--wide { width: 100%; max-width: none; margin: 26px 0; }

/* ---- Formulare ---- */
.form-section { padding: 32px 0 72px; }
.form-intro { max-width: 760px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.form-intro p { font-family: "Mulish", var(--font); font-weight: 600; font-size: 17px; line-height: 1.6; }
.noscript-hint { border: 3px solid var(--c-ink); border-radius: 14px; padding: 22px 26px; margin-bottom: 30px; font-family: "Mulish", var(--font); font-weight: 600; font-size: 17px; line-height: 1.6; }
.noscript-hint a { color: var(--c-blue); text-decoration: underline; font-weight: 700; }
.form-error { border: 3px solid #d42a2a; background: #fdecec; border-radius: 14px; padding: 20px 24px; margin-bottom: 30px; font-family: "Mulish", var(--font); font-weight: 600; font-size: 16px; line-height: 1.55; }
.form-error a { color: var(--c-blue); text-decoration: underline; font-weight: 700; }
.form { max-width: 760px; display: flex; flex-direction: column; gap: 34px; }
.form__row { display: flex; flex-direction: column; gap: 34px; }
.form__field { display: flex; flex-direction: column; gap: 16px; }
.form__field > label { font-weight: 700; font-size: 15px; }

/* Vertikaler Rhythmus innerhalb einer Etappe. Über Geschwister-Abstände statt
   über display:flex am <fieldset> – das verträgt sich besser mit <legend>.
   WICHTIG: nur direkte Kinder der Etappe. Ohne das „>" greift die Regel auch
   zwischen Vorname und Nachname INNERHALB einer Zeile und verschiebt das
   zweite Feld nach unten. */
.step > .form__row + .form__row,
.step > .form__row + .form__field,
.step > .form__field + .form__field,
.step > .form__field + .form__row { margin-top: 30px; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  font-family: var(--font); font-size: 16px; padding: 14px 16px; width: 100%;
  border: 2px solid var(--c-ink); border-radius: 4px; background: #fff; color: var(--c-ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: none; }
/* Einwilligung: eigenständige Box, Checkbox in Markenfarbe */
.form__field--check { border: none; background: none; padding: 0; }
.form__field--check label {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  font-family: "Mulish", var(--font); font-weight: 600; font-size: 15px; line-height: 1.5;
}
.form__field--check input[type="checkbox"] {
  flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; padding: 0;
  accent-color: var(--c-yellow); cursor: pointer; border-radius: 0;
}
/* Der gesamte Begleittext ist EIN Flex-Element und fließt normal weiter –
   sonst würde jedes Wort und der Link zu einer eigenen Spalte. */
.form__field--check .check-text { flex: 1 1 auto; min-width: 0; }
.form__field--check .check-text a { color: var(--c-blue); text-decoration: underline; }

.form__hp { position: absolute; left: -9999px; }
.form .btn { align-self: flex-start; }


/* Dropdowns im Marken-Stil */
.form select, .wizard__form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--font); font-weight: 700; color: var(--c-ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%232f52e0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 15px 10px;
  padding-right: 48px; cursor: pointer;
}
.form select:hover, .wizard__form select:hover { border-color: var(--c-blue); }
.form select:focus, .wizard__form select:focus {
  border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(47, 82, 224, 0.15);
}
.form select option, .wizard__form select option { font-weight: 600; color: var(--c-ink); }
.form input:focus, .form textarea:focus,
.wizard__form input:focus, .wizard__form textarea:focus {
  box-shadow: 0 0 0 3px rgba(47, 82, 224, 0.15);
}

/* ---- Eigenes Dropdown (Optionsliste im Marken-Stil) ----
   Das native <select> bleibt im DOM (Versand + Funktion ohne JS),
   wird aber optisch ersetzt, weil Browser die Optionsliste selbst zeichnen. */
.select-ui { position: relative; width: 100%; }
.select-ui__native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.select-ui__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--c-ink);
  background: #fff; border: 2px solid var(--c-ink); border-radius: 4px;
  padding: 14px 16px; min-height: 54px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.select-ui__trigger:hover { background: #f4f4f6; }
.select-ui__trigger:focus-visible,
.select-ui.is-open .select-ui__trigger { outline: none; border-color: var(--c-ink); box-shadow: none; }
.select-ui__trigger[data-placeholder="true"] { color: #8890a8; font-weight: 600; }
.select-ui__arrow { flex: 0 0 auto; width: 15px; height: 10px; transition: transform 0.2s var(--ease); }
.select-ui.is-open .select-ui__arrow { transform: rotate(180deg); }

.select-ui__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 300;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 2px solid var(--c-ink); border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.select-ui.is-open .select-ui__list { opacity: 1; visibility: visible; transform: none; }
.select-ui__option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: 2px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--c-ink);
}
.select-ui__option:hover,
.select-ui__option.is-active { background: #f2f2f4; }
.select-ui__option[aria-selected="true"] {
  background: var(--c-ink); color: var(--c-yellow); font-weight: 800;
}
.select-ui__option[aria-selected="true"]::after { content: "\2713"; font-weight: 800; }

/* ---- Vollbild-Abschlussbild ---- */
.fullbleed-image img { width: 100%; height: auto; display: block; }
.btn--outline-white { background: transparent; color: #fff; border: 3px solid #fff; }

/* ---- Über uns ---- */
.hero-flat { background: var(--c-blue); color: #fff; padding: 108px 0 44px; }
.hero-flat__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-flat .hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-flat .hero__title .mark { font-size: 40px; font-weight: 800; text-transform: uppercase; }
.hero-flat__text { font-weight: 500; font-size: 18px; line-height: 1.4; max-width: 640px; }
.ueber-images { display: flex; flex-direction: column; }
.ueber-images__item { aspect-ratio: 4 / 5; overflow: hidden; }
.ueber-images__item:nth-child(2) img { object-position: center 18%; }
.ueber-images__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ueber-story__grid { display: flex; flex-direction: column; gap: 40px; }
.ueber-col { display: flex; flex-direction: column; gap: 18px; }
.ueber-col__text { font-family: "Mulish", var(--font); font-weight: 600; font-size: 17px; line-height: 1.63; text-align: center; }
.ueber-col__caption { text-align: center; display: flex; flex-direction: column; gap: 3px; }
.ueber-col__name { font-weight: 800; text-transform: uppercase; font-size: 16px; }
.ueber-col__year { font-weight: 700; font-size: 13px; }
.ueber-cta__grid { display: flex; flex-direction: column; gap: 26px; }
.ueber-cta__left { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
/* Zwei Marker-Zeilen untereinander, sonst steht "Geschichte" in derselben Zeile */
.ueber-cta__left .h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ueber-cta__text { font-family: "Mulish", var(--font); font-weight: 600; font-size: 20px; line-height: 1.6; }

/* ---- Rechtstexte (Impressum, Datenschutz, AGB) ---- */
.legal { padding: 40px 0 80px; }
.legal__inner { max-width: 860px; }
.legal .h2 { margin-bottom: 28px; }
.legal h2 { font-family: var(--font); font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.3; margin: 34px 0 10px; }
.legal h3 { font-family: var(--font); font-weight: 700; font-size: 17px; margin: 22px 0 6px; }
.legal p { font-family: "Mulish", var(--font); font-weight: 500; font-size: 16px; line-height: 1.7; margin: 0 0 14px; color: #222; }
.legal a:not(.btn) { color: var(--c-blue); }

/* ---- Bewerbungs-Wizard (Gamification) ---- */
.wizard { max-width: 760px; margin-inline: auto; }
.wizard__head { margin-bottom: 30px; }
.wizard__meta { display: flex; justify-content: space-between; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.03em; margin-bottom: 10px; }
.wizard__points { color: var(--c-blue); }
.wizard__bar { height: 12px; background: #e7eaf5; border-radius: 999px; overflow: hidden; }
.wizard__bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-blue), #5b78ff); border-radius: 999px; transition: width 0.5s var(--ease); }
.wizard__dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.wizard__dot { flex: 1; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #eef1f9; color: #9aa1b8; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.wizard__dot.is-active { background: var(--c-yellow); color: #000; }
.wizard__dot.is-done { background: var(--c-blue); color: #fff; }
.wizard__hint { margin-top: 14px; font-family: "Mulish", var(--font); font-weight: 600; font-size: 15px; color: #333; }

.step { border: none; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step__title .mark { font-size: 30px; font-weight: 800; text-transform: uppercase; display: inline-block; margin-bottom: 30px; }
.step__lead { font-family: "Mulish", var(--font); font-weight: 600; font-size: 16px; color: #555; margin: 20px 0 40px; }
.field-label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 14px; }
.field-note { font-family: "Mulish", var(--font); font-weight: 600; font-size: 14px; color: #555; margin-top: 12px; }
.label-optional { font-weight: 600; color: #888; }

.wizard__form input:not([type="checkbox"]):not([type="radio"]), .wizard__form select, .wizard__form textarea {
  font-family: var(--font); font-size: 16px; padding: 14px 16px; width: 100%;
  border: 2px solid var(--c-ink); border-radius: 4px; background: #fff; color: var(--c-ink);
}
.wizard__form input:focus, .wizard__form select:focus, .wizard__form textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: none; }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box { display: block; border: 2px solid var(--c-ink); border-radius: 4px; padding: 20px 22px; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.choice__title { display: block; font-weight: 800; text-transform: uppercase; font-size: 17px; }
.choice__sub { display: block; font-family: "Mulish", var(--font); font-weight: 600; font-size: 14px; color: #666; margin-top: 4px; }
.choice__box:hover { background: #f4f4f6; }
.choice input:checked + .choice__box { background: var(--c-ink); }
.choice input:checked + .choice__box .choice__title { color: var(--c-yellow); }
.choice input:checked + .choice__box .choice__sub { color: #d8d8dd; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--c-ink); outline-offset: 3px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; border: 2px solid var(--c-ink); border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.chip span:hover { border-color: var(--c-ink); }
.chip input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--c-ink); outline-offset: 3px; }

.summary { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; border: 2px solid #eef1f9; border-radius: 14px; padding: 18px 20px; }
.summary__row { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 4px 16px; align-items: baseline; }
.summary__k { font-weight: 800; text-transform: uppercase; font-size: 12px; color: #8890a8; letter-spacing: 0.03em; }
.summary__v { font-family: "Mulish", var(--font); font-weight: 600; font-size: 15px; color: var(--c-ink); }
.summary__edit { background: none; border: none; color: var(--c-blue); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; padding: 2px 4px; }
.summary__edit:hover { text-decoration: underline; }
.summary__edit:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }

/* Fehlermeldungen direkt am Feld */
.field-error { color: #d42a2a; font-size: 14px; font-weight: 700; margin-top: 6px; }
.wizard__form .has-error, .form .has-error { border-color: #d42a2a; }

@media (max-width: 560px) {
  .summary__row { grid-template-columns: 1fr auto; }
  .summary__k { grid-column: 1 / -1; }
}
.wizard__cheer { font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.03em; color: var(--c-blue); margin-top: 6px; }

.wizard__nav { display: flex; gap: 20px; margin-top: 50px; align-items: center; }
.wizard__nav .btn[hidden] { display: none; }
/* Formular-Buttons bewusst kleiner als die Hero-Buttons */
.wizard__nav .btn { font-size: 15px; padding: 13px 24px; min-height: 0; }
.wizard__nav .btn--outline { border-width: 2px; }
[data-next], [data-submit] { margin-left: auto; }

.wizard__toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); z-index: 500; }
.wizard__toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.slide-in { animation: wizSlide 0.45s var(--ease); }
@keyframes wizSlide { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.shake { animation: wizShake 0.4s; }
@keyframes wizShake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 50% { transform: translateX(-6px); } }

@media (min-width: 640px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .step__title .mark { font-size: 38px; }
}

/* ---- Footer ---- */
.site-footer { background: var(--c-blue); color: #fff; padding: 40px 0 22px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr; gap: 26px; }
.site-footer__logo img { width: 90px; height: auto; }
.site-footer__contact { font-style: normal; font-weight: 700; font-size: 17px; line-height: 1.4; display: flex; flex-direction: column; gap: 8px; }
.site-footer__contact a { text-decoration: none; }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer__nav a { text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.site-footer__social { display: flex; gap: 16px; }
.site-footer__social a { color: #fff; }
.site-footer__bottom { margin-top: 26px; font-weight: 800; text-transform: uppercase; font-size: 14px; }

/* =========================================================================
   MOTION
   ========================================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Bild-Zoom bei Hover (Karten & Galerien) */
.team-card__photo, .nest__img, .ueber-images__item, .fullbleed-image, .leistungen__media { overflow: hidden; }
.team-card__photo img, .nest__img img, .ueber-images__item img, .fullbleed-image img {
  transition: transform 0.6s var(--ease);
}
.team-card:hover .team-card__photo img,
.nest__img:hover img,
.ueber-images__item:hover img,
.fullbleed-image:hover img { transform: scale(1.05); }

/* Marker leichte Hover-Betonung bei Links */
a .mark { transition: filter 0.2s var(--ease); }
a:hover .mark { filter: brightness(1.08); }

/* Sanfter Ken-Burns im Hero */
.hero__media img { animation: heroZoom 26s ease-in-out 0.4s infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.035); } }

/* Buttons: dezenter Press-Effekt */
.btn:active { transform: translateY(0) scale(0.98); }

.site-loader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: var(--c-blue); transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.site-loader.is-done { opacity: 0; visibility: hidden; }
.site-loader__stage { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; width: 180px; height: 180px; }
.loader-ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ldRing 1.2s var(--ease) forwards; }
@keyframes ldRing { to { stroke-dashoffset: 0; } }

/* Echtes Logo wächst von unten nach oben auf */
.loader-real {
  position: relative; width: 142px; height: 142px;
  clip-path: inset(100% 0 0 0);
  animation: ldGrow 0.9s var(--ease) 0.25s forwards, ldSettle 0.35s var(--ease) 1.2s;
}
@keyframes ldGrow { to { clip-path: inset(0 0 0 0); } }
@keyframes ldSettle { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Scroll-Fortschritt oben */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; pointer-events: none; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--c-yellow); transition: width 0.1s linear; }

/* =========================================================================
   DESKTOP (>= 901px) — vw-Skalierung, 1rem = 1 Design-px, Cap bei 1728px
   ========================================================================= */
@media (min-width: 901px) {
  html { font-size: calc(min(100vw, 1728px) / 1440); }

  /* WICHTIG: html steht durch die Skalierung auf ~1px. Ohne eigene Größe auf
     body würde jedes Element ohne font-size unsichtbar klein erben. */
  body { font-size: 18rem; }

  .container { max-width: 1440rem; padding-inline: 88rem; }

  /* Buttons (Figma: 61px hoch, radius 39, ExtraBold 25) */
  .btn { font-size: 25rem; padding: 18rem 34rem; border-radius: 39rem; min-height: 61rem; }
  .btn--outline { border-width: 3rem; }

  .h2 { font-size: 48rem; }

  /* ---- Header ---- */
  .header__inner { padding-block: 34rem; }
  .site-header.is-shrunk .header__inner { padding-block: 14rem; }
  .header__logo img { width: 112rem; height: 112rem; transition: width .3s var(--ease), height .3s var(--ease); }
  .site-header.is-shrunk .header__logo img { width: 76rem; height: 76rem; }

  .has-fixed-header { padding-top: 180rem; }

  .nav-toggle { display: none; }
  .site-nav {
    position: static; width: auto; flex-direction: row; align-items: center; gap: 40rem;
    background: none; padding: 0; transform: none;
  }
  .site-nav ul { flex-direction: row; gap: 40rem; }
  .nav-link span { font-size: 16rem; padding: 1rem 4rem; }

  /* ---- Hero ---- */
  /* Höhe an die BREITE gekoppelt → Seitenverhältnis bleibt beim Resizen konstant */
  /* Höher = weniger Beschnitt = Motiv wirkt herausgezoomt, Personen kleiner */
  .hero { min-height: 0; height: 100vh; height: 100dvh; max-height: none; align-items: flex-end; }
  /* Logo im Hero: 20 % größer als zuvor (112 → 134) */
  .hero__logo { top: 52rem; left: 78rem; }
  .hero__logo img { width: 134rem; }
  .hero__media img { object-position: var(--pos-d, center 32%); }
  .hero__inner { padding-bottom: clamp(40px, 4.5vw, 90px); padding-top: 0; }
  .hero__title { gap: 8rem; }
  .hero__title .mark { font-size: 92rem; padding: 0.17em 0.1em var(--mark-bottom, 0.02em); }
  .hero__cta { margin-top: 36rem; }
  .hero__cta.btn--blue { min-height: 61rem; font-size: 25rem; padding: 18rem 40rem; }

  /* ---- Blaues Band ---- */
  .band-blue { padding: 0; }
  .band-blue .container { padding-block: 62rem 145rem; }
  .band-blue__intro { font-size: 24rem; line-height: 1.28; max-width: 945rem; }
  .teaser { margin-top: 140rem; flex-direction: row; justify-content: space-between; gap: 84rem; align-items: flex-start; }
  .teaser__left { gap: 34rem; }
  .teaser__left .h2 { line-height: 1.0; }
  .teaser__text { font-size: 18rem; width: 565rem; flex: 0 0 565rem; }
  .btn--black { font-size: 23rem; }

  /* ---- Team ---- */
  .team.section { padding: 195rem 0 120rem; }
  .team > .container > .h2 { margin-left: -6rem; }
  .team__grid { margin-top: 110rem; grid-template-columns: repeat(5, 220rem); justify-content: space-between; gap: 0; }
  .team-card__photo { aspect-ratio: 220 / 274; }
  .team-card__name { margin-top: 24rem; font-size: 20rem; }
  .team-card__role { font-size: 15rem; margin-top: 2rem; }
  .team__foot { margin-top: 110rem; flex-direction: row; align-items: flex-start; gap: 60rem; }
  .team__foot .btn { flex: 0 0 auto; }
  .team__text { font-size: 18rem; width: 742rem; }

  /* ---- Unser Nest ---- */
  .nest.section { padding: 120rem 0 276rem; }
  .nest__inner { flex-direction: row; justify-content: space-between; gap: 90rem; align-items: flex-start; }
  .nest__gallery { display: flex; flex-wrap: wrap; gap: 26rem 22rem; width: 675rem; flex: 0 0 675rem; }
  .nest__img { aspect-ratio: auto; height: 302rem; }
  .nest__img--1 { width: 244rem; }
  .nest__img--2 { width: 407rem; }
  .nest__img--3 { width: 409rem; order: 3; }
  .nest__img--4 { width: 244rem; order: 4; }
  .nest__text { gap: 30rem; padding-top: 48rem; max-width: 484rem; }
  .nest__text .h2 { gap: 6rem; }
  .nest__text p { font-size: 18rem; }

  /* ---- Leistungen (Bild + Liste) ---- */
  /* Blaues Band: zweispaltiges Grid, KEINE feste Höhe.
     Die Höhe ergibt sich aus dem Inhalt + gleichem Innenabstand oben/unten —
     dadurch kann keine tote Fläche entstehen, egal wie der Text umbricht.
     Textspalte 665rem wie im Entwurf, Button-Spalte so breit wie nötig.
     Spezifität muss .band-blue--slim .band-slim__inner erreichen. */
  /* ACHTUNG: .container und .band-slim__inner sind DASSELBE Element.
     Niemals die Kurzform `padding` verwenden – sie löscht das seitliche
     Container-Padding mit. Nur padding-block setzen. */
  .band-blue--slim .band-slim__inner {
    display: grid;
    grid-template-columns: minmax(0, 665rem) auto;
    justify-content: space-between;
    align-items: center;
    column-gap: 60rem;
    min-height: 0;
    padding-block: 96rem;
  }
  .band-blue--slim .band-slim__inner .band-blue__intro {
    grid-column: 1; width: auto; max-width: none; margin: 0;
  }
  .band-blue--slim .band-slim__cta {
    grid-column: 2; justify-self: end; align-self: center; margin: 0;
  }

  /* Zweites Band: Button links, Text rechts – nur die Spalten tauschen */
  .band-blue--slim .band-slim__inner--rev { grid-template-columns: auto minmax(0, 665rem); }
  .band-blue--slim .band-slim__inner--rev .band-slim__cta { grid-column: 1; justify-self: start; }
  .band-blue--slim .band-slim__inner--rev .band-blue__intro { grid-column: 2; }

  .leistungen { flex-direction: row; align-items: flex-start; gap: 0; }
  .leistungen__media { width: 774rem; flex: 0 0 774rem; height: 1532rem; overflow: hidden; box-shadow: 0 4px 16rem rgba(0,0,0,.25); }
  .leistungen__media img { width: 100%; height: 100%; object-fit: cover; }
  .leistungen__list { flex: 1; padding: 150rem 88rem 80rem 106rem; gap: 50rem; }
  .leistungen__list .service:not(:first-child) { border-top: 2rem solid #ececf2; padding-top: 50rem; }
  .service { gap: 30rem; }
  .service__panel { gap: 22rem; }
  .service__lead { font-size: 24rem; line-height: 1.28; width: 488rem; }
  .service__text { font-size: 18rem; width: 488rem; }
  .divider { width: 435rem; max-width: none; margin: 44rem 0; }

  /* ---- Jobs-Akkordeon ---- */
  .jobs { padding: 96rem 0; }
  .jobs .job:not(:first-child) { border-top: 2rem solid #ececf2; padding-top: 56rem; margin-top: 56rem; }
  .job__row { flex-direction: row; justify-content: space-between; gap: 60rem; align-items: flex-start; }
  .job__head { flex: 0 0 430rem; width: 430rem; gap: 30rem; }
  .job__teaser { flex: 1; max-width: 520rem; font-size: 22rem; line-height: 1.55; padding-top: 6rem; }
  .job__detail { flex-direction: row; justify-content: space-between; gap: 60rem; margin-top: 14rem; }
  .job__detail-left { flex: 0 0 430rem; width: 430rem; gap: 26rem; }
  .job__detail-left p { font-size: 22rem; line-height: 1.55; }
  .job__detail-right { flex: 1; max-width: 490rem; gap: 10rem; }
  .job__subhead { font-size: 19rem; }
  .job__list { font-size: 19rem; gap: 10rem; margin-bottom: 18rem; }
  .divider--wide { margin: 48rem 0; }

  /* ---- Formulare (feste px, damit Eingaben nicht mitskalieren) ---- */
  .form-section { padding: 40rem 0 120rem; }
  .form__row { flex-direction: row; gap: 30rem; }
  .form__row .form__field { flex: 1; }

  /* Formular skaliert auf großen Bildschirmen mit – sonst kleben die
     Beschriftungen an den Feldern, während die Schrift mitwächst. */
  .form__field { gap: 16rem; }
  .form__field > label,
  .field-label { font-size: 17rem; }
  .field-label { margin-bottom: 16rem; }
  .step > .form__row + .form__row,
  .step > .form__row + .form__field,
  .step > .form__field + .form__field,
  .step > .form__field + .form__row { margin-top: 36rem; }
  /* Felder einer Zeile stehen bündig nebeneinander */
  .form__row > .form__field { margin-top: 0; }
  .form__row { align-items: flex-start; }

  .field-note { font-size: 15rem; margin-top: 14rem; }
  /* Datenschutz-Häkchen skaliert mit (sonst wirkt die Zeile verrutscht) */
  .form__field--check label { font-size: 17rem; gap: 16rem; line-height: 1.5; align-items: flex-start; }
  .form__field--check input[type="checkbox"] { width: 24rem; height: 24rem; margin-top: 2rem; }

  /* Weiter/Zurück deutlich kleiner als die Hero-Buttons */
  .wizard__nav .btn { font-size: 17rem; padding: 15rem 32rem; min-height: 50rem; }
  .wizard__nav .btn--outline { border-width: 2rem; }
  .wizard__nav { gap: 20rem; margin-top: 56rem; }

  /* ---- Abschlussbild ---- */
  .fullbleed-image img { height: clamp(300px, 32vw, 580px); object-fit: cover; object-position: center 18%; }
  .btn--outline-white { border-width: 3rem; }

  /* ---- Über uns ---- */
  .hero-flat { padding: 200rem 0 96rem; }
  .hero-flat__inner { gap: 40rem; }
  .hero-flat .hero__title { gap: 22rem; }
  .hero-flat .hero__title .mark { font-size: 84rem; }
  .hero-flat__text { font-size: 24rem; line-height: 1.4; max-width: 660rem; }
  .ueber-images { flex-direction: row; }
  .ueber-images__item { flex: 1; aspect-ratio: 5 / 4; height: auto; overflow: hidden; }
  .ueber-images__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .ueber-images__item:nth-child(2) img { object-position: center 18%; }
  .ueber-story.section { padding: 64rem 0 40rem; }
  .ueber-story__grid { flex-direction: row; gap: 120rem; }
  .ueber-col { flex: 1; }
  .ueber-col__text { font-size: 18rem; }
  .ueber-col__name { font-size: 20rem; }
  .ueber-col__year { font-size: 15rem; }
  .ueber-cta.section { padding: 40rem 0 120rem; }
  .ueber-cta__grid { flex-direction: row; justify-content: space-between; gap: 80rem; align-items: flex-start; }
  .ueber-cta__left { flex: 0 0 auto; gap: 34rem; }
  .ueber-cta__text { font-size: 23rem; line-height: 1.55; width: 620rem; padding-top: 6rem; }

  /* ---- Footer ---- */
  .site-footer { padding: 72rem 0 40rem; height: auto; display: block; position: static; }
  .site-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0 70rem;
    align-items: center;
  }
  .site-footer__logo img { width: 112rem; height: auto; }
  .site-footer__contact { font-size: 18rem; gap: 16rem; }
  .site-footer__nav ul { gap: 8rem; }
  .site-footer__nav a { font-size: 16rem; }
  .site-footer__social { position: static; gap: 20rem; justify-self: end; align-items: center; }
  .site-footer__social svg { width: 46rem; height: 46rem; }
  .site-footer__bottom { position: static; margin-top: 48rem; font-size: 16rem; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-loader { display: none !important; }
}
