/* ==========================================================================
   adnamics – Startseite
   ========================================================================== */

@font-face { font-family: "Open Sans"; src: url(/font/OpenSans-Light.ttf);       font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/font/OpenSans-LightItalic.ttf); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/font/OpenSans-Regular.ttf);     font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/font/OpenSans-SemiBold.ttf);    font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/font/OpenSans-Bold.ttf);        font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --dark: #1f1f1f;
    --grey: #d9d9d9;
    --light: #f4f4f4;
    --white: #fff;
    --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--dark);
    background: var(--white);
}

img { width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
h2, h3 { font-weight: 400; margin-bottom: .6rem; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }

.container {
    position: relative;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header.home {
    padding-bottom: 6rem;
    margin-bottom: 6rem;
    background: var(--dark) url("/images/background.png") right center / contain no-repeat;
    color: var(--white);
}

.nav-main {
    position: fixed;
    z-index: 3;
    left: 0;
    right: 0;
    top: 0;
    transition: background .25s;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max);
    margin: auto;
    /* feste Höhe: die Navi ändert beim Scrollen nur den Hintergrund, nicht die Größe */
    padding: .8rem 1rem;
}
.nav-main.scrolled { background: var(--dark); }

.logo-wrap svg {
    display: block;
    width: 120px;
    height: calc(120px * 290.4 / 1035.29);
    fill: var(--white);
}

/* Navigation: siehe Abschnitt „Navigation“ weiter unten */

.burger {
    display: none;
    position: absolute;
    z-index: 5;
    right: 1rem;
    top: 50%;
    width: 35px;
    height: 26px;
    margin-top: -13px; /* vertikal mittig zur Navi-Leiste */
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: .3s;
}
.burger span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: .3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 12px; }
.burger span:nth-child(3) { top: 24px; }

header h1 {
    width: 52%;
    max-width: 645px;
    margin: 0;
    padding: 8rem 0 1rem;
    font-size: 45px;
    font-weight: 300;
    line-height: 1.4;
}
header h1 b { display: block; font-weight: 500; }
header .lead { max-width: 600px; font-size: 19px; }

/* --------------------------------------------------------------------------
   Zitat & Features
   -------------------------------------------------------------------------- */
.start { display: none; }

.quote {
    isolation: isolate;
    max-width: 64vw;
    margin: 3.5rem auto;
    text-align: center;
}
.quote::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1.3rem;
    top: -.8rem;
    width: 90px;
    height: 90px;
    background: url("/images/quote.svg") center / contain no-repeat;
}
.quote blockquote { margin: 0; }
.quote h2 { margin-top: 0; font-size: 2.05vw; font-weight: 400; }
.quote figcaption {
    font-size: 15px;
    letter-spacing: .1rem;
    text-transform: uppercase;
}

