/* Rubik (SIL OFL 1.1) – lokal eingebunden, keine Verbindung zu Google */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url('../assets/fonts/rubik/rubik-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url('../assets/fonts/rubik/rubik-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile: lange deutsche Wörter umbrechen statt seitlich überzustehen */
html,
body {
    overflow-x: clip;
}

h1, h2, h3, h4, p, li, td, th, a, label, legend {
    overflow-wrap: break-word;
}

:where([class*="grid"], [class*="layout"], [class*="container"], [class*="cards"]) > * {
    min-width: 0;
}

@media (max-width: 600px) {

    h1, h2, h3, h4, p, li, td, th {
        hyphens: auto;
    }

}

/* Barrierefreiheit: Sprunglink und sichtbarer Tastaturfokus */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;

    padding: 12px 20px;

    background: var(--dark);
    color: #fff;

    border-radius: 0 0 10px 10px;

    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.footer-heading {
    font-size: 20px;
    line-height: 1.3;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

:root {
    --primary: #0075a0; /* dunkler als das Logo-Cyan, damit Text und Buttons den WCAG-Kontrast 4,5:1 erreichen */
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #222;
    --muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================
   HEADER
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #fff;
    border-bottom: 1px solid #eaeaea;

    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

header .container {
    min-height: 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
    padding: 0 20px;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
}

nav a {
    position: relative;
    color: #334155;
    text-decoration: none;
    font-weight: 500;

    white-space: nowrap;

    transition: color .25s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;

    background: none;
    border: none;

    color: #334155;
    font: inherit;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition: color .25s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 18px);
    right: 0;

    min-width: 210px;

    padding: 10px;

    background: white;

    border: 1px solid #eef2f5;
    border-radius: 14px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 1100;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;

    width: 100%;
    padding: 11px 14px;

    border-radius: 8px;

    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

/* =========================
   HERO
   ========================= */

#hero {
    min-height: 600px;
    padding: 100px 40px;
    background: #eef3f6;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    max-width: 800px;
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 700px;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.feature {
    min-width: 0;
    padding: 14px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: white;
    border: 1px solid #e5edf2;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);

    color: var(--dark);
    text-align: center;
}

.feature .mbr-iconfont {
    display: block;
    color: var(--primary);
    font-size: 44px;
    line-height: 1;
    font-weight: 400;
}

.feature strong {
    font-size: 14px;
    font-weight: 600;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* =========================
   BUTTONS
   ========================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    text-decoration: none;
    font-weight: 600;

    transition: 0.3s ease;
}

.btn-primary {
    padding: 14px 30px;

    background: var(--primary);
    color: white;

    border: 2px solid var(--primary);
    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #005f82;
    border-color: #005f82;
}

.btn-secondary {
    gap: 8px;

    padding: 14px 20px;

    color: var(--primary);
    background: transparent;

    border: 2px solid transparent;
    border-radius: 10px;
}

.btn-secondary::after {
    content: "→";
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    color: #111827;
}

.btn-secondary:hover::after {
    transform: translateX(5px);
}

/* =========================
   ALLGEMEINE SECTIONS
   ========================= */

section {
    padding: 90px 20px;
}

section h2 {
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 38px;
    line-height: 1.2;
}

section > p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================
   LÖSUNGSKARTEN
   ========================= */

.kachel {
    padding: 30px;

    background: var(--light);
    border-radius: 24px;
    border: 1px solid #eef2f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kachel:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

.kachel h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.kachel p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.kachel img {
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 6px;
    display: block;
}

#produkte {
    background: white;
}

/* Einstieg nach Zielgruppe */
#zielgruppen {
    background: #fff;
}

.zielgruppe {
    display: flex;
    flex-direction: column;

    color: inherit;
    text-decoration: none;
}

.zielgruppe p {
    flex: 1;
}

.zielgruppe-icon {
    margin-bottom: 18px;

    color: var(--primary);

    font-size: 46px;
}

.kacheln-container {
    max-width: 1100px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.kachel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;

    color: var(--primary);
    font-weight: 600;
    text-decoration: none;

    transition: 0.25s ease;
}

.kachel-link::after {
    content: "→";
    transition: transform 0.25s ease;
}

.kachel-link:hover {
    color: #111827;
}

.kachel-link:hover::after {
    transform: translateX(5px);
}

/* =========================
   ABLAUF
   ========================= */

#ablauf {
    background: white;
}

.ablauf-intro {
    margin-bottom: 50px !important;
}

.ablauf-container {
    max-width: 1000px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.ablauf-schritt {
    display: flex;
    gap: 25px;

    padding: 30px;

    background: var(--light);
    border-radius: 24px;
    border: 1px solid #eef2f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ablauf-schritt:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

.schritt-nummer {
    flex-shrink: 0;

    font-size: 32px;
    font-weight: 700;
    line-height: 1;

    color: var(--primary);
}

.ablauf-schritt h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.ablauf-schritt p {
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   AUSZEICHNUNGEN
   ========================= */

#auszeichnungen {
    background: var(--light);
}

.auszeichnungen-intro {
    margin-bottom: 50px !important;
}

.auszeichnungen-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.auszeichnung {
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #eef2f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auszeichnung:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

.auszeichnung-bild {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 22px;

    display: block;
    object-fit: contain;

    border-radius: 14px;
}

.auszeichnung h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.auszeichnung p {
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   ÜBER UNS
   ========================= */

#ueber-uns {
    background: white;
}

#ueber-uns p {
    max-width: 800px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

#ueber-uns p:last-child {
    margin-bottom: 0;
}

.ueber-uns-button {
    margin-top: 30px;
    text-align: center;
}

/* =========================
   PARTNER & UNTERSTÜTZER
   ========================= */

#partner {
    overflow: hidden;
    background: var(--light);
}

.partner-marquee {
    width: 100%;
    max-width: 1200px;
    margin: 45px auto 0;
    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent,
            #000 8%,
            #000 92%,
            transparent
        );

    mask-image:
        linear-gradient(
            to right,
            transparent,
            #000 8%,
            #000 92%,
            transparent
        );
}

.partner-track {
    display: flex;
    width: max-content;

    animation:
        partner-scroll 28s linear infinite;
}

.partner-group {
    display: flex;
    align-items: center;
    gap: 60px;

    padding-right: 60px;
}

.partner-logo-item {
    width: 190px;
    height: 110px;
    flex: 0 0 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: white;
    border: 1px solid #eef2f5;
    border-radius: 18px;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 78px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.partner-marquee:hover .partner-track {
    animation-play-state: paused;
}

@keyframes partner-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .partner-track {
        animation: none;
    }

    .partner-group[aria-hidden="true"] {
        display: none;
    }
}

/* =========================
   KONTAKT
   ========================= */

#kontakt {
    background: white;
    text-align: center;
}

