:root {
    --color-primary-dark: #1e293b;
    --color-brand-green: #15803d;
    --color-brand-green-hover: #166534;
    --color-surface-light: #f1f5f9;
    --color-text-main: #334155;
    --color-white: #ffffff;
    --color-brand-green-active: #14532d;
    --color-primary-darker: #0f172a;
    --color-primary-darkest: #020617;
    --color-focus-ring: rgba(255, 255, 255, 0.9);
    --color-border-soft: rgba(30, 41, 59, 0.12);

    --font-family-headings: "Montserrat", sans-serif;
    --font-family-body: "Inter", sans-serif;

    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 96px;

    --border-radius-soft: 8px;
    --box-shadow-cards: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --max-width-container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-white);
}

h1,
h2,
h3 {
    font-family: var(--font-family-headings);
    color: var(--color-primary-dark);
    line-height: 1.2;
}

strong {
    color: var(--color-primary-dark);
}

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

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

picture {
    display: block;
}

/* Für Screenreader verfügbare Zusätze */
.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;
}

/* Tastaturnutzer können direkt zum Hauptinhalt springen */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-120%);
    padding: 12px 16px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    border-radius: 0 0 var(--border-radius-soft) 0;
    z-index: 1000;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Buttons mit klaren Zuständen */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    min-height: 44px;
    padding: 14px 28px;
    border-radius: var(--border-radius-soft);
    border: 0;
    font-weight: 600;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn:focus-visible,
.site-header__nav-link:focus-visible,
.site-header__menu-toggle:focus-visible,
.skip-link:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.btn:active,
.site-header__nav-link:active,
.site-header__menu-toggle:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--color-brand-green);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-brand-green-hover);
}

.btn-primary:active {
    background-color: var(--color-brand-green-active);
}

.btn-secondary {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--color-primary-darker);
}

.btn-secondary:active {
    background-color: var(--color-primary-darkest);
}

.btn-outline {
    border: 2px solid var(--color-primary-dark);
    background-color: transparent;
    color: var(--color-primary-dark);
    padding: 10px 20px;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    border-color: var(--color-primary-dark);
}

.btn-outline:active {
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: var(--color-white);
}

/* Externe Links dezent, aber sichtbar kennzeichnen */
.link-external {
    gap: 8px;
}

.link-external__label {
    min-width: 0;
}

.link-external__icon {
    flex: 0 0 auto;
    width: 0.95em;
    height: 0.95em;
    fill: currentColor;
    opacity: 0.9;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.link-external:hover .link-external__icon,
.link-external:focus-visible .link-external__icon {
    transform: translate(1px, -1px);
    opacity: 1;
}

/* Einheitliche Listen mit Sprite-Icons */
.icon-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: var(--space-md);
    align-content: start;
    /* Verhindert vertikales Auseinanderziehen */
}

.icon-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.icon-list__icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0.32em;
    color: var(--color-brand-green);
    fill: currentColor;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header__logo-link {
    min-width: 0;
}

.site-header__logo-link img {
    width: clamp(160px, 42vw, 200px);
    height: auto;
}

.site-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--border-radius-soft);
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Nur mit JS eingeblendetes Burger-Menü */
.js-enabled .site-header__menu-toggle {
    display: inline-flex;
}

.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
    background-color: rgba(30, 41, 59, 0.04);
    border-color: rgba(30, 41, 59, 0.24);
}

.site-header__menu-toggle-box {
    display: inline-grid;
    gap: 5px;
}

.site-header__menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.site-header.is-menu-open .site-header__menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .site-header__menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header__nav,
.site-header__actions {
    grid-column: 1 / -1;
}

.site-header__nav {
    min-width: 0;
}

/* Ohne JS bleibt die Navigation sichtbar */
.js-enabled .site-header__nav[hidden] {
    display: none;
}

.site-header__nav-list {
    list-style: none;
    display: grid;
    gap: 6px;
    padding-top: 4px;
}

.site-header__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--border-radius-soft);
    font-weight: 600;
    color: var(--color-primary-dark);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
    color: var(--color-brand-green);
    background-color: rgba(21, 128, 61, 0.06);
}

