/* ==========================================================================
   Rott reinigt. — Designsystem „Glasklar“
   Das Foto ist die Bühne. Viel Luft, feine Linien, leise große Typografie.
   Farbe kommt aus dem Bild, Azur nur als Fingerzeig.
   Typo: Albert Sans solo, leichte Schnitte.
   ========================================================================== */

:root {
  --ink: oklch(0.25 0.028 235);
  --ink-soft: oklch(0.45 0.022 240);
  --hair: oklch(0.885 0.008 240);
  --paper: #fff;
  --azur: oklch(0.49 0.115 247);
  --azur-deep: oklch(0.40 0.10 249);
  --error: oklch(0.46 0.18 27);
  --section: clamp(5rem, 11vw, 9.5rem);
  --anchor-offset: 6.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 100;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Fixierter Header (ca. 5rem) plus Luft: Ankerüberschriften bleiben sichtbar. */
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Albert Sans", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 1.0625rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.08; text-wrap: balance; letter-spacing: -0.015em; }

.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 0.8rem 1.2rem; font-weight: 600; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--azur); outline-offset: 3px; }
.over-photo :focus-visible { outline-color: #fff; }

.wrap {
  max-width: 72rem; margin-inline: auto;
  padding-left: max(clamp(1.25rem, 4.5vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 4.5vw, 3rem), env(safe-area-inset-right));
}

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  color: #fff;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-head:not(.is-scrolled):not(.site-head--solid) { text-shadow: 0 1px 2px oklch(0.2 0.03 235 / 0.45), 0 2px 14px oklch(0.2 0.03 235 / 0.4); }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 40px; height: 34px; object-fit: contain; }
.brand .logo-dark { display: none; }
.brand b { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 0.94rem; padding: 0.65rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current] { border-bottom-color: currentColor; }

/* Jobs führt als einziger Punkt auf eine eigene Seite: Haarlinie trennt ihn von den Ankern */
.nav a.nav-page { position: relative; margin-left: clamp(1rem, 2.5vw, 2.2rem); }
.nav a.nav-page::before {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(-1 * clamp(1rem, 2.5vw, 2.2rem));
  width: 1px; height: 1.2em;
  background: color-mix(in oklab, currentColor 40%, transparent);
}

.site-head.is-scrolled, .site-head--solid {
  background: oklch(1 0 0 / 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hair);
  text-shadow: none;
}
.site-head.is-scrolled .logo-light, .site-head--solid .logo-light { display: none; }
.site-head.is-scrolled .logo-dark, .site-head--solid .logo-dark { display: block; }
.site-head.is-scrolled :focus-visible, .site-head--solid :focus-visible { outline-color: var(--azur); }

/* Kopfzeilen-Telefon: für die anruf-affine Kernzielgruppe immer einen Blick entfernt */
.head-end { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.head-tel {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.95rem;
  border: 1px solid currentColor; text-decoration: none;
  font-size: 0.92rem; font-weight: 550; letter-spacing: 0.01em;
  white-space: nowrap; color: inherit;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.head-tel svg { width: 17px; height: 17px; flex: none; }
.site-head:not(.is-scrolled):not(.site-head--solid) .head-tel { border-color: oklch(1 0 0 / 0.55); }
.site-head:not(.is-scrolled):not(.site-head--solid) .head-tel:hover { background: #fff; color: var(--ink); border-color: #fff; text-shadow: none; }
.site-head.is-scrolled .head-tel, .site-head--solid .head-tel { border-color: oklch(0.72 0.015 240); }
.site-head.is-scrolled .head-tel:hover, .site-head--solid .head-tel:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 600px) {
  .brand b { display: none; } /* Logo bleibt, Nummer gewinnt den Platz */
}
@media (max-width: 400px) {
  .head-tel { padding-inline: 0.7rem; font-size: 0.88rem; }
}
@media (max-width: 360px) {
  .head-tel { padding-inline: 0.55rem; font-size: 0.85rem; gap: 0.4rem; }
  .site-head__row { gap: 0.75rem; }
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 0; background: transparent; cursor: pointer; place-items: center; color: inherit; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .x { display: none; }
.nav-open .nav-toggle .x { display: block; }
.nav-open .nav-toggle .burger { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  html.nav-open, html.nav-open body { overflow: hidden; } /* Seite hinter dem Overlay nicht scrollbar */
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 1rem;
    background: var(--ink); color: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-out); }
  .nav a { font-size: 1.6rem; font-weight: 300; letter-spacing: 0; }
  /* Im Overlay: Trenner als kurze horizontale Linie über dem Jobs-Punkt */
  .nav a.nav-page { margin-left: 0; margin-top: 1.5rem; }
  .nav a.nav-page::before {
    left: 50%; top: -0.85rem; transform: translateX(-50%);
    width: 2.5rem; height: 1px;
  }
  /* backdrop-filter muss weg: als Filter macht er den Header zum Containing Block
     des fixierten Overlays – das Menü würde sonst nur die Headerbox füllen */
  .nav-open .site-head { color: #fff !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav-open .site-head .logo-dark { display: none !important; }
  .nav-open .site-head .logo-light { display: block !important; }
}

/* ---------- Buttons & Textlinks ---------- */
.btn {
  display: inline-block; padding: 0.95rem 1.9rem;
  font: 500 0.98rem/1.2 "Albert Sans", sans-serif; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  text-shadow: none; /* erbt sonst den Foto-Schatten des Heros */
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: oklch(0.92 0.01 240); }
.btn--ghost { border-color: oklch(1 0 0 / 0.65); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--azur-deep); }
.btn:active { transform: translateY(1px); }

/* Touch: aktives Feedback statt Hover-Abhängigkeit */
@media (pointer: coarse) {
  .irow:active .arr { background: var(--azur); border-color: var(--azur); color: #fff; }
  .irow:active h3 { color: var(--azur); }
  .head-tel:active, .tlink:active { opacity: 0.7; }
}

.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--azur-deep); font-weight: 550; text-decoration: none; font-size: 1.02rem;
  padding: 0.75rem 0.25rem; margin-block: 0.65rem -0.35rem;
}
.tlink svg { width: 17px; height: 17px; transition: translate 0.2s var(--ease-out); }
.tlink:hover { text-decoration: underline; text-underline-offset: 5px; }
.tlink:hover svg { translate: 4px 0; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  /* Hochkant-Crop: Ausschnitt nach rechts, damit der Wischer sichtbar bleibt */
  .hero__bg img { object-position: 74% 50%; }
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.2 0.03 235 / 0.58), oklch(0.2 0.03 235 / 0.22) 38%, transparent 55%),
    linear-gradient(to top, oklch(0.18 0.03 235 / 0.82), oklch(0.18 0.03 235 / 0.42) 55%, oklch(0.18 0.03 235 / 0.08) 80%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: kenburns 9s var(--ease-out) both; }
  @keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
}
.hero__content {
  position: relative; padding-block: clamp(6rem, 12vh, 9rem) clamp(3rem, 8vh, 5.5rem); max-width: 62rem;
  text-shadow: 0 1px 2px oklch(0.2 0.03 235 / 0.4), 0 2px 22px oklch(0.2 0.03 235 / 0.38);
}
.hero h1 .display {
  display: block; font-size: clamp(3rem, 8.5vw, 5.9rem); font-weight: 250; letter-spacing: -0.025em;
}
.hero h1 .display b { font-weight: 550; }
.hero h1 .sub {
  display: block; margin-top: 1.2rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400; line-height: 1.5; max-width: 44ch; color: oklch(0.97 0.005 240);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero__meta {
  position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.4rem;
  border-top: 1px solid oklch(1 0 0 / 0.35);
  list-style: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
}
.hero__meta li { padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid oklch(1 0 0 / 0.35); }
.hero__meta li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
@media (max-width: 640px) {
  /* Beim Umbruch hängen sonst Trennstriche am Zeilenende: freie Zeilen ohne Striche */
  .hero__meta { gap: 0.85rem 1.6rem; }
  .hero__meta li { border-right: none; padding-right: 0; margin-right: 0; white-space: nowrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: heroRise 0.9s var(--ease-out) 0.15s both; }
  .hero__content > *:nth-child(2) { animation-delay: 0.3s; }
  .hero__content > *:nth-child(3) { animation-delay: 0.45s; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sektionen ---------- */
section { padding-block: var(--section); }

.intro { text-align: center; }
.intro p.big {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 300; line-height: 1.42;
  letter-spacing: -0.01em; max-width: 34ch; margin-inline: auto; text-wrap: balance;
}
.intro p.big b { font-weight: 550; }

.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.sec-head .lede { margin-top: 1rem; color: var(--ink-soft); max-width: 52ch; }

/* Auf breiten bzw. herausgezoomten Ansichten den Leistungsblock tiefer im
   Viewport beginnen lassen, damit das folgende Bildband nicht hineinragt. */
@media (min-width: 900px) {
  #leistungen { scroll-margin-top: clamp(0rem, calc(100vh - 75rem), 15rem); }
}

/* Leistungen: Index-Liste */
.index { margin-top: clamp(2.5rem, 6vw, 4rem); }
.irow {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 44px;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-top: 1px solid var(--hair);
  text-decoration: none;
}
.irow:last-of-type { border-bottom: 1px solid var(--hair); }
.irow h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 300; letter-spacing: -0.01em;
  transition: color 0.22s var(--ease-out);
}
.irow p { color: var(--ink-soft); font-size: 1rem; max-width: 48ch; }
.irow .arr {
  width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.irow .arr svg { width: 18px; height: 18px; }
.irow:hover h3, .irow:focus-visible h3 { color: var(--azur); }
.irow:hover .arr, .irow:focus-visible .arr { background: var(--azur); border-color: var(--azur); color: #fff; }
@media (max-width: 760px) {
  .irow { grid-template-columns: 1fr 44px; gap: 0.85rem 1rem; }
  .irow h3 { grid-row: 1; grid-column: 1; }
  .irow .arr { grid-row: 1; grid-column: 2; } /* Pfeilkreis neben den Titel statt verwaist unter den Text */
  .irow p { grid-column: 1 / -1; }
}

.sonder { margin-top: clamp(3rem, 7vw, 5rem); text-align: center; }
.sonder h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 400; }
.sonder p { color: var(--ink-soft); max-width: 58ch; margin: 0.9rem auto 0; text-wrap: pretty; }

/* ---------- Bildband ---------- */
.band { position: relative; height: clamp(300px, 52vh, 480px); overflow: clip; display: grid; place-items: center; }
.band--slim { height: clamp(240px, 38vh, 360px); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band::after { content: ""; position: absolute; inset: 0; background: oklch(0.2 0.03 235 / 0.5); }
.band p {
  position: relative; z-index: 1; color: #fff; text-align: center;
  font-size: clamp(1.7rem, 4.5vw, 3.2rem); font-weight: 250; letter-spacing: 0.01em;
  line-height: 1.25;
  padding-inline: 1.5rem; text-wrap: balance;
  text-shadow: 0 1px 2px oklch(0.2 0.03 235 / 0.4), 0 2px 22px oklch(0.2 0.03 235 / 0.38);
}
.band p b { font-weight: 550; }

/* ---------- Team ---------- */
.team-sec { text-align: center; }
.team-sec h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.team-sec .lede { margin: 1rem auto 0; color: var(--ink-soft); max-width: 54ch; }
.team { display: flex; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4rem); flex-wrap: wrap; }
.team figure { width: clamp(180px, 22vw, 240px); }
.team .pic { overflow: clip; }
.team img {
  width: 100%; aspect-ratio: 3 / 3.7; object-fit: cover; object-position: top;
  transition: transform 0.45s var(--ease-out);
}
.team figure:hover img { transform: scale(1.035); }
@media (max-width: 560px) {
  /* Kompakte Dreierreihe statt gestapelter Großporträts: spart Scrollweg */
  .team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
  .team figure { width: auto; }
  .team figcaption { font-size: 0.8rem; margin-top: 0.6rem; }
  .team figcaption b { font-size: 0.92rem; }
}
.team figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }
.team figcaption b { display: block; font-weight: 550; color: var(--ink); font-size: 1.05rem; }
.team-claim {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: 1.05rem; color: var(--ink-soft);
  max-width: 65ch; margin-inline: auto; text-wrap: balance;
}
.team-claim b { color: var(--ink); font-weight: 550; }

/* ---------- Jobs-Teaser ---------- */
.jobs { text-align: center; border-block: 1px solid var(--hair); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.jobs .k { color: var(--azur-deep); font-weight: 550; font-size: 0.98rem; }
.jobs h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 0.5rem; }
.jobs p:not(.k) { color: var(--ink-soft); max-width: 50ch; margin: 0.9rem auto 0; }

/* ---------- Kontakt / Formulare ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.contact .lede { margin-top: 1rem; color: var(--ink-soft); max-width: 44ch; }

/* Kontakt: Radius-Karte + Kanäle (Münster im Zentrum, Nachbarstädte je Himmelsrichtung) */
.contact-map { margin: 2.25rem 0 0; text-align: center; }
.contact-map svg { width: min(320px, 82%); height: auto; display: block; margin-inline: auto; }
.contact-map figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.contact-map .ring { fill: none; stroke: var(--hair); stroke-width: 1.4; stroke-dasharray: 3 6; }
.contact-map .dot { fill: var(--azur); }
.contact-map .citydot { fill: var(--ink-soft); }
.contact-map .citydot--home { fill: var(--ink); }
.contact-map .place-home { fill: var(--ink); font-weight: 550; }
.contact-map .pulse { fill: none; stroke: var(--azur); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .contact-map .pulse { animation: mapPing 2.6s var(--ease-out) infinite; }
  @keyframes mapPing { 0% { opacity: 0.8; transform: scale(0.25); } 70%, 100% { opacity: 0; transform: scale(1); } }
}
.contact-map .place { font: 550 13px "Albert Sans", sans-serif; fill: var(--ink); }
.contact-map .place-sub { font: 400 11.5px "Albert Sans", sans-serif; fill: var(--ink-soft); }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--hair); }
@media (max-width: 560px) { .contact-channels { grid-template-columns: 1fr; } }
.contact-ch { text-decoration: none; color: var(--ink); display: block; padding-block: 0.35rem; }
.contact-ch span { display: block; font-size: 0.85rem; font-weight: 550; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.contact-ch b { font-size: clamp(1.15rem, 2.1vw, 1.45rem); font-weight: 300; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-ch:hover b, .contact-ch:focus-visible b { color: var(--azur); }

/* Formular als geschlossener Block: Haarlinien-Rahmen (Variante A) */
.form-min { border: 1px solid var(--hair); padding: clamp(1.5rem, 4vw, 2.5rem); }

.form-min .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }

/* Anruf-Brücke + Unverbindlich-Signal am Formularkopf: sichtbar während des Ausfüllens */
.form-intro { border-bottom: 1px solid var(--hair); padding-bottom: 1.3rem; margin-bottom: 2rem; }
@media (max-width: 900px) {
  /* Einspaltig stehen die Kontaktkanäle direkt darüber – Nummer nicht doppeln */
  .contact .form-intro { display: none; }
}
.form-intro .alt {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding-block: 0.35rem;
  color: var(--ink); font-weight: 550; text-decoration: none; font-size: 1.02rem;
}
.form-intro .alt svg { width: 18px; height: 18px; flex: none; color: var(--azur-deep); }
.form-intro .alt:hover { color: var(--azur); }
.form-intro .alt b { font-weight: 550; }
.form-intro .alt span { font-weight: 400; color: var(--ink-soft); }
.form-intro .promise { margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-soft); }

