/* STAIDIUM TECHNOLOGIES – Entwurf im STAIDIUM-Familienlook
   Inter (lokal), STAIDIUM-Rot #dd0b2f, dunkle Flächen (#0f1112) im Wechsel mit hellem Papier (#f3f2ef).
   Eckige Karten, Eyebrow-Labels mit kurzer roter Linie. Keine externen Inhalte. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #0f1112;
    --ink-soft: #1b1e20;
    --ink-line: #2a2e31;
    --paper: #f3f2ef;
    --paper-deep: #e8e6e1;
    --white: #ffffff;
    --muted: #a9aeb1;
    --muted-dark: #5d6367;
    --text-dark: #2b2f31;
    --text-light: #c9cdcf;
    --line: rgba(255, 255, 255, 0.16);
    --line-dark: rgba(15, 17, 18, 0.12);
    --red: #dd0b2f;
    --red-dark: #c60929;
    --font: "Inter", Arial, Helvetica, sans-serif;
    --max: 1240px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; overflow-wrap: break-word; }
p { margin: 0; }
strong { font-weight: 700; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Hinweis-Leiste: nur im Entwurf */
.draft-bar { padding: 7px 16px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-align: center; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 18, 0.95); border-bottom: 1px solid var(--line); color: var(--white); backdrop-filter: blur(8px); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo { width: auto; height: 44px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); }

/* Sprachumschalter DE | EN */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch a { padding: 6px 8px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--white); }
.lang-switch a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); }
.lang-switch span { color: var(--line); }

/* Menü-Schaltfläche (nur mobil, nur mit JavaScript) */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s ease, background 0.2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Schaltflächen und Labels ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; background: var(--red); color: var(--white); font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.2s ease; }
.button:hover, .button:focus-visible { background: var(--red-dark); }
.button-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.button-ghost:hover, .button-ghost:focus-visible { background: rgba(255, 255, 255, 0.1); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--red-dark); font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link span { transition: transform 0.2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(4px); }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.section-dark .text-link { color: var(--white); }
.section-dark .text-link span { color: var(--red); }

.eyebrow { position: relative; margin-bottom: 16px; padding-left: 36px; font-size: 12px; font-weight: 750; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; overflow-wrap: anywhere; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 26px; height: 2px; background: var(--red); }

/* ---------- Startseite: Bühne mit Video ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(78vh, 760px); display: flex; align-items: flex-end; background: var(--ink); color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 13, 0.35) 0%, rgba(10, 12, 13, 0.25) 35%, rgba(10, 12, 13, 0.92) 100%), linear-gradient(90deg, rgba(10, 12, 13, 0.75) 0%, rgba(10, 12, 13, 0) 70%); }
.hero .wrap { padding-block: 120px 72px; }
.hero h1 { max-width: 860px; font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lead { max-width: 640px; margin-top: 22px; color: #dfe2e3; font-size: 19px; }

/* Video (wie auf der bisherigen Startseite, mit Bedienelementen) */
.section-video { padding-block: 72px; }
.video-frame { position: relative; margin: 0; background: #000; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-frame::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 96px; height: 4px; background: var(--red); }

/* Kennzahlen aus den Seitentexten */
.facts-band { background: var(--ink); color: var(--white); border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.fact { padding: 30px 26px 32px; background: var(--ink); }
.fact b { display: block; color: var(--white); font-size: clamp(34px, 3.6vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.fact b i { color: var(--red); font-style: normal; }
.fact p { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Unterseiten: Seitenkopf mit Bild ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; background: var(--ink); color: var(--white); }
.page-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 13, 0.45) 0%, rgba(10, 12, 13, 0.92) 100%), linear-gradient(90deg, rgba(10, 12, 13, 0.6) 0%, rgba(10, 12, 13, 0) 70%); }
.page-hero .wrap { padding-block: 120px 60px; }
.page-hero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero .lead { max-width: 720px; margin-top: 18px; color: #dfe2e3; font-size: 18px; }
.page-hero .lead + .lead { margin-top: 12px; }
.page-hero-plain { min-height: 0; }
.page-hero-plain::after { display: none; }
.page-hero-plain .wrap { padding-block: 72px 56px; }
.page-hero-plain .lead { color: var(--muted); }

/* ---------- Abschnitte ---------- */
.section { padding-block: 96px; }
.section-tight { padding-block: 72px; }
.section-dark { background: var(--ink); color: var(--white); }
.section-deep { background: var(--paper-deep); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--muted-dark); font-size: 18px; }
.section-dark .section-head p { color: var(--muted); }

/* Text und Bild nebeneinander */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split-reverse .split-media { order: 2; }
.split-media { position: relative; margin: 0; }
.split-media img { width: 100%; height: auto; }
.split-media::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 96px; height: 4px; background: var(--red); }
.split h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; text-wrap: balance; }
.split-body > p { margin-top: 18px; color: var(--text-dark); }
.section-dark .split-body > p { color: var(--text-light); }
.split-body .button { margin-top: 28px; }

