:root {
  --wine: #721d32;
  --wine-dark: #4d1020;
  --wine-soft: #8f3850;
  --paper: #f6f3ed;
  --paper-deep: #ece6dc;
  --ink: #292827;
  --muted: #6b6762;
  --line: rgba(41, 40, 39, 0.2);
  --brass: #a98550;
  --white: #fffdfa;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --header-h: 82px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

.ansa-site img { display: block; max-width: 100%; }
.ansa-site button, .ansa-site input, .ansa-site select, .ansa-site textarea { font: inherit; }
.ansa-site button, .ansa-site a { -webkit-tap-highlight-color: transparent; }
.ansa-site button { color: inherit; }
.ansa-site a { color: inherit; }

.ansa-site :focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 8px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 8px; width: auto; height: auto; padding: 10px 16px; clip-path: none; overflow: visible; }

.ansa-site .shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  /* backdrop-filter macht den Header zum Containing Block des fixierten Mobilmenüs;
     das geschlossene Menü (translateX(105%)) verdoppelte sonst die Dokumentbreite
     (360 px -> scrollWidth 738). clip statt hidden: kein Scroll-Container, Sticky bleibt. */
  overflow-x: clip;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(41, 40, 39, 0.06);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 48px; object-fit: contain; flex: none; }
.brand-type { display: grid; gap: 0; line-height: 1; letter-spacing: 0.01em; }
/* Schreibweise „ANSA blumenfischer GmbH" kommt aus dem Markup (Kundenwunsch 02.10.): kein text-transform. */
.brand-type strong { color: var(--wine); font: 700 24px/0.95 var(--serif); letter-spacing: -0.035em; }
.brand-type span { margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.075em; }