.form-hint { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); text-wrap: pretty; }
.form-min .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-min .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 1rem; font-weight: 550; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.65rem 0.1rem; font: inherit; font-size: 1.05rem;
  border: none; border-bottom: 1px solid oklch(0.62 0.015 240); border-radius: 0;
  background: transparent; color: var(--ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3742' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.15rem center; background-size: 18px;
  padding-right: 1.9rem; cursor: pointer;
}
.field input[type="date"] { min-height: 2.8rem; }

/* Eigenes Dropdown (JS): nativer Select wird unsichtbarer Datenträger,
   sichtbar ist ein Button im Unterstrich-System + Listbox-Panel */
.field select[data-enhanced] { display: none; }
.select-shell { position: relative; }
.select-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 0.65rem 1.9rem 0.65rem 0.1rem; font: inherit; font-size: 1.05rem;
  color: var(--ink); border: none; border-radius: 0;
  border-bottom: 1px solid oklch(0.62 0.015 240);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3742' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 0.15rem center / 18px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.select-btn.is-placeholder { color: oklch(0.46 0.02 240); }
.select-btn:focus-visible,
.select-btn[aria-expanded="true"] { outline: none; border-bottom-color: var(--azur); box-shadow: 0 1px 0 var(--azur); }
.select-btn[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.select-list {
  position: absolute; z-index: 60; left: 0; top: calc(100% + 2px);
  /* Panel wächst mit dem längsten Eintrag statt zu scrollen; nie breiter als der Viewport */
  min-width: 100%; width: max-content; max-width: min(24rem, calc(100vw - 2.5rem));
  margin: 0; padding: 0.3rem 0; list-style: none;
  background: var(--paper); border: 1px solid var(--hair);
  /* funktionaler Schatten des schwebenden Panels – wie die Header-Kante, kein Dekor */
  box-shadow: 0 10px 30px oklch(0.25 0.03 235 / 0.10);
  max-height: 288px; overflow-y: auto; overflow-x: hidden;
}
.select-list.opens-up { top: auto; bottom: calc(100% + 2px); }
.select-list [role="option"] { padding: 0.6rem 0.9rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-list [role="option"].is-active { background: oklch(0.955 0.008 240); }
.select-list [role="option"][aria-selected="true"] { color: var(--azur-deep); font-weight: 550; }
.field ::placeholder { color: oklch(0.46 0.02 240); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--azur); box-shadow: 0 1px 0 var(--azur);
}
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field .err { display: block; color: var(--error); font-weight: 550; font-size: 0.85rem; margin-top: 0.45rem; }
/* Grid statt Flex: Text bekommt eine eigene Spalte und kann nie unter die Box rutschen.
   „.field label.consent“, damit die Regel gegen „.field label { display:block }“ gewinnt. */
.consent, .field label.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.75rem; align-items: start; color: var(--ink-soft); margin-bottom: 0; }
.field label.consent { font-size: 0.98rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.consent input { width: 24px; height: 24px; margin: 0; margin-top: 2px; accent-color: var(--azur); }
.consent span { line-height: 1.55; }
.consent a { color: var(--azur-deep); font-weight: 550; }
/* Liegt im gerahmten .form-min: Haarlinie statt zweitem Rahmen (keine Karte in der Karte) */
.form-status { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.form-status h3 { font-weight: 550; font-size: 1.1rem; }
.form-status p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.4rem; }
.form-status a { color: var(--azur-deep); font-weight: 600; }

/* ---------- Unterseiten ---------- */
.page { padding-top: calc(70px + clamp(2.75rem, 7vw, 5rem)); padding-bottom: var(--section); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
.page-head h1 b { font-weight: 550; }
.page-head .k { color: var(--azur-deep); font-weight: 550; font-size: 0.98rem; margin-bottom: 0.75rem; }
.page-head .lede { margin-top: 1.2rem; color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }

/* Jobs: Benefits als 2×2-Raster (mobil einspaltig) + zentriertes Solo-Formular */
.benefits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.brow { border-top: 1px solid var(--hair); padding-block: clamp(1.25rem, 3vw, 1.75rem); }
.brow h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 300; letter-spacing: -0.01em; }
.brow p { color: var(--ink-soft); margin-top: 0.5rem; max-width: 52ch; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }
.apply-solo { max-width: 46rem; margin-inline: auto; margin-top: clamp(3.5rem, 8vw, 6rem); }
.apply-solo h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 2rem; }