.site-header__nav-link:active {
    background-color: rgba(30, 41, 59, 0.08);
}

.site-header__nav-link .link-external__icon {
    width: 0.85em;
    height: 0.85em;
    margin-inline-start: auto;
}

.site-header__actions {
    width: 100%;
}

.site-header__cta {
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
}

.site-header__cta .link-external__label {
    white-space: nowrap;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 75svh, 48rem);
    padding: var(--space-lg) 0;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__text {
    max-width: 42rem;
}

.hero__title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    margin-bottom: var(--space-sm);
}

.hero__lead {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

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

.hero__cta {
    width: 100%;
}

/* Produkte */
.products {
    padding: var(--space-xl) 0;
    background-color: var(--color-surface-light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: var(--space-lg);
}

.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.product-card {
    position: relative;
    /* Für Badge und feine Hervorhebung */
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: var(--box-shadow-cards);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.product-card__image {
    position: relative;
}

.product-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: var(--space-md);
}

.product-card__title {
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.product-card__badge-group {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 32px);
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.35);
}

.product-card__badge--premium {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 41, 59, 0.12);
    color: var(--color-primary-dark);
}

/* Liste bleibt kompakt, CTA sitzt unten bündig */
.product-card__list {
    margin-bottom: var(--space-md);
}

.product-card__action {
    width: 100%;
    margin-top: auto;
}

.product-card__action--featured {
    border-color: rgba(21, 128, 61, 0.75);
    color: var(--color-brand-green);
    background-color: rgba(21, 128, 61, 0.03);
}

.product-card__action--featured:hover,
.product-card__action--featured:focus-visible {
    background-color: var(--color-brand-green);
    border-color: var(--color-brand-green);
    color: var(--color-white);
}

.product-card__action--featured:active {
    background-color: var(--color-brand-green-hover);
    border-color: var(--color-brand-green-hover);
}

.product-card--featured {
    border-color: rgba(21, 128, 61, 0.18);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(248, 251, 249, 1) 100%);
    box-shadow:
        0 18px 32px -24px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(21, 128, 61, 0.05);
}

.product-card--featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(21, 128, 61, 0.9) 0%,
            rgba(30, 41, 59, 0.2) 100%);
    z-index: 3;
}

.product-card--featured:hover,
.product-card--featured:focus-within {
    border-color: rgba(21, 128, 61, 0.24);
    box-shadow:
        0 20px 36px -26px rgba(15, 23, 42, 0.26),
        0 0 0 1px rgba(21, 128, 61, 0.08);
}

/* Inhaltssplits */
.split-section {
    padding: var(--space-xl) 0;
}

.split-section--alt {
    background-color: var(--color-surface-light);
}

.split-section__layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
}

.split-section__layout--reverse {
    flex-direction: column;
}

.split-section__content,
.split-section__media {
    flex: 1;
}

.split-section__media img {
    width: 100%;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-cards);
}

.split-section__title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: var(--space-md);
}

.split-section__text {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.split-section__list {
    margin-bottom: var(--space-md);
}

/* Kontaktkarten in der Service-Sektion */
.contact-cards {
    display: grid;
    gap: 0;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    box-shadow: var(--box-shadow-cards);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: transparent;
}

.contact-card + .contact-card {
    border-top: 1px solid var(--color-border-soft);
}

.contact-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--color-brand-green);
    flex: 0 0 auto;
}

.contact-card__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-card__heading {
    min-width: 0;
}

.contact-card__eyebrow {
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-brand-green);
}

.contact-card__title {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    height: 100%;
}

.contact-card__content {
    display: grid;
    gap: 10px;
    padding: 18px;
    background-color: rgba(241, 245, 249, 0.7);
    border-radius: 12px;
}

.contact-card__detail,
.contact-card__meta {
    margin-bottom: 0;
}

.contact-card__detail {
    line-height: 1.35;
}

.contact-card__meta {
    color: var(--color-text-main);
    font-size: 0.98rem;
}

.contact-card__link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
    color: var(--color-brand-green);
}

.contact-card__action {
    width: 100%;
    margin-top: auto;
}

