/* Gemeinsames Stylesheet für ruekomtech.com.
   Farben und Schrift lehnen sich an elaconnect.cloud an, damit die Seite als
   Dach über den elaConnect-Produkten erkennbar ist. */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-v25-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-v25-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-v25-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-v25-latin-700.woff2') format('woff2');
}

:root {
    /* Grundfarben (aus elaConnect übernommen) */
    --night: #111013;
    --aubergine: #2a2541;
    --signal: #f10358;
    --signal-dark: #c4003f;
    --paper: #ffffff;
    --fog: #f5f4f8;
    --ink: #1c1a22;
    --mist: #5e5c6b;
    --line: #e6e6ea;
    --lilac: #e8e3fd;

    /* Zustandsfarben der Sprechstelle */
    --led-off: #3a3548;
    --led-green: #2fd18b;
    --led-amber: #ffb020;

    --font: 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 60px;
    --gutter: clamp(16px, 5vw, 64px);
    --content: 1160px;
    --radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3 {
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--signal-dark);
}

a:hover {
    color: var(--signal);
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 2px;
}

[id] {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Schaltflächen ---------- */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 700 1rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.button-solid {
    background: var(--signal);
    border-color: var(--signal);
    color: #fff;
}

.button-solid:hover {
    background: var(--signal-dark);
    border-color: var(--signal-dark);
    color: #fff;
}

.button-ghost {
    background: rgba(234, 232, 242, .14);
    color: #fff;
}

.button-ghost:hover {
    background: rgba(234, 232, 242, .24);
    color: #fff;
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: .875rem;
}

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 var(--gutter);
    background: #000;
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-right: auto;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark:hover {
    color: #fff;
}

.wordmark-short {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.wordmark-long {
    font-weight: 500;
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
}

.nav-links {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: #fff;
}

/* ---------- Hero ---------- */

.hero {
    padding: calc(var(--nav-height) + clamp(48px, 8vw, 110px)) var(--gutter) clamp(56px, 8vw, 110px);
    background: radial-gradient(90% 70% at 70% 85%, var(--aubergine) 0%, var(--night) 100%);
    color: #fff;
}

.hero-inner {
    max-width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

/* 404-Seite: nur Text, keine Sprechstelle */
.hero-error {
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-error .hero-inner {
    width: 100%;
}

.hero-inner-single {
    grid-template-columns: minmax(0, 1fr);
}

.split-title span {
    display: block;
}

.hero .split-title {
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.split-title .top {
    color: #fff;
}

.split-title .bottom {
    color: var(--signal);
}

.hero-lead {
    max-width: 34em;
    margin: 28px 0 36px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--lilac);
}

/* ---------- Sprechstelle im Hero ---------- */

.console {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #221e30 0%, #19161f 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.console-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
}

.console-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.console-display {
    min-height: 150px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #0c0b10;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6);
}

.display-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.display-text {
    margin: 0 0 8px;
    font-size: .95rem;
    line-height: 1.5;
    color: rgba(232, 227, 253, .85);
}

.display-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--led-green);
}

.display-link:hover {
    color: #7ff0bd;
}

.console-keys {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.zone-key {
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #2a2638;
    box-shadow: 0 3px 0 #0d0c12;
    color: #fff;
    font: 600 .95rem/1.2 var(--font);
    text-align: left;
    cursor: pointer;
    transition: background-color .12s ease, transform .08s ease, box-shadow .08s ease;
}

.zone-key:hover {
    background: #332e44;
}

.zone-key:active,
.zone-key[aria-pressed="true"] {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #0d0c12;
}

.zone-key[aria-pressed="true"] {
    background: #353047;
    border-color: rgba(47, 209, 139, .45);
}

.led {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--led-off);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
    transition: background-color .15s ease, box-shadow .15s ease;
}

.led-on,
.zone-key[aria-pressed="true"] .led {
    background: var(--led-green);
    box-shadow: 0 0 10px rgba(47, 209, 139, .8);
}

.led.led-test {
    background: var(--led-amber);
    box-shadow: 0 0 10px rgba(255, 176, 32, .8);
}

.console-talk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    border-radius: 8px;
    background: var(--signal);
    box-shadow: 0 3px 0 #8a0033;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color .12s ease;
}

.console-talk:hover {
    background: var(--signal-dark);
    color: #fff;
}

.console-talk:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #8a0033;
}