/* Rechtstexte */
.prose { max-width: 65ch; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; margin: 2.6em 0 0.7em; }
.prose h3 { font-size: 1.15rem; font-weight: 550; letter-spacing: 0.01em; margin: 1.9em 0 0.5em; }
.prose p { margin: 0.9em 0; text-wrap: pretty; }
.prose ul { margin: 0.9em 0 0.9em 1.4em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--azur-deep); text-underline-offset: 3px; }
.prose .stand { margin-top: 3rem; color: var(--ink-soft); font-size: 0.9rem; }
.prose .lead-block { font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hair); padding-block: 2.5rem; padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.foot .b { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.foot img { width: 36px; height: 31px; object-fit: contain; }
.foot nav {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem 1.5rem;
  white-space: nowrap;
}
.foot nav a { text-decoration: none; display: inline-block; padding-block: 0.75rem; }
.foot nav a:hover { color: var(--azur-deep); text-decoration: underline; text-underline-offset: 4px; }
.foot__maker {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
}
.foot__maker .dw-maker-stamp {
  zoom: 0.7;
  opacity: 0.72;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}
.foot__maker .dw-maker-stamp:hover,
.foot__maker .dw-maker-stamp:focus-visible { opacity: 1; }
@media (max-width: 700px) {
  .foot { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 0.75rem; }
  .foot .b { gap: 0.5rem; font-size: 0.82rem; }
  .foot img { width: 30px; height: 26px; }
  .foot nav { grid-column: 2; gap: 0.75rem; font-size: 0.8rem; }
  .foot nav a { padding-block: 0.5rem; }
  .foot__maker {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 1rem;
    border-top: 1px solid var(--hair);
  }
  .foot__maker .dw-maker-stamp { zoom: 0.75; }
}

/* ---------- Reveals: nur Opacity, leise ---------- */
html.js-reveal [data-reveal] { opacity: 0; }
html.js-reveal [data-reveal].is-in { opacity: 1; transition: opacity 0.9s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js-reveal [data-reveal] { opacity: 1; }
  .team figure:hover img { transform: none; }
}

@media print {
  .site-head { position: static; color: var(--ink); text-shadow: none; background: none; box-shadow: none; }
  .site-head .logo-light { display: none; }
  .site-head .logo-dark { display: block; }
  .nav, .nav-toggle, .head-tel, .band, .hero__cta, .form-intro, form, footer nav, .foot__maker { display: none; }
  .hero { min-height: auto; color: var(--ink); }
  .hero__bg { display: none; }
  .hero__content { text-shadow: none; padding-block: 1.5rem; }
  .hero h1 .sub { color: var(--ink); }
  .hero__meta { color: var(--ink); border-color: var(--ink); }
  .hero__meta li { border-color: var(--ink); }
  section, .page { padding-block: 1.5rem; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: var(--ink-soft); }
}
