/* === Design Tokens: Dark (default) === */
:root,
[data-theme="dark"] {
    --bg: #07090c;
    --text: #e9eef6;
    --muted: #a9b6c6;
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #ff6700;
    --accent-muted: rgba(255, 103, 0, 0.45);
    --accent-bg: rgba(255, 103, 0, 0.06);
    --accent-border: rgba(255, 103, 0, 0.18);
    --accent-on: #0b0f16;
    --accent-gradient: linear-gradient(180deg, rgba(255, 103, 0, 0.92), rgba(255, 103, 0, 0.70));
    --accent-gradient-hover: linear-gradient(180deg, rgba(255, 103, 0, 0.95), rgba(255, 103, 0, 0.80));
    --accent-gradient-active: linear-gradient(180deg, rgba(255, 103, 0, 0.85), rgba(255, 103, 0, 0.65));
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --radius-2xl: 18px;
    --radius-pill: 999px;
    --bg-subtle: rgba(255, 255, 255, 0.03);
    --bg-soft: rgba(255, 255, 255, 0.02);
    --bg-dim: rgba(0, 0, 0, 0.14);
    --bg-input: rgba(7, 9, 12, 0.35);
    --glass-1: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    --glass-2: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --glass-dark: rgba(12, 17, 24, 0.68);
    --glass-dark-strong: rgba(12, 17, 24, 0.55);
    --header-bg: rgba(7, 9, 12, 0.62);
    --footer-border: rgba(255, 255, 255, 0.08);
    --bg-gradient-1: radial-gradient(1200px 600px at 20% -10%, rgba(255, 103, 0, 0.15), transparent 55%);
    --bg-gradient-2: radial-gradient(900px 520px at 90% 10%, rgba(60, 140, 255, 0.10), transparent 60%);
    --overlay-gradient: linear-gradient(180deg, rgba(7, 9, 12, 0.35) 0%, rgba(7, 9, 12, 0.7) 55%, rgba(7, 9, 12, 0.92) 100%);
    --overlay-grid: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
}

