/* FMO Surface – Stylesheet (ohne Framework) · Stand 2026-11-03 */

/* ---------- Schriften (lokal, OFL) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --fmo-blue: #2726ff;
  --fmo-light: #9bcaff;
  --fmo-dark: #0d0f13;
  --fmo-white: #f8f9fa;
  --fmo-grey: #454952;
  --fmo-focus: #ffdc61;
  --fmo-line: rgba(155, 202, 255, .24);
  --shell: 1216px;
  --frame: 1600px;
  --fmo-gutter: max(32px, calc((min(100vw, var(--frame)) - var(--shell)) / 2));
  color-scheme: dark;
}

/* ---------- Reset (ersetzt Bootstrap Reboot) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--fmo-white); background: var(--fmo-dark); font-family: "Manrope", Arial, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.5; }
h1, h2, h3, p, ul, address { margin-top: 0; }
p, ul, address { margin-bottom: 1rem; }
h1, h2, h3 { margin-bottom: .5rem; }
ul { padding-left: 2rem; }
a { color: inherit; text-underline-offset: .22em; }
img, svg { vertical-align: middle; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
summary { cursor: pointer; }
p, li, address { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3 { font-family: "Space Grotesk", Arial, sans-serif; font-weight: 400; line-height: 1.2; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }

/* ---------- Fokus (WCAG 2.4.7 / 2.4.13) ---------- */
:focus-visible { outline: 3px solid var(--fmo-focus); outline-offset: 4px; }
.on-light :focus-visible { outline-color: var(--fmo-dark); }