#kontakt p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 18px;
    line-height: 1.8;
}

.kontakt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================
   FOOTER
   ========================= */

#footer {
    background: #0b1220;
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.3fr 1.2fr 1fr;
    gap: 45px;
}

.footer-col h4,
.footer-col .footer-heading {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px 20px;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-col strong {
    font-weight: 600;
}

.footer-col > a {
    display: inline-block;
    margin-bottom: 7px;
}

.footer-partner {
    margin-top: 25px;
}

.footer-social {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-col h4,
.footer-col .footer-heading {
    color: #4ca6c4;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 15px;
    align-items: center;
}

.social-links img {
    width: 60px;
    height: 60px;
    object-fit: contain;

    filter: invert(1);
    opacity: 0.9;
}

.social-links a {
    display: flex;
    align-items: center;
}

.social-links a:hover img {
    opacity: 1;
}

.social-links a[aria-label="LinkedIn"] img {
    width: 34px;
    height: 34px;
}

/* =========================
   SCROLL-ANIMATION
   ========================= */

.reveal {
    opacity: 0;
    translate: 0 25px;

    transition:
        opacity 0.6s ease,
        translate 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    translate: 0 0;
}

/* =========================
   MOBILE MENÜ
   ========================= */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 28px;
    height: 3px;

    margin: 5px 0;

    background: #222;
    border-radius: 2px;

    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   NACH-OBEN-BUTTON
   ========================= */

#scrollTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.2s ease;

    z-index: 900;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
    background: #005f82;
}



/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 900px) {

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-image {
        width: 100%;
    }

    .kacheln-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auszeichnungen-container {
    grid-template-columns: repeat(2, 1fr);
}

.partner-container {
    grid-template-columns: repeat(2, 1fr);
}
}