/* === Design Tokens: Light === */
[data-theme="light"] {
    --bg: #f4f6f9;
    --text: #0d1117;
    --muted: #57606a;
    --line: rgba(0, 0, 0, 0.12);
    --line-soft: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.22);
    --accent: #d35400;
    --accent-muted: rgba(211, 84, 0, 0.35);
    --accent-bg: rgba(211, 84, 0, 0.08);
    --accent-border: rgba(211, 84, 0, 0.25);
    --accent-on: #fff;
    --accent-gradient: linear-gradient(180deg, rgba(211, 84, 0, 0.92), rgba(211, 84, 0, 0.78));
    --accent-gradient-hover: linear-gradient(180deg, rgba(211, 84, 0, 0.95), rgba(211, 84, 0, 0.85));
    --accent-gradient-active: linear-gradient(180deg, rgba(211, 84, 0, 0.85), rgba(211, 84, 0, 0.70));
    --bg-subtle: rgba(0, 0, 0, 0.04);
    --bg-soft: rgba(0, 0, 0, 0.02);
    --bg-dim: rgba(0, 0, 0, 0.06);
    --bg-input: rgba(255, 255, 255, 0.9);
    --glass-1: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    --glass-2: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.78));
    --glass-dark: rgba(255, 255, 255, 0.75);
    --glass-dark-strong: rgba(255, 255, 255, 0.65);
    --header-bg: rgba(244, 246, 249, 0.85);
    --footer-border: rgba(0, 0, 0, 0.08);
    --bg-gradient-1: radial-gradient(1200px 600px at 20% -10%, rgba(255, 103, 0, 0.08), transparent 55%);
    --bg-gradient-2: radial-gradient(900px 520px at 90% 10%, rgba(60, 140, 255, 0.06), transparent 60%);
    --overlay-gradient: linear-gradient(180deg, rgba(244, 246, 249, 0.4) 0%, rgba(244, 246, 249, 0.75) 55%, rgba(244, 246, 249, 0.92) 100%);
    --overlay-grid: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 12px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg-gradient-1), var(--bg-gradient-2), var(--bg);
    transition: color 0.2s ease, background-color 0.2s ease;
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-padding-top: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.error-text {
    color: var(--accent);
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.content {
    padding-top: 1.1rem;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.brand img {
    height: 26px;
    width: auto;
    display: block;
}

.navcta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-text-short {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--glass-1);
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.btn--primary {
    border-color: var(--accent-muted);
    background: var(--accent-gradient);
    color: var(--accent-on);
    font-weight: 700;
}

:is(.glass-card, .about-card, .rfq) {
    border-radius: var(--surface-radius, var(--radius-lg));
    border: 1px solid var(--surface-border, var(--line));
    background: var(--surface-bg, var(--glass-1));
    padding: var(--surface-padding, 16px);
}

.about-card,
.rfq {
    --surface-bg: var(--glass-2);
}

.site-footer {
    margin-top: auto;
    padding: 40px 0 48px;
    border-top: 1px solid var(--footer-border);
    color: var(--muted);
}

.foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.foot-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
}

.foot-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foot-brand__logo {
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.foot-brand__logo:hover {
    opacity: 1;
}

.foot-brand__logo img {
    height: 26px;
    width: auto;
    display: block;
    max-width: 90px;
}

.foot-brand__tagline {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

.foot-brand__copy {
    font-size: 12px;
    color: var(--muted);
    opacity: 0.85;
    margin: 0;
}

.foot-brand .social-links-wrap {
    margin-top: 4px;
}

.foot-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.foot-contact a {
    color: var(--text);
    text-decoration: none;
}

.foot-contact a:hover {
    color: var(--accent);
}

.foot-contact__address,
.foot-contact__area {
    font-size: 13px;
    color: var(--muted);
}

.foot-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foot-legal a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.foot-legal a:hover {
    color: var(--accent);
}

.foot-theme {
    margin-top: 16px;
}

.foot a {
    transition: color 0.15s ease;
}

.social-links-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.social-links-wrap__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.social-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    color: var(--text);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-links__item:hover {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
}

.social-links__item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#anfrage .social-links-wrap {
    margin-bottom: 1.5rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    color: var(--text);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.theme-toggle:hover {
    background: var(--bg-soft);
    border-color: var(--line-strong);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .btn-text-full {
        display: none;
    }

    .btn-text-short {
        display: inline;
    }

    .navcta .btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .navcta .btn--primary {
        padding: 6px 12px;
    }

    .hero-overlay__content {
        padding: 80px 12px 70px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .navcta .btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .navcta .btn--primary {
        padding: 6px 10px;
    }

    .content,
    .contact-grid,
    .rfq {
        min-width: 0;
        max-width: 100%;
    }

    .rfq {
        overflow-x: hidden;
    }

    .rfq .form-head {
        padding: 12px 12px 10px;
    }

    .rfq .form-body {
        padding: 16px 12px 12px;
    }

    .rfq .form-block {
        padding: 12px;
    }

    .mode-row {
        padding: 10px 12px 0;
    }

    .seg {
        padding: 8px;
        min-width: 0;
    }

    .seg label {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .form-block legend {
        font-size: 12px;
    }

    .fields,
    .form-block,
    .field {
        min-width: 0;
    }

    .form-legal label,
    .form-legal .inline {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .upload {
        gap: 10px;
    }

    .upload > div {
        min-width: 0;
    }
}

.hero {
    position: relative;
    min-height: 100svh;
    padding: 0;
    display: flex;
    align-items: stretch;
    margin-top: -1.1rem;
}

.hero-overlay {
    overflow: hidden;
    isolation: isolate;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.hero-overlay::before,
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: -20% -10% 0;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay::before {
    background: none;
    opacity: 0;
}

.hero-overlay::after {
    background: var(--overlay-gradient), var(--overlay-grid);
    mix-blend-mode: screen;
    opacity: 0.35;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
    filter: grayscale(0.1) contrast(1.05) brightness(0.55);
    z-index: 0;
    pointer-events: none;
}

.hero-overlay__content {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 120px clamp(20px, 6vw, 90px) 110px;
    width: 100%;
    max-width: none;
}

.hero-overlay__inner {
    max-width: 860px;
    margin: 0 auto;
    width: min(860px, 100%);
    text-align: center;
}

.hero-overlay__inner h1 {
    font-size: clamp(2.7rem, 2.8vw + 1.8rem, 5.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text);
}

.hero-line {
    display: inline-block;
}

.hero-copy {
    color: var(--muted);
    margin-top: 50px;
    font-size: 20px;
    line-height: 1.6;
}

.hero-overlay__inner .typewriter {
    min-height: 1.2em;
    min-width: 24ch;
    white-space: nowrap;
}

.hero-overlay__inner .typewriter::after {
    content: "|";
    display: inline-block;
    margin-left: 0.12em;
    color: var(--accent);
    animation: typewriter-caret 0.9s steps(1) infinite;
}

@keyframes typewriter-caret {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

@media (max-width: 760px) {
    .hero-overlay__content {
        padding: 100px 16px 90px;
    }

    .hero-copy {
        font-size: 16px;
        margin-top: 24px;
    }

    .hero-overlay__inner h1 {
        font-size: clamp(2.2rem, 7vw, 3.4rem);
        line-height: 1.08;
    }

    .hero-overlay__inner .typewriter {
        min-width: 0;
        white-space: normal;
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    --tag-padding: 7px 10px;
    --tag-size: 12px;
    padding: var(--tag-padding);
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    color: var(--muted);
    font-size: var(--tag-size);
    letter-spacing: 0.02em;
}

section {
    padding: 40px 0;
    scroll-margin-top: 90px;
}

#projekte {
    scroll-margin-top: 90px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    max-width: 68ch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.glass-card {
    --surface-radius: var(--radius-xl);
    --surface-border: var(--line-strong);
    --surface-bg: var(--glass-dark);
    backdrop-filter: blur(10px);
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.service-list {
    display: grid;
    gap: 12px;
}

.s-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    padding: 16px;
    display: grid;
    gap: 6px;
}

.s-content {
    display: grid;
    gap: 6px;
}

.s-content--link {
    color: inherit;
    text-decoration: none;
}

.s-content--link:hover {
    color: var(--accent);
}

.s-item strong {
    font-weight: 600;
    font-size: 15px;
}

.s-item span {
    color: var(--muted);
    font-size: 13px;
}

.gallery {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 14px;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: center;
}

.partner-logo {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 48px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-dim);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
}

.gallery-item b {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.about {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 14px;
    align-items: stretch;
}

.portrait {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 420px;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card {
    --surface-padding: 18px;
    --surface-radius: var(--radius-lg);
    --surface-border: var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: start;
}

.rfq {
    --surface-padding: 0;
    --form-gap: 24px;
    --form-block-padding: 20px;
    --form-block-gap: 16px;
    --form-field-gap: 8px;
    --form-fields-gap: 20px;
    overflow: hidden;
}

.form-head {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--glass-dark-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-head__text {
    display: grid;
    gap: 6px;
}

.form-body {
    padding: var(--form-gap) 24px 24px;
    display: grid;
    gap: var(--form-gap);
}

.mode-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 0;
    flex-wrap: wrap;
}

.mode-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
}

.mode-help {
    color: var(--muted);
    font-size: 13px;
}

.mode-option {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

#mode-simple:checked ~ .mode-switch label[for="mode-simple"],
#mode-complex:checked ~ .mode-switch label[for="mode-complex"] {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--bg-subtle);
}

.form-block {
    display: grid;
    gap: var(--form-block-gap);
    padding: var(--form-block-padding);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    background: var(--bg-soft);
}

.form-block legend {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--form-fields-gap);
}

.field {
    display: grid;
    gap: var(--form-field-gap);
}

.field label,
.label {
    font-size: 13px;
    color: var(--text);
    opacity: 0.9;
}

.validation-message {
    color: var(--accent);
    font-size: 12px;
}

/* Alle Eingabefelder im Formular einheitlich – kein nativer Browser-Look */
/* InputText rendert oft ohne type-Attribut, daher auch input:not([type=...]) */
.rfq input[type="text"],
.rfq input[type="email"],
.rfq input[type="tel"],
.rfq input[type="number"],
.rfq input[type="date"],
.rfq input:not([type]),
.rfq select,
.rfq textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--bg-input);
    color: var(--text);
    font: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.rfq input:focus,
.rfq select:focus,
.rfq textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-bg);
}

/* Number-Spinner entfernen (Pfeil hoch/runter) */
.rfq input[type="number"]::-webkit-inner-spin-button,
.rfq input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rfq input[type="number"] {
    -moz-appearance: textfield;
}

/* Select: eigene Dropdown-Pfeil-Styles (da appearance: none) */
.rfq select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a9b6c6'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

[data-theme="light"] .rfq select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2357606a'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.seg label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--bg-subtle);
    font-size: 13px;
    color: var(--text);
}

/* Custom Radio & Checkbox – kein Windows-/Browser-Standard */
.rfq input[type="radio"],
.rfq input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    border: 2px solid var(--line-strong);
    background: var(--bg-input);
    cursor: pointer;
    flex-shrink: 0;
}

.rfq input[type="radio"] {
    border-radius: 50%;
}

.rfq input[type="checkbox"] {
    border-radius: 4px;
}

.rfq input[type="radio"]:checked,
.rfq input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.rfq input[type="radio"]:checked {
    background-image: radial-gradient(circle, var(--accent-on) 35%, transparent 40%);
}

.rfq input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b0f16'%3e%3cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
}

[data-theme="light"] .rfq input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3e%3c/svg%3e");
}

.upload {
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    background: var(--bg-soft);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.upload small {
    color: var(--muted);
}

/* File-Input: eigener "Dateien auswählen"-Button statt nativer "Durchsuchen" */
.rfq input[type="file"] {
    padding: 10px 12px;
    font-size: 13px;
    max-width: 100%;
    min-width: 0;
}

.rfq input[type="file"]::file-selector-button,
.rfq input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 14px;
    margin-right: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-strong);
    background: var(--bg-subtle);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.rfq input[type="file"]::file-selector-button:hover,
.rfq input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--line-soft);
}

.inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hint {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-dim);
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

.form-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 0;
}

.legal-link {
    color: var(--text);
    font-size: 13px;
    opacity: 0.8;
}

.legal-link:hover {
    opacity: 1;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

@media (max-width: 980px) {
    .grid-3,
    .services,
    .about,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .partner-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .foot {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .foot-brand {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--line-soft);
    }

    .foot-contact {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .container {
        padding: 0 16px;
    }

    .fields,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 28px 0;
    }

    .portrait {
        min-height: 280px;
    }

    .chips {
        justify-content: flex-start;
    }

    .site-footer {
        padding: 32px 0 40px;
    }

    .foot {
        gap: 32px;
    }

    .foot-contact,
    .foot-legal a {
        font-size: 14px;
    }

    .foot-theme {
        margin-top: 20px;
    }

    .rfq .form-head {
        padding: 16px 16px 14px;
    }

    .rfq .form-body {
        padding: var(--form-gap) 16px 16px;
    }

    .rfq .form-block {
        padding: 16px;
    }

    .mode-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px 0;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .form-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gallery-item img {
        min-height: 160px;
        height: auto;
    }

    .upload {
        flex-direction: column;
        align-items: stretch;
    }

    .rfq input[type="file"] {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

.contact-grid--single {
    grid-template-columns: 1fr;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.legal-page__heading {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content {
    max-width: min(68ch, 100%);
    min-width: 0;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5em 0 0.5em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
    margin: 0 0 1em;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content a:hover {
    opacity: 0.9;
}

.leistung-page {
    max-width: min(72ch, 100%);
    min-width: 0;
}

.leistung-page__heading {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.leistung-page__lead {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1.5em;
}

.leistung-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5em 0 0.5em;
}

.leistung-page h2:first-of-type {
    margin-top: 0;
}

.leistung-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.2em 0 0.4em;
}

.leistung-page p {
    color: var(--muted);
    margin: 0 0 1em;
    line-height: 1.6;
}

.leistung-page__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