.site-nav { display: flex; align-items: center; gap: clamp(17px, 2.3vw, 32px); }
.site-nav a { position: relative; padding: 8px 0; color: #494642; font-size: 13px; font-weight: 650; text-decoration: none; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-contact { padding: 10px 16px; border: 1px solid var(--wine); color: var(--wine); }
.site-nav .nav-contact:hover { background: var(--wine); color: white; }

/* Fixierter mobiler CTA (Launch-Baseline Nr. 11): im sticky Header sichtbar, sobald die Navigation hinter „Menü" liegt. */
.header-cta { display: none; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px 0 10px 12px; align-items: center; gap: 11px; cursor: pointer; }
.menu-label { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-icon { width: 25px; display: grid; gap: 6px; }
.menu-icon i { display: block; height: 1px; background: currentColor; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { padding: clamp(48px, 5.4vw, 72px) 0 clamp(72px, 8vw, 108px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.87fr) minmax(420px, 1.13fr); align-items: center; gap: clamp(48px, 8vw, 104px); }
.hero-copy { padding-top: 12px; }
.eyebrow { margin: 0 0 22px; color: var(--wine); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow span { color: var(--brass); }
.eyebrow.light, .section-index.light { color: rgba(255,255,255,0.66); }
/* Firmenname nie in Versalien: „blumenfischer" bleibt klein. */
.eyebrow-name { text-transform: none; letter-spacing: 0.06em; }

.ansa-site h1, .ansa-site h2, .ansa-site h3, .ansa-site p { margin-top: 0; }
.ansa-site h1, .ansa-site h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em; }
.ansa-site h1 { max-width: 660px; margin-bottom: 26px; font-size: clamp(46px, 4.35vw, 62px); line-height: 1.01; hyphens: none; overflow-wrap: normal; }
.ansa-site h1 > span, .ansa-site h1 > em { display: block; }
.ansa-site h1 > span { white-space: nowrap; }
.ansa-site h1 em, .ansa-site h2 em { color: var(--wine); font-weight: 500; }
.hero-lead { max-width: 590px; margin-bottom: 34px; color: #504d49; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.ansa-site .button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.ansa-site .button:hover { transform: translateY(-2px); }
.ansa-site .button-primary { border-color: var(--wine); background: var(--wine); color: white; }
.ansa-site .button-primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.ansa-site .button-outline { border-color: currentColor; background: transparent; color: var(--wine); }
.ansa-site .button-outline:hover { background: var(--wine); color: white; }
.text-link { padding: 9px 0; color: var(--wine); font-size: 13px; font-weight: 750; text-underline-offset: 5px; }
.text-link span { display: inline-block; margin-left: 7px; transition: transform 160ms ease; }
.text-link:hover span { transform: translate(3px, 3px); }

.hero-facts { display: flex; gap: 40px; margin: 54px 0 0; }
.hero-facts div { display: flex; align-items: flex-start; gap: 12px; }
.hero-facts dt { color: var(--wine); font: 500 27px/1 var(--serif); }
.hero-facts dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: 0.065em; }

.hero-media { position: relative; margin: 0; height: clamp(500px, 42vw, 560px); background: #d8d3ca; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.25); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) contrast(1.04); }
.hero-media figcaption, .about-media figcaption, .detail-image span { position: absolute; right: 14px; bottom: 12px; padding: 4px 7px; background: rgba(246,243,237,0.87); color: #4d4945; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-note { position: absolute; left: 24px; bottom: 24px; width: 240px; padding: 19px 22px; background: var(--wine); color: white; box-shadow: 0 18px 48px rgba(38,14,22,0.18); }
.hero-note span, .hero-note strong { display: block; }
.hero-note span { margin-bottom: 3px; color: rgba(255,255,255,0.68); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-note strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }

.audience { border-block: 1px solid var(--line); padding: 44px 0; }
.audience-grid { display: grid; grid-template-columns: 0.6fr 1.35fr 1fr; gap: 40px; align-items: start; }
.section-index { margin: 3px 0 0; color: #817a72; font-size: 10px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.audience h2 { max-width: 680px; margin: 0; font-size: clamp(27px, 3.1vw, 43px); line-height: 1.12; }
.audience .eyebrow { margin-bottom: 11px; }
.audience-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.audience-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.audience-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.ansa-site .section { padding: clamp(88px, 11vw, 156px) 0; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr .8fr; gap: clamp(32px, 6vw, 78px); align-items: end; margin-bottom: 62px; }
.section-heading .eyebrow { margin: 16px 0 0; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.03; }
#services-title { hyphens: none; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; }

.services { background: var(--white); }
.service-list { border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 72px 1fr; gap: 24px; min-height: 150px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-number { padding-top: 7px; color: var(--brass); font: italic 18px/1 var(--serif); }
.service h3 { margin: 0 0 9px; font: 500 clamp(22px, 2.5vw, 31px)/1.1 var(--serif); letter-spacing: -0.02em; }
.service p { max-width: 720px; margin: 0; color: var(--muted); }
.service-featured { grid-template-columns: 72px 1.05fr .75fr; min-height: 185px; }
.service-featured ul { margin: 2px 0 0; padding: 0; list-style: none; }
.service-featured li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.service:not(.service-featured) { grid-template-columns: 72px 1fr; width: calc(50% - 22px); display: inline-grid; vertical-align: top; margin-right: 39px; }
.service:not(.service-featured):nth-child(odd) { margin-right: 0; }
.service .service-partner { margin-top: 14px; color: var(--wine); font-size: 12px; font-weight: 750; letter-spacing: .05em; }
.service-contract { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); margin-top: 48px; padding: clamp(28px, 4vw, 44px); background: var(--paper); }
.service-contract .eyebrow { margin-bottom: 10px; }
.service-contract h3 { margin: 0; font: 500 clamp(24px, 2.6vw, 32px)/1.12 var(--serif); letter-spacing: -0.02em; }
.service-contract p:not(.eyebrow) { max-width: 560px; margin: 0 0 22px; color: var(--muted); }

.working { background: var(--paper-deep); }
.working-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.working-intro h2 { max-width: 540px; margin-top: 22px; font-size: clamp(37px, 4.4vw, 58px); line-height: 1.05; }
.working-intro .eyebrow { margin: 28px 0 0; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 25px 0 27px; border-bottom: 1px solid var(--line); }
.steps > li > span { padding-top: 4px; color: var(--wine); font: italic 16px/1 var(--serif); }
.steps h3 { margin: 0 0 7px; font: 500 23px/1.2 var(--serif); }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.working .button { grid-column: 2; justify-self: start; margin-top: -66px; }

.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(55px, 10vw, 132px); align-items: center; }
.about-media { position: relative; margin: 0; height: clamp(500px, 58vw, 720px); }
.about-media::before { content: ""; position: absolute; z-index: -1; top: -42px; right: -42px; width: 65%; height: 65%; background: var(--wine); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); }
.about-copy h2 { margin: 18px 0 28px; font-size: clamp(41px, 5.2vw, 66px); line-height: 1.01; }
.about-lead { color: #45423f; font-size: 19px; line-height: 1.65; }
.about-copy > p:not(.eyebrow):not(.section-index):not(.about-lead) { color: var(--muted); }
.about-signature { display: flex; align-items: center; gap: 22px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--wine); font: italic 18px/1.25 var(--serif); }
.about-signature img { width: auto; height: 86px; object-fit: contain; }

.career { background: var(--wine); color: white; }
.career-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 9vw, 116px); align-items: start; }
.career-copy h2 { max-width: 620px; margin: 22px 0 28px; color: white; font-size: clamp(40px, 4.9vw, 62px); line-height: 1.04; }
/* „Anlagenmechaniker/in" ist bei 40 px breiter als 360-390-px-Viewports: Trennung an der
   Wortfuge per &shy; im Markup („Anlagen-/mechaniker/in"); die Grid-Spalte darf nicht über
   min-content aufweiten, break-word bleibt letzte Rückfallebene gegen Abschneiden. */
.career-copy { min-width: 0; }
.career-copy h2 { overflow-wrap: break-word; }
.career-copy h2 em { display: block; margin-top: 12px; color: #d5b881; font-size: .48em; letter-spacing: .02em; }
.career-copy > p:not(.eyebrow):not(.section-index):not(.requirement) { max-width: 600px; color: rgba(255,255,255,.76); font-size: 17px; }
.career-benefits { display: flex; flex-wrap: wrap; gap: 9px; margin: 32px 0; padding: 0; list-style: none; }
.career-benefits li { padding: 8px 11px; border: 1px solid rgba(255,255,255,.34); font-size: 11px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.requirement { display: grid; gap: 3px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.requirement span { color: #d5b881; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.career-training { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.career-training h3 { margin: 0 0 10px; color: white; font: 500 23px/1.2 var(--serif); }
.career-training p { max-width: 600px; margin: 0 0 10px; color: rgba(255,255,255,.76); font-size: 15px; }
.career-training a { color: white; text-decoration: underline; text-underline-offset: 4px; }

.application { background: var(--paper); color: var(--ink); padding: clamp(25px, 4vw, 43px); min-height: 520px; }
.application-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.application-head > div { display: grid; }
.application-kicker { margin-bottom: 5px; color: var(--wine); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.application-head strong { font: 500 26px/1.2 var(--serif); }
.application-progress { color: var(--muted); font-size: 13px; }
.application-progress b { color: var(--wine); font-weight: 800; }
.progress-track { height: 2px; margin: 19px 0 30px; background: #d9d3ca; }
.progress-track span { display: block; width: 25%; height: 100%; background: var(--wine); transition: width 220ms ease; }
.application-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.application-form legend { width: 100%; margin-bottom: 20px; font: 500 19px/1.3 var(--serif); }
.form-step[hidden], .application-summary[hidden], .project-summary[hidden], [data-project-entry][hidden] { display: none !important; }
.choice { position: relative; display: block; margin-bottom: 9px; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: flex; min-height: 48px; align-items: center; padding: 10px 42px 10px 14px; border: 1px solid #cfc8be; font-size: 13px; font-weight: 650; transition: border-color 140ms ease, background 140ms ease; }
.choice span::after { content: ""; position: absolute; right: 15px; width: 15px; height: 15px; border: 1px solid #999188; }
.choice input[type="radio"] + span::after { border-radius: 50%; }
.choice input:checked + span { border-color: var(--wine); background: rgba(114,29,50,.055); }
.choice input:checked + span::after { border: 5px solid var(--wine); }
.choice input[type="checkbox"]:checked + span::after { content: "✓"; display: grid; place-items: center; border-color: var(--wine); background: var(--wine); color: white; font-size: 10px; }
.choice input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

.ansa-site .field { display: grid; gap: 7px; margin-bottom: 17px; }
.ansa-site .field > span { color: #5c5751; font-size: 11px; font-weight: 750; }
.ansa-site .field input, .ansa-site .field select, .ansa-site .field textarea { width: 100%; min-height: 48px; border: 1px solid #bdb5aa; border-radius: 0; background: var(--white); color: var(--ink); padding: 10px 12px; }
.ansa-site .field textarea { min-height: 94px; resize: vertical; }
.ansa-site .field input:focus, .ansa-site .field select:focus, .ansa-site .field textarea:focus { border-color: var(--wine); outline: 1px solid var(--wine); }
.ansa-site .field.compact { margin-top: 18px; }
.field-hint { margin: -13px 0 19px; color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ansa-site .consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.ansa-site .consent input { width: 17px; height: 17px; accent-color: var(--wine); }
.ansa-site .consent a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.project-form .consent { margin-bottom: 26px; }
.form-note { padding-left: 12px; border-left: 2px solid var(--brass); color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.form-actions button { min-height: 42px; border: 0; background: transparent; color: var(--wine); font-size: 12px; font-weight: 800; cursor: pointer; }
.form-actions .form-next, .form-actions .form-submit, .form-actions .form-send { margin-left: auto; padding: 0 22px; background: var(--wine); color: white; }
.form-actions .form-edit { padding: 0 18px; border: 1px solid var(--wine); background: transparent; color: var(--wine); }
.form-actions .form-reset { color: var(--muted); }
.form-actions button:disabled, .ansa-site .button:disabled, .text-button:disabled { opacity: .6; cursor: progress; transform: none; }

/* Ergebnis der Übermittlung (aria-live). Leer bleibt der Bereich im
   Accessibility-Baum, damit spätere Meldungen sicher angesagt werden. */
.send-status { margin: 0; font-size: 13px; line-height: 1.55; }
.send-status:not(:empty) { margin: 0 0 22px; padding: 14px 16px; border-left: 3px solid var(--brass); background: #f0e7d8; color: var(--ink); }
.send-status.is-pending { border-color: #cfc8be; background: transparent; color: var(--muted); }
.send-status.is-success { border-color: var(--wine); background: rgba(114,29,50,.06); }
.send-status a { color: var(--wine); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.send-status:focus { outline: none; }
.send-status:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* Honeypot: für Menschen unsichtbar und nicht fokussierbar, für Bots ein Feld. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ansa-site [hidden] { display: none !important; }
.application-summary h3 { margin: 5px 0 22px; font: 500 29px/1.2 var(--serif); }
.application-summary dl, .project-summary dl { margin: 0 0 23px; }
.application-summary dl div, .project-summary dl div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.application-summary dt, .project-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.application-summary dd, .project-summary dd { margin: 0; font-size: 13px; font-weight: 650; }
.application-summary > p { color: var(--wine); font-size: 12px; font-weight: 700; }

.detail-strip { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 380px; background: var(--ink); color: white; }
.detail-image { position: relative; min-height: 380px; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) saturate(.65); }
.detail-strip blockquote { display: flex; align-items: center; margin: 0; padding: clamp(42px, 7vw, 88px); color: #f1eae0; font: italic 500 clamp(26px, 3.4vw, 43px)/1.22 var(--serif); }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 11vw, 148px); align-items: start; }
.contact h2 { max-width: 650px; margin: 22px 0 25px; font-size: clamp(45px, 5.8vw, 72px); line-height: 1; }
.contact > .shell > div > p:not(.eyebrow):not(.section-index) { max-width: 590px; color: var(--muted); font-size: 17px; }
.contact .button { margin-top: 20px; }
.contact-details { display: grid; margin-top: 30px; font-style: normal; border-top: 1px solid var(--ink); }
.contact-details > div { padding: 21px 0; border-bottom: 1px solid var(--line); }
.contact-details span { display: block; margin-bottom: 6px; color: var(--wine); font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.contact-details a { font: 500 clamp(22px, 2.3vw, 29px)/1.2 var(--serif); text-decoration: none; }
.contact-details p { margin: 0; font-size: 14px; }

.site-footer { padding: 52px 0 30px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 36px; align-items: start; }
.brand-footer .brand-type strong { color: #d7b981; }
.brand-footer .brand-type span { color: white; }
.footer-grid > p { margin: 5px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }
.footer-grid nav { display: flex; gap: 18px; }
.footer-grid nav a, .footer-grid nav button { border: 0; background: none; color: rgba(255,255,255,.75); padding: 6px 0; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.footer-grid nav a:hover, .footer-grid nav a[aria-current="page"] { color: white; }
.footer-grid small { grid-column: 1 / -1; padding-top: 27px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.45); font-size: 10px; }

.dialog { width: min(650px, calc(100vw - 28px)); max-height: min(820px, calc(100dvh - 28px)); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(25,15,17,.3); }
.dialog::backdrop { background: rgba(30,24,25,.66); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: clamp(30px, 6vw, 56px); overflow: auto; max-height: inherit; }
.dialog-close { position: absolute; top: 14px; right: 17px; width: 38px; height: 38px; border: 0; background: transparent; font: 300 31px/1 var(--sans); cursor: pointer; }
.dialog h2 { margin: 8px 0 17px; font-size: clamp(33px, 5vw, 47px); line-height: 1.05; }
.dialog > p, .dialog-shell > div > p:not(.eyebrow) { color: var(--muted); }
.project-form { margin-top: 30px; }
.project-form .button { width: 100%; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.text-button { border: 0; background: transparent; color: var(--wine); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.legal-note { margin-top: 28px; padding: 18px; border: 1px solid var(--brass); background: #f0e7d8; font-size: 13px; }

/* Fallback für <dialog> ohne showModal() (u. a. ältere iOS-Safari-Versionen): eigenes
   Backdrop-Element, der Dialog wird zusätzlich fixiert/zentriert; overflow:hidden auf
   html sperrt den Hintergrund-Scroll, solange der Fallback offen ist. */
.dialog-fallback-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(30, 24, 25, .66); }
.dialog.is-fallback-open { position: fixed; inset: 0; z-index: 901; margin: auto; }
html.dialog-fallback-locked { overflow: hidden; }

/* 404-Seite im Shell-Design */
.error-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; align-items: start; }
.error-grid .hero-lead { margin-bottom: 30px; }

@media (hover: hover) and (pointer: fine) {
  .service { transition: padding 180ms ease, background 180ms ease; }
  .service:not(.service-featured):hover { padding-inline: 12px; background: var(--paper); }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: inline-flex; align-items: center; margin-left: auto; padding: 10px 14px; border: 1px solid var(--wine); color: var(--wine); font: 750 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .header-cta:hover, .header-cta:focus-visible { background: var(--wine); color: white; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    height: calc(100dvh - var(--header-h));
    padding: 26px max(24px, calc((100vw - var(--shell)) / 2));
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms cubic-bezier(.22,1,.36,1), visibility 0s 220ms;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 27px/1.2 var(--serif); }
  .site-nav .nav-contact { margin-top: 22px; padding: 14px 18px; font: 750 13px/1 var(--sans); text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 750px; }
  .hero-media { min-height: 580px; margin-left: 34px; }
  .audience-grid { grid-template-columns: .5fr 1.5fr; }
  .audience-list { grid-column: 2; }
  .section-heading { grid-template-columns: .65fr 1.35fr; }
  .section-heading > p { grid-column: 2; }
  .working-grid, .career-grid { grid-template-columns: 1fr; }
  .working-intro { max-width: 700px; }
  .working .button { grid-column: 1; margin: 0; }
  .career-copy { max-width: 740px; }
  .application { width: min(700px, 100%); }
  .about-grid { gap: 55px; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .brand-mark { height: 43px; }
  .brand-type strong { font-size: 21px; }
  .brand-type span { font-size: 8px; }
  .menu-label { display: none; }
  .hero { padding-top: 48px; }
  .ansa-site h1 { font-size: clamp(39px, 11.5vw, 52px); }
  .ansa-site h1 > span { white-space: normal; }
  .hero-media { min-height: min(128vw, 590px); margin-left: 18px; }
  .hero-note { left: 16px; bottom: 16px; width: min(230px, 72%); }
  .hero-facts { gap: 22px; }
  .hero-facts div { display: grid; }
  .audience-grid { grid-template-columns: 1fr; gap: 22px; }
  .audience-list { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p { grid-column: 1; }
  .service-featured, .service:not(.service-featured) { display: grid; width: 100%; grid-template-columns: 45px 1fr; margin-right: 0; }
  .service-featured ul { grid-column: 2; }
  .service-contract { grid-template-columns: 1fr; margin-top: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { height: min(122vw, 620px); margin-right: 20px; }
  .about-media::before { top: -24px; right: -20px; }
  .career { padding-top: 88px; }
  .application { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .detail-strip { grid-template-columns: 1fr; }
  .detail-image { min-height: 300px; }
  .detail-strip blockquote { min-height: 290px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-grid small { grid-column: 1; }
  .application-summary dl div, .project-summary dl div { grid-template-columns: 1fr; gap: 3px; }
  .error-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 420px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .hero-facts { justify-content: space-between; }
  .career-benefits { display: grid; }
  .form-actions { align-items: stretch; }
  .form-actions .form-next, .form-actions .form-submit, .form-actions .form-send { margin-left: 0; }
  .form-actions button { flex: 1 1 auto; }
  .dialog-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ansa-site .button:hover { transform: none; }
}

@media print {
  .site-header, .hero-actions, .working .button, .application, .contact .button, .site-footer nav { display: none !important; }
  body { background: white; }
  .ansa-site .section { padding: 40px 0; }
  .career { color: black; background: white; }
  .career-copy h2 { color: black; }
  .career-training h3, .career-training p, .career-training a { color: black; }
}

/* Leistungsdetail: bestehende Typografie, zugängliche Textantworten ohne neue Bildclaims. */
.service-detail h1 { max-width: 940px; font-size: clamp(38px, 6vw, 76px); line-height: 1.1; letter-spacing: -.045em; margin: 22px 0; }
.service-detail h1 em, .service-detail h2 em { font-style: normal; color: var(--wine); }
.service-detail .service-detail-hero { padding-top: 72px; }
.service-detail-lead { max-width: 740px; font-size: 20px; }
.service-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.service-detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 7vw, 100px); }
.service-detail-tone { background: var(--paper-deep); }
.service-detail-list { padding-left: 22px; display: grid; gap: 14px; }
.service-detail-faq h3 { margin: 28px 0 10px; font-size: 21px; }
.service-detail-faq h3:first-child { margin-top: 0; }
.breadcrumbs { font-size: 13px; margin-bottom: 30px; }
.text-link { color: var(--wine); text-underline-offset: 4px; font-weight: 700; }
.service-detail-end { text-align: center; }
@media (max-width: 720px) { .service-detail-grid { grid-template-columns: 1fr; } .service-detail .service-detail-hero { padding-top: 42px; } }

/* Veröffentlichte CMS-Blöcke verwenden dieselben ANSA-Farben und Schriftfamilien. */
.ansa-site .cms-content { width: var(--shell); margin-inline: auto; padding-block: clamp(42px, 7vw, 88px); overflow-wrap: anywhere; }
.ansa-site .cms-content h1 { overflow-wrap: anywhere; }
.cms-heading { max-width: 850px; margin-bottom: 40px; }
.cms-heading > * + * { margin-top: 20px; }
.cms-section { margin-block: 42px; }
.cms-section > * + * { margin-top: 18px; }
.cms-content p, .cms-content li { max-width: 75ch; line-height: 1.75; }
.cms-content ul, .cms-content ol { padding-left: 1.5rem; }
.cms-content li + li { margin-top: 8px; }
.cms-content img { display: block; max-width: 100%; height: auto; }
.cms-content blockquote { border-left: 3px solid var(--brass); padding-left: 22px; margin-inline: 0; }
.cms-content a:not(.button):not(.cms-button) { color: var(--wine); text-underline-offset: 4px; }
.cms-cards, .cms-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.cms-cards article { min-width: 0; padding: 24px; border: 1px solid var(--line); }
.cms-gallery figure { min-width: 0; margin: 0; }
.cms-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.cms-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; background: var(--wine); color: white; font-weight: 700; text-decoration: none; }
.cms-button:hover { background: var(--wine-dark); }
.ansa-site .cms-content a.cms-button,
.ansa-site .cms-content a.cms-button:visited,
.ansa-site .cms-content a.cms-button:hover,
.ansa-site .cms-content a.cms-button:focus-visible { color: white; }
.cms-table { max-width: 100%; overflow-x: auto; }
.cms-table table { border-collapse: collapse; min-width: 100%; }
.cms-table td, .cms-table th { padding: 12px; border: 1px solid var(--line); text-align: left; }
