/* Rubik – lokal gehostet (SIL Open Font License, siehe assets/fonts/OFL-Rubik.txt).
   Variable Schrift: eine Datei deckt die Stärken 300–900 ab. */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url("../assets/fonts/rubik-latin-wght-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url("../assets/fonts/rubik-latin-ext-wght-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/rubik-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: italic;
    font-display: swap;
    font-weight: 300 900;
    src: url("../assets/fonts/rubik-latin-wght-italic.woff2") format("woff2-variations"),
         url("../assets/fonts/rubik-latin-wght-italic.woff2") format("woff2");
}

/* =========================================================
   THINK3DDD – GEMEINSAME BASIS
   Wird auf allen Seiten geladen.
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Markenfarben aus dem Think3DDD-Logo.
   Blau ist kontraststark genug für Text und Buttons (5,2:1 auf Weiß).
   Türkis und Himmelblau sind Akzentfarben für Flächen, Linien und Verläufe –
   für Text in Türkis immer --brand-teal-text verwenden. */
:root {
    --brand-blue: #0f7699;
    --brand-blue-dark: #0a5d79;
    --brand-teal: #17b2ac;
    --brand-teal-text: #08736e;
    --brand-sky: #3acdff;
    --brand-tint-blue: #e8f3f7;
    --brand-tint-teal: #e7f7f6;
    --brand-tint-sky: #e9f8ff;
    --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-sky) 100%);

    --primary: var(--brand-blue);
    --primary-dark: var(--brand-blue-dark);
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #222;
    --muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rubik", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

section {
    padding: 80px 0;
}


/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.header-inner {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
}

.logo img {
    width: auto;
    height: 45px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav a {
    position: relative;
    color: #334155;
    font-weight: 500;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-cta {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .25s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 28px;
}


/* BUTTONS */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(15, 118, 153, .25);
    transition: transform .3s ease, filter .3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(.9);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: color .3s ease;
}

.btn-secondary::after {
    content: "→";
    transition: transform .3s ease;
}

.btn-secondary:hover {
    color: #111;
}

.btn-secondary:hover::after {
    transform: translateX(5px);
}


/* SECTION HEADERS */

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h1,
.section-header h2 {
    color: var(--dark);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.section-header p {
    margin-top: 10px;
    color: var(--muted);
}


/* COMMON CARDS */

.card,
.benefit-card,
.project-card,
.knowledge-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid #eef2f5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card::before,
.benefit-card::before,
.project-card::before,
.knowledge-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00c6ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.card:hover::before,
.benefit-card:hover::before,
.project-card:hover::before,
.knowledge-card:hover::before {
    transform: scaleX(1);
}

.card:hover,
.benefit-card:hover,
.project-card:hover,
.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
}

.card h3,
.benefit-card h3,
.project-card h3,
.knowledge-card h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.25rem;
}

.card p,
.benefit-card p,
.project-card p,
.knowledge-card p {
    color: #475569;
}


/* CONTACT BOX – used on several pages */

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 42px;
    border: 1px solid #eef2f5;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
}

.contact-info {
    max-width: 720px;
}

.contact-info h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.contact-info p {
    color: #475569;
}

.contact-info ul {
    margin-top: 20px;
    list-style: none;
}

.contact-info li {
    margin: 8px 0;
    color: #475569;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex: 0 0 auto;
}


/* FADE-IN */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* FOOTER */

#footer {
    padding: 60px 0 20px;
    background: #082a37;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 36px;
}

.footer-col h2,
.footer-col h4 {
    margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover,
#footer .footer-partner a {
    color: #7dd3fc;
}

.footer-partner {
    margin-top: 16px;
    font-size: .9rem;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
}

.social-links img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: invert(1);
    opacity: .9;
}


/* RESPONSIVE */