/* Aufzählungen mit roten Quadraten */
.list { margin: 18px 0 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 6px 0 6px 22px; color: var(--text-dark); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 7px; height: 7px; background: var(--red); }
.section-dark .list li { color: var(--text-light); }
.list-lined li { padding-block: 10px; border-top: 1px solid var(--line-dark); }
.list-lined li:last-child { border-bottom: 1px solid var(--line-dark); }
.list-lined li::before { top: 1.2em; }
.section-dark .list-lined li { border-color: var(--line); }

/* Schlagwörter */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; background: var(--white); border: 1px solid var(--line-dark); font-size: 14px; font-weight: 600; }
.section-dark .chips li, .page-hero .chips li { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--white); }

/* Karten mit Bild */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-top: 3px solid var(--red); }
.card-media { margin: 0; overflow: hidden; background: var(--ink-soft); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.card-media.contain img { object-fit: contain; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.card h3 { font-size: 21px; font-weight: 800; }
.card .list { margin-top: 12px; }
.card .list li { font-size: 15px; padding-block: 5px; }
.card-body > .list:first-child { margin-top: 0; }
.section-dark .card { background: var(--ink-soft); }
.cards-2 .card-media img { aspect-ratio: 16 / 9; }

/* Systemübersicht (Sprungnavigation) */
.jump-nav { background: var(--ink-soft); border-bottom: 1px solid var(--line); }
.jump-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 22px 0; list-style: none; }
.jump-nav a { display: inline-block; padding: 8px 13px; border: 1px solid var(--line); color: var(--text-light); font-size: 13px; font-weight: 650; text-decoration: none; }
.jump-nav a:hover, .jump-nav a:focus-visible { border-color: var(--red); color: var(--white); }

/* Kacheln mit Text (Startseite, Über uns) */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { padding: 32px 30px; background: var(--white); border-top: 3px solid var(--red); }
.panel h3 { margin-bottom: 12px; font-size: 22px; font-weight: 800; }
.panel p { color: var(--text-dark); }
.panel p + p { margin-top: 12px; }
.section-dark .panel { background: var(--ink-soft); }
.section-dark .panel p { color: var(--text-light); }

/* Einstieg mit großem Text */
.intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.intro h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.intro-text p { color: var(--text-dark); font-size: 19px; }
.intro-text p + p { margin-top: 16px; }
.section-dark .intro-text p { color: var(--text-light); }

/* Referenzen */
.refs { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.ref { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--ink); }
.ref-logo { display: flex; align-items: center; justify-content: center; margin: 0; padding: 26px; background: var(--white); }
.ref-logo.dark { background: var(--ink-soft); }
.ref-logo img { width: auto; max-width: 150px; max-height: 110px; object-fit: contain; }
.ref-body { padding: 30px 34px 32px; }
.ref-body h3 { margin-bottom: 10px; font-size: 22px; font-weight: 800; }
.ref-body p { color: var(--text-light); }
.ref-body p + p { margin-top: 12px; }
.ref-body strong { color: var(--white); }
.refs-note { margin-top: 28px; color: var(--text-light); font-size: 18px; }
.refs-note strong { color: var(--white); }

/* Aufruf zum Kontakt */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 56px; }
.cta-band h2 { max-width: 680px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.cta-band .button { background: var(--ink); }
.cta-band .button:hover, .cta-band .button:focus-visible { background: #000; }
.cta-band :focus-visible { outline-color: var(--white); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: start; }
.contact-form { padding: 36px; background: var(--white); border-top: 3px solid var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 750; }
.form-field input, .form-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c5c9cb; border-radius: 0; background: var(--white); color: var(--ink); font-family: inherit; font-size: 16px; }
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 18px 0 20px; color: var(--muted-dark); font-size: 13px; }
.form-privacy a { color: var(--red-dark); }
.form-required { margin-bottom: 18px; color: var(--muted-dark); font-size: 13px; }
.contact-aside { padding: 34px 30px; background: var(--ink); color: var(--white); }
.contact-aside h2 { margin-bottom: 18px; font-size: 22px; font-weight: 800; }
.contact-aside dl { margin: 0; }
.contact-aside dt { margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 4px 0 0; color: var(--white); }
.contact-aside a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 4px; }

/* Meldungen (Danke / Fehler) */
.notice { max-width: 760px; padding: 40px 38px; background: var(--white); border-top: 3px solid var(--red); }
.notice h2 { margin-bottom: 16px; font-size: 28px; font-weight: 800; }
.notice p { color: var(--text-dark); }
.notice p + p { margin-top: 12px; }
.notice a { color: var(--red-dark); }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-block: 64px 96px; }
.legal .wrap > * { max-width: 780px; }
.legal h2 { margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 21px; font-weight: 800; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: var(--text-dark); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 12px; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--red-dark); overflow-wrap: anywhere; }
.legal .updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 14px; }