/* Stilisiertes Mikrofon aus zwei Formen */
.talk-icon {
    position: relative;
    width: 12px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 6px;
}

.talk-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 2px;
    height: 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* ---------- Abschnitte ---------- */

.section {
    padding: clamp(64px, 9vw, 120px) var(--gutter);
}

.section-inner {
    max-width: var(--content);
    margin: 0 auto;
}

.section-title {
    max-width: 22em;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    letter-spacing: -0.03em;
}

.section-lead {
    max-width: 38em;
    margin: 20px 0 0;
    font-size: 1.15rem;
    color: var(--mist);
}

/* Anlagenliste */

.systems {
    padding-bottom: clamp(48px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
}

.systems .section-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.system-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--ink);
}

.system-list li {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px 0;
    border-bottom: 1px solid var(--line);
}

.system-list .maker {
    font-size: .85rem;
    font-weight: 500;
    color: var(--mist);
}

.system-list .model {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.system-list a.model {
    color: var(--signal-dark);
    text-decoration: none;
}

.system-list a.model:hover {
    color: var(--signal);
    text-decoration: underline;
}

/* Leistungen */

.service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 72px);
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.services .section-lead {
    margin-bottom: 56px;
}

.service-head h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.service-head p {
    margin: 0;
    max-width: 30em;
    color: var(--mist);
}

.service-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-points li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid var(--line);
}

.service-points li:last-child {
    border-bottom: 0;
}

/* Kleine LED als Aufzählungszeichen, passend zur Sprechstelle */
.service-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 1.05em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--signal);
}

.service-highlight {
    margin: 0 calc(var(--gutter) * -0.5);
    padding: 48px calc(var(--gutter) * 0.5);
    border-top: 0;
    border-radius: 10px;
    background: var(--fog);
}

.service-highlight + .service {
    border-top: 0;
}

/* elaConnect-Produkte */

.products {
    background: radial-gradient(94% 58% at 50% 90%, var(--aubergine) 0%, var(--night) 100%);
    color: #fff;
}

.products .section-lead {
    color: var(--lilac);
}

.products .section-lead a {
    color: #fff;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 56px;
}

.product {
    display: flex;
    flex-direction: column;
    padding: 4px 32px 0;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.product:first-child {
    padding-left: 0;
    border-left: 0;
}

.product-name {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.product-name .ela {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.product-name .connect {
    color: var(--signal);
}

.product p {
    color: rgba(232, 227, 253, .82);
    font-size: 1rem;
}

.product-link {
    margin-top: auto;
    padding-top: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

.product-link:hover {
    color: var(--signal);
}

/* Über uns */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
}

.about-grid .section-title {
    margin-bottom: 24px;
}

.about-grid p {
    max-width: 34em;
}

.steps-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 0 0 22px 52px;
    counter-increment: step;
    color: var(--mist);
}

.steps li strong {
    display: block;
    color: var(--ink);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--ink);
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}

/* Verbindungslinie zwischen den Schritten */
.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}

/* Kontakt */