.features { display: flex; flex-flow: row wrap; margin-top: 1.7rem; margin-bottom: 1.7rem; }
.feature { width: 25%; margin: 4rem 0; padding: 1rem; text-align: center; }
.feature h3 {
    margin: 1em 0 .6rem;
    font-size: 1.01rem;
    font-weight: 700;
    letter-spacing: .06rem;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Vorteile (Kachel-Mosaik)
   -------------------------------------------------------------------------- */
.benefits { margin-top: 4.7rem; margin-bottom: 1.7rem; padding-top: 2rem; }
.benefits--first { margin-top: 1.7rem; padding-top: 0; }

.section-title { margin: 3rem 0; font-size: 45px; font-weight: 300; text-align: center; }
.section-title b { display: block; font-weight: 700; }

.mosaic { display: flex; gap: 1rem; padding: 0 .5rem; }
.col { flex: 1 1 0; display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }

.tile { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.tile h3 { margin: 0; }
.tile--grey  { background: var(--grey); padding: 2rem; align-items: center; }
.tile--image { background: var(--light); }
.tile--photo { min-height: 200px; background: center / cover no-repeat; }
.tile-img    { min-height: 260px; background: center / cover no-repeat; }
.tile-text   { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }

/* Höhenverhältnisse wie im Original (65/35, 35/65, 57/43) */
.col:nth-child(1) .tile:nth-child(1) { flex: 65; }
.col:nth-child(1) .tile:nth-child(2) { flex: 35; }
.col:nth-child(2) .tile:nth-child(1) { flex: 35; }
.col:nth-child(2) .tile:nth-child(2) { flex: 65; }
.col:nth-child(3) .tile:nth-child(1) { flex: 57; min-height: 260px; }
.col:nth-child(3) .tile:nth-child(2) { flex: 43; }

/* Button mit Pfeil-Kreis */
.btn-box { display: flex; justify-content: flex-end; margin: 1rem .5rem 4rem 0; }
.btn {
    display: flex;
    align-items: center;
    max-width: 330px;
    margin-top: 1.2rem;
    font-size: 20px;
    font-weight: 300;
    text-align: right;
}
.btn span {
    position: relative;
    flex: none;
    display: flex;
    width: 42px;
    height: 42px;
    margin-left: .5rem;
    border: 1px solid #000;
    border-radius: 50%;
    overflow: hidden;
}
.btn span::before, .btn span::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url("/images/arrow.svg") center / 14px no-repeat;
}
.btn span::after  { left: 2px;   transition: .4s; }
.btn span::before { left: -100%; transition: .5s; }
.btn:hover span::after, .btn:focus-visible span::after { left: 30px; }
.btn:hover span::before, .btn:focus-visible span::before { left: 2px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { margin-top: 4rem; padding-top: 2rem; text-align: center; background: var(--white); }
footer.footer--flush { margin-top: 0; padding-top: 0; }
.footer-bg {
    margin-bottom: 4rem;
    background: url("/images/footerbg.jpg") center / cover no-repeat fixed;
}
.brands {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
    padding: 5rem 5vw;
}
.brands img { width: auto; max-width: 170px; max-height: 30px; object-fit: contain; }

.footer-logo {
    display: block;
    width: 130px;
    height: calc(130px * 290.4 / 1035.29);
    margin: auto;
    fill: var(--dark);
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 3rem;
}
.links a, .ck-btn {
    padding: 1rem;
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    color: var(--dark);
    transition: .3s;
}
.ck-btn { border: 0; background: none; cursor: pointer; }
.links a:hover, .ck-btn:hover { text-shadow: 0 0 1px var(--dark); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    header h1 { font-size: 38px; }
    h2, .quote h2 { font-size: 24px; }
    .quote { max-width: 600px; }
    .feature { width: 50%; margin: 2rem 0; }
}

@media (max-width: 945px) {
    .btn-box { margin-right: 0; }
    .burger { display: block; }
    .burger.open span:nth-child(2) { display: none; }
    .burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
    .burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
    .logo-wrap svg { width: 105px; height: calc(105px * 290.4 / 1035.29); }


    .mosaic { flex-direction: column; gap: 0; padding: 0; }
    .col { margin: 0; }
    .col + .col { margin-top: 1rem; }
    .col .tile { flex: none !important; }
    .tile-img, .tile--photo, .col:nth-child(3) .tile:nth-child(1) { min-height: 450px; }
}

@media (max-width: 780px) {
    html, body { font-size: 17px; }
    header.home { margin-bottom: 0; padding-bottom: 8rem; }
    header h1 { width: 100%; max-width: none; font-size: 6vw; }
    .start {
        position: relative;
        z-index: 2;
        display: block;
        margin: 1rem 0 5rem;
        padding: 0 1rem;
    }
    .img-top {
        display: block;
        height: 115vw;
        max-height: 600px;
        margin: -6rem 0 0;
        object-fit: cover;
    }
    .quote { margin-top: 3rem; margin-bottom: 3rem; }
    .features { margin-top: 3rem; margin-bottom: 3rem; }
    .feature { width: 100%; margin: 1rem 0; padding: 0; }
    .section-title { margin-top: 5rem; font-size: 35px; }
    .brands img { max-width: 26vw; max-height: 35px; }
}

@media (max-width: 700px) {
    .links { display: block; padding: 0 1rem; }
}

@media (max-width: 520px) {
    header h1 { font-size: 8vw; }
    .quote { margin: 1rem auto; }
    .quote h2 { font-size: 21px; }
    .section-title { margin: 1rem 0; font-size: 27px; }
    .benefits--first { margin-top: 4rem; }
    .tile-img, .tile--photo, .col:nth-child(3) .tile:nth-child(1) { min-height: 300px; }
}

@media (max-width: 420px) {
    h3 { font-size: 20px; }
    .section-title { font-size: 26px; }
    .tile--grey, .tile-text { padding: 1.5rem 1rem 1rem; }
    .links a, .ck-btn { display: inline-block; padding: .4rem .5rem; }
}

@media (max-width: 360px) {
    .quote h2 { font-size: 19px; }
    .quote figcaption { font-size: 14px; letter-spacing: .06rem; }
}

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

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* Kopfbereich ohne Hintergrundgrafik */
header.page {
    padding-bottom: 6rem;
    margin-bottom: 2rem;
    background: var(--dark);
    color: var(--white);
}
header.page h1 { padding-top: 8.4rem; }
header.page h1 b { display: inline; }

/* Buttons: Variante mit Rahmen (im dunklen Kopf) + <button>-Reset */
button.btn {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
.btn--outline {
    display: inline-block;
    margin: .5rem 0;
    padding: .5rem 1.5rem;
    border: 1px solid var(--white);
    border-radius: 50px;
    font-size: 18px;
    color: var(--white);
    transition: .3s;
}
.btn--outline:hover, .btn--outline:focus-visible { background: var(--white); color: #000; }
.btn--center { justify-content: center; margin: 0 auto 3rem; }

/* Intro: Text links, Bild ragt in den dunklen Kopf */
.intro { display: flex; flex-flow: row wrap; }
.intro-text { width: 55%; padding: 2rem 2rem 2rem 0; }
.intro-text h2 { max-width: 480px; font-size: 30px; font-weight: 300; }
.intro-media { width: 45%; padding-left: 1rem; }
.intro .img-top {
    display: block;
    max-width: 555px;
    height: 750px;
    margin-top: -17rem;
    object-fit: cover;
}
.strong-600 b { font-weight: 600; }
.small { font-size: 17px; }
.note { color: rgba(17, 17, 17, .42); }

/* Zweispaltige Textblöcke (Impressum, AGB, Datenschutz) */
.legal { margin-top: 3rem; margin-bottom: 1.7rem; padding-top: 2rem; }
.legal-row { display: flex; flex-flow: row wrap; }
.legal-head { width: 40%; margin: .7rem 0; padding-right: 1rem; }
.legal-head h2 { margin: .55rem 0; }
.legal-body { width: 60%; margin: .7rem 0; padding-left: 1rem; }
.legal-body > :first-child { margin-top: 1rem; }
.legal-body > p:last-child { margin-bottom: 1rem; }
.legal--text { margin-top: 1.7rem; padding-top: 0; }
.legal--text p, .legal--text li { font-size: 18px; line-height: 1.35; }
.legal--text a { hyphens: auto; overflow-wrap: anywhere; }
.legal--text h2 { font-size: 27px; }
.indent { margin-left: 1.5rem; }
/* Sprungziele nicht unter der fixierten Navigation verstecken */
[id] { scroll-margin-top: 6rem; }

/* Abschnitt mit Abstand nach oben */
.section { margin-top: 3rem; margin-bottom: 1.7rem; padding-top: 2rem; }

/* Haken-Liste (Advertiser) */
.checks { display: flex; flex-flow: row wrap; }
.check { width: 33.33%; padding: 1rem; text-align: center; }
.check img { display: block; width: 45px; height: 45px; margin: 0 auto 1rem; object-fit: contain; }
.check h3 {
    margin: 0 0 .6rem;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .1rem;
    text-transform: uppercase;
    hyphens: auto;
}

/* Kachel: Foto mit Text darüber */
.tile--photo-text {
    position: relative;
    padding: 1.5rem;
    align-items: center;
    color: var(--white);
}
.tile--photo-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 47, 47, .8);
}
.tile--photo-text > * { position: relative; }

/* Handbuch-Hinweis */
.handbook { display: flex; flex-direction: column; align-items: center; margin-top: 2rem; text-align: center; }

/* Produktkacheln (Publisher) */
.products-title { margin-top: 3rem; padding-top: 2rem; }
.products { display: flex; flex-flow: row wrap; margin-bottom: 5rem; }
.product {
    position: relative;
    width: 50%;
    padding: 5rem 3rem;
    color: var(--dark);
    background: #f2f2f2;
}
.product--dark { color: var(--white); background: var(--dark); }
.product--right { text-align: right; }
.product img {
    display: block;
    height: 400px;
    object-fit: contain;
    object-position: right;
}
.product--left-img img { object-position: left; }
.product h3 { margin-top: 2rem; font-weight: 300; }
.product h3 b { display: block; }
.product .cnt { min-height: 200px; }
.product-label {
    display: inline-block;
    margin-top: 2rem;
    padding: .4rem 1.5rem;
    border: 2px solid var(--dark);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
}
.product--dark .product-label { border-color: var(--white); }
.product:nth-child(-n+2) { padding-bottom: 10rem; }
.product:nth-child(1) .product-label { position: absolute; right: 3rem; bottom: 6rem; }
.product:nth-child(2) .product-label { position: absolute; left: 3rem; bottom: 6rem; }

/* Werte-Wolke (Über uns) */
.values { margin: 5rem auto; }
.values > div { display: flex; justify-content: center; align-items: center; }
.values p { margin: .6rem 2rem; font-size: 29px; }
.values > div:nth-child(odd) > :nth-child(odd),
.values > div:nth-child(even) > :nth-child(even) { font-weight: 700; }
.values h2 {
    margin: .6rem 2rem;
    font-size: 40px;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
}

/* Team-Raster (Über uns) */
.team-row { display: flex; }
.team-photo, .team-aside { width: 25%; padding: .5rem; }
.team-photo img { display: block; height: 100%; object-fit: cover; }
.team-bio { width: 50%; padding: .5rem; }
.team-bio > div {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2rem;
    color: var(--white);
    background: var(--dark);
}
.team-bio h3 { margin: 0; font-size: 25px; font-weight: 700; }
.team-bio h4 { margin: 0 0 2rem; font-size: 25px; font-weight: 300; }
.team-bio b { font-weight: 600; }
.team-aside { display: flex; flex-direction: column; }
.team-aside > img { display: block; height: calc(50% - .5rem); margin-bottom: .5rem; object-fit: cover; }
.team-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(50% - .5rem);
    margin-top: .5rem;
    padding: 2rem;
    text-align: center;
    background: var(--light);
    transition: background .3s;
}
.team-link:hover, .team-link:focus-visible { background: #e9e9e9; }
.team-link img { width: 29px; height: 29px; margin-bottom: 1rem; }
.team-link b { display: block; }

/* --------------------------------------------------------------------------
   Unterseiten – Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .product img { height: 290px; }
    .values p { font-size: 2.8vw; }
}

@media (max-width: 945px) {
    .check { width: 50%; }
    .product { padding: 3rem 2rem; }
    .product img { height: 220px; }
    .product:nth-child(-n+2) { padding-bottom: 9rem; }
    .product:nth-child(1) .product-label { right: 2rem; bottom: 5rem; }
    .product:nth-child(2) .product-label { left: 2rem; bottom: 5rem; }
    .values h2 { font-size: 3.5vw; }

    .team-row { flex-flow: row wrap; }
    .team-photo { order: 1; width: 40%; }
    .team-bio { order: 2; width: 60%; }
    .team-aside { order: 3; flex-direction: row; justify-content: space-between; width: 100%; gap: 1rem; }
    .team-aside > img { width: calc(55% - .5rem); height: 170px; margin: 0; }
    .team-link { flex-direction: row; flex-wrap: wrap; width: calc(45% - .5rem); height: auto; margin: 0; }
    .team-link img { margin: 0 .7rem 0 0; }
    .team-link b { display: inline; }
}

@media (max-width: 780px) {
    header.page { margin-bottom: 0; padding-bottom: 8rem; }
    header.page h1 { padding-top: 8rem; }
    .intro-text { order: 2; width: 100%; padding: 1.5rem 0 2rem; }
    .intro-media { order: 1; width: 100%; padding: 0; position: relative; z-index: 2; }
    .intro .img-top { max-width: none; height: 115vw; max-height: 600px; margin: -6rem 0 0; }
    .legal-head, .legal-body { width: 100%; padding: 0; }
    .legal-body > :first-child { margin-top: 0; }
    .legal { margin-top: 3rem; }

    .product { width: 100%; text-align: center; }
    .product img { margin-left: auto; margin-right: auto; object-position: center !important; }
    .product:nth-child(-n+2) { padding-bottom: 3rem; }
    .product .product-label { position: static !important; margin-top: 1rem; }
    .product .cnt { min-height: 0; }
    /* auf Mobil abwechselnd dunkel/hell */
    .product:nth-child(3) { color: var(--white); background: var(--dark); }
    .product:nth-child(3) .product-label { border-color: var(--white); }
    .product:nth-child(4) { color: var(--dark); background: #f2f2f2; }
    .product:nth-child(4) .product-label { border-color: var(--dark); }
    .product:nth-child(n+3) img { margin-top: 1.5rem; }

    .values p { font-size: 3vw; margin: .6rem 1rem; }
    .values h2 { margin: .6rem 1rem; }
}

@media (max-width: 700px) {
    .team-photo { width: 100%; height: 650px; }
    .team-photo img { object-position: 50% 18%; }
    .team-bio { width: 100%; }
    .team-link { flex-direction: column; }
    .team-link img { margin: 0 0 .7rem; }
}

@media (max-width: 520px) {
    .intro-text h2 { hyphens: auto; }
    .intro-text h2 br { display: none; }
    .check { display: flex; width: 100%; padding: 1rem 0; text-align: left; }
    .check img { flex: none; width: 33px; height: 33px; margin: 0; }
    .check > div { padding-left: 1rem; }
    .check h3 { margin-bottom: 0; font-size: 18px; letter-spacing: .07rem; }
    .check p { margin-top: .5rem; }
    .values > div { justify-content: space-evenly; }
    .values p { font-size: 4vw; margin: .5rem .25rem; }
    .values h2 { font-size: 4vw; margin: .5rem 1rem; }
    .team-bio > div { padding: 1.2rem; }
    .team-photo { height: 110vw; max-height: 520px; }
}

@media (max-width: 420px) {
    .team-aside { position: relative; }
    .team-aside > img { width: 100%; }
    .team-link {
        position: absolute;
        inset: .5rem;
        width: auto;
        color: var(--white);
        background: rgba(0, 0, 0, .4);
        backdrop-filter: blur(3px);
    }
    .team-link img { filter: invert(1); }
}

@media (max-width: 360px) {
    .values p { font-size: 4.8vw; }
    .values h2 { font-size: 4.5vw; margin: .5rem .3rem; }
}

/* ==========================================================================
   Navigation
   Seitenlinks · Kundenbereich (externe App) · Sprache
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

nav { display: flex; align-items: center; max-width: calc(100% - 128px); }
.nav-panel { display: flex; align-items: center; }

/* Seitenlinks */
.nav-primary { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-primary a {
    position: relative;
    display: block;
    margin: 0 1rem;
    font-size: 18px;
    font-weight: 300;
    color: var(--white);
    transition: text-shadow .3s;
}
.nav-primary a:hover,
.nav-primary a:focus-visible,
.nav-primary a[aria-current="page"] { text-shadow: 1px 0 0 var(--white); }
.nav-primary a::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -35px;
    top: -.55rem;
    width: 40px;
    height: 40px;
    opacity: 0;
    background: url("/images/glow.png") center / contain no-repeat;
    transition: left .5s var(--ease-out), opacity .5s;
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { left: calc(100% - 20px); opacity: 1; }

/* Kundenbereich: Login + Registrieren führen in die externe App */
.nav-account {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: 1rem;
    padding-left: 1.4rem;
    border-left: 1px solid rgba(255, 255, 255, .22);
}
.nav-account a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem 1rem;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .15s var(--ease-out);
}
.nav-account .nav-login:hover, .nav-account .nav-login:focus-visible { background: rgba(255, 255, 255, .1); }
.nav-account .nav-register { border-color: rgba(255, 255, 255, .7); }
.nav-account .nav-register:hover, .nav-account .nav-register:focus-visible { background: var(--white); border-color: var(--white); color: var(--dark); }
.nav-account a:active { transform: scale(.96); }
.nav-ext {
    flex: none;
    width: .7em;
    height: .7em;
    background: currentColor;
    -webkit-mask: url("/images/external.svg") center / contain no-repeat;
    mask: url("/images/external.svg") center / contain no-repeat;
    transition: transform .35s var(--ease-out);
}
.nav-account a:hover .nav-ext, .nav-account a:focus-visible .nav-ext { transform: translate(2px, -2px); }

/* Sprache: immer „DE / EN“, aktuelle Sprache hervorgehoben */
.nav-lang {
    display: flex;
    align-items: center;
    margin-left: 1.1rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}
.nav-lang > * { padding: .35rem .25rem; color: rgba(255, 255, 255, .55); transition: color .25s; }
.nav-lang > :first-child::after { content: '/'; margin-left: .5rem; font-weight: 300; color: rgba(255, 255, 255, .3); }
.nav-lang-current { color: var(--white); }
.nav-lang a:hover, .nav-lang a:focus-visible { color: var(--white); }

/* --------------------------------------------------------------------------
   Mobile-Menü
   -------------------------------------------------------------------------- */
@media (max-width: 945px) {
    .logo-wrap { position: relative; z-index: 5; }
    body.nav-open { overflow: hidden; }

    nav {
        position: fixed;
        inset: 0;
        z-index: 4;
        display: block;
        max-width: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--dark);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
    }
    nav.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }

    .nav-panel {
        flex-direction: column;
        align-items: stretch;
        min-height: 100%;
        padding: 6.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    }
    .nav-primary { flex-direction: column; align-items: stretch; }
    .nav-primary li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .nav-primary a {
        display: inline-block;
        margin: 0;
        padding: 1rem 0;
        font-size: 30px;
    }
    .nav-primary a::after { top: .55rem; }

    .nav-account {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
        margin: 2.25rem 0 0;
        padding: 0;
        border: 0;
    }
    .nav-account a { justify-content: center; padding: .9rem 1rem; font-size: 17px; }
    .nav-account .nav-login { border-color: rgba(255, 255, 255, .35); }
    .nav-account .nav-register { background: var(--white); border-color: var(--white); color: var(--dark); }
    .nav-account .nav-register:hover, .nav-account .nav-register:focus-visible { background: #e9e9e9; border-color: #e9e9e9; }

    .nav-lang { margin: auto 0 0; padding-top: 2.5rem; font-size: 15px; }
    .nav-lang > * { padding: .75rem .45rem; } /* ausreichend große Tippfläche */
    .nav-lang > :first-child { padding-left: 0; }

    /* Einträge steigen beim Öffnen nacheinander auf */
    .motion .nav-primary li,
    .motion .nav-account,
    .motion .nav-lang {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
        transition: opacity .25s, transform .25s;
    }
    .motion nav.open .nav-primary li,
    .motion nav.open .nav-account,
    .motion nav.open .nav-lang {
        opacity: 1;
        transform: none;
        transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
    }
    .motion nav.open .nav-primary li:nth-child(1) { transition-delay: .06s; }
    .motion nav.open .nav-primary li:nth-child(2) { transition-delay: .11s; }
    .motion nav.open .nav-primary li:nth-child(3) { transition-delay: .16s; }
    .motion nav.open .nav-account { transition-delay: .23s; }
    .motion nav.open .nav-lang { transition-delay: .3s; }
}

@media (max-width: 360px) {
    .nav-account { grid-template-columns: 1fr; }
}

@media (max-width: 945px) and (prefers-reduced-motion: reduce) {
    .motion .nav-primary li, .motion .nav-account, .motion .nav-lang { transform: none !important; }
}

/* ==========================================================================
   Motion
   Leitidee „Uplift“: Inhalte steigen aus einer Maske nach oben auf.
   Ausgangszustand nur mit html.motion (von app.js gesetzt) – ohne JS ist
   alles sichtbar.
   ========================================================================== */
:root {
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Ausgangszustand, bevor app.js die Elemente übernimmt. html.motion wird schon im
   <head> gesetzt, damit nichts kurz aufblitzt und wieder verschwindet.
   WICHTIG: Liste synchron halten mit REVEALS in js/app.js. Fehlt dort ein Selektor,
   markiert app.js das Element mit .rv-skip und es bleibt sichtbar. */
.motion :is(header h1, .section-title, .intro-text > *, header .lead, header .btn--outline,
    .intro .img-top, .start .img-top, .team-photo img, .team-aside > img, .product img,
    .mosaic .tile, .feature, .check, .values > div > *, .brands img, .quote,
    .team-bio > div, .team-link, .product .cnt, .product-label,
    .btn-box, .btn--center, .handbook):not(.rv):not(.rv-skip) {
    opacity: 0;
}

/* Initialisierung und Elemente, die schon oberhalb des Sichtbereichs liegen:
   Endzustand ohne Übergang setzen */
.rv-init .rv, .rv-init .rv *, .rv-init .rv::before,
.rv-instant, .rv-instant *, .rv-instant::before { transition: none !important; }

/* Überschriften: Zeile für Zeile aus der Grundlinie */
.h-line {
    display: block;
    overflow: hidden;
    /* Platz für Unterlängen, ohne die Zeilenhöhe zu verändern */
    padding-bottom: .12em;
    margin-bottom: -.12em;
}
.h-line__inner { display: block; }
.motion .rv--lines .h-line__inner {
    transform: translate3d(0, 110%, 0);
    transition: transform .95s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms));
}
.motion .rv--lines.is-in .h-line__inner { transform: none; }

