/* EBB, one stylesheet (12.10.2026). Order = cascade: fonts, tokens and base (desktop first), brand motion details,
   hover, then one block per breakpoint 1024 / 768 / 480 / 380 with changes only, then reduced motion.
   New mobile rules go into the matching block at the end, with the same selector depth as the rule they change;
   no new !important (only [hidden] and reduced motion need it). */

/* ===== fonts: Libre Franklin (OFL, assets/fonts/OFL.txt), Latin subset as WOFF2 (werkzeuge: pyftsubset, 12.10.2026) ===== */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-800.woff2) format('woff2');
}

/* ===== tokens and base ===== */
:root {
  color-scheme: light;
  --blue: #074798;
  --blue-hover: #08366f;
  --navy: #0d1c30;
  --ink: #12233b;
  --muted: #43536a;
  --line: #dce3eb;
  --pale: #f2f5f9;
  --panel-background: radial-gradient(ellipse at top right, #eaf3ffb8 0%, #ffffff00 62%), #fff;
  --panel-border: #d7e2ef;
  --panel-shadow: 0 8px 24px #183c6510;
  --wrap: min(100% - 64px, 1240px);
  --section: clamp(56px, 7vw, 108px);
  --h1: clamp(2.2rem, 1.1rem + 3.5vw, 4.4rem);
  --h2: clamp(1.8rem, 1.1rem + 1.8vw, 2.65rem);
  /* type tokens (12.10.2026): nothing below 12 px, buttons 14 px, titles fluid from 375 to 1440 px */
  --t-mini: 12px;
  --t-klein: 13px;
  --t-knopf: 14px;
  --t-hero: clamp(2.3rem, 1.686rem + 3.315vw, 4.75rem);
  --t-karte: clamp(1.375rem, 1.25rem + .3vw, 1.5rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-gutter: stable; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Libre Franklin', sans-serif; font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }   /* a word longer than its line ("Ladendiebstahlprävention" at 320 px) breaks instead of sticking out; text that fits is unchanged */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); }
h3 { font-size: 1.4rem; }
p { overflow-wrap: break-word; }
svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #f4b740; outline-offset: 5px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; background: #fff; padding: 12px 18px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--navy); color: #fff; position: relative; z-index: 5; border-bottom: 1px solid #ffffff14; }
.header-inner { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 74px; height: 74px; object-fit: contain; }
.brand span { font-size: var(--t-mini); line-height: 1.55; letter-spacing: .025em; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav-link { font-size: var(--t-klein); font-weight: 500; text-decoration: none; position: relative; padding-block: 20px; color: #dce3ed; }
.nav-link::after { content: ''; height: 2px; position: absolute; bottom: 10px; left: 0; right: 0; background: #7dafed; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link[aria-current] { color: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 14px 24px; border-radius: 4px; background: var(--blue); color: #fff; border: 1px solid transparent; text-decoration: none; font-size: var(--t-knopf); font-weight: 600; line-height: 1.45; transition: background .18s ease, border-color .18s ease; }
.button:hover { background: var(--blue-hover); }
.nav-apply { min-height: 46px; padding: 12px 18px; background: #fff; color: var(--blue); }
.nav-apply:hover { background: #e9eff8; }
.button-outline { background: transparent; border-color: #ffffff80; }
.button-outline:hover { background: #ffffff13; border-color: #fff; }
.nav-toggle { display: none; }
.eyebrow { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .15em; font-size: var(--t-mini); line-height: 1.6; font-weight: 700; color: var(--blue); margin-bottom: 25px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; flex: 0 0 auto; }
.eyebrow.light { color: #e3edfa; }
.home-hero { position: relative; isolation: isolate; min-height: 612px; display: flex; align-items: center; background: var(--navy); color: #fff; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,20,39,.88) 0%, rgba(8,24,43,.76) 35%, rgba(8,24,43,.32) 70%, rgba(8,24,43,.12)); }
.hero-content { padding-block: 80px; }
.hero-content h1 { font-size: var(--t-hero); line-height: 1.07; max-width: 800px; letter-spacing: -.045em; }
.blue-dot { color: #8dbbff; }
.hero-location { color: #eef3fb; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-caption { position: absolute; right: max(32px, calc((100vw - 1240px)/2)); bottom: 24px; font-size: var(--t-mini); letter-spacing: .09em; color: white; text-shadow: 0 1px 5px #000; }
.home-services { background: #fbfcfe; }
.section-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; max-width: 800px; margin-bottom: 52px; }
.section-intro h2 { max-width: 660px; }
.intro-aside p { color: var(--muted); max-width: 660px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; color: var(--blue); font-size: var(--t-klein); font-weight: 600; text-decoration: none; padding-block: 8px; }
.text-link:hover { text-decoration: underline; }
.intro-aside .text-link { margin-top: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 20px; }
.service-card { --card-pad: 36px; position: relative; display: flex; flex-direction: column; padding: var(--card-pad); min-width: 0; scroll-margin-top: 30px; border: 1px solid var(--panel-border); border-radius: 6px; background: var(--panel-background); color: var(--ink); box-shadow: var(--panel-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card::before { content: ''; position: absolute; top: -1px; left: var(--card-pad); width: 46px; height: 3px; background: var(--blue); border-radius: 0 0 2px 2px; transition: width .2s ease; }
.service-card:focus-within { border-color: #91b4df; box-shadow: 0 14px 32px #183c651a; }
.service-card:focus-within::before { width: 90px; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.service-top img { width: 64px; height: 64px; padding: 14px; object-fit: contain; background: #eaf1fa; border-radius: 4px; }
.service-number { font-size: var(--t-mini); letter-spacing: .06em; color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.service-card h2, .service-card h3 { font-size: var(--t-karte); line-height: 1.35; letter-spacing: -.025em; text-wrap: initial; overflow-wrap: break-word; hyphens: auto; }
.service-card p { color: var(--muted); line-height: 1.75; font-size: 17px; margin-top: 16px; max-width: 58ch; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 27px; color: var(--blue); font-size: var(--t-mini); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
/* Shared light service panels retain the original artwork and EBB blue accents. */
.home-grid .service-card { --card-pad: 32px; padding: var(--card-pad); }
.home-grid .service-top { min-height: 48px; margin-bottom: 28px; }
.home-grid .service-top img { width: 46px; height: 46px; padding: 0; background: transparent; border-radius: 0; filter: brightness(0) saturate(100%) invert(21%) sepia(87%) saturate(1764%) hue-rotate(196deg) brightness(89%) contrast(96%); }
.home-grid .service-number { display: none; }
.home-grid h3 { font-size: var(--t-karte); line-height: 1.3; min-height: 2.6em; letter-spacing: -.02em; }
.home-grid .service-card p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-top: 18px; margin-bottom: 28px; }
.home-grid .card-link { color: var(--blue); font-size: var(--t-klein); min-height: 60px; padding-top: 20px; border-top: 1px solid #dce6f2; }
.home-grid .card-link svg { width: 34px; height: 34px; padding: 7px; border: 1px solid #c8d9ec; border-radius: 4px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.home-grid .card-link:hover { text-decoration: none; }
.home-grid .card-link:hover svg { background: var(--blue); border-color: var(--blue); color: #fff; }
.home-grid .card-link:focus-visible { outline-offset: 7px; }
.service-grid:not(.home-grid) .service-card { padding: var(--card-pad); }
.service-grid:not(.home-grid) .service-top { margin-bottom: 26px; }
.service-grid:not(.home-grid) .service-top img { width: 46px; height: 46px; padding: 0; background: transparent; border-radius: 0; filter: brightness(0) saturate(100%) invert(21%) sepia(87%) saturate(1764%) hue-rotate(196deg) brightness(89%) contrast(96%); }
.service-grid:not(.home-grid) .service-number { display: none; }
.service-grid:not(.home-grid) .service-card p { color: var(--muted); }
/* Static, locally drawn facets echo the diagonal EBB mark without obscuring copy. */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 480px; background: #0b2037; color: #fff; padding-block: clamp(68px, 7.5vw, 108px); border-bottom: 1px solid #264566; text-align: center; }
.page-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; pointer-events: none; background: url('/assets/images/hero-facets.svg') center / cover no-repeat; }
.page-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, #081a2d70, #081a2d00 65%); box-shadow: inset 0 1px #93b9df0a, inset 0 -1px #92bce619; }
.page-hero > .wrap { position: relative; }
.page-hero .lead { color: #d5e1ef; text-wrap: pretty; }
.page-hero + .section { background: #f5f7fa; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; max-width: 900px; margin-inline: auto; justify-items: center; }
.page-hero h1 { max-width: 900px; margin-inline: auto; text-shadow: 0 3px 28px #020d1c38; }
.lead { font-size: clamp(1rem, .94rem + .2vw, 1.125rem); line-height: 1.85; color: #edf3fd; max-width: 720px; }
.contact-section { background: #f5f7fa; border-top: 0; padding-top: 0; }
.contact-section > .wrap { background: var(--panel-background); border: 1px solid var(--panel-border); border-top: 3px solid var(--blue); border-radius: 6px; padding: clamp(32px, 4.5vw, 64px); box-shadow: var(--panel-shadow); }
.contact-invitation { max-width: 720px; margin-inline: auto; text-align: center; }
.contact-invitation .eyebrow { justify-content: center; }
.contact-invitation-copy { max-width: 570px; color: var(--muted); margin: 24px auto 28px; }
.contact-invitation .contact-details { align-items: center; }
.contact-details { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; font-size: 14px; }
.contact-details a { text-decoration: none; width: fit-content; }
.contact-details a:hover { text-decoration: underline; }
.preview-note { font-size: 12px; line-height: 1.8; border-left: 2px solid #7c99bd; padding: 3px 0 3px 18px; color: #46566b; }
.preview-note strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.field { margin-bottom: 22px; min-width: 0; }
.field label { display: block; font-size: var(--t-klein); font-weight: 600; margin-bottom: 8px; }
.field label span { font-size: var(--t-mini); color: #566176; font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; border: 1px solid #adbaca; border-radius: 4px; color: var(--ink); background: white; padding: 12px 14px; font-size: 16px; min-height: 50px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 0; align-items: stretch; border: 1px solid var(--panel-border); border-radius: 6px; overflow: hidden; background: var(--panel-background); color: var(--ink); box-shadow: var(--panel-shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.about-image { min-height: 100%; }
.about-image img { width: 100%; height: 100%; aspect-ratio: 1.03; object-fit: cover; object-position: 100% 50%; }   /* the scorpion of dark bricks sits in the right part of the wall (12.10.: was 38 %, it was cut off) */
.about-copy { padding: clamp(32px, 4vw, 56px); align-self: center; }
.about-copy .eyebrow { color: var(--blue); }
.about-copy p:not(.eyebrow) { color: var(--muted); margin-block: 26px 20px; }
.about-copy h2 { font-size: clamp(1.8rem, 1.1rem + 1.4vw, 2.5rem); }
.about-copy .text-link { color: var(--blue); border-top: 1px solid #dce6f2; margin-top: 12px; padding-top: 22px; width: 100%; justify-content: space-between; }
.about-copy .text-link svg { width: 34px; height: 34px; padding: 7px; border: 1px solid #c8d9ec; border-radius: 4px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.about-copy .text-link:hover svg { background: var(--blue); border-color: var(--blue); color: #fff; }
.job-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 1000px; }
.job-title, .job-content { width: 100%; max-width: none; padding: clamp(28px, 4vw, 48px); border-radius: 6px; }
.job-title { position: relative; background: var(--panel-background); color: var(--ink); border: 1px solid var(--panel-border); text-align: center; box-shadow: var(--panel-shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.job-title::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 46px; height: 3px; background: var(--blue); border-radius: 0 0 2px 2px; transition: width .2s ease; }
.job-title .eyebrow { color: var(--blue); justify-content: center; }
.job-title .button { background: var(--blue); color: #fff; }
.job-title .button:hover { background: var(--blue-hover); }
.job-content { background: var(--panel-background); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); }
.job-title h2 { font-size: clamp(1.75rem, 1rem + 1.7vw, 2.5rem); overflow-wrap: break-word; hyphens: manual; margin-inline: auto; }
.job-title h2 span { display: inline-block; font-size: 1.2rem; font-weight: 500; letter-spacing: 0; margin-top: 8px; white-space: nowrap; }
.career-callout { display: inline-flex; justify-content: center; max-width: 100%; margin: 22px auto 28px; padding: 8px 16px; background: #eaf2fc; border: 1px solid #d7e5f6; border-radius: 4px; color: var(--blue); font-weight: 600; font-size: 16px; }
.job-title .button { display: flex; width: fit-content; margin-inline: auto; }
.about-grid:focus-within, .job-title:focus-within { border-color: #91b4df; box-shadow: 0 14px 32px #183c651a; }
.job-title:focus-within::before { width: 90px; }
.job-block { border-top: 0; padding-top: 0; }
.job-block + .job-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.job-block h3 { font-size: 1.5rem; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); margin-bottom: 13px; font-size: 17px; max-width: 72ch; }
.check-list li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); position: absolute; left: 0; top: .7em; }
.career-contact { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; max-width: 1000px; text-align: center; justify-items: center; }
.career-contact > div { max-width: 720px; min-width: 0; }
.career-contact .eyebrow { justify-content: center; }
.career-contact h2 { margin-bottom: 22px; }
.career-contact p:not(.eyebrow) { color: var(--muted); }
.career-contact dl { margin: 0 0 26px; }
.career-contact dt { font-size: var(--t-mini); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 22px; }
.career-contact dt:first-child { margin-top: 0; }
.career-contact dd { margin: 5px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.small-text { margin-top: 12px; font-size: var(--t-mini); }
.legal-heading { padding-block: 64px 60px; background: linear-gradient(112deg, #0d1c30 0%, #103963 65%, #074798 100%); color: #fff; border-bottom: 1px solid #35567c; text-align: center; }
.legal-heading .eyebrow, .page-hero .eyebrow { color: #c1d9f7; justify-content: center; }
.legal-heading h1 { font-size: clamp(1.75rem, 1rem + 3vw, 3.6rem); overflow-wrap: anywhere; hyphens: auto; }
main:has(.legal-layout) { background: #f5f7fa; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 900px); justify-content: space-between; gap: 40px; padding-block: 56px var(--section); align-items: start; }
.legal-aside { position: sticky; top: 24px; }
.legal-aside nav { display: grid; gap: 4px; padding: 8px; background: var(--panel-background); border: 1px solid var(--panel-border); border-radius: 6px; box-shadow: var(--panel-shadow); }
.legal-aside a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 12px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-size: 13px; transition: background .18s ease, border-color .18s ease; }
.legal-aside a:hover { background: #f0f5fc; border-color: #d7e5f6; }
.legal-aside a[aria-current] { background: #eaf2fc; border-color: #cfdef2; color: var(--blue); font-weight: 600; }
.legal-aside p { color: var(--muted); font-size: var(--t-mini); margin-top: 22px; }
.legal-note { padding: 20px 24px; background: var(--pale); margin-bottom: 38px; border-radius: 0 4px 4px 0; }
.legal-content { min-width: 0; padding: clamp(28px, 3.4vw, 48px); background: #fff; border: 1px solid var(--panel-border); border-top: 3px solid var(--blue); border-radius: 6px; box-shadow: var(--panel-shadow); font-size: 16px; line-height: 1.85; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
.legal-content h2 { color: var(--ink); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: 38px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); letter-spacing: -.025em; text-wrap: initial; }
.legal-note + h2 { padding-top: 0; border-top: 0; margin-top: 0; }
.legal-content h3 { color: var(--ink); font-size: 1.2rem; line-height: 1.4; margin: 28px 0 14px; letter-spacing: -.015em; }
.legal-content h4 { color: var(--ink); font-size: 1rem; line-height: 1.5; margin: 22px 0 12px; letter-spacing: 0; }
.legal-content p { margin-bottom: 18px; }
.legal-content a { color: var(--blue); }
.legal-content ul { padding-left: 23px; }
.image-credits { border-top: 1px solid var(--line); margin-top: 45px; }
.site-footer { background: var(--navy); color: #d7e0ed; padding-top: clamp(42px, 5vw, 70px); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.3fr .8fr; gap: 40px; padding-bottom: 52px; }
.footer-brand { display: flex; align-items: start; gap: 16px; }
.footer-brand img { width: 88px; height: 88px; }
.footer-brand p { font-size: var(--t-mini); line-height: 1.8; padding-top: 22px; color: #eef3fa; }
.footer-label { text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-mini); color: #b0bfd3; margin-bottom: 18px; }
.footer-grid nav a, .footer-contact a { display: block; width: fit-content; font-size: var(--t-mini); line-height: 24px; text-decoration: none; margin-bottom: 8px; }   /* 24 px: touch target (WCAG 2.5.8) */
.footer-grid a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-contact p:not(.footer-label) { font-size: var(--t-mini); margin-top: 16px; }
.footer-apply { color: #fff; font-size: var(--t-mini); padding-top: 0; gap: 13px; }
.footer-bottom { padding-block: 23px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; border-top: 1px solid #ffffff24; font-size: var(--t-mini); color: #b0bfd3; }
.footer-bottom nav { display: flex; gap: 28px; }
.footer-bottom a { text-decoration: none; }
.not-found h1 { margin-bottom: 35px; }

/* The inquiry remains a local demo. The modal is scrollable independently. */
.nav-request { background: none; border: 0; cursor: pointer; font-family: inherit; }
.footer-request { display: inline-flex; align-items: center; gap: 10px; padding: 0 0 14px; color: #fff; background: none; border: 0; font-size: var(--t-mini); font-weight: 600; }
.footer-request:hover { text-decoration: underline; }
body.quiz-open { overflow: hidden; }
.quiz-dialog { width: min(740px, calc(100% - 40px)); max-width: none; max-height: min(860px, calc(100dvh - 48px)); padding: 0; border: 1px solid #dce3eb; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 24px 100px #06142640; overflow: hidden; }
.quiz-dialog[open] { display: flex; flex-direction: column; }
.quiz-dialog::backdrop { background: #08182bd1; backdrop-filter: blur(4px); }
.quiz-header { flex: 0 0 auto; padding: 20px 36px 0; border-bottom: 1px solid var(--line); }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.quiz-topline .eyebrow { margin: 0; }
.quiz-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; background: var(--pale); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.quiz-close:hover { background: #e2eaf4; }
.quiz-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 0; list-style: none; margin: 21px 0 0; }
.quiz-progress li { border-bottom: 2px solid transparent; padding-bottom: 14px; color: #68768a; font-size: var(--t-mini); font-weight: 500; }
.quiz-progress li span { margin-right: 8px; color: #68768a; font-size: var(--t-mini); }
.quiz-progress li[aria-current], .quiz-progress li.is-complete { color: var(--blue); border-bottom-color: var(--blue); }
.quiz-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.quiz-body { padding: 28px 36px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.quiz-counter { font-size: var(--t-mini); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.quiz-body h2 { font-size: clamp(1.65rem, 1.2rem + 1.1vw, 2rem); text-wrap: initial; }
.quiz-body h2:focus { outline: none; }
.quiz-intro { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 13px; }
.quiz-step { border: 0; padding: 0; margin: 25px 0 0; min-inline-size: 0; }
.quiz-step .field:last-child { margin-bottom: 0; }
.quiz-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.quiz-option { display: flex; align-items: center; gap: 12px; min-height: 63px; padding: 13px 16px; border: 1px solid #cdd7e3; border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1.5; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
.quiz-option:hover { background: var(--pale); border-color: #8ba6c9; }
.quiz-option:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
.quiz-option:has(input:checked) input { accent-color: #fff; }
.quiz-option input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.quiz-option-wide { grid-column: 1 / -1; }
.quiz-summary { margin: 0; }
.quiz-summary > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.quiz-summary dt { font-size: var(--t-mini); color: var(--muted); }
.quiz-summary dd { margin: 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.quiz-review-note { font-size: var(--t-mini); color: var(--muted); margin-top: 20px; }
.quiz-finished { font-size: 15px; line-height: 1.8; color: var(--muted); margin-block: 24px 14px; }
.quiz-error { margin-top: 18px; font-size: var(--t-mini); color: #a02424; }
.quiz-error:empty { display: none; }
.quiz-footer { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 18px 36px 24px; background: #fbfcfe; }
.quiz-footer > p { color: var(--muted); font-size: var(--t-mini); line-height: 1.6; margin-bottom: 15px; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.quiz-next { margin-left: auto; }
.quiz-back { min-height: 48px; padding: 10px 4px; background: none; border: 0; color: var(--blue); font-size: var(--t-knopf); font-weight: 600; }
.quiz-back:hover { text-decoration: underline; }

/* ===== CMS era additions (12.10.2026) ===== */
/* trap field of the inquiry: people never see it, bots fill it in (cms/anfrage.php) */
.quiz-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* legal texts come in sections now; the first heading has no rule above it (before: .legal-note + h2) */
.legal-content > section:first-child > h2 { padding-top: 0; border-top: 0; margin-top: 0; }
/* 404: one sentence and the ways on */
.not-found-text { color: var(--muted); max-width: 560px; margin: -12px 0 30px; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.not-found-actions .button-outline { color: var(--blue); border-color: #c8d9ec; }
.not-found-actions .button-outline:hover { background: #f0f5fc; border-color: var(--blue); }
.not-found-actions .text-link { background: none; border: 0; padding-inline: 0; }
/* crop chosen in the CMS for a picture in a fixed frame: focal point and zoom (cms/render.php mit_ausschnitt);
   img. for the depth of .about-image img */
img.cms-ausschnitt { object-fit: cover; object-position: var(--ax) var(--ay); transform-origin: var(--ax) var(--ay); scale: var(--az); }

/* ===== brand motion details (progressive enhancement, assets/js/site.js) ===== */
/* Brand details remain visible without JavaScript; motion is progressive enhancement. */
.home-hero { overflow: hidden; }
.hero-content, .page-hero > .wrap { position: relative; z-index: 2; }
.page-hero::before { inset: -10px; transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0); transition: transform .24s ease-out; }
.hero-light { position: absolute; inset: -25%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 72% 64%, #559bdb35 0%, #2467ae1a 24%, transparent 54%); transform: translate3d(var(--light-x, 0px), var(--light-y, 0px), 0); transition: transform .24s ease-out; }
.home-hero .hero-light { background: radial-gradient(ellipse at 80% 45%, #67aaf344, transparent 46%); }
.hero-light { animation: light-arrive .9s ease-out; }
@keyframes light-arrive { from { opacity: 0; } to { opacity: 1; } }
.hero-caption { z-index: 2; }

/* Three fine diagonal lines make the light panels part of the same visual family. */
.service-card::after, .contact-section > .wrap::after { content: ''; position: absolute; right: 0; top: 0; width: 136px; height: 136px; pointer-events: none; border-radius: 0 6px 0 0; background: repeating-linear-gradient(110deg, transparent 0 27px, #397ac32e 28px 29px, transparent 30px 54px); mask-image: linear-gradient(215deg, #0009, transparent 74%); opacity: .75; transition: transform .24s ease-out, opacity .24s ease-out; }
.contact-section > .wrap { position: relative; isolation: isolate; }
.contact-section > .wrap::after { width: 220px; height: 220px; z-index: -1; }
.service-card::before { transform: skewX(-20deg); transform-origin: left; }
.service-top img { transition: transform .24s ease-out; }
.service-card:focus-within::after { opacity: 1; }
.button { position: relative; isolation: isolate; overflow: hidden; transition: background .18s ease, border-color .18s ease, box-shadow .24s ease, transform .24s ease; }
.button::before { content: ''; position: absolute; inset: -30% auto -30% -70%; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff24, transparent); transform: skewX(-20deg); opacity: 0; }
.button svg, .text-link svg, .card-link svg, .footer-request svg { transition: transform .24s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button:focus-visible, .text-link:focus-visible { box-shadow: 0 6px 20px #07479820; }
.quiz-dialog[open] { animation: dialog-arrive .28s cubic-bezier(.2,.7,.3,1); }
.quiz-dialog[open]::backdrop { animation: backdrop-arrive .2s ease-out; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes button-light { 0% { transform: translateX(0) skewX(-20deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(470%) skewX(-20deg); opacity: 0; } }
@keyframes menu-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== pointer devices ===== */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-3px); border-color: #91b4df; box-shadow: 0 16px 34px #183c651c; }
  .service-card:hover::before { width: 90px; }
  .about-grid:hover, .job-title:hover { border-color: #91b4df; box-shadow: 0 16px 34px #183c651c; }
  .job-title:hover::before { width: 90px; }
  .service-card:hover::after { transform: translateX(-5px); opacity: 1; }
  .service-card:hover .service-top img { transform: translateY(-3px); }
  .button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #071b3424; }
  .button:hover::before { animation: button-light .55s ease-out; }
  .button:hover svg, .text-link:hover svg, .card-link:hover svg, .footer-request:hover svg { transform: translateX(3px); }
  .button:active { transform: translateY(0); }
}

/* ===== tablet landscape, small laptop ===== */
@media (max-width: 1024px) {
  .header-inner { min-height: 90px; flex-wrap: wrap; gap: 0; }
  .brand img { width: 66px; height: 66px; }
  .site-nav { width: 100%; flex-wrap: wrap; padding-block: 16px; }
  .js .nav-toggle { display: flex; align-items: center; gap: 12px; background: transparent; color: #fff; border: 1px solid #748297; border-radius: 4px; padding: 10px 14px; min-height: 44px; font-size: var(--t-knopf); }
  .menu-icon { width: 17px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 12px 32px 24px; border-top: 1px solid #ffffff26; max-height: calc(100dvh - 140px); overflow-y: auto; box-shadow: 0 16px 24px #05102120; }
  .js .site-nav.is-open { display: flex; animation: menu-arrive .2s ease-out; }
  .nav-link { padding-block: 15px; }
  .nav-link::after { bottom: 5px; }
  .home-hero { min-height: 565px; }

  .home-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .home-grid .service-card { padding: 32px; }
  .home-grid h3 { min-height: 0; }
  .home-grid .service-card p { max-width: 65ch; }

  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
  .footer-career { grid-column: 2 / 4; }
  .footer-career .footer-label { display: none; }
  .legal-layout { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
  .legal-aside a { font-size: var(--t-mini); gap: 8px; }
}

/* ===== tablet portrait: everything in one column ===== */
@media (max-width: 768px) {
  :root { --wrap: calc(100% - 40px); }
  .page-hero { min-height: 420px; padding-block: 64px; }
  .page-hero::before { background-image: url('/assets/images/hero-facets-mobile.svg'); background-position: center; inset: 0; transform: none; }
  .page-hero::after { background: radial-gradient(ellipse at 50% 45%, #081a2d4d, #081a2d00 75%); }
  .hero-light { inset: 0; transform: none; }
  .nav-request { text-align: left; }
  .quiz-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .quiz-header { padding: 10px 20px 0; }
  .quiz-body { padding: 18px 20px; }
  .quiz-footer { padding: 12px 20px 14px; }
  .quiz-footer > p { margin-bottom: 10px; }
  .quiz-progress { gap: 10px; margin-top: 8px; }
  .quiz-progress li { padding-bottom: 9px; }
  .quiz-progress li span { margin-right: 4px; }
  /* the visible progress says the same; the step stays announced for screen readers */
  .quiz-counter { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .quiz-intro { margin-top: 10px; }
  .quiz-step { margin-top: 20px; }

  .js .site-nav { flex-direction: column; align-items: stretch; gap: 3px; padding: 12px 20px 24px; }
  .site-nav .nav-apply { margin-top: 12px; }
  .nav-link::after { right: auto; width: 30px; }
  .home-hero { min-height: 560px; }
  .hero-content { padding-block: 68px 86px; }
  .hero-image { object-position: 58% center; }
  .home-hero::before { background: linear-gradient(90deg, #061427df, #08182bb3 66%, #08182b78); }
  .hero-caption { right: 20px; bottom: 20px; }
  .section-intro, .page-hero-grid, .about-grid, .job-layout, .career-contact, .legal-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .section-intro { margin-bottom: 32px; }
  .service-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .home-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .service-card, .home-grid .service-card { --card-pad: 28px; padding: 28px; }
  .service-grid:not(.home-grid) .service-card { padding: 28px; }
  /* stacking cards (13.10.2026): each card sticks a little lower than the one before, the next one slides over it and
     the covered one shrinks towards its top edge (--i, --h and --abdeck come from site.js). Equal rows, so no lower card
     peeks out below a shorter upper one. The top never pushes a card's bottom out of the small viewport: a card taller
     than the screen is read in full first. Without JS, while editing and with reduced motion the cards stay a list. */
  .js .service-grid { grid-auto-rows: 1fr; }
  .js .service-grid .service-card { position: sticky; top: min(calc(16px + var(--i, 0) * 10px), calc(100svh - var(--h, 0px) - 16px)); scale: calc(1 - var(--abdeck, 0) * .05); transform-origin: 50% 0; box-shadow: 0 -10px 28px #0d1c3014, var(--panel-shadow); }
  .js.cms-an .service-grid .service-card { position: relative; scale: none; }
  .home-grid .service-top { margin-bottom: 24px; }
  .service-grid:not(.home-grid) .service-top { margin-bottom: 20px; }
  .home-grid .service-top img, .service-grid:not(.home-grid) .service-top img { width: 42px; height: 42px; padding: 0; }
  .service-card::after, .service-card:focus-within::after { width: 100px; height: 100px; opacity: .55; }
  .contact-section > .wrap::after { width: 140px; height: 140px; }
  .page-hero-grid { gap: 26px; }
  .page-hero h1 { max-width: 660px; }
  .about-grid { gap: 0; }
  .about-image { min-height: 0; }
  .about-image img { aspect-ratio: 1.5; height: auto; object-position: 50% 20%; }   /* the whole width shows; keep the scorpion's claws at the top */
  .about-copy { padding: 28px; }
  .about-copy .eyebrow { margin-bottom: 18px; }
  .job-layout { gap: 20px; }
  .job-title, .job-content { padding: 28px; }
  .job-block + .job-block { margin-top: 28px; padding-top: 28px; }
  .job-title h2 { max-width: 600px; }
  .job-title h2 span { display: block; }
  .legal-heading { padding-block: 45px 36px; }
  .legal-layout { padding-top: 28px; }
  .contact-section > .wrap { padding: 28px; }
  .legal-aside { position: static; }
  .legal-aside nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .legal-aside p { display: none; }
  .legal-aside a { gap: 10px; }
  .legal-aside a svg { display: none; }
  .legal-content { padding: 24px; }
  .legal-note { padding: 18px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 26px; }
  .footer-brand, .footer-career { grid-column: 1 / -1; }
  .footer-contact a { overflow-wrap: anywhere; }
  .footer-bottom { gap: 16px 24px; }
  /* the editor's phone crop (cms.js decides phone below 769 px) */
  img.cms-ausschnitt { object-position: var(--ax-m, var(--ax)) var(--ay-m, var(--ay)); transform-origin: var(--ax-m, var(--ax)) var(--ay-m, var(--ay)); scale: var(--az-m, var(--az)); }
}
@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
  .service-card:hover::after { opacity: .55; }
}

/* ===== small phones: fine tuning ===== */
@media (max-width: 480px) {
  .quiz-options { grid-template-columns: minmax(0,1fr); }
  .quiz-option { min-height: 54px; padding: 12px 14px; }
  .quiz-summary > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .quiz-next { padding: 13px 17px; gap: 12px; }
  .quiz-actions { gap: 12px; }
  .quiz-topline .eyebrow { letter-spacing: .08em; gap: 10px; }

  .header-inner { min-height: 82px; }
  .brand { gap: 9px; }
  .brand img { width: 58px; height: 58px; }
  .home-hero { min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-location { max-width: 250px; }
  .contact-invitation > .button { width: 100%; }
  /* footer on one centre axis (13.10.2026, variant A): logo over the name, labels between two short lines, pages as two
     centred pairs (four editable link texts never break into 3 + 1), the phone number as the large anchor */
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 40px; padding-bottom: 44px; text-align: center; }
  .footer-brand, .footer-career { grid-column: auto; }
  .footer-brand { flex-direction: column; align-items: center; gap: 14px; }
  .footer-brand img { width: 96px; height: 96px; }
  .footer-brand p { padding-top: 0; text-transform: uppercase; letter-spacing: .16em; line-height: 1.7; color: #b0bfd3; }
  .footer-label { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
  .footer-label::before, .footer-label::after { content: ''; flex: 0 0 28px; height: 1px; background: #ffffff38; }
  .footer-career .footer-label { display: flex; }
  .footer-grid nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .footer-grid nav .footer-label { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-grid nav a { justify-self: center; font-size: var(--t-knopf); line-height: 44px; margin-bottom: 0; }
  .footer-request { justify-content: center; min-height: 48px; padding: 0 22px; margin-bottom: 22px; border: 1px solid #ffffff42; border-radius: 4px; font-size: var(--t-knopf); }
  .footer-contact a { margin-inline: auto; }
  .footer-contact a[href^="tel:"] { font-size: var(--t-karte); font-weight: 600; letter-spacing: -.01em; line-height: 1.5; color: #fff; margin-bottom: 6px; }
  .footer-contact a[href^="mailto:"] { font-size: var(--t-knopf); line-height: 32px; }
  .footer-contact p:not(.footer-label) { margin-top: 10px; color: #b0bfd3; }
  .footer-apply { font-size: var(--t-knopf); min-height: 44px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer-bottom nav { gap: 28px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* ===== smallest phones (emergency breakpoint) ===== */
@media (max-width: 380px) {
  /* number and step name of the quiz are one word ("01Leistung") that no longer fits its quarter: number above */
  .quiz-progress li span { display: block; margin: 0 0 2px; }
}

/* ===== reduced motion: here !important is the point (it must beat every animation and transition) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .page-hero::before, .hero-light, .service-card:hover, .service-card:hover::after, .service-top img, .button:hover, .button:active, .button svg, .text-link svg, .card-link svg, .footer-request svg { transform: none !important; }
  .js .service-grid { grid-auto-rows: auto; }
  .js .service-grid .service-card { position: relative; scale: none; }
}