.contact {
    background: var(--fog);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact-intro .section-title {
    margin-bottom: 20px;
}

.contact-intro > p {
    max-width: 30em;
    color: var(--mist);
    font-size: 1.1rem;
}

.channels {
    margin: 36px 0 0;
}

.channels div {
    padding: 16px 0;
    border-top: 1px solid #d9d7e0;
}

.channels dt {
    font-size: .85rem;
    font-weight: 500;
    color: var(--mist);
}

.channels dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.channels dd a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.channels dd a:hover {
    color: var(--signal-dark);
}

.channels .hours {
    display: block;
    font-weight: 500;
    font-size: .95rem;
    color: var(--mist);
}

.contact-form {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .95rem;
}

.req {
    font-weight: 500;
    color: var(--mist);
    font-size: .85rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfccd8;
    border-radius: var(--radius);
    background: #fff;
    font: 400 1rem/1.4 var(--font);
    color: var(--ink);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(241, 3, 88, .18);
}

.field [aria-invalid="true"] {
    border-color: #c4003f;
}

.field-error {
    margin: 6px 0 0;
    font-size: .9rem;
    font-weight: 500;
    color: #b0003a;
}

.form-note {
    font-size: .9rem;
    color: var(--mist);
}

.form-status {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.form-status-ok {
    background: #e3f7ee;
    color: #11663f;
}

.form-status-error {
    background: #fde8ef;
    color: #9a0033;
}

.contact-form button[disabled] {
    opacity: .6;
    cursor: wait;
}

/* Verstecktes Feld gegen Bots */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Fußbereich ---------- */

.site-footer {
    padding: 72px var(--gutter) 32px;
    background: radial-gradient(94% 58% at 50% 83%, hsl(252, 28%, 20%) 0%, var(--night) 100%);
    color: rgba(255, 255, 255, .65);
}

.footer-inner {
    max-width: var(--content);
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    gap: 32px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-heading {
    margin: 0 0 6px;
    font-weight: 700;
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal {
    padding: calc(var(--nav-height) + 56px) var(--gutter) 80px;
}

.legal-inner {
    max-width: 820px;
    margin: 0 auto;
}

.legal h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.legal h2 {
    margin: 48px 0 16px;
    padding-top: 20px;
    font-size: 1.35rem;
    border-top: 1px solid var(--line);
}

.legal h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.legal .intro-text {
    color: var(--mist);
    font-weight: 500;
    margin-bottom: 32px;
}

.legal ul {
    margin: 8px 0 16px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 6px;
}

.legal address {
    font-style: normal;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.legal address strong {
    display: block;
    margin-bottom: 2px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--mist);
}

.legal .data-card {
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: var(--fog);
}

.legal .data-card p:last-child {
    margin-bottom: 0;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: .95rem;
}

.legal th,
.legal td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal th {
    border-bottom: 2px solid var(--ink);
    font-weight: 700;
}

.legal .footer-line {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--mist);
    font-size: .92rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Hilfsklassen ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.button-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.button-outline:hover {
    background: var(--ink);
    color: #fff;
}

/* ---------- Lagerware ---------- */

.hero-compact {
    padding-top: calc(var(--nav-height) + clamp(40px, 6vw, 72px));
    padding-bottom: clamp(40px, 6vw, 72px);
}

.stock {
    padding-top: clamp(40px, 6vw, 72px);
}

.stock-empty-actions {
    margin-top: 28px;
}

.stock-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}

.stock-toolbar .section-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.stock-filter {
    flex: 0 1 340px;
}

.stock-filter label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    font-weight: 600;
}

.stock-filter input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cfccd8;
    border-radius: var(--radius);
    font: 400 1rem/1.4 var(--font);
    color: var(--ink);
    background: #fff;
}

.stock-filter input:focus {
    outline: none;
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(241, 3, 88, .18);
}

.stock-count {
    margin: 14px 0 12px;
    font-size: .9rem;
    color: var(--mist);
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--ink);
}

