:root {
    --accent: #f59e0b;
    --accent-dark: #b45309;
    --accent-soft: #fffbeb;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --surface: #ffffff;
    --page: #f8fafc;
    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --success: #15803d;
    --focus: 0 0 0 3px rgba(245, 158, 11, 0.28);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
label,
select,
input[type="radio"],
input[type="file"] {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice-card:has(input:focus-visible),
.request-button:has(input:focus-visible),
.roof-card:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.page-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
}

.form-card {
    min-height: calc(100vh - 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: visible;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 16px 12px;
}

.main-logo {
    width: auto;
    max-height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.progress-wrap {
    padding: 0 16px 18px;
    border-bottom: 1px solid var(--border);
}

.required-note {
    margin: 14px 16px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.delivery-hint {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.progress-meta span:last-child {
    color: var(--text-main);
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.progress-fill {
    width: 16.6667%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #fbbf24);
    transition: width 0.28s ease;
}

form {
    display: flex;
    min-height: calc(100vh - 154px);
    flex-direction: column;
}

.form-step {
    display: none;
    flex: 1;
    padding: 22px 16px 110px;
}

.form-step.active {
    display: block;
    animation: stepIn 0.24s ease-out;
}

.mode-selector,
.article-shell {
    padding: 22px 16px 110px;
}

.mode-selector h1 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.mode-grid {
    display: grid;
    gap: 14px;
}

.mode-card {
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 22px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text-main);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mode-card:hover,
.mode-card:focus-visible {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: var(--focus);
    outline: none;
    transform: translateY(-1px);
}

.mode-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--accent);
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.mode-card strong {
    font-size: 21px;
    line-height: 1.2;
}

.mode-card small {
    max-width: 320px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-head {
    margin-bottom: 20px;
}

.step-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.step-head p,
.choice-copy small,
.upload-area p,
.char-counter {
    color: var(--text-muted);
    font-size: 14px;
}

.step-head p {
    margin: 0;
}

.choice-stack {
    display: grid;
    gap: 12px;
}

.field-label,
label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
}

.field-label.has-info,
label.has-info {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
}

.info-trigger {
    position: relative;
    z-index: 3;
    display: inline-grid;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-transform: none;
}

.info-trigger:focus-visible {
    color: var(--accent-dark);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.info-trigger::before,
.info-trigger::after {
    position: absolute;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.info-trigger::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: min(280px, calc(100vw - 40px));
    padding: 9px 11px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: pre-line;
}

.info-trigger::after {
    content: "";
    bottom: calc(100% + 4px);
    border: 6px solid transparent;
    border-top-color: #111827;
}

.info-trigger.tooltip-align-start::before,
.info-trigger.tooltip-align-start::after {
    left: 0;
    transform: translate(0, 6px);
}

.info-trigger.tooltip-align-start::after {
    left: 2px;
}

.info-trigger.tooltip-align-end::before,
.info-trigger.tooltip-align-end::after {
    right: 0;
    left: auto;
    transform: translate(0, 6px);
}

.info-trigger.tooltip-align-end::after {
    right: 2px;
}

.info-trigger.tooltip-below::before {
    top: calc(100% + 10px);
    bottom: auto;
}

.info-trigger.tooltip-below::after {
    top: calc(100% + 4px);
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: #111827;
}

.info-trigger:hover {
    color: var(--accent-dark);
}

.info-trigger:hover::before,
.info-trigger:hover::after,
.info-trigger:focus-visible::before,
.info-trigger:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.info-trigger.tooltip-align-start:hover::before,
.info-trigger.tooltip-align-start:hover::after,
.info-trigger.tooltip-align-start:focus-visible::before,
.info-trigger.tooltip-align-start:focus-visible::after,
.info-trigger.tooltip-align-end:hover::before,
.info-trigger.tooltip-align-end:hover::after,
.info-trigger.tooltip-align-end:focus-visible::before,
.info-trigger.tooltip-align-end:focus-visible::after {
    transform: translate(0, 0);
}

.choice-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    align-items: center;
    min-height: 72px;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-card:hover {
    border-color: #fbbf24;
}

.choice-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.14);
}

.choice-card input,
.roof-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.emoji-icon {
    font-size: 24px;
}

.choice-copy {
    min-width: 0;
}

.choice-copy strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.choice-copy small {
    display: block;
    line-height: 1.35;
}

.radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
}

.choice-card:has(input:checked) .radio-mark {
    border-color: var(--accent);
}

.choice-card:has(input:checked) .radio-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-group {
    min-width: 0;
}

.form-group.full,
.address-row.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--focus);
    outline: none;
}

.input-error,
.input-error:focus {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.field-error-message {
    display: none;
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.35;
}

.field-error-message:not(:empty) {
    display: block;
}

.field-warning-message {
    display: none;
    margin-top: 6px;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.field-warning-message:not(:empty) {
    display: block;
}

.article-toolbar {
    margin-bottom: 18px;
}

.shop-head {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.shop-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.shop-back,
.cart-button {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 800;
}

.shop-back {
    padding: 0 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
}

.cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    background: var(--accent);
    color: #111827;
}

.cart-button span {
    display: grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 13px;
}

.catalog-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.catalog-status:empty {
    display: none;
}

.category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-filter-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    scroll-snap-align: start;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 800;
}

.category-filter-button:hover,
.category-filter-button:focus-visible,
.category-filter-button.active {
    border-color: var(--accent);
    box-shadow: var(--focus);
    outline: none;
}

.category-filter-button.active {
    background: var(--accent);
    color: #111827;
}

.category-filter-button strong {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
}

.product-grid {
    display: grid;
    gap: 14px;
}

.catalog-empty {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover,
.product-card:focus-within {
    border-color: var(--accent);
    box-shadow: var(--focus);
    outline: none;
    transform: translateY(-1px);
}

.product-detail-button {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.product-detail-button:focus-visible {
    outline: none;
}

.product-image-wrap {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 112px;
    aspect-ratio: 1;
    place-items: center;
    background: #f8fafc;
}

.product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.product-image-placeholder {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.product-body {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 12px 12px 8px;
}

.product-category {
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.product-body h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-actions {
    display: grid;
    grid-column: 2;
    grid-template-columns: minmax(70px, 0.42fr) minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    padding: 0 12px 12px;
}

.product-card-actions label {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.product-card-actions input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    color: var(--text-main);
    font: inherit;
    font-weight: 800;
}

.product-add-button {
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.product-add-button:hover,
.product-add-button:focus-visible {
    background: var(--accent-dark);
    color: #fff;
    outline: none;
}

/* Warenkorb- und Kontaktdaten-Seite der Artikelliste (jeweils eigene Seite). */
.checkout-panel {
    margin-top: 0;
}

.article-contact-grid {
    margin-top: 18px;
}

.cart-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line-media {
    display: grid;
    width: 58px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.cart-line-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cart-line-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.cart-line label {
    display: grid;
    max-width: none;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.cart-line input {
    min-height: 42px;
}

.remove-cart-item {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
}

.article-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: end center;
    padding: 12px;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}

.product-modal-box {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(760px, 100%);
    max-height: min(760px, calc(100dvh - 24px));
    overflow: auto;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.product-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 800;
}

.product-modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 22px 48px 16px 22px;
    background: #f8fafc;
}

.product-modal-copy {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-modal-copy h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-modal-copy p {
    margin: 0;
    color: var(--text-muted);
}

.product-modal-actions {
    display: grid;
    gap: 10px;
}

.product-modal-actions input {
    max-width: none;
}

.article-shell .request-choice {
    min-width: 0;
}

@media (max-width: 379px) {
    .article-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .category-filter {
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .product-card,
    .product-detail-button {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .product-image-wrap {
        min-height: 96px;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
    }
}

.form-warning-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 18px;
}

.form-warning-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}

.form-warning-box {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.form-warning-box::before {
    content: "";
    display: block;
    height: 5px;
    background: var(--accent);
}

.form-warning-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 22px 22px 0;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 24px;
    font-weight: 900;
    border: 1px solid #fde68a;
}

.form-warning-copy {
    display: grid;
    gap: 8px;
    padding: 14px 22px 0;
}

.form-warning-copy h2,
.form-warning-copy p {
    margin: 0;
}

.form-warning-copy h2 {
    color: var(--text-main);
    font-size: 22px;
    line-height: 1.2;
}

.form-warning-copy p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.form-warning-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    padding: 22px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.form-warning-actions .btn {
    width: 100%;
}

@media (min-width: 560px) {
    .form-warning-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .form-warning-actions .btn {
        width: auto;
    }
}

.holiday-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    border-radius: 12px;
    background: var(--danger-soft);
    color: #991b1b;
}

.holiday-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.holiday-notice p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.holiday-notice p + p {
    margin-top: 4px;
}

.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.zip-field {
    flex: 1 1 130px;
}

.city-field {
    flex: 2 1 210px;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
}

.optional-field label {
    color: var(--text-muted);
    font-style: italic;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 54px;
}

.unit {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    transform: translateY(-50%);
    pointer-events: none;
}

.roof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.roof-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    min-height: 64px;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.roof-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
}

.roof-icon {
    display: block;
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.roof-tiles {
    background: repeating-linear-gradient(135deg, #f97316 0 8px, #fed7aa 8px 16px);
}

.roof-flat {
    background: linear-gradient(#94a3b8 0 50%, #cbd5e1 50%);
}

.roof-gravel {
    background: radial-gradient(circle, #64748b 1px, transparent 2px), #cbd5e1;
    background-size: 9px 9px;
}

.roof-green {
    background: linear-gradient(135deg, #22c55e, #86efac);
}

.roof-metal {
    background: repeating-linear-gradient(90deg, #94a3b8 0 6px, #e2e8f0 6px 12px);
}

.roof-wave {
    background: repeating-radial-gradient(ellipse at center, #60a5fa 0 4px, #dbeafe 5px 10px);
}

.roof-details {
    margin-top: 18px;
}

.roof-size-field {
    min-width: 0;
}

.optional-note {
    color: #94a3b8;
    font-weight: 600;
}

.tile-replacement {
    margin-top: 22px;
}

.compact-choice {
    margin-top: 8px;
}

.conditional-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: #fffbeb;
    animation: stepIn 0.22s ease-out;
}

.compact-panel {
    margin-top: 16px;
    padding: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.checkbox-row:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-row label {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.inline-checkbox {
    margin-top: 8px;
    padding: 10px 12px;
}

.blitz-hinweis {
    margin-top: 6px;
    padding: 8px 12px;
    background: #fef3c7;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
}

.aufstaenderung-panel {
    margin-top: 18px;
}

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

.aufstaenderung-karte {
    flex: 1 1 180px;
    min-width: 140px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.aufstaenderung-karte img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f8fafc;
    padding: 6px;
}

.aufstaenderung-karte strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
}

.aufstaenderung-karte p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.aufstaenderung-karte.selected,
.aufstaenderung-karte:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.single-file-preview {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.single-file-preview:empty {
    display: none;
}

.stepper-input {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
}

.stepper-input button {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff7ed;
    color: var(--accent-dark);
    font-size: 22px;
    font-weight: 800;
}

input[type="range"] {
    min-height: 32px;
    padding: 0;
    accent-color: var(--accent);
    box-shadow: none;
}

.roof-slope-preview {
    height: 58px;
    margin-top: 18px;
    position: relative;
}

.roof-slope-preview span {
    position: absolute;
    left: 12px;
    bottom: 10px;
    width: 78px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
    transform-origin: left center;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
}

.request-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.request-choice .field-label {
    grid-column: 1 / -1;
}

.request-button {
    position: relative;
    display: grid;
    min-height: 52px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.request-button:hover {
    border-color: #fbbf24;
}

.request-button:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent);
    color: #111827;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16);
}

.request-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-area {
    display: grid;
    gap: 12px;
    margin: 22px 0 18px;
    padding: 16px;
    border: 2px dashed #fbbf24;
    border-radius: 16px;
    background: #fffaf0;
}

.upload-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.upload-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.upload-head span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #111827;
    font-weight: 800;
}

.upload-area p {
    margin: 0;
    text-align: center;
}

.comment-area {
    margin: 20px 0 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.order-delivery-panel {
    margin-top: 18px;
}

.order-delivery-panel h3 {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.25;
}

.file-preview {
    display: grid;
    gap: 10px;
}

.preview-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e2e8f0;
    object-fit: cover;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.preview-meta {
    min-width: 0;
}

.preview-meta strong,
.preview-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-meta small {
    color: var(--text-muted);
    font-size: 13px;
}

.remove-file {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 22px;
    line-height: 1;
}

.char-counter {
    margin-top: 4px;
    text-align: right;
}

.summary-panel {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.sterne-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.stern {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
    user-select: none;
}

.stern.aktiv {
    color: var(--accent);
}

.stern:hover {
    color: #fcd34d;
    transform: translateY(-1px);
}

.summary-panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.legal-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.legal-note a {
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-note a:hover,
.legal-note a:focus-visible {
    color: var(--accent);
}

.summary-grid {
    display: grid;
    gap: 10px;
}

.summary-item {
    display: grid;
    gap: 2px;
}

.summary-item span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.summary-item strong {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.submission-status {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #ecfdf5;
    color: var(--success);
    font-weight: 700;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

noscript .btn {
    display: block;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-primary {
    background: var(--accent);
    color: #111827;
}

.btn-secondary {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(17, 24, 39, 0.2);
    border-top-color: #111827;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.honeypot,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.noscript-note {
    margin: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fef3c7;
    color: #78350f;
}

.thank-you-shell {
    max-width: 780px;
}

.thank-you-card {
    min-height: auto;
}

.thanks-content {
    padding: 24px 16px 28px;
    text-align: center;
}

.success-badge {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--success);
    font-size: 34px;
    font-weight: 800;
}

.thanks-content h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.thanks-content p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
}

.feedback-panel {
    margin: 0 16px 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fafc;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.star-rating label {
    margin: 0;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 30px;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.star-rating label.active span {
    color: var(--accent);
}

.star-rating span:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.feedback-submit {
    display: block;
    max-width: 280px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
}

#popup_google[hidden] {
    display: none;
}

#popup_google {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.popup-box {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 360px;
    padding: 32px 24px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: popup-in 0.25s ease;
}

@keyframes popup-in {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    min-height: 32px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.popup-icon {
    margin-bottom: 12px;
    font-size: 44px;
}

.popup-box h3 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
}

.popup-box p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.popup-btn {
    display: block;
    margin-bottom: 10px;
    padding: 13px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.popup-btn:hover {
    background: #d97706;
}

.popup-skip {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    text-decoration: underline;
}

#feedback-status {
    text-align: center;
}

@media (min-width: 768px) {
    .page-shell {
        padding: 32px;
    }

    .form-card {
        min-height: auto;
        border-radius: 24px;
    }

    .site-header,
    .progress-wrap,
    .form-step,
    .mode-selector,
    .article-shell,
    .sticky-actions {
        padding-left: 36px;
        padding-right: 36px;
    }

    .site-header {
        padding-top: 28px;
    }

    .main-logo {
        max-height: 64px;
    }

    .thanks-content {
        padding: 34px 36px 34px;
    }

    .feedback-panel {
        margin: 0 36px 36px;
        padding: 24px;
    }

    form {
        min-height: 660px;
    }

    .form-step {
        padding-top: 30px;
    }

    .choice-stack {
        grid-template-columns: 1fr 1fr;
    }

    .mode-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shop-head {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
    }

    .shop-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .category-filter {
        flex-wrap: wrap;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
        overflow: visible;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-card {
        display: flex;
        flex-direction: column;
        border-radius: 16px;
    }

    .product-detail-button {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .product-image-wrap {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .product-image-wrap img {
        padding: 10px;
    }

    .product-body {
        flex: 1;
        gap: 8px;
        padding: 14px;
    }

    .product-category {
        padding: 4px 8px;
    }

    .product-body h3 {
        font-size: 16px;
    }

    .product-body p {
        min-height: 42px;
        font-size: 13px;
        line-height: 1.45;
    }

    .product-card-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }

    .cart-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-line-media {
        width: 72px;
    }

    .article-actions {
        grid-template-columns: 1fr 1fr;
    }

    .product-modal {
        place-items: center;
        padding: 18px;
    }

    .product-modal-box {
        max-height: min(760px, calc(100vh - 36px));
        border-radius: 18px;
    }

    .product-modal-image {
        max-height: 320px;
        padding: 28px;
    }

    .product-modal-copy {
        padding: 22px;
    }

    .product-modal-copy h2 {
        font-size: 24px;
    }

    .product-modal-actions input {
        max-width: 160px;
    }

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

    .module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .roof-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .roof-details .form-group:first-child,
    .roof-details .form-group:nth-child(6) {
        grid-column: 1 / -1;
    }

    .sticky-actions {
        grid-template-columns: 180px minmax(220px, 1fr);
        align-items: center;
    }

    .btn-primary {
        justify-self: end;
        max-width: 320px;
    }

    .btn-secondary {
        max-width: 180px;
    }
}

/* Datenschutz-Fußzeile */
.page-legal {
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.page-legal a.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.page-legal a.privacy-link:hover,
.page-legal a.privacy-link:focus-visible {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

.privacy-link-icon {
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.6 8 11 4.6-2.4 8-6 8-11V5l-8-3Zm0 6a2.2 2.2 0 0 1 1 4.15V15a1 1 0 0 1-2 0v-2.85A2.2 2.2 0 0 1 12 8Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.6 8 11 4.6-2.4 8-6 8-11V5l-8-3Zm0 6a2.2 2.2 0 0 1 1 4.15V15a1 1 0 0 1-2 0v-2.85A2.2 2.2 0 0 1 12 8Z'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

.privacy-link-arrow {
    font-size: 12px;
    opacity: 0.7;
}

/* Fly-to-Cart Animation */
.cart-flyer {
    position: fixed;
    z-index: 200;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.28);
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.3, 1), opacity 0.7s ease;
    will-change: transform, opacity;
}

.cart-button.cart-bump {
    animation: cart-bump 0.45s ease;
}

@keyframes cart-bump {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.18); }
    60% { transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-flyer { transition: none; }
    .cart-button.cart-bump { animation: none; }
}

/* Verpackungseinheit (VPE) im Produktkatalog */
.product-card-actions.has-vpe {
    grid-template-columns: 1fr 1fr;
}

.product-card-actions.has-vpe .product-add-button {
    grid-column: 1 / -1;
}

.product-card-actions input:disabled,
.modal-qty-field input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.cart-vpe-note {
    color: #9a5a00;
    font-size: 12px;
    font-weight: 800;
}

.modal-qty-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.modal-qty-field {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.modal-qty-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text-main);
    font: inherit;
    font-weight: 800;
}