/* Allgemeines Auftauchen */
.motion .rv--up,
.motion .rv--word {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.motion .rv--word { transform: translate3d(0, .55em, 0); }
.motion .rv--up.is-in,
.motion .rv--word.is-in { opacity: 1; transform: none; }

/* Bilder: öffnen sich von unten, Inhalt setzt sich leicht */
.motion .rv--clip {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.06);
    transform-origin: 50% 100%;
    transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.motion .rv--clip.is-in { clip-path: inset(0 0 0 0); transform: none; }

/* Kacheln: Kachel steigt, Foto darin öffnet sich */
.motion .rv--tile {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity .7s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.motion .rv--tile.is-in { opacity: 1; transform: none; }
.motion .rv--tile.tile--photo,
.motion .rv--tile .tile-img {
    clip-path: inset(100% 0 0 0);
    transition: opacity .7s var(--ease-out), transform 1s var(--ease-out), clip-path 1.1s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.motion .rv--tile .tile-img { transition-delay: calc(var(--d, 0ms) + 120ms); }
.motion .rv--tile.is-in.tile--photo,
.motion .rv--tile.is-in .tile-img { clip-path: inset(0 0 0 0); }

/* Zitat: Text steigt, das Anführungszeichen folgt aus der Tiefe */
.motion .rv--quote blockquote,
.motion .rv--quote figcaption {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.motion .rv--quote figcaption { transition-delay: .18s; }
.motion .rv--quote::before {
    opacity: 0;
    transform: translate3d(-12px, 18px, 0) scale(.9);
    transition: opacity 1s var(--ease-out) .25s, transform 1.2s var(--ease-out) .25s;
}
.motion .rv--quote.is-in blockquote,
.motion .rv--quote.is-in figcaption,
.motion .rv--quote.is-in::before { opacity: 1; transform: none; }

.motion .rv:not(.is-in) { will-change: transform, opacity; }
.motion .rv.rv-done { will-change: auto; }

/* Startseite: das Netzwerk im Hintergrund „schaltet sich ein“ */
/* ::before liegt in Dokumentreihenfolge unter dem Inhalt – kein z-index nötig,
   damit die fixierte Navigation ihren Stapelkontext behält */
header.home { position: relative; }
.motion header.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    pointer-events: none;
    animation: network-on 1.8s var(--ease-in-out) .1s both;
}
@keyframes network-on {
    from { opacity: .92; }
    to   { opacity: 0; visibility: hidden; }
}

/* --------------------------------------------------------------------------
   Micro-Interactions
   -------------------------------------------------------------------------- */

/* Pfeil-Button: Kreis füllt sich, Pfeil wird hell, kurzes Drück-Feedback */
.btn span {
    transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), transform .15s var(--ease-out);
}
.btn span::before, .btn span::after { transition-property: left, filter; }
.btn:hover span, .btn:focus-visible span { background-color: var(--dark); border-color: var(--dark); }
.btn:hover span::before, .btn:hover span::after,
.btn:focus-visible span::before, .btn:focus-visible span::after { filter: invert(1); }
.btn:active span { transform: scale(.92); transition-duration: .08s; }

.btn--outline { transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .15s var(--ease-out); }
.btn--outline:active { transform: scale(.97); }

/* LinkedIn-Kachel: Pfeil-Icon zeigt Richtung Ziel */
.team-link img { transition: transform .35s var(--ease-out); }
.team-link:hover img, .team-link:focus-visible img { transform: translate(3px, -3px); }

/* Footer-Links: Unterstrich wächst von links */
.links a, .ck-btn {
    background: linear-gradient(currentColor, currentColor) 50% calc(100% - .7rem) / 0 1px no-repeat;
    transition: background-size .35s var(--ease-out), text-shadow .3s;
}
.links a:hover, .ck-btn:hover, .links a:focus-visible, .ck-btn:focus-visible { background-size: calc(100% - 2rem) 1px; }

/* --------------------------------------------------------------------------
   Browser-Oberflächen
   -------------------------------------------------------------------------- */
::selection { background: var(--dark); color: var(--white); }
header ::selection, .product--dark ::selection, .team-bio ::selection { background: var(--white); color: var(--dark); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
html { scrollbar-color: #9a9a9a var(--white); accent-color: var(--dark); }

/* --------------------------------------------------------------------------
   Bewegung reduzieren: weiche Einblendung statt Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .motion .rv,
    .motion .rv *,
    .motion .rv::before { transform: none !important; clip-path: none !important; }
    .motion .rv--lines .h-line__inner { transform: none; }
    .motion .rv--lines { opacity: 0; transition: opacity .4s ease var(--d, 0ms) !important; }
    .motion .rv--lines.is-in { opacity: 1; }
    .motion .rv, .motion .rv--quote blockquote, .motion .rv--quote figcaption, .motion .rv--quote::before {
        transition: opacity .4s ease !important;
    }
    .motion header.home::before { animation: none; display: none; }
}

@media print {
    .motion .rv, .motion .rv *, .motion .rv::before {
        opacity: 1 !important; transform: none !important; clip-path: none !important;
    }
}