.stock-table th {
    padding: 12px 12px 12px 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mist);
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.stock-table td {
    padding: 16px 12px 16px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.stock-table .num {
    text-align: right;
    white-space: nowrap;
}

.stock-table th:last-child,
.stock-table td:last-child {
    padding-right: 0;
}

.stock-code {
    width: 1%;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stock-product-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.stock-thumb {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--fog);
    border: 1px solid var(--line);
}

.stock-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ohne Foto: kleines Lautsprecher-Symbol als ruhiger Platzhalter */
.stock-thumb-empty {
    background: var(--fog) url("/icon.svg") center / 28px no-repeat;
    opacity: .5;
}

.stock-maker {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--signal-dark);
}

.stock-name {
    display: block;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.stock-name:hover {
    color: var(--signal-dark);
    text-decoration: underline;
}

.stock-desc {
    display: block;
    margin-top: 4px;
    max-width: 44em;
    font-size: .95rem;
    color: var(--mist);
}

.stock-available {
    font-variant-numeric: tabular-nums;
    color: var(--mist);
}

.stock-row.is-selected td {
    background: #fdf0f5;
}

.stock-row.is-selected .stock-code {
    box-shadow: inset 4px 0 0 var(--signal);
    padding-left: 12px;
}

.stock-code {
    transition: padding-left .12s ease;
}

.qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #cfccd8;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.qty:focus-within {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(241, 3, 88, .18);
}

.qty-input {
    width: 4.5em;
    padding: 10px 8px;
    border: 0;
    font: 600 1rem/1.2 var(--font);
    text-align: center;
    color: var(--ink);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input:focus {
    outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Plus/Minus nur mit JavaScript, sonst bleibt das normale Zahlenfeld */
.qty-step {
    display: none;
    width: 40px;
    border: 0;
    background: var(--fog);
    color: var(--ink);
    font: 700 1.15rem/1 var(--font);
    cursor: pointer;
}

.qty-step:hover {
    background: #e9e7ef;
}

.js .qty-step {
    display: block;
}

.stock-no-match {
    padding: 24px 0;
    color: var(--mist);
}

.stock-request {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    margin-top: clamp(56px, 7vw, 96px);
    padding-top: clamp(40px, 5vw, 64px);
    border-top: 1px solid var(--line);
}

.stock-summary .section-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 14px;
}

.stock-summary-lead {
    color: var(--mist);
}

.selection {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--fog);
}

.selection-empty {
    margin: 0;
    color: var(--mist);
}

.selection-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.selection-list li {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #dedce6;
}

.selection-list li:last-child {
    border-bottom: 0;
}

.selection-qty {
    flex: none;
    min-width: 3.2em;
    font-weight: 700;
    color: var(--signal-dark);
    font-variant-numeric: tabular-nums;
}

.selection-text strong {
    display: block;
}

.selection-text span {
    font-size: .9rem;
    color: var(--mist);
}

.field-hint {
    margin: -6px 0 18px;
    font-size: .9rem;
    color: var(--mist);
}

.selection-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: calc(100% - 32px);
    padding: 10px 10px 10px 20px;
    border-radius: 10px;
    background: var(--night);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
    transform: translateX(-50%);
}

.selection-bar[hidden] {
    display: none;
}

/* Hinweis auf die Lagerware auf der Startseite */
.stock-teaser {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(48px, 6vw, 72px);
    border-bottom: 1px solid var(--line);
}

.stock-teaser-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
}

.stock-teaser .section-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.stock-teaser .section-lead {
    margin-top: 12px;
}

.stock-teaser-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.stock-teaser-list a {
    font-weight: 600;
}

/* ---------- Artikelseite der Lagerware ---------- */

.product-page {
    padding: calc(var(--nav-height) + 28px) var(--gutter) clamp(56px, 8vw, 96px);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: var(--mist);
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 10px;
    color: #b9b6c4;
}

.breadcrumb a {
    color: var(--mist);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--signal-dark);
    text-decoration: underline;
}

.breadcrumb [aria-current] {
    color: var(--ink);
    font-weight: 600;
}

.stock-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.stock-detail-no-image {
    grid-template-columns: minmax(0, 720px);
}