@media (max-width: 600px) {

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 30px;
    }

    header .container {
        position: relative;

        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        padding: 15px 20px;
    }

    .logo img {
        height: 55px;
    }

    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background: white;

        padding: 20px;

        border-top: 1px solid #e5e5e5;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }

    header nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;

        gap: 20px;
    }

    #hero {
        padding: 70px 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        margin-right: 0;

        width: 100%;

        text-align: center;
    }

    .hero-features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .feature {
        min-width: 0;
    }

    .ablauf-container {
        grid-template-columns: 1fr;
    }

    .kontakt-buttons {
        flex-direction: column;
        align-items: center;
    }

    .kontakt-buttons a {
        width: 100%;
        max-width: 300px;

        text-align: center;

        margin-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .auszeichnungen-container {
        grid-template-columns: 1fr;
    }

    /* Mobile Dropdown */

    .dropdown {
        width: 100%;

        text-align: center;
    }

    .dropdown-toggle {
        margin: 0 auto;
    }

    .dropdown-menu {
        position: static;

        min-width: 0;
        width: 100%;

        margin-top: 10px;

        box-shadow: none;
        border: none;

        transform: none;

        display: none;

        opacity: 1;
        visibility: visible;

        background: var(--light);
    }

    .dropdown.open .dropdown-menu {
        display: block;

        transform: none;
    }

    .dropdown-menu a {
        text-align: center;
    }

}


/* =========================
   FAQ
   ========================= */

.faq-section {
    background: var(--light);
}

.faq-header {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.faq-header .page-label {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;

    border: 1px solid #eef2f5;
    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
    position: relative;

    padding: 20px 56px 20px 24px;

    color: var(--dark);

    font-size: 17px;
    font-weight: 600;

    list-style: none;

    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 24px;

    color: var(--primary);

    font-size: 26px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--muted);

    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.faq-answer a {
    color: var(--primary);
}



/* =========================
   INTERAKTIVE 3D-DEMOS
   ========================= */

.viewer3d-section {
    background: #fff;
}

.viewer3d-header {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.viewer3d-header .page-label {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.viewer3d-header p:not(.page-label) {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.viewer3d {
    max-width: 1000px;
    margin: 0 auto;
}

.viewer3d-config {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

.viewer3d-config .viewer3d-hint,
.viewer3d-config .viewer3d-fallback {
    grid-column: 1 / -1;
}

.viewer3d-stage {
    position: relative;

    height: min(62vh, 480px);
    min-height: 300px;

    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eaf1f5 70%, #dde7ed 100%);

    border: 1px solid #e3eaef;
    border-radius: 24px;

    overflow: hidden;
    cursor: grab;
}

.viewer3d-stage:active {
    cursor: grabbing;
}

.viewer3d-stage canvas {
    position: relative;

    display: block;
    width: 100%;
    height: 100%;
}

.viewer3d-stage::before {
    content: "3D-Modell wird geladen …";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: var(--muted);
}

.viewer3d-ready .viewer3d-stage::before {
    display: none;
}

.viewer3d-controls {
    margin-top: 16px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.viewer3d-group,
.viewer3d-rotate {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.viewer3d-btn {
    min-height: 44px;
    padding: 10px 18px;

    background: #fff;

    border: 1px solid #cbd5e1;
    border-radius: 999px;

    color: var(--dark);

    font: inherit;
    font-weight: 500;

    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.viewer3d-btn:hover {
    border-color: var(--primary);
}

.viewer3d-btn[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.viewer3d-rotate .viewer3d-btn {
    width: 44px;
    padding: 0;

    font-size: 20px;
}

.viewer3d-caption {
    min-height: 28px;
    margin-top: 14px;

    color: var(--dark);

    font-weight: 500;
    text-align: center;
}

.viewer3d-hint {
    margin-top: 8px;

    color: var(--muted);

    font-size: 14px;
    text-align: center;
}

.viewer3d-fallback {
    display: none;
}

.viewer3d-no-webgl .viewer3d-stage,
.viewer3d-no-webgl .viewer3d-controls,
.viewer3d-no-webgl .viewer3d-panel,
.viewer3d-no-webgl .viewer3d-hint {
    display: none;
}

.viewer3d-no-webgl .viewer3d-fallback {
    display: block;
    text-align: center;
}

.viewer3d-panel {
    padding: 24px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    background: var(--light);

    border: 1px solid #eef2f5;
    border-radius: 24px;
}

.viewer3d-panel .viewer3d-controls {
    margin-top: 0;
    justify-content: flex-start;
}

.viewer3d-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.viewer3d-field label,
.viewer3d-field-label {
    display: flex;
    justify-content: space-between;

    color: var(--dark);

    font-weight: 600;
}

.viewer3d-field output {
    color: var(--primary);
    font-weight: 700;
}

.viewer3d-field input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.viewer3d-check {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--dark);
}

.viewer3d-check input {
    width: 18px;
    height: 18px;

    accent-color: var(--primary);
}

.viewer3d-stats {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 860px) {

    .viewer3d-config {
        grid-template-columns: 1fr;
    }

    .viewer3d-stage {
        height: 360px;
    }

}



/* Sprachumschalter in der Navigation */
nav a[hreflang][lang] {
    padding: 4px 10px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
}

nav a[hreflang][lang]::after {
    display: none;
}



/* =========================
   MARKENAUFTRITT (wie Think3DDD)
   Farben aus dem 3D-Medico-Logo. Blau ist kontraststark genug für Text und
   Buttons; Türkis und Himmelblau nur für Flächen, Linien und Verläufe.
   ========================= */

:root {
    --brand-blue: #0f7699;
    --brand-blue-dark: #0a5d79;
    --brand-teal: #17b2ac;
    --brand-sky: #3acdff;
    --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-sky) 100%);

    --primary: var(--brand-blue);
}

.btn-primary:hover,
#scrollTopBtn:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
}

/* Header: größeres Logo, beim Scrollen kompakter, Verlaufslinie */
header {
    border-bottom: 0;
}

header::after,
#footer::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--brand-gradient);
}

header::after {
    bottom: 0;
}

#footer {
    position: relative;

    background: #082a37;
}

#footer::before {
    top: 0;
}

header .container {
    min-height: 96px;
    transition: min-height 0.25s ease;
}

.logo img {
    height: 64px;
    transition: height 0.25s ease;
}

header.scrolled .container {
    min-height: 72px;
}

header.scrolled .logo img {
    height: 48px;
}

.header-cta {
    padding: 10px 18px;

    background: var(--primary);
    color: #fff;

    border-radius: 10px;

    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition: transform 0.25s ease, background 0.25s ease;
}

.header-cta:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {

    .header-cta {
        display: none;
    }

}

@media (max-width: 900px) {

    header .container,
    header.scrolled .container {
        min-height: 76px;
    }

    .logo img,
    header.scrolled .logo img {
        height: 52px;
    }

}

/* Akzentbalken unter Bereichsüberschriften */
section > h2::after,
.section-header h2::after,
[class$="-section-header"] h2::after,
.faq-header h2::after,
.viewer3d-header h2::after {
    content: "";

    display: block;

    width: 64px;
    height: 4px;
    margin: 16px auto 0;

    border-radius: 4px;

    background: var(--brand-gradient);
}

/* Karten: Verlaufslinie oben beim Überfahren */
.kachel {
    position: relative;
    overflow: hidden;
}

.kachel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--brand-gradient);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.kachel:hover::before,
.kachel:focus-visible::before {
    transform: scaleX(1);
}

/* Logo im Footer */
.footer-brand {
    margin-bottom: 18px;
}

.footer-brand img {
    display: inline-block;

    width: auto;
    height: 76px;
    padding: 10px 14px;

    background: #fff;

    border-radius: 12px;
}

.hero-eyebrow {
    margin-bottom: 14px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}



/* =========================
   MARKENAKZENTE STUFE 2 (wie Think3DDD)
   ========================= */

:root {
    --brand-teal-text: #08736e;   /* Türkis für Text: 5,1–5,7:1 auf hellen Flächen */
    --brand-tint-sky: #e9f8ff;
    --brand-step-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-teal-text));
}