/* ---------- Layout ---------- */
.site-shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--fmo-dark); background: var(--fmo-white); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
section[id], footer[id] { scroll-margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header { position: absolute; z-index: 20; inset: 0 0 auto; }
.header-inner { position: relative; min-height: 214px; }
.brand { position: absolute; top: 0; right: calc(var(--fmo-gutter) * -1); width: 203px; line-height: 0; }
.brand img { width: 100%; }
.header-bar { position: absolute; top: 113px; left: 0; right: 13rem; display: flex; align-items: center; gap: 24px; container-type: inline-size; container-name: headerbar; }
.mini-nav { display: flex; align-items: center; gap: 24px; }
.mini-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--fmo-white); font-size: 1rem; line-height: 2.25; text-decoration: none; text-transform: uppercase; }
.mini-nav a:hover { color: var(--fmo-light); }
.mini-nav .nav-desktop { display: none; }
.mini-nav .header-cta { gap: 10px; padding: 0 24px; border: 1px solid var(--fmo-blue); border-radius: 8px; background: var(--fmo-blue); font-size: 1rem; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.mini-nav .header-cta:hover { color: var(--fmo-white); border-color: var(--fmo-light); }
.lab-icon { flex: 0 0 auto; }
.mobile-menu { display: none; }

/* ---------- Kopfleiste mit JavaScript (assets/js/header.js) ----------
   Ohne JS greift nichts davon. Ablauf: groß → kompakt (Umformung) → ausgeblendet und zurück. */
.site-header.is-sticky { --bar-h: 76px; --head-h: 214px; --logo-s: .494; --ease: cubic-bezier(.22,.61,.36,1); position: fixed; height: var(--head-h); border-bottom: 1px solid transparent; background-color: rgba(13,15,19,0); transition: height .42s var(--ease), background-color .42s var(--ease), border-color .42s var(--ease), box-shadow .42s var(--ease), transform .32s var(--ease); }
.site-header.is-sticky .header-inner { height: 100%; min-height: 0; }
.site-header.is-sticky .brand { transform-origin: 100% 0; transition: transform .42s var(--ease); }
.site-header.is-sticky .header-bar { transition: top .42s var(--ease), transform .42s var(--ease); }
.site-header.is-sticky.is-compact { height: var(--bar-h); border-bottom-color: rgba(155,202,255,.22); background-color: rgba(13,15,19,.97); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.site-header.is-sticky.is-compact .brand { transform: scale(var(--logo-s)); }
.site-header.is-sticky.is-compact .header-bar { top: 50%; right: max(0px, calc(var(--bar-h) * 1.32 - var(--fmo-gutter) + 16px)); transform: translateY(-50%); }
/* ausgeblendet: Leiste und überhängendes Logo vollständig aus dem Bild */
.site-header.is-sticky.is-hidden { transform: translateY(calc(-100% - 48px)); box-shadow: none; }
/* Tastatur oder geöffnetes Menü: Leiste nie versteckt (WCAG 2.4.11) */
.site-header.is-sticky.is-hidden:focus-within, .site-header.is-sticky.is-hidden:has(details[open]) { transform: none; }
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }
@media (max-width: 1023.98px) { .site-header.is-sticky { --bar-h: 64px; --head-h: 150px; --logo-s: .612; } }
@media (max-width: 680px) { .site-header.is-sticky { --bar-h: 56px; --head-h: 116px; --logo-s: .711; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-sticky, .site-header.is-sticky * { transition: none !important; } }
@media (forced-colors: active) { .site-header.is-sticky.is-compact { border-bottom: 1px solid CanvasText; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--fmo-dark); }
/* Header nach Figma „START – DESKTOP“: hohes Bild, langer Auslauf, Text darunter */
.hero-media { position: relative; height: clamp(520px, min(69vw, 100svh - 120px), 1000px); overflow: hidden; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; z-index: 2; inset-inline: 0; pointer-events: none; }
.hero-media::before { top: 0; height: 440px; background: linear-gradient(to bottom, rgba(13,15,19,.92) 0, rgba(13,15,19,.82) 160px, rgba(13,15,19,0.820) 160px, rgba(13,15,19,0.809) 183px, rgba(13,15,19,0.780) 203px, rgba(13,15,19,0.735) 223px, rgba(13,15,19,0.676) 241px, rgba(13,15,19,0.608) 259px, rgba(13,15,19,0.531) 275px, rgba(13,15,19,0.451) 292px, rgba(13,15,19,0.369) 308px, rgba(13,15,19,0.289) 325px, rgba(13,15,19,0.212) 341px, rgba(13,15,19,0.144) 359px, rgba(13,15,19,0.085) 377px, rgba(13,15,19,0.040) 397px, rgba(13,15,19,0.011) 417px, rgba(13,15,19,0.000) 440px); }
.hero-media::after { bottom: 0; height: 42%; background: linear-gradient(to bottom, rgba(13,15,19,0.000) 0%, rgba(13,15,19,0.013) 8%, rgba(13,15,19,0.049) 16%, rgba(13,15,19,0.104) 22%, rgba(13,15,19,0.175) 29%, rgba(13,15,19,0.259) 35%, rgba(13,15,19,0.352) 41%, rgba(13,15,19,0.450) 47%, rgba(13,15,19,0.550) 53%, rgba(13,15,19,0.648) 59%, rgba(13,15,19,0.741) 65%, rgba(13,15,19,0.825) 71%, rgba(13,15,19,0.896) 78%, rgba(13,15,19,0.951) 84%, rgba(13,15,19,0.987) 92%, rgba(13,15,19,1.000) 100%); }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 56% 58%; }
.hero-play { position: absolute; z-index: 3; left: 50%; top: 47%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px; color: #fff; text-decoration: none; transform: translate(-50%, -50%); }
.hero-play-icon { display: grid; place-items: center; width: 112px; height: 112px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.45)); transition: transform .2s ease; }
.hero-play:hover .hero-play-icon { transform: scale(1.06); }
.hero-play-icon svg { width: 100%; height: 100%; }
/* Fokus über hellem Bild: gelber Ring mit dunklem Außenring */
.hero-play:focus-visible { border-radius: 14px; outline: 3px solid var(--fmo-focus); outline-offset: 2px; box-shadow: 0 0 0 8px var(--fmo-dark); }
.hero-play-label { padding: 6px 14px; border-radius: 999px; background: rgba(13,15,19,.9); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.hero-play-label span { color: var(--fmo-light); font-weight: 400; }
.hero-content { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-top: -72px; padding-bottom: 112px; }
.hero-main { min-width: 0; }
h1 { max-width: 22ch; margin: 0; font-size: 3.25rem; line-height: 1.12; letter-spacing: -.012em; }
.hero-intro { max-width: 62ch; margin: 28px 0 0; color: var(--fmo-white); font-size: 1.25rem; line-height: 1.55; }
.hero-actions { margin: 36px 0 0; }
.hero-claim { margin: 0 0 6px; font-family: "Space Grotesk", Arial, sans-serif; font-size: 2.25rem; line-height: 1.18; text-transform: uppercase; text-wrap: balance; }
.hero-claim span { display: block; color: var(--fmo-light); }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 30px; border: 1px solid var(--fmo-blue); border-radius: 8px; color: #fff; background: var(--fmo-blue); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.btn-primary:hover { border-color: var(--fmo-light); }
.overline { margin: 0 0 1.2rem; color: var(--fmo-light); font-size: .72rem; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; }

/* ---------- Leistungen ---------- */
.services { position: relative; overflow: hidden; padding: 114px 0 130px; color: var(--fmo-dark); background: radial-gradient(circle at 100% 8%, rgba(155,202,255,.16), transparent 26%), radial-gradient(circle at 0 96%, rgba(39,38,255,.05), transparent 24%), var(--fmo-white); }
.section-intro { margin-bottom: 36px; }
.section-intro .overline { margin-bottom: 16px; color: var(--fmo-dark); }
.section-intro h2 { max-width: 28ch; margin: 0; color: var(--fmo-blue); font-size: 2.5rem; line-height: 1.16; letter-spacing: -.01em; }
.services-copy { max-width: 66ch; margin: 28px 0 0; color: var(--fmo-grey); font-size: 1.25rem; line-height: 1.55; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.service-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 44px 14px 26px; border: 1px solid rgba(155,202,255,.85); border-radius: 20px; background: linear-gradient(165deg, #fff 0%, #f3f7fd 100%); box-shadow: 0 22px 44px rgba(13,15,19,.06); }
.service-image { order: -1; aspect-ratio: 596 / 331; overflow: hidden; border-radius: 12px; background: var(--fmo-dark); }
.service-image picture { display: block; }
.service-image picture, .service-image img { width: 100%; height: 100%; }
.service-image img { object-fit: cover; }
.service-card h3 { margin: 26px 16px 0; color: var(--fmo-blue); font-size: 2rem; line-height: 1.2; }
.service-list { margin: 14px 16px 0; padding: 0; color: var(--fmo-dark); list-style: none; }
.service-list li { display: flex; align-items: center; min-height: 64px; overflow-wrap: anywhere; border-bottom: 1px solid rgba(39,38,255,.52); font-size: 1.25rem; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }

/* Nummernmarke in Form der Logo-Facette (Figma „01 Bauteil und Anforderung“) */
.card-num { position: absolute; z-index: 2; top: -12px; right: 18px; display: flex; align-items: center; justify-content: flex-end; width: 60px; height: 52px; padding: 6px 10px 0 0; line-height: 1; color: #fff; background: var(--fmo-blue); clip-path: polygon(100% 0, 100% 70%, 52% 100%, 0 66%); font-size: .875rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- Projektanfrage ---------- */
.project { position: relative; min-height: 714px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: radial-gradient(45% 60% at 0% 0%, rgba(39,38,255,.42), transparent 72%), radial-gradient(45% 60% at 100% 100%, rgba(39,38,255,.22), transparent 72%), var(--fmo-dark); }
.project::before, .project::after { content: ""; position: absolute; z-index: 0; width: 920px; height: 451px; background-image: url("../img/fmo-pattern.svg"), url("../img/fmo-pattern.svg"), url("../img/fmo-pattern.svg"), url("../img/fmo-pattern.svg"); background-position: 0 0, 155px 0, 310px 0, 465px 0; background-repeat: no-repeat; background-size: 452px 451px; opacity: .3; pointer-events: none; }
.project::before { left: -650px; bottom: -70px; }
.project::after { right: -650px; top: -70px; transform: rotate(180deg); }
.project-inner { position: relative; z-index: 2; padding-block: 130px; text-align: center; }
.project .overline { margin-bottom: 1.4rem; }
.project h2 { max-width: 22ch; margin: 0 auto; font-size: 3rem; line-height: 1.16; letter-spacing: -.012em; }
.project-copy { max-width: 64ch; margin: 25px auto 0; color: var(--fmo-white); font-size: 1.25rem; line-height: 1.55; }
.project-copy p { margin: 0; text-wrap: pretty; }
.project-copy p + p { margin-top: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 36px 0 0; padding: 0; list-style: none; }
.contact-action { display: flex; flex-direction: column; justify-content: center; min-width: 330px; max-width: 100%; min-height: 64px; padding: 9px 30px; border: 1px solid var(--fmo-blue); border-radius: 8px; color: var(--fmo-white); background: var(--fmo-blue); text-align: left; text-decoration: none; }
.contact-action-secondary { border-color: rgba(155,202,255,.45); background: transparent; }
.contact-action span { color: var(--fmo-white); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.contact-action strong { font-size: 1.05rem; font-weight: 600; }
.contact-action:hover { border-color: var(--fmo-light); color: var(--fmo-white); }

/* ---------- Karriere ---------- */
.hiring { padding: 112px 0 120px; color: var(--fmo-dark); background: linear-gradient(180deg, var(--fmo-white) 0%, #f1f6fc 100%); }
.hiring-intro { max-width: 68ch; }
.hiring-intro .overline { color: var(--fmo-dark); }
.hiring-intro h2 { max-width: 24ch; margin: 0; color: var(--fmo-blue); font-size: 2.5rem; line-height: 1.16; }
.hiring-intro > p:last-child { max-width: 64ch; margin: 24px 0 0; color: var(--fmo-grey); font-size: 1.125rem; line-height: 1.55; }
.hiring-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 58px; }
.hiring-column { padding: 30px; border: 1px solid rgba(155,202,255,.85); border-radius: 20px; background: linear-gradient(165deg, #fff 0%, #f3f7fd 100%); box-shadow: 0 22px 44px rgba(13,15,19,.06); }
.hiring-column h3 { margin: 0 0 24px; color: var(--fmo-dark); font-size: 1.5rem; }
.hiring-column ul { margin: 0; padding: 0; list-style: none; }
.hiring-column li { padding: 14px 0; border-top: 1px solid rgba(39,38,255,.28); font-size: 1rem; }
.hiring-contact { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; margin-top: 24px; padding: 28px 32px; border: 1px solid rgba(155,202,255,.32); border-radius: 20px; color: var(--fmo-white); background: radial-gradient(60% 120% at 100% 100%, rgba(39,38,255,.32), transparent 70%), var(--fmo-dark); }
.hiring-contact p { margin: 0; }
.hiring-contact-label { color: var(--fmo-light); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hiring-contact-name { margin-top: 5px !important; font-family: "Space Grotesk", Arial, sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.hiring-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fmo-white); }
/* dunkle Box innerhalb heller Sektion: Fokus wieder gelb */
.on-light .hiring-contact :focus-visible { outline-color: var(--fmo-focus); }

/* ---------- FAQ ---------- */
.faq { position: relative; overflow: hidden; padding: 67px 0 130px; color: var(--fmo-white); background: linear-gradient(145deg, #2726ff 0%, #1f1ece 100%); }
.faq::after { content: ""; position: absolute; right: -260px; bottom: -150px; width: 452px; height: 451px; background: url("../img/fmo-pattern.svg") center / contain no-repeat; opacity: .18; pointer-events: none; }
.faq-inner { position: relative; z-index: 1; }
.faq-column { max-width: 75%; margin-inline: auto; }
.faq-intro { max-width: 68ch; }
.faq-intro .overline { margin-bottom: 23px; color: var(--fmo-white); }
.faq-intro h2 { max-width: 30ch; margin: 0; color: var(--fmo-white); font-size: 2.5rem; line-height: 1.16; letter-spacing: -.01em; }
.faq-intro > p:last-child { max-width: 64ch; margin: 44px 0 0; color: var(--fmo-white); font-size: 1.25rem; line-height: 1.55; }
.faq-list { margin-top: 39px; }
.faq-group + .faq-group { margin-top: 72px; }
.faq-group-title { margin: 0 0 10px; color: var(--fmo-white); font-family: "Manrope", Arial, sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .21em; line-height: 1.4; text-transform: uppercase; }
.faq-list details { border-bottom: 1px solid rgba(248,249,250,.72); }
.faq-list summary { position: relative; display: flex; align-items: center; min-height: 140px; padding: 30px 86px 30px 0; color: var(--fmo-white); font-family: "Space Grotesk", Arial, sans-serif; font-size: 2rem; font-weight: 400; line-height: 1.2; text-transform: uppercase; text-wrap: balance; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--fmo-white); border-radius: 2px; color: var(--fmo-white); font-family: "Manrope", Arial, sans-serif; font-size: 2rem; font-weight: 300; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 66ch; margin: -18px 86px 30px 0; color: var(--fmo-white); font-size: 1.25rem; line-height: 1.55; }
.faq-list details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fmo-white); font-weight: 600; }

/* ---------- Ansprechpartner ---------- */
.contacts { position: relative; overflow: hidden; background: radial-gradient(55% 180px at 50% 0%, rgba(62,74,214,.75), transparent 100%), var(--fmo-dark); }
.contacts-logo { position: absolute; z-index: 2; top: 0; right: 0; width: 150px; height: auto; }
.contacts-inner { position: relative; z-index: 1; padding: 88px 0 72px; }
.contacts-intro { display: grid; grid-template-columns: minmax(min-content, 1fr) minmax(0, 2fr); gap: 10px 24px; max-width: 1010px; }
.contacts-intro .overline { grid-column: 1 / -1; margin-bottom: 18px; }
.contacts-intro h2 { max-width: 18ch; margin: 0; color: var(--fmo-white); font-size: 2.5rem; line-height: 1.16; }
.contacts-intro > p:last-child { max-width: 48ch; margin: 0; text-wrap: pretty; color: rgba(248,249,250,.8); font-size: 1.125rem; line-height: 1.55; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 58px 0 0; padding: 0; list-style: none; }
.contact-card { display: flex; flex-direction: column; min-height: 220px; padding: 30px; border: 1px solid rgba(155,202,255,.5); border-radius: 26px; background: radial-gradient(85% 60% at 100% 100%, rgba(39,38,255,.38), transparent 72%), rgba(255,255,255,.02); }
.contact-role { order: -1; margin: 0 0 12px; color: var(--fmo-light); font-size: .75rem; font-weight: 600; letter-spacing: .21em; text-transform: uppercase; }
.contact-card h3 { margin: 0; color: var(--fmo-white); font-size: 1.65rem; line-height: 1.2; }
.contact-tasks { margin: 28px 0 0; padding: 0; color: rgba(248,249,250,.8); list-style: none; }
.contact-tasks li { padding: 12px 0; border-top: 1px solid rgba(155,202,255,.22); }
.contact-links { display: grid; gap: .25rem; margin: auto 0 0; padding: 20px 0 0; list-style: none; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fmo-white); overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--fmo-light); }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--fmo-line); background: var(--fmo-dark); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) 288px 240px; gap: 2.5rem 2rem; align-items: end; padding-block: 4.5rem 3.5rem; }
.footer-claim { margin: 0 0 2rem; font-family: "Space Grotesk", Arial, sans-serif; font-size: 2rem; line-height: 1.18; text-transform: uppercase; }
.footer-claim span { display: block; color: var(--fmo-light); }
.footer-company { margin: 0 0 .5rem; font-weight: 600; }
.footer-company-description { max-width: 430px; margin: 0 0 1rem; color: rgba(248,249,250,.75); }
.footer-main address { margin: 0; color: rgba(248,249,250,.75); font-style: normal; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; margin: .25rem 0 0; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fmo-white); }
/* ISO-Karte: gleiche Höhe und Rundung wie das Klima-Logo, Markenblau */
.footer-iso { display: flex; flex-direction: column; align-items: flex-start; height: 156px; padding: 16px 18px 14px; border: 1px solid rgba(155,202,255,.35); border-radius: 16px; color: #fff; background: linear-gradient(155deg, var(--fmo-blue) 0%, #1d1cd8 100%); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.footer-iso-title { margin: 0; font-family: "Space Grotesk", Arial, sans-serif; font-size: 1.625rem; line-height: 1.1; text-transform: uppercase; }
.footer-iso-text { margin: .3rem 0 .6rem; font-size: .875rem; line-height: 1.45; }
.footer-iso-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 0 14px; border: 1px solid #fff; border-radius: 8px; color: #fff; background: var(--fmo-dark); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.footer-iso-btn span { font-weight: 400; }
.footer-iso-btn:hover { border-color: var(--fmo-light); color: var(--fmo-light); }
.footer-iso .footer-iso-btn:focus-visible { outline-color: var(--fmo-focus); outline-offset: 3px; }
.footer-badge { line-height: 0; }
.footer-badge a { display: inline-block; border-radius: 16px; }
.footer-badge a:focus-visible { outline-offset: 6px; }
.footer-badge a:hover img { border-color: var(--fmo-light); }
.footer-badge img { display: block; transition: border-color .2s ease; width: 240px; height: auto; border: 1px solid rgba(155,202,255,.24); border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1rem; border-top: 1px solid var(--fmo-line); color: rgba(248,249,250,.75); font-size: .8125rem; }
.footer-bottom p { margin: 0; }
.legal-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: 0; padding: 0; list-style: none; }
.legal-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--fmo-white); }
.legal-nav a[aria-current="page"] { font-weight: 600; text-decoration-thickness: 2px; }