@media (max-width: 768px) {
    section {
        padding: 65px 0;
    }

    .container {
        width: 92%;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: block;
        justify-self: end;
    }

    .nav {
        z-index: 1;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 84vw);
        height: 100vh;
        padding: 40px;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 25px;
        transition: right .3s ease;
    }

    .nav.active {
        right: 0;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 2rem;
    }

    .contact-box {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions a {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .section-header h1,
    .section-header h2 {
        font-size: 1.8rem;
    }
}


/* =========================
   NACH-OBEN-BUTTON
========================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #007fa8;
    transform: translateY(-3px);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(15, 118, 153, .3);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 23px;
    }
}

/* =========================
   LEISTUNGEN-DROPDOWN
========================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}

.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown-arrow {
    font-size: .8rem;
    transition: transform .25s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 1200;
    min-width: 230px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.nav-dropdown.open .nav-submenu,
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #334155;
    white-space: nowrap;
}

.nav-submenu a::after {
    display: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
    background: var(--brand-tint-sky);
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        font-size: 1rem;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 12px;
        padding: 8px 0 0 14px;
        border: 0;
        border-left: 2px solid var(--brand-tint-blue);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.open .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding: 9px 10px;
        white-space: normal;
    }
}


/* Sichtbare Inline-SVG-Icons.
   data-old-icon bewahrt die Zuordnung zu den Icon-Klassen der alten Think3DDD-Seite. */
.legacy-svg-icon {
    width: 54px;
    height: 54px;
    display: inline-block;
    flex: 0 0 auto;
    margin-bottom: 18px;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legacy-svg-icon-small {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: -3px;
}

.footer-feedback {
    margin-top: 18px;
}

/* =========================================================
   Barrierefreiheit
   ========================================================= */

.footer-heading {
    font-size: 1.05rem;
}

/* Sprunglink: nur bei Tastaturfokus sichtbar */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* Gut sichtbarer Tastaturfokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Links im Fließtext nicht nur über Farbe erkennbar */
main p a,
main li a,
.footer-partner a,
.legal-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Ausreichend große Tippflächen (WCAG 2.2: mind. 24 px) */
.footer-col a,
.contact-info a,
.contact-detail-card a {
    display: inline-block;
    padding: 4px 0;
}

/* Lange Wörter und URLs umbrechen statt überlaufen */
.legal-page,
.job-category,
.contact-info {
    overflow-wrap: anywhere;
}

/* Weniger Bewegung, wenn im System eingestellt */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================================
   Interaktive 3D-Beispiele
   ========================================================= */

.viewer3d {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef4f8 70%);
    overflow: hidden;
}

.viewer3d-stage {
    position: relative;
    height: clamp(280px, 42vw, 420px);
    cursor: grab;
    touch-action: pan-y;
}

.viewer3d-stage:active {
    cursor: grabbing;
}

.viewer3d-stage:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.viewer3d-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.viewer3d-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.viewer3d-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.viewer3d-toolbar button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.viewer3d-toolbar button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.viewer3d-toolbar button[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--brand-tint-blue);
    color: var(--brand-blue-dark);
}

.viewer3d figcaption {
    padding: 0 16px 16px;
    background: #fff;
    color: #475569;
    font-size: .92rem;
}