/* Kleine Überschriften über Titeln (main-Präfix: muss die Seiten-CSS überstimmen) */
main .page-label,
main .hero-eyebrow,
main .legal-label,
main .faq-header .page-label,
main .viewer3d-header .page-label {
    color: var(--brand-teal-text);
}

/* Leistungskarten mit türkiser Oberkante */
main #produkte .kachel,
main .zielgruppe,
main .software-product-card,
main .produkt,
main .variante-card,
main .printer-card {
    border-top: 4px solid var(--brand-teal);
}

/* Schritt-Nummern im Markenverlauf */
main .schritt-nummer {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: var(--brand-step-gradient);
    color: #fff;

    font-size: 1.15rem;
    font-weight: 700;
}

main .scan-mini-step > span,
main .timeline-number {
    background: var(--brand-step-gradient);
    color: #fff;
}

main .scan-tech-number,
main .software-tech-number,
main .print-step-number {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border-radius: 50%;

    background: var(--brand-step-gradient);
    color: #fff;

    font-size: 26px;
}

/* FAQ: geöffnete Frage hervorheben */
.faq-item[open] {
    border-color: var(--brand-teal);
}

/* 3D-Demos: heller Himmelblau-Hintergrund */
.viewer3d-stage {
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--brand-tint-sky) 75%);
}