/* ---------- Fußzeile ---------- */
.site-footer { padding-block: 56px 30px; background: var(--ink); color: var(--muted); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-col h2 { margin-bottom: 14px; color: var(--white); font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
    .site-header .wrap { gap: 14px; }
    .site-nav { margin-left: 0; order: 10; width: 100%; padding-bottom: 12px; }
    .site-nav ul { flex-wrap: wrap; gap: 4px 18px; }
    .lang-switch { margin-left: auto; }
    .site-header .wrap { flex-wrap: wrap; }

    /* Mit JavaScript: aufklappendes Menü */
    .js .site-header .wrap { flex-wrap: nowrap; }
    .js .menu-toggle { display: inline-flex; order: 3; }
    .lang-switch { order: 2; }
    .js .site-nav { display: none; position: absolute; top: 100%; left: -24px; right: -24px; width: auto; padding: 8px 24px 20px; background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35); }
    .js .nav-open .site-nav { display: block; }
    .js .site-nav ul { flex-direction: column; gap: 0; }
    .js .site-nav li + li { border-top: 1px solid var(--line); }
    .js .site-nav a { padding: 14px 0; font-size: 17px; color: var(--white); }
    .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }

    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .split-reverse .split-media { order: 0; }
    .split + .split { margin-top: 72px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro, .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
    :root { --header-h: 62px; }
    body { font-size: 16px; }
    :lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; -webkit-hyphens: auto; }
    .wrap { width: calc(100% - 32px); }
    .js .site-nav { left: -16px; right: -16px; padding-inline: 16px; }
    .brand-logo { height: 36px; }
    .lang-switch a { padding: 6px 5px; }
    .hero { min-height: 560px; }
    .hero .wrap { padding-block: 96px 64px; }
    .hero .lead, .page-hero .lead { font-size: 16px; }
    .page-hero { min-height: 380px; }
    .page-hero .wrap { padding-block: 96px 44px; }
    .page-hero-plain .wrap { padding-block: 52px 40px; }
    .section { padding-block: 64px; }
    .section-tight, .section-video { padding-block: 52px; }
    .section-head { margin-bottom: 32px; }
    .section-head p { font-size: 16px; }
    .intro-text p { font-size: 17px; }
    .fact { padding: 22px 18px 24px; }
    .cards, .cards-2, .panels { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .card-body { padding: 20px 20px 24px; }
    .panel { padding: 26px 22px; }
    .ref { grid-template-columns: minmax(0, 1fr); }
    .ref-logo { padding: 22px; }
    .ref-logo img { max-height: 90px; }
    .ref-body { padding: 24px 20px 26px; }
    .contact-form { padding: 24px 18px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-aside { padding: 26px 20px; }
    .notice { padding: 28px 20px; }
    .cta-band .wrap { padding-block: 44px; }
    .button-row .button { flex: 1 1 auto; justify-content: center; }
    .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
    .brand-logo { height: 32px; }
    .site-header .wrap { gap: 8px; }
    .fact b { font-size: 30px; }
}
@media (max-width: 340px) {
    .facts { grid-template-columns: minmax(0, 1fr); }
    .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .card:hover .card-media img { transform: none; }
}

/* Lange deutsche Woerter in Ueberschriften sauber trennen (z. B. "Sonderkonstruktionen" auf dem Handy) */
h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }

/* STAIDIUM Group: Rücksprung zur Holding ganz rechts in der Kopfzeile */
.brand-group { display: contents; }
.group-link { order: 99; display: flex; flex: 0 0 auto; align-items: center; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.group-link img { display: block; width: auto; height: 28px; opacity: 0.9; transition: opacity 0.2s ease; }
.group-link:hover img, .group-link:focus-visible img { opacity: 1; }
@media (max-width: 640px) {
    .group-link { padding-left: 10px; }
    .group-link img { height: 20px; }
}

/* Kopfzeile: die Navigation passt erst ab ca. 1100 px neben Logo, Sprachwahl und Group-Logo,
   darunter das aufklappende Menü wie auf dem Tablet (Grenze auch in main.js) */
@media (max-width: 1120px) {
    .site-header .wrap { gap: 14px; flex-wrap: wrap; }
    .site-nav { margin-left: 0; order: 10; width: 100%; padding-bottom: 12px; }
    .site-nav ul { flex-wrap: wrap; gap: 4px 18px; }
    .lang-switch { margin-left: auto; order: 2; }
    .js .site-header .wrap { flex-wrap: nowrap; }
    .js .menu-toggle { display: inline-flex; order: 3; }
    .js .site-nav { display: none; position: absolute; top: 100%; left: -24px; right: -24px; width: auto; padding: 8px 24px 20px; background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35); }
    .js .nav-open .site-nav { display: block; }
    .js .site-nav ul { flex-direction: column; gap: 0; }
    .js .site-nav li + li { border-top: 1px solid var(--line); }
    .js .site-nav a { padding: 14px 0; font-size: 17px; color: var(--white); }
    .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
}
@media (max-width: 380px) {
    .group-link { padding-left: 8px; }
    .group-link img { height: 18px; }
}

/* Markennamen in Überschriften nie automatisch trennen (z. B. nicht „STAI-DIUM“) */
.nohyph { -webkit-hyphens: manual; hyphens: manual; }