/* ---------- Unterseiten (Rechtliches, 404) ---------- */
.subpage .site-header { position: relative; background: var(--fmo-dark); }
.subpage .header-inner { display: flex; align-items: flex-start; min-height: 150px; }
.subpage .brand { right: 0; width: 128px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 52px; color: var(--fmo-white); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-main { padding: 6rem 0; color: var(--fmo-dark); background: var(--fmo-white); }
.legal-shell { width: min(calc(100% - 64px), 900px); margin-inline: auto; }
.legal-main .overline { color: var(--fmo-blue); letter-spacing: .2em; }
.legal-main h1 { max-width: none; margin: 0 0 3rem; color: var(--fmo-dark); font-size: clamp(2.25rem, 1rem + 5vw, 5rem); line-height: 1.1; hyphens: auto; overflow-wrap: break-word; }
.legal-main h2 { margin: 0 0 1rem; font-size: 1.6rem; hyphens: auto; }
.legal-main h3 { margin: 2rem 0 .75rem; font-family: "Manrope", Arial, sans-serif; font-size: 1.125rem; font-weight: 600; text-transform: none; }
.legal-main h4 { margin: 1.25rem 0 .5rem; font-family: "Manrope", Arial, sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.4; text-transform: none; }
.legal-main section { padding: 2rem 0; border-top: 1px solid rgba(13,15,19,.18); }
.legal-main p, .legal-main li { max-width: 72ch; color: var(--fmo-grey); }
.legal-main ul { padding-left: 1.25rem; }
.legal-main li + li { margin-top: .4rem; }
.legal-main a { color: var(--fmo-blue); overflow-wrap: anywhere; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.legal-grid section:last-child { grid-column: 1 / -1; }
.legal-status { margin-top: 2rem; font-size: .875rem; }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.legal-main .legal-actions li + li { margin-top: 0; }
.legal-main .legal-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Große Bildschirme: Seite auf --frame begrenzen ---------- */
@media (min-width: 1601px) {
  body { background: #07080b; }
  .site-header, main, .site-footer { max-width: var(--frame); margin-inline: auto; }
  main, .site-footer { background: var(--fmo-dark); }
}

/* ---------- Responsive ---------- */
@media (min-width: 1024px) {
  .mini-nav .nav-desktop { display: inline-flex; }
}
@media (max-width: 1023.98px) {
  .footer-main { grid-template-columns: 288px 240px; justify-content: start; }
  .footer-info { grid-column: 1 / -1; }
  .header-inner { min-height: 150px; }
  .brand { width: 138px; }
  .header-bar { top: 59px; right: 150px; gap: 12px; }
  .mini-nav { gap: 16px; }
  .mini-nav .header-cta { padding-inline: 20px; font-size: .875rem; }
  .mobile-menu { position: relative; z-index: 30; flex: 0 0 auto; display: block; color: var(--fmo-white); }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; }
  .mobile-menu summary { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; gap: 10px; padding: 0 14px; border: 1px solid rgba(248,249,250,.72); border-radius: 8px; background: rgba(13,15,19,.88); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu-icon, .mobile-menu-icon::before, .mobile-menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; }
  .mobile-menu-icon { position: relative; }
  .mobile-menu-icon::before, .mobile-menu-icon::after { content: ""; position: absolute; left: 0; }
  .mobile-menu-icon::before { top: -6px; }
  .mobile-menu-icon::after { top: 6px; }
  .mobile-menu ul { display: grid; min-width: 260px; margin: 8px 0 0; padding: 10px; border: 1px solid rgba(155,202,255,.42); border-radius: 10px; list-style: none; background: rgba(13,15,19,.98); box-shadow: 0 18px 45px rgba(0,0,0,.28); }
  .mobile-menu li + li a { border-top: 1px solid rgba(155,202,255,.18); }
  .mobile-menu ul a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--fmo-white); text-decoration: none; text-transform: uppercase; }
  .mobile-menu .menu-cta { display: none; }
  .mobile-menu .menu-cta + li a { border-top: 0; }
  .hero-content { grid-template-columns: minmax(0, 1fr); margin-top: -64px; padding-bottom: 96px; }
  .hero-claim { font-size: 1.75rem; }
  .hero-intro { line-height: 1.5; }
  .services { padding: 96px 0 110px; }
  .contact-action { width: 100%; min-width: 0; }
  .contact-actions > li { flex: 0 0 auto; }
  .project::before, .project::after { width: 720px; height: 360px; background-position: 0 0, 120px 0, 240px 0, 360px 0; background-size: 360px 360px; opacity: .2; }
  .project::before { left: -570px; }
  .project::after { right: -580px; }
  .faq { padding-bottom: 100px; }
  .faq-list summary { min-height: 110px; font-size: 1.5rem; }
  .hiring-contact { grid-template-columns: 1fr; gap: 10px; }
  .contacts-intro { grid-template-columns: minmax(0, 1fr); padding-right: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .faq-column { max-width: none; }
}
@media (max-width: 767.98px) {
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .contact-actions { flex-direction: column; }
}
@media (max-width: 680px) {
  :root { --fmo-gutter: 16px; }
  .site-shell, .legal-shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 116px; }
  .brand { width: 104px; }
  .header-bar { top: 36px; right: 110px; gap: 10px; }
  .mini-nav .header-cta { padding-inline: 14px; font-size: .75rem; letter-spacing: .08em; }
  .mobile-menu summary { padding: 0 12px; }
  .hero-media { height: clamp(460px, 120vw, 560px); }
  .hero-media img { object-position: center 60%; }
  .hero-play { top: 50%; }
  .hero-play-icon { width: 72px; height: 72px; }
  .hero-play-label { font-size: .75rem; }
  .hero-content { margin-top: -56px; padding-bottom: 72px; }
  .hero-claim { font-size: 1.5rem; }
  .btn-primary { width: 100%; justify-content: center; padding: 0 20px; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.25rem); }
  h1, h2, h3, .faq-list summary { hyphens: manual; overflow-wrap: break-word; }
    .hero-intro { margin-top: 20px; font-size: 1.1rem; }
  .services { padding: 80px 0 88px; }
  .section-intro { margin-bottom: 30px; }
  .section-intro h2 { font-size: clamp(1.5rem, 8.4vw, 2rem); }
  .services-copy { margin-top: 24px; font-size: 1.1rem; }
  .service-card h3 { margin: 22px 16px 0; font-size: 1.5rem; }
  .service-list { margin: 12px 16px 0; }
  .service-list li { min-height: 56px; font-size: 1rem; }
  .project { min-height: 650px; }
  .project-inner { padding-block: 96px; }
  .project h2 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .project-copy { font-size: 1.1rem; }
  .project::before, .project::after { display: none; }
  .hiring { padding: 80px 0 88px; }
  .hiring-intro h2 { font-size: clamp(1.5rem, 8.4vw, 2rem); }
  .hiring-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .hiring-column { padding: 22px; }
  .hiring-contact { padding: 22px; }
  .faq { padding: 64px 0 80px; }
  .faq-intro h2 { font-size: clamp(1.5rem, 8.4vw, 2rem); }
  .faq-intro > p:last-child { margin-top: 30px; font-size: 1.1rem; }
  .faq-list { margin-top: 28px; }
  .faq-group + .faq-group { margin-top: 52px; }
  .faq-list summary { min-height: 96px; padding: 22px 60px 22px 0; font-size: 1.35rem; }
  .faq-list summary::after { width: 44px; height: 44px; font-size: 1.5rem; }
  .faq-list details p { margin: -6px 60px 24px 0; font-size: 1.1rem; }
  .contacts-inner { padding: 72px 0 56px; }
  .contacts-logo { width: 104px; }
  .contacts-intro { padding-right: 0; }
  .contacts-intro .overline { padding-right: 112px; }
  .contacts-intro h2 { font-size: clamp(1.5rem, 8.4vw, 2rem); }
  .contact-grid { margin-top: 40px; }
  .footer-main { grid-template-columns: minmax(0, 288px); padding: 4rem 0 3rem; }
  .footer-iso { height: auto; min-height: 156px; }
  .footer-claim { font-size: 1.5rem; }
  .footer-badge img { width: 240px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .subpage .header-inner { min-height: 116px; }
  .subpage .brand { width: 96px; }
  .back-link { margin-top: 36px; }
  .legal-main { padding: 4rem 0; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-grid section:last-child { grid-column: auto; }
}
/* Projektanfrage-Button nur, wenn er neben „Menü“ Platz hat – sonst wandert er ins Menü (WCAG 1.4.10) */
@container headerbar (max-width: 299.98px) {
  .mini-nav .header-cta .lab-icon { display: none; }
  .mini-nav .header-cta { padding-inline: 12px; }
}
@container headerbar (max-width: 259.98px) {
  .mini-nav .header-cta { display: none; }
  .mobile-menu .menu-cta { display: list-item; }
  .mobile-menu .menu-cta a { font-weight: 600; }
  .mobile-menu .menu-cta + li a { border-top: 1px solid rgba(155,202,255,.18); }
}

/* ---------- Nutzereinstellungen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  .services-copy, .hiring-intro > p:last-child, .legal-main p, .legal-main li { color: var(--fmo-dark); }
  .contacts-intro > p:last-child, .contact-tasks, .footer-company-description, .footer-main address, .footer-bottom { color: var(--fmo-white); }
  .service-image, .contact-action, .faq-list details, .contact-card, .hiring-column { border-color: currentColor; }
}
@media (forced-colors: active) {
  .hero-media::before, .hero-media::after { display: none; }
  .hero-play-label { border: 1px solid CanvasText; }
  .mini-nav .header-cta, .contact-action, .mobile-menu summary, .btn-primary { border: 1px solid ButtonText; }
  .faq-list summary::after { forced-color-adjust: auto; border-color: ButtonText; }
}
@media print {
  .site-header, .mobile-menu, .skip-link, .hero-media, .project::before, .project::after, .faq::after { display: none !important; }
  body, .services, .project, .hiring, .faq, .contacts, .site-footer, .legal-main { color: #000 !important; background: #fff !important; }
}