.viewer3d-badge {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--brand-blue-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.viewer3d-hint {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
}

.viewer3d-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* =========================================================
   Neue Inhaltsbausteine
   ========================================================= */

/* 3D-Abschnitt: Text + Viewer */
.detail-3d {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

/* Einstieg nach Ausgangslage */
.start-card h3 {
    color: var(--primary);
}

.business-box {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary);
    border-radius: 20px;
    background: #fff;
}

.business-box h3 {
    margin: 4px 0 10px;
}

.business-box p {
    color: #475569;
}

.business-box .btn-primary {
    flex-shrink: 0;
}

/* FAQ als aufklappbare Liste */
.faq {
    max-width: 860px;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.faq-item summary {
    position: relative;
    padding: 18px 52px 18px 22px;
    color: var(--dark);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 22px 18px;
    color: #475569;
}

/* Weiterführende Seiten */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.related-card {
    display: block;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.related-title {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 700;
}

.related-title::after {
    content: " →";
}

.related-text {
    color: #475569;
    font-size: .95rem;
}

/* Einsatzorte */
.place-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.place-list li {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    font-weight: 600;
}

.place-list li::before {
    content: "✓ ";
    color: var(--primary);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 0;
    color: var(--primary);
    font-weight: 700;
}

.vet-links,
.job-apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

/* Stellenseiten */
.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .9rem;
}

.breadcrumb a {
    display: inline-block;
    padding: 4px 0;
}

.job-meta {
    margin-bottom: 8px;
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.job-page h1 {
    font-size: 2rem;
}

.job-apply {
    margin-top: 40px;
    padding: 28px;
    border-radius: 18px;
    background: var(--brand-tint-sky);
}

.job-apply h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .detail-3d {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .business-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Druckansicht (z. B. Infoblatt für Tierarztpraxen) */
@media print {
    header,
    footer,
    .skip-link,
    .back-to-top,
    .viewer3d,
    .print-hide,
    .detail-cta {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    section {
        padding: 12px 0 !important;
    }

    a {
        color: #000;
    }
}

/* Buttons, die wie Links gestaltet sind */
button.btn-secondary {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Buttons nie unterstreichen oder umfärben (auch nicht in Fließtext/Rechtsseiten) */
main a.btn-primary,
main a.btn-secondary {
    text-decoration: none;
}

.legal-page a.btn-primary {
    color: #fff;
}

/* =========================================================
   Markenakzente (Farben aus dem Logo)
   ========================================================= */

/* Farbverlauf-Linie unter dem Header und über dem Footer */
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;
}

#footer::before {
    top: 0;
}

#footer .footer-col a:hover,
#footer .footer-partner a {
    color: var(--brand-sky);
}

/* Kurze Verlaufslinie unter Abschnittsüberschriften */
.section-header h2::after,
.section-header h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: var(--brand-gradient);
}

.section-header h2.visually-hidden::after {
    display: none;
}

/* Kleine Überschriften-Labels in Türkis (main-Präfix: muss Seiten-CSS überstimmen) */
main .detail-label,
main .hero-kicker,
.viewer3d-badge,
.job-meta {
    color: var(--brand-teal-text);
}

/* Buttons */
.btn-primary:hover {
    background: var(--primary-dark);
}

/* Karten mit türkisfarbener Oberkante (main-Präfix: muss service-detail.css überstimmen) */
main .detail-card,
main #services .card,
main .related-card,
main .open-job {
    border-top: 4px solid var(--brand-teal);
}

.open-job,
.business-box {
    border-left-color: var(--brand-teal);
}

/* Schritt-Nummern im Markenverlauf */
main .step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal-text));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

/* FAQ und Einsatzorte */
.faq-item[open] {
    border-color: var(--brand-teal);
}

.place-list li::before {
    color: var(--brand-teal-text);
}

/* 3D-Viewer: heller Himmelblau-Hintergrund */
.viewer3d {
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--brand-tint-sky) 75%);
}

/* Auszeichnung „Aktuell ausgeschrieben“ */
.job-badge {
    border: 1px solid #9adcd8;
}

/* Lange deutsche Wörter in Überschriften trennen statt überlaufen (Rubik läuft etwas breiter) */
h1,
h2,
h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 400px) {
    main h1 {
        font-size: clamp(1.75rem, 8.5vw, 2.2rem) !important;
        letter-spacing: -.02em;
    }
}

/* Logo: auf großen Bildschirmen größer, damit „innovative green 3D-printing“ lesbar ist.
   64 px = halbe Bildhöhe (128 px) → auch auf hochauflösenden Displays scharf.
   Beim Scrollen schrumpft der Header etwas, um Platz zu sparen. */
.logo img {
    height: 50px;
    transition: height .25s ease;
}

.header-inner {
    transition: min-height .25s ease;
}

@media (min-width: 1024px) {
    .logo img {
        height: 64px;
    }

    .header-inner {
        min-height: 96px;
    }

    header.scrolled .logo img {
        height: 48px;
    }

    header.scrolled .header-inner {
        min-height: 72px;
    }
}