.gallery {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.gallery-main {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fog);
    border: 1px solid var(--line);
}

.gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.gallery-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--fog);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.is-active {
    border-color: var(--signal);
}

.product-maker {
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--signal-dark);
}

.product-title {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.product-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 24px;
    border-top: 2px solid var(--ink);
}

.product-facts div {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--line);
}

.product-facts dt {
    font-size: .85rem;
    color: var(--mist);
}

.product-facts dd {
    margin: 2px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.product-desc {
    max-width: 38em;
    color: var(--ink);
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 8px;
}

.product-qty-label {
    font-weight: 600;
}

.product-request {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.product-request-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-form .stock-contact {
    margin-top: 20px;
}

.more-stock {
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.more-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.more-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.more-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.more-item:hover strong {
    color: var(--signal-dark);
    text-decoration: underline;
}

.more-text {
    min-width: 0;
}

.more-text strong {
    display: block;
    overflow-wrap: anywhere;
}

.more-text span {
    font-size: .9rem;
    color: var(--mist);
}

.product-link-all {
    font-weight: 600;
}

@media (max-width: 960px) {
    .stock-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery {
        position: static;
    }

    .more-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .product-facts {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ---------- Anpassungen für kleinere Bildschirme ---------- */

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-inner,
    .service,
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .system-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .product,
    .product:first-child {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .service {
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .wordmark-long {
        display: none;
    }

    .console {
        padding: 14px;
    }

    .console-keys {
        gap: 8px;
    }

    .zone-key {
        min-height: 48px;
        padding: 8px 10px;
        font-size: .8rem;
        gap: 8px;
    }

    .system-list li {
        padding-right: 10px;
    }

    .system-list .model {
        font-size: 1.05rem;
    }

    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal h1 {
        font-size: 1.45rem;
    }

    .footer-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal table,
    .legal thead,
    .legal tbody,
    .legal th,
    .legal td,
    .legal tr {
        display: block;
    }

    .legal thead {
        position: absolute;
        left: -10000px;
    }

    .legal tr {
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }

    .legal td {
        padding: 6px 0;
        border: 0;
    }

    .legal td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .85rem;
        font-weight: 600;
        color: var(--mist);
    }
}

@media (max-width: 960px) {
    .stock-request {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Lagerliste als Kartenliste statt Tabelle */
@media (max-width: 760px) {
    .stock-table,
    .stock-table tbody,
    .stock-table tr,
    .stock-table td {
        display: block;
    }

    .stock-table thead {
        position: absolute;
        left: -10000px;
    }

    .stock-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "product product"
            "code qty"
            "avail qty";
        gap: 4px 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }

    .stock-table tr[hidden] {
        display: none;
    }

    .stock-table td {
        padding: 0;
        border: 0;
    }

    .stock-product {
        grid-area: product;
    }

    .stock-table .stock-code,
    .stock-table .stock-available {
        width: auto;
        text-align: left;
        font-size: .9rem;
    }

    .stock-table .stock-code {
        grid-area: code;
        margin-top: 6px;
    }

    .stock-table .stock-available::before {
        content: attr(data-label) ': ';
    }

    .stock-table .stock-available {
        grid-area: avail;
    }

    .stock-table .stock-qty-cell {
        grid-area: qty;
        align-self: center;
    }

    .stock-row.is-selected {
        background: #fdf0f5;
        box-shadow: -12px 0 0 #fdf0f5, 12px 0 0 #fdf0f5, inset 4px 0 0 var(--signal);
        padding-left: 12px;
    }

    .stock-row.is-selected td,
    .stock-row.is-selected .stock-code {
        background: transparent;
        box-shadow: none;
        padding-left: 0;
    }

    .stock-filter {
        flex-basis: 100%;
    }

    .selection-bar {
        left: 16px;
        right: 16px;
        justify-content: space-between;
        max-width: none;
        transform: none;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