/* Kontaktformular */
.contact-form-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-surface-light);
}

.contact-form-section__layout {
    display: grid;
    gap: 24px;
}

.contact-form-section__intro {
    max-width: 48rem;
}

.contact-form-section__note {
    font-size: 1rem;
}

.contact-form-section__note a {
    color: var(--color-brand-green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow-cards);
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form__field label {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(30, 41, 59, 0.28);
    border-radius: 8px;
    font: inherit;
    color: var(--color-text-main);
    background-color: var(--color-white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.contact-form input:invalid,
.contact-form textarea:invalid {
    box-shadow: none;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: #b91c1c;
}

.contact-form__checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-form__checkbox-field input[type="checkbox"] {
    margin-top: 0.34rem;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--color-primary-dark);
}

.contact-form__checkbox-field label {
    font-weight: 500;
}

.contact-form__checkbox-field a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-form__error {
    min-height: 1.2em;
    margin: 0;
    color: #b91c1c;
    font-size: 0.95rem;
}

.contact-form__required-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.contact-form__status {
    min-height: 1.4em;
    margin: 0;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.contact-form__status--error {
    color: #b91c1c;
}

.contact-form__status--success {
    color: #166534;
}

.contact-form__submit {
    width: 100%;
    gap: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form__submit-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__noscript {
    margin: 0;
    font-size: 0.95rem;
}

@media (min-width: 480px) {
    .contact-card__link--email {
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card + .contact-card {
        border-top: 0;
        border-left: 1px solid var(--color-border-soft);
    }

    .contact-card {
        padding: 28px;
    }

    .contact-form {
        padding: 28px;
    }

    .contact-card__title {
        font-size: 1.45rem;
    }

    .contact-card__content {
        min-height: 8.5rem;
    }

    .contact-card__link {
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

@media (min-width: 901px) {
    .contact-cards {
        max-width: 42rem;
    }

    .contact-form-section__layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: 28px;
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-md) 0;
}

.site-footer__container {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.site-footer__copyright {
    max-width: 52rem;
}

.site-footer__nav {
    width: 100%;
}

.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.site-footer__nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.22em;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
    color: var(--color-white);
}

.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.62);
}

.cookie-consent__panel {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 760px);
    margin: auto;
    margin-top: max(24px, 6vh);
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 24px;
}

.cookie-consent__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--color-primary-dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent__eyebrow {
    margin-bottom: 10px;
    color: var(--color-brand-green);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-consent__title {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cookie-consent__text,
.cookie-consent__links,
.cookie-consent__status {
    font-size: 1rem;
}

.cookie-consent__text {
    margin-bottom: 16px;
}

.cookie-consent__list {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding-left: 20px;
}

.cookie-consent__list li {
    line-height: 1.6;
}

.cookie-consent__status {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: var(--color-surface-light);
    color: var(--color-primary-dark);
}

.cookie-consent__actions {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.cookie-consent__button {
    width: 100%;
    border: 2px solid var(--color-primary-dark);
    background-color: transparent;
    color: var(--color-primary-dark);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.cookie-consent__links a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__nav-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

@media (min-width: 768px) {
    .site-footer__container {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: unset;
        gap: 16px 24px;
        text-align: left;
    }

    .site-footer__nav {
        width: auto;
    }

    .site-footer__nav-list {
        justify-content: flex-end;
    }

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

/* Bewegungen reduzieren */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .btn,
    .site-header__nav-link,
    .site-header__menu-toggle,
    .skip-link,
    .link-external__icon,
    .site-header__menu-toggle-line,
    .product-card,
    .product-card__badge {
        transition: none !important;
    }

    .btn:active,
    .site-header__nav-link:active,
    .site-header__menu-toggle:active,
    .link-external:hover .link-external__icon,
    .link-external:focus-visible .link-external__icon,
    .product-card--featured {
        transform: none;
    }
}

/* Tablet */
@media (min-width: 768px) {

    .site-header__cta,
    .hero__cta {
        width: auto;
    }

    .products__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    }
}

/* Desktop */
@media (min-width: 901px) {
    .site-header__container {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .site-header__nav {
        grid-column: 2;
    }

    .site-header__actions {
        grid-column: 3;
        width: auto;
    }

    .js-enabled .site-header__menu-toggle {
        display: none;
    }

    .site-header__nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 12px;
        padding-top: 0;
    }

    .site-header__nav-link {
        justify-content: flex-start;
        width: auto;
    }

    .site-header__nav-link .link-external__icon {
        margin-inline-start: 0;
    }

    .site-header__cta {
        width: auto;
    }

    .split-section__layout {
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
    }

    .split-section__layout--reverse {
        flex-direction: row-reverse;
    }
}

/* Manueller Theme-Toggle und Dark-Mode-Erweiterung */
html {
    color-scheme: light;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

/* Manuelle helle Darstellung erzwingen */
html[data-theme="light"] body {
    background-color: #ffffff;
}

/* System-Dark-Mode ohne manuelle helle Auswahl */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --color-primary-dark: #e2e8f0;
        --color-primary-darker: #cbd5e1;
        --color-primary-darkest: #f8fafc;
        --color-brand-green: #34d399;
        --color-brand-green-hover: #10b981;
        --color-brand-green-active: #059669;
        --color-surface-light: #0f172a;
        --color-text-main: #cbd5e1;
        --color-white: #020617;
        --color-focus-ring: rgba(15, 23, 42, 0.9);
        --color-border-soft: rgba(148, 163, 184, 0.24);
        --box-shadow-cards: 0 16px 28px -18px rgba(0, 0, 0, 0.55);
        color-scheme: dark;
    }

    html:not([data-theme="light"]) body {
        background-color: #020617;
    }

    html:not([data-theme="light"]) strong,
    html:not([data-theme="light"]) h1,
    html:not([data-theme="light"]) h2,
    html:not([data-theme="light"]) h3 {
        color: #f8fafc;
    }

    html:not([data-theme="light"]) .skip-link {
        background-color: #f8fafc;
        color: #020617;
    }

    html:not([data-theme="light"]) .site-header {
        background-color: rgba(2, 6, 23, 0.9);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        backdrop-filter: blur(14px);
    }

    html:not([data-theme="light"]) .site-header__menu-toggle {
        background-color: rgba(15, 23, 42, 0.92);
        color: #f8fafc;
        border-color: rgba(148, 163, 184, 0.24);
    }

    html:not([data-theme="light"]) .site-header__menu-toggle:hover,
    html:not([data-theme="light"]) .site-header__menu-toggle:focus-visible {
        background-color: rgba(30, 41, 59, 0.98);
        border-color: rgba(148, 163, 184, 0.4);
    }

    html:not([data-theme="light"]) .btn:focus-visible,
    html:not([data-theme="light"]) .site-header__nav-link:focus-visible,
    html:not([data-theme="light"]) .site-header__menu-toggle:focus-visible,
    html:not([data-theme="light"]) .skip-link:focus-visible {
        outline-color: #f8fafc;
        box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.88);
    }

    html:not([data-theme="light"]) .site-header__nav-link {
        color: #e2e8f0;
    }

    html:not([data-theme="light"]) .site-header__nav-link:hover,
    html:not([data-theme="light"]) .site-header__nav-link:focus-visible {
        color: #34d399;
        background-color: rgba(52, 211, 153, 0.12);
    }

    html:not([data-theme="light"]) .site-header__nav-link:active {
        background-color: rgba(148, 163, 184, 0.12);
    }

    html:not([data-theme="light"]) .hero__background::after {
        background: linear-gradient(to right,
                rgba(2, 6, 23, 0.94) 0%,
                rgba(2, 6, 23, 0.58) 100%);
    }

    html:not([data-theme="light"]) .products,
    html:not([data-theme="light"]) .split-section--alt {
        background-color: #0f172a;
    }

    html:not([data-theme="light"]) .product-card,
    html:not([data-theme="light"]) .contact-cards,
    html:not([data-theme="light"]) .contact-form {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.16);
        box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.55);
    }

    html:not([data-theme="light"]) .product-card--featured {
        background: linear-gradient(180deg,
                rgba(17, 24, 39, 1) 0%,
                rgba(15, 23, 42, 1) 100%);
        border-color: rgba(52, 211, 153, 0.34);
        box-shadow:
            0 20px 40px -24px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(52, 211, 153, 0.12);
    }

    html:not([data-theme="light"]) .product-card--featured:hover,
    html:not([data-theme="light"]) .product-card--featured:focus-within {
        border-color: rgba(52, 211, 153, 0.44);
        box-shadow:
            0 24px 44px -24px rgba(0, 0, 0, 0.68),
            0 0 0 1px rgba(52, 211, 153, 0.16);
    }

    html:not([data-theme="light"]) .product-card__badge--premium {
        background-color: rgba(15, 23, 42, 0.88);
        border-color: rgba(148, 163, 184, 0.2);
        color: #f8fafc;
    }

    html:not([data-theme="light"]) .product-card__action--featured {
        background-color: rgba(52, 211, 153, 0.1);
        border-color: rgba(52, 211, 153, 0.72);
        color: #6ee7b7;
    }

    html:not([data-theme="light"]) .product-card__action--featured:hover,
    html:not([data-theme="light"]) .product-card__action--featured:focus-visible {
        background-color: #34d399;
        border-color: #34d399;
        color: #022c22;
    }

    html:not([data-theme="light"]) .btn-outline {
        border-color: #cbd5e1;
        color: #f8fafc;
    }

    html:not([data-theme="light"]) .btn-outline:hover,
    html:not([data-theme="light"]) .btn-outline:focus-visible {
        background-color: #e2e8f0;
        border-color: #e2e8f0;
        color: #020617;
    }

    html:not([data-theme="light"]) .btn-outline:active {
        background-color: #cbd5e1;
        border-color: #cbd5e1;
        color: #020617;
    }

    html:not([data-theme="light"]) .split-section__media img,
    html:not([data-theme="light"]) .contact-cards,
    html:not([data-theme="light"]) .contact-card__content {
        box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.6);
    }

    html:not([data-theme="light"]) .contact-card + .contact-card {
        border-color: rgba(148, 163, 184, 0.16);
    }

    html:not([data-theme="light"]) .contact-card__content {
        background-color: rgba(15, 23, 42, 0.92);
    }

    html:not([data-theme="light"]) .contact-card__meta {
        color: #cbd5e1;
    }

    html:not([data-theme="light"]) .contact-form-section__note a {
        color: #6ee7b7;
    }

    html:not([data-theme="light"]) .contact-form input[type="text"],
    html:not([data-theme="light"]) .contact-form input[type="email"],
    html:not([data-theme="light"]) .contact-form textarea {
        background-color: #0f172a;
        border-color: rgba(148, 163, 184, 0.38);
        color: #e2e8f0;
    }

    html:not([data-theme="light"]) .contact-form__required-note {
        color: #cbd5e1;
    }

    html:not([data-theme="light"]) .contact-form__status {
        color: #e2e8f0;
    }

    html:not([data-theme="light"]) .contact-form__status--success {
        color: #6ee7b7;
    }

    html:not([data-theme="light"]) .contact-card__link {
        color: #f8fafc;
    }

    html:not([data-theme="light"]) .contact-card__link:hover,
    html:not([data-theme="light"]) .contact-card__link:focus-visible {
        color: #6ee7b7;
    }

    html:not([data-theme="light"]) .site-footer {
        background-color: #01040f;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    html:not([data-theme="light"]) .site-footer__copyright,
    html:not([data-theme="light"]) .site-footer p {
        color: #e2e8f0;
    }

    html:not([data-theme="light"]) .site-footer__nav-link {
        color: rgba(226, 232, 240, 0.92);
    }

html:not([data-theme="light"]) .site-footer__nav-link:hover,
html:not([data-theme="light"]) .site-footer__nav-link:focus-visible {
    color: #ffffff;
}

html:not([data-theme="light"]) .cookie-consent__panel {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    color: #d7e2ee;
}

html:not([data-theme="light"]) .cookie-consent__title,
html:not([data-theme="light"]) .cookie-consent__links a,
html:not([data-theme="light"]) .cookie-consent__close,
html:not([data-theme="light"]) .cookie-consent__status {
    color: #f8fafc;
}

html:not([data-theme="light"]) .cookie-consent__close {
    background-color: rgba(148, 163, 184, 0.14);
}

html:not([data-theme="light"]) .cookie-consent__status {
    background-color: rgba(15, 23, 42, 0.72);
}

html:not([data-theme="light"]) .cookie-consent__button {
    border-color: #cbd5e1;
    color: #f8fafc;
}

html:not([data-theme="light"]) .cookie-consent__button:hover,
html:not([data-theme="light"]) .cookie-consent__button:focus-visible {
    background-color: #cbd5e1;
    color: #0f172a;
}
}

/* Manuell dunkle Darstellung */
html[data-theme="dark"] {
    --color-primary-dark: #e2e8f0;
    --color-primary-darker: #cbd5e1;
    --color-primary-darkest: #f8fafc;
    --color-brand-green: #34d399;
    --color-brand-green-hover: #10b981;
    --color-brand-green-active: #059669;
    --color-surface-light: #0f172a;
    --color-text-main: #cbd5e1;
    --color-white: #020617;
    --color-focus-ring: rgba(15, 23, 42, 0.9);
    --color-border-soft: rgba(148, 163, 184, 0.24);
    --box-shadow-cards: 0 16px 28px -18px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body {
    background-color: #020617;
}

html[data-theme="dark"] strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .skip-link {
    background-color: #f8fafc;
    color: #020617;
}

html[data-theme="dark"] .site-header {
    background-color: rgba(2, 6, 23, 0.9);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .site-header__menu-toggle {
    background-color: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .site-header__menu-toggle:hover,
html[data-theme="dark"] .site-header__menu-toggle:focus-visible {
    background-color: rgba(30, 41, 59, 0.98);
    border-color: rgba(148, 163, 184, 0.4);
}

html[data-theme="dark"] .btn:focus-visible,
html[data-theme="dark"] .site-header__nav-link:focus-visible,
html[data-theme="dark"] .site-header__menu-toggle:focus-visible,
html[data-theme="dark"] .skip-link:focus-visible {
    outline-color: #f8fafc;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .site-header__nav-link {
    color: #e2e8f0;
}

html[data-theme="dark"] .site-header__nav-link:hover,
html[data-theme="dark"] .site-header__nav-link:focus-visible {
    color: #34d399;
    background-color: rgba(52, 211, 153, 0.12);
}

html[data-theme="dark"] .site-header__nav-link:active {
    background-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero__background::after {
    background: linear-gradient(to right,
            rgba(2, 6, 23, 0.94) 0%,
            rgba(2, 6, 23, 0.58) 100%);
}

html[data-theme="dark"] .products,
html[data-theme="dark"] .split-section--alt {
    background-color: #0f172a;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .contact-cards,
html[data-theme="dark"] .contact-form {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .product-card--featured {
    background: linear-gradient(180deg,
            rgba(17, 24, 39, 1) 0%,
            rgba(15, 23, 42, 1) 100%);
    border-color: rgba(52, 211, 153, 0.34);
    box-shadow:
        0 20px 40px -24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(52, 211, 153, 0.12);
}

html[data-theme="dark"] .product-card--featured:hover,
html[data-theme="dark"] .product-card--featured:focus-within {
    border-color: rgba(52, 211, 153, 0.44);
    box-shadow:
        0 24px 44px -24px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(52, 211, 153, 0.16);
}

html[data-theme="dark"] .product-card__badge--premium {
    background-color: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
}

html[data-theme="dark"] .product-card__action--featured {
    background-color: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.72);
    color: #6ee7b7;
}

html[data-theme="dark"] .product-card__action--featured:hover,
html[data-theme="dark"] .product-card__action--featured:focus-visible {
    background-color: #34d399;
    border-color: #34d399;
    color: #022c22;
}

html[data-theme="dark"] .btn-outline {
    border-color: #cbd5e1;
    color: #f8fafc;
}

html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .btn-outline:focus-visible {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #020617;
}

html[data-theme="dark"] .btn-outline:active {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    color: #020617;
}

html[data-theme="dark"] .split-section__media img,
html[data-theme="dark"] .contact-cards,
html[data-theme="dark"] .contact-card__content {
    box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .contact-card + .contact-card {
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .contact-card__content {
    background-color: rgba(15, 23, 42, 0.92);
}

html[data-theme="dark"] .contact-card__meta {
    color: #cbd5e1;
}

html[data-theme="dark"] .contact-form-section__note a {
    color: #6ee7b7;
}

html[data-theme="dark"] .contact-form input[type="text"],
html[data-theme="dark"] .contact-form input[type="email"],
html[data-theme="dark"] .contact-form textarea {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.38);
    color: #e2e8f0;
}

html[data-theme="dark"] .contact-form__required-note {
    color: #cbd5e1;
}

html[data-theme="dark"] .contact-form__status {
    color: #e2e8f0;
}

html[data-theme="dark"] .contact-form__status--success {
    color: #6ee7b7;
}

html[data-theme="dark"] .contact-card__link {
    color: #f8fafc;
}

html[data-theme="dark"] .contact-card__link:hover,
html[data-theme="dark"] .contact-card__link:focus-visible {
    color: #6ee7b7;
}

html[data-theme="dark"] .site-footer {
    background-color: #01040f;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .site-footer__copyright,
html[data-theme="dark"] .site-footer p {
    color: #e2e8f0;
}

html[data-theme="dark"] .site-footer__nav-link {
    color: rgba(226, 232, 240, 0.92);
}

html[data-theme="dark"] .site-footer__nav-link:hover,
html[data-theme="dark"] .site-footer__nav-link:focus-visible {
    color: #ffffff;
}

html[data-theme="dark"] .cookie-consent__panel {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    color: #d7e2ee;
}

html[data-theme="dark"] .cookie-consent__title,
html[data-theme="dark"] .cookie-consent__links a,
html[data-theme="dark"] .cookie-consent__close,
html[data-theme="dark"] .cookie-consent__status {
    color: #f8fafc;
}

html[data-theme="dark"] .cookie-consent__close {
    background-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .cookie-consent__status {
    background-color: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .cookie-consent__button {
    border-color: #cbd5e1;
    color: #f8fafc;
}

html[data-theme="dark"] .cookie-consent__button:hover,
html[data-theme="dark"] .cookie-consent__button:focus-visible {
    background-color: #cbd5e1;
    color: #0f172a;
}

/* Dezente Header-Actions mit integriertem Themenbutton */
.site-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: 999px;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    flex: 0 0 auto;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background-color: rgba(30, 41, 59, 0.04);
    border-color: rgba(30, 41, 59, 0.2);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.theme-toggle:active {
    transform: translateY(1px);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.theme-toggle:hover .theme-toggle__icon,
.theme-toggle:focus-visible .theme-toggle__icon {
    transform: scale(1.05);
}

/* Aktivzustand für dunkles Farbschema */
/* Mobil bleibt der CTA vollbreitig, der Themenbutton davor kompakt */
.site-header__cta {
    flex: 1 1 100%;
}

@media (min-width: 901px) {
    .site-header__actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .site-header__cta {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .theme-toggle,
    .theme-toggle__icon {
        transition: none !important;
    }

    .theme-toggle:active {
        transform: none;
    }
}

/* Dark-Mode-Ergänzung für den Themenbutton */
html[data-theme="dark"] .theme-toggle {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e5edf5;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    background-color: rgba(30, 41, 59, 0.96);
    border-color: rgba(148, 163, 184, 0.34);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle {
        background-color: rgba(15, 23, 42, 0.92);
        border-color: rgba(148, 163, 184, 0.24);
        color: #e5edf5;
    }

    html:not([data-theme="light"]) .theme-toggle:hover,
    html:not([data-theme="light"]) .theme-toggle:focus-visible {
        background-color: rgba(30, 41, 59, 0.96);
        border-color: rgba(148, 163, 184, 0.34);
    }

}
