/* ==========================================================================
   STEIN & MARMOR - Premium Steinhandel
   Hauptstylesheet
   ========================================================================== */

/* ============================
   0. FONTS (LOKAL EINGEBUNDEN, DSGVO-konform, keine Google-Fonts-CDN)
   ============================ */
/* Inter, Body-Schrift */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

/* Playfair Display, Headings */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin_latin-ext-700.woff2') format('woff2');
}

/* ============================
   1. CSS RESET & BASE
   ============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Fixed-Header-Offset für Anker-Sprünge (z.B. katalog.html#marmor) */
section[id] {
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

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

/* ============================
   2. CSS VARIABLEN (TOKENS)
   ============================ */
:root {
    /* Farben - Premium Stein-Palette */
    --color-bg: #f8f5f0;
    --color-bg-alt: #efe9e0;
    --color-bg-dark: #1a1816;
    --color-bg-darker: #0f0e0d;
    --color-surface: #ffffff;
    --color-surface-dark: #2a2724;

    --color-text: #2a2724;
    --color-text-light: #6b6660;
    --color-text-muted: #9a948c;
    --color-text-inverse: #f8f5f0;

    --color-primary: #1a1816;
    --color-primary-hover: #2a2724;

    --color-accent: #c9a961;
    --color-accent-hover: #b89651;
    --color-accent-light: #e6d3a1;
    --color-accent-soft: rgba(201, 169, 97, 0.1);

    --color-border: #e0d9cf;
    --color-border-dark: #3a3530;

    --color-success: #4a7c59;
    --color-error: #a94442;
    --color-warning: #d4a017;

    /* Typografie */
    --font-heading: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;

    /* Schriftgrößen - Fluid Typography (kompakter für 100% Zoom) */
    --fs-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.78rem);
    --fs-sm: clamp(0.8rem, 0.76rem + 0.18vw, 0.9rem);
    --fs-base: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
    --fs-lg: clamp(1rem, 0.94rem + 0.25vw, 1.1rem);
    --fs-xl: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    --fs-2xl: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
    --fs-3xl: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
    --fs-4xl: clamp(1.85rem, 1.5rem + 1.5vw, 2.6rem);
    --fs-5xl: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
    --fs-6xl: clamp(2.6rem, 2rem + 3vw, 4.2rem);

    /* Spacing - 4px base */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout, schmaler für mehr Whitespace links/rechts */
    --container-max: 1140px;
    --container-narrow: 820px;
    --container-wide: 1240px;
    --header-height: 68px;

    /* Borders & Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 24, 22, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 24, 22, 0.12);
    --shadow-xl: 0 24px 64px rgba(26, 24, 22, 0.16);
    --shadow-gold: 0 8px 24px rgba(201, 169, 97, 0.25);

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.3s ease;
    --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --t-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Layers */
    --z-below: -1;
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-header: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
    --z-toast: 4000;
}

/* ============================
   3. TYPOGRAFIE
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

h1 {
    font-size: var(--fs-5xl);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-4xl);
    font-weight: 600;
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

h5 {
    font-size: var(--fs-lg);
}

h6 {
    font-size: var(--fs-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-light);
    line-height: 1.75;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text-light);
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    position: relative;
}

.eyebrow::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 3 Q 5.5 0.5 11 3 T 22 3' stroke='%23c9a961' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 7 Q 5.5 5 11 7 T 22 7' stroke='%23c9a961' stroke-width='1' fill='none' opacity='0.7' stroke-linecap='round'/%3E%3Cpath d='M0 11 Q 5.5 8.5 11 11 T 22 11' stroke='%23c9a961' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.text-accent { color: var(--color-accent); }
.text-light { color: var(--color-text-light); }
.text-inverse { color: var(--color-text-inverse); }
.text-center { text-align: center; }

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

/* ============================
   4. LAYOUT - CONTAINER & GRID
   ============================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

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

.section {
    padding: var(--space-12) 0;
    position: relative;
}

.section-sm { padding: var(--space-6) 0; }
.section-lg { padding: var(--space-16) 0; }

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-text-inverse);
}

.section-dark p {
    color: rgba(248, 245, 240, 0.75);
}

.section-alt {
    background: var(--color-bg-alt);
}

.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* Katalog-Grid: kompakter, quadratische Stein-Bilder, mehr Cards pro Reihe.
   auto-FILL statt auto-FIT: bei wenigen Karten dehnen sie sich NICHT auf die
   ganze Reihe, leere Spalten bleiben leer, Karten behalten ihre Größe. */
.grid-katalog {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-4);
    /* Wichtig: max-width pro Karte fixieren (sonst macht 1fr sie doch breit). */
}

.grid-katalog .card-wrapper,
.grid-katalog > article,
.grid-katalog > .card {
    max-width: 280px;
    width: 100%;
    justify-self: start;
}

.grid-katalog .card {
    border-radius: var(--radius-md);
}

.grid-katalog .card-image {
    aspect-ratio: 1 / 1;
}

.grid-katalog .card-body {
    padding: var(--space-4);
}

.grid-katalog .card-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.grid-katalog .card h3 {
    font-size: 1.02rem;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.grid-katalog .card-meta {
    margin-bottom: var(--space-2);
    gap: 4px;
}

.grid-katalog .card-meta .tag {
    font-size: 0.62rem;
    padding: 2px 8px;
    letter-spacing: 0.02em;
}

.grid-katalog .card-meta:not(.card-meta-oberfl) .tag:nth-child(n+3) {
    display: none;
}

.grid-katalog .card-body p {
    font-size: 0.83rem;
    line-height: 1.4;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-light);
}

.grid-katalog .card-footer {
    padding-top: var(--space-2);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.grid-katalog .card-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.grid-katalog .card-link {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    flex: 1;
    padding: 7px 10px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    justify-content: center;
    text-align: center;
    transition: background var(--t-base), color var(--t-base);
}

.grid-katalog .card-link:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.grid-katalog .card-link svg {
    width: 11px;
    height: 11px;
}

.grid-katalog .card-add {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-primary);
    transition: all var(--t-base);
    padding: 0;
}

.grid-katalog .card-add:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.05);
}

.grid-katalog .card-add.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.grid-katalog .card-add svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-base);
}

.grid-katalog .card-add.is-active svg {
    transform: rotate(45deg);
}

.grid-katalog .card-price-on-request {
    font-size: 0.62rem;
    text-align: center;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.grid-katalog .card-badge {
    top: var(--space-2);
    left: var(--space-2);
    font-size: 0.55rem;
    padding: 2px 6px;
    letter-spacing: 0.1em;
}

/* Mobile-Anpassungen für .grid-katalog siehe responsive.css */

/* Floating Stein-Korb-Counter */
.korb-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-accent);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: var(--z-sticky);
    border: 2px solid var(--color-accent);
    transition: transform var(--t-base), box-shadow var(--t-base);
    text-decoration: none;
}

.korb-fab.visible {
    display: flex;
    animation: korbPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.korb-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.korb-fab svg {
    width: 22px;
    height: 22px;
}

.korb-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
}

@keyframes korbPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Stein-Korb-Anzeige auf Anfrage-Seite */
.stein-korb-display {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.stein-korb-display.is-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    padding: var(--space-6);
}

.stein-korb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.stein-korb-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
}

.stein-korb-clear {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.stein-korb-clear:hover {
    color: var(--color-error);
}

.stein-korb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stein-korb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px 10px 10px;
    transition: all var(--t-base);
}

.stein-korb-item:hover {
    border-color: var(--color-accent);
}

.stein-korb-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.stein-korb-item-thumb .stone-visual {
    width: 100%;
    height: 100%;
}

.stein-korb-item-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.stein-korb-item-name {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: 100px;
}

.stein-korb-item-oberfl {
    flex: 0 1 auto;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    font-family: inherit;
    min-width: 130px;
}

.stein-korb-item-oberfl.is-placeholder {
    color: var(--color-text-muted);
}

.stein-korb-item-oberfl.is-placeholder option:not([value=""]) {
    color: var(--color-text);
}

.stein-korb-item-oberfl:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.18);
}

.stein-korb-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.4rem;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.stein-korb-item-remove:hover {
    color: var(--color-error);
    background: rgba(0, 0, 0, 0.04);
}

/* Anfrage-Page: zweispaltiges Layout, Korb-Sidebar links, Formular rechts */
.form-wrapper.anfrage-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.form-wrapper.anfrage-layout > .stein-korb-display {
    margin: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    align-self: start;
    max-height: calc(100vh - var(--header-height) - var(--space-8));
    overflow-y: auto;
}

.form-wrapper.anfrage-layout > .form {
    min-width: 0;
}

@media (max-width: 900px) {
    .form-wrapper.anfrage-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .form-wrapper.anfrage-layout > .stein-korb-display {
        position: static;
        max-height: none;
    }
}

@media (max-width: 560px) {
    .stein-korb-item-body {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .stein-korb-item-name {
        min-width: 0;
    }
    .stein-korb-item-oberfl {
        min-width: 0;
        width: 100%;
    }
}

.stein-korb-add-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-3);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    border: 1px dashed var(--color-accent);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--t-base);
}

.stein-korb-add-more:hover {
    background: var(--color-accent-soft);
}

/* Section Header */
.section-header {
    max-width: 720px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.section-header.align-left {
    margin-left: 0;
    text-align: left;
}

.section-header h2 {
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: var(--fs-base);
}

/* ============================
   5. BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--t-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: rgba(248, 245, 240, 0.3);
}

.btn-outline-light:hover {
    background: var(--color-text-inverse);
    color: var(--color-primary);
    border-color: var(--color-text-inverse);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: transparent;
    padding: var(--space-3) var(--space-4);
}

.btn-ghost:hover {
    color: var(--color-accent);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--fs-base);
}

.btn-sm {
    padding: var(--space-3) var(--space-5);
    font-size: var(--fs-xs);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 1.1em;
    height: 1.1em;
    transition: transform var(--t-base);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ============================
   6. HEADER & NAVIGATION
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

/* Default scrolled state: heller Header für hellen Content (maximaler Kontrast) */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Auf Hero: Header immer dunkel-transparent, Text hell mit hohem Kontrast */
body.has-dark-hero .site-header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(15, 14, 13, 0.7) 0%, rgba(15, 14, 13, 0.25) 70%, transparent 100%);
}

/* Auf Hero & gescrollt: Header bleibt dunkel passend zur Hero */
body.has-dark-hero .site-header.scrolled {
    background: rgba(15, 14, 13, 0.88);
    border-bottom-color: rgba(201, 169, 97, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.has-dark-hero .site-header .logo {
    color: #ffffff;
}

body.has-dark-hero .site-header .main-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

body.has-dark-hero .site-header .main-nav a:hover,
body.has-dark-hero .site-header .main-nav a.active {
    color: var(--color-accent);
}

body.has-dark-hero .site-header .menu-toggle span,
body.has-dark-hero .site-header .menu-toggle span::before,
body.has-dark-hero .site-header .menu-toggle span::after {
    background: #ffffff;
}

body.has-dark-hero .site-header .logo-text small {
    color: var(--color-accent);
    opacity: 1;
}

body.has-dark-hero .site-header.scrolled .logo {
    color: #ffffff;
}

body.has-dark-hero .site-header.scrolled .main-nav a {
    color: rgba(255, 255, 255, 0.85);
}

body.has-dark-hero .site-header.scrolled .main-nav a:hover,
body.has-dark-hero .site-header.scrolled .main-nav a.active {
    color: var(--color-accent);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.logo:hover {
    color: var(--color-accent);
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.logo-text small {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 0;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: nowrap;
}

.main-nav a {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    transition: color var(--t-base);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-4);
    right: var(--space-4);
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-base);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-md);
    transition: background var(--t-base);
}

.menu-toggle:hover {
    background: var(--color-bg-alt);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: all var(--t-base);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--t-base);
}

.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================
   7. HERO SECTIONS
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0;
    overflow: hidden;
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(201, 169, 97, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(40, 35, 30, 0.6) 0%, transparent 70%),
        linear-gradient(160deg, #1a1816 0%, #0f0e0d 50%, #050504 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3CradialGradient id='glow' cx='85%25' cy='15%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23c9a961' stop-opacity='0.12'/%3E%3Cstop offset='100%25' stop-color='%23c9a961' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23glow)'/%3E%3Cpath d='M-50 200 Q 200 150 500 220 T 1100 200 T 1300 220' stroke='%23c9a961' stroke-width='0.8' fill='none' opacity='0.08'/%3E%3Cpath d='M-50 450 Q 250 400 550 470 T 1200 450' stroke='%23c9a961' stroke-width='0.6' fill='none' opacity='0.06'/%3E%3Cpath d='M-50 650 Q 200 620 500 670 T 1100 650' stroke='%23c9a961' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    color: var(--color-text-inverse);
    font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    display: block;
    margin-top: 0.18em;
    font-style: italic;
    color: var(--color-accent);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 0.82rem + 0.3vw, 1rem);
    color: rgba(248, 245, 240, 0.8);
    margin-bottom: var(--space-5);
    max-width: 540px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-features {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(248, 245, 240, 0.15);
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 1;
    min-width: 240px;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.hero-feature-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-1);
}

.hero-feature-text span {
    font-size: var(--fs-sm);
    color: rgba(248, 245, 240, 0.7);
}

/* ============================
   HERO SPLIT LAYOUT (B2B-orientiert)
   ============================ */
/* Edge-to-Edge Hero Layout */
.hero-edge {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: var(--space-12);
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-left: max(var(--space-8), calc((100vw - 1320px) / 2 + var(--space-8)));
    padding-right: var(--space-8);
    max-width: 660px;
    justify-self: start;
    width: 100%;
}

.hero-content .eyebrow {
    margin-bottom: var(--space-8);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
}

.hero h1 {
    margin-bottom: var(--space-8);
    line-height: 1.05;
}

.hero-subtitle {
    margin-bottom: var(--space-10);
    max-width: 480px;
}

.hero-quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: 0;
}

/* Mosaic-Wrap: füllt rechte Seite bis zum Viewport-Rand */
.hero-edge .hero-mosaic-wrap {
    padding-right: max(var(--space-6), calc((100vw - 1320px) / 2 + var(--space-6)));
    padding-left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Hero-Trust verschwindet aus dem Content (wird zu Strip unten) */
.hero-content .hero-trust {
    display: none;
}

/* Hero-Bottom-Strip mit 4 USPs, full width */
.hero-strip {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-5) max(var(--space-6), calc((100vw - 1320px) / 2 + var(--space-6)));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-strip-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    text-decoration: none;
    transition: transform var(--t-base), color var(--t-base);
}

a.hero-strip-item {
    cursor: pointer;
}

a.hero-strip-item:hover {
    transform: translateY(-2px);
    color: #fff;
}

a.hero-strip-item:hover .hero-strip-icon {
    color: var(--color-accent-hover);
    transform: scale(1.08);
}

.hero-strip-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-base), color var(--t-base);
}

.hero-strip-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--space-6) * -0.5 - 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(248, 245, 240, 0.1);
}

.hero-strip-icon svg {
    width: 100%;
    height: 100%;
}

.hero-strip-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-strip-text span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.hero-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--color-accent);
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--t-base);
    box-shadow: var(--shadow-gold);
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(201, 169, 97, 0.5);
}

.hero-cta-primary:hover::before {
    transform: translateX(100%);
}

.hero-cta-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-cta-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    max-width: 460px;
}

.hero-cta-row .btn {
    flex: 1;
    min-width: 0;
    padding: var(--space-3) var(--space-5);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(248, 245, 240, 0.15);
    flex-wrap: wrap;
}

.hero-trust-stars {
    display: flex;
    gap: 1px;
    color: var(--color-accent);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.4));
}

.hero-trust-stars svg {
    width: 17px;
    height: 17px;
}

.hero-trust-text {
    font-size: 0.82rem;
    color: rgba(248, 245, 240, 0.78);
    line-height: 1.4;
}

.hero-trust-text strong {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-trust-text strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* Stein-Mosaic im Hero, füllt rechte Spalte bis zum Viewport-Rand */
.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 760px;
    height: calc(100vh - 220px);
    max-height: 720px;
    margin: 0;
    aspect-ratio: auto;
}

.hero-mosaic-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.hero-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: block;
    isolation: isolate;
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.hero-tile .stone-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--t-slow);
}

.hero-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    transition: opacity var(--t-base);
}

.hero-tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Größere Tiles: größere Schrift */
.hero-tile-4 .hero-tile-label,
.hero-tile-5 .hero-tile-label {
    font-size: 0.85rem;
    padding: 12px 14px;
}

.hero-tile-label::after {
    content: '\2192';
    display: inline-block;
    margin-left: 4px;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-base), transform var(--t-base);
    font-weight: 400;
}

.hero-tile:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--color-accent);
    border-color: var(--color-accent);
}

.hero-tile:hover .stone-visual {
    transform: scale(1.08);
}

.hero-tile:hover .hero-tile-label::after {
    opacity: 1;
    transform: translateX(0);
}

/* Highlight-Tile: prominent hervorgehoben mit Akzent */
.hero-tile.is-featured {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 97, 0.3);
    border-color: rgba(201, 169, 97, 0.45);
}

.hero-tile.is-featured .hero-tile-label {
    font-size: 1.05rem;
    padding: 16px 18px;
}

.hero-tile.is-featured .hero-tile-label::before {
    content: 'BESTSELLER';
    display: block;
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    margin-bottom: 4px;
    text-shadow: none;
}

/* Asymmetrisches 6x6 Grid, 7 Tiles, harmonische Komposition */
.hero-tile-1 { grid-column: 1 / 5; grid-row: 1 / 4; }   /* großes Hauptbild Calacatta */
.hero-tile-2 { grid-column: 5 / 7; grid-row: 1 / 3; }   /* Bianco Carrara, oben rechts */
.hero-tile-3 { grid-column: 5 / 7; grid-row: 3 / 5; }   /* Nero Marquina, mitte rechts */
.hero-tile-4 { grid-column: 1 / 3; grid-row: 4 / 7; }   /* Star Galaxy, unten links */
.hero-tile-5 { grid-column: 3 / 5; grid-row: 4 / 7; }   /* Taj Mahal, unten mitte */
.hero-tile-6 { grid-column: 5 / 7; grid-row: 5 / 7; }   /* Travertin, unten rechts */
.hero-tile-7 { display: none; }
.hero-tile-8 { display: none; }

.hero-mosaic-caption {
    text-align: right;
    margin-top: var(--space-4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(248, 245, 240, 0.45);
    max-width: 540px;
    margin-left: auto;
    padding-right: 4px;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%,
        rgba(201, 169, 97, 0.15) 0%,
        transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-hero h1 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-4);
}

.page-hero p {
    font-size: var(--fs-lg);
    color: rgba(248, 245, 240, 0.8);
    max-width: 640px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.breadcrumbs a {
    color: rgba(248, 245, 240, 0.6);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .separator {
    color: rgba(248, 245, 240, 0.3);
}

.breadcrumbs .current {
    color: var(--color-accent);
}

/* ============================
   8. STONE-PATTERN BACKGROUNDS
   ============================ */
.stone-pattern {
    position: relative;
    overflow: hidden;
}

.stone-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

/* SVG Marble Background Pattern (inline as data URI) */
.marble-bg {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(201, 169, 97, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #2a2724 0%, #1a1816 50%, #0f0e0d 100%);
}

/* ============================
   9. CARDS - PRODUKT, FEATURE
   ============================ */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card-image .stone-visual {
    width: 100%;
    height: 100%;
    transition: transform var(--t-slow);
}

.card:hover .stone-visual {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-accent);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 500;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.tag-accent {
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
}

.card-body p {
    margin-bottom: var(--space-4);
    flex: 1;
    font-size: var(--fs-sm);
}

.card-footer {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-base);
}

.card:hover .card-link {
    color: var(--color-accent);
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

.card-price-on-request {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Feature Card (icons + text) */
.feature {
    padding: var(--space-5);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--t-base);
    height: 100%;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-2);
}

.feature p {
    font-size: var(--fs-sm);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Feature Numbered (process steps) */
.step {
    position: relative;
    padding: var(--space-5);
    padding-top: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    height: 100%;
}

.step-number {
    position: absolute;
    top: -18px;
    left: var(--space-5);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-2);
}

.step p {
    font-size: var(--fs-sm);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================
   10. STONE-VISUALS (Platzhalter)

   Frueher: pro Stein-Sorte eine CSS-gemalte Visualisierung (carrara, nero, ...).
   Heute: alle Steine werden ueber assets/images/stones/<slug>.webp ausgeliefert
   (KI-generiert). Falls ein Bild fehlt oder noch nicht generiert wurde, zeigt
   die .stone-visual-Box einen einheitlichen, dezenten "Kein Bild"-Platzhalter.

   Die historischen Klassen .stone-carrara, .stone-nero usw. bleiben im HTML
   stehen, sind aber CSS-seitig No-Ops. So bleibt der DOM stabil und das HTML
   muss nicht refactored werden.
   ============================ */
.stone-visual {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ece8e0 0%, #d6d1c6 100%);
}

.stone-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23938a78' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='18' y='22' width='64' height='56' rx='4'/%3E%3Cpath d='M18 62 L36 46 L52 58 L64 48 L82 64'/%3E%3Ccircle cx='62' cy='36' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40% 40%;
    opacity: 0.32;
    pointer-events: none;
}

.stone-visual::after {
    content: 'Bild folgt';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(88, 80, 68, 0.55);
    pointer-events: none;
}

/* Wenn ein <img> drin liegt, deckt es den Platzhalter komplett ab.
   z-index reicht aus; ::before/::after liegen darunter. */
.stone-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Historische Stein-Klassen: explizit als No-Op markieren, damit
   eventuelle Spezial-Selektoren weiter unten nicht ueberraschen. */
.stone-carrara,
.stone-calacatta,
.stone-nero,
.stone-emperador,
.stone-travertine,
.stone-granite,
.stone-granite-light,
.stone-quartzite,
.stone-onyx,
.stone-slate,
.stone-sandstone,
.stone-limestone,
.stone-basalt,
.stone-quartz,
.stone-terrazzo,
.stone-porphyr,
.stone-gneis,
.stone-diorit,
.stone-serpentin,
.stone-labradorit {
    /* intentionally empty - Bild kommt aus assets/images/stones/<slug>.webp */
}

/* ============================
   11. SPLIT SECTION (Image + Text)
   ============================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.split-image {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 78vh;
}

.split-image .stone-visual {
    width: 100%;
    height: 100%;
}

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

.split-image-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.split-content h2 {
    margin-bottom: var(--space-3);
}

.split-content .lead {
    margin-bottom: var(--space-4);
    font-size: var(--fs-base);
}

.split-content p {
    margin-bottom: var(--space-3);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.split-content ul {
    margin-bottom: var(--space-4);
}

.split-content ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.split-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: var(--space-5);
    height: 1px;
    background: var(--color-accent);
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

/* Kompakter Split für Stellen mit kurzem Text (z.B. Bestpreis-Strip auf Index).
   Das Bild bleibt querformat und kleiner, statt das ganze Layout zu dominieren. */
.split-compact .split-image {
    aspect-ratio: 4 / 3;
    max-height: 56vh;
}

/* ============================
   12. STATS / NUMBERS
   ============================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: var(--space-12) 0;
    align-items: stretch;
}

.stat {
    text-align: center;
    padding: var(--space-4) var(--space-5);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin: 0 0 var(--space-4) 0;
    display: inline-block;
    letter-spacing: -0.02em;
}

/* Wenn der Stat-Wert noch nicht gepflegt ist (leer), zeige ihn dezenter,
   sonst wirkt das Layout unfertig. Selector nutzt :has() für moderne Browser
   mit Fallback über Attribut, falls Admin den Wert leer lässt. */
.stat-number:empty,
.stat-number[data-empty="true"] {
    color: var(--color-text-muted);
    opacity: 0.4;
    font-size: 1.6rem;
    font-style: italic;
}

.stat-label {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.3;
    max-width: 200px;
}

.section-dark .stat {
    border-right-color: rgba(248, 245, 240, 0.15);
}

.section-dark .stat-label {
    color: rgba(248, 245, 240, 0.7);
}

/* ============================
   13. FORMS
   ============================ */
.form {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    margin-bottom: var(--space-4);
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-label .required {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.55;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%232a2724' stroke-width='2' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-5) center;
    padding-right: var(--space-12);
}

.form-help {
    margin-top: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.form-error {
    display: none;
    margin-top: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--color-error);
    font-weight: 500;
}

.form-control.error {
    border-color: var(--color-error);
}

.form-control.error ~ .form-error {
    display: block;
}

.form-checkbox,
.form-radio {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-3) 0;
}

.form-checkbox input,
.form-radio input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox span,
.form-radio span {
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: 1.5;
}

.form-checkbox a,
.form-radio a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form-section {
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-4);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.form-section-subtitle {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-top: -var(--space-4);
    margin-bottom: var(--space-6);
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-base);
}

.file-upload:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.file-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.file-upload-text strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.file-upload-text span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.file-list {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-accent-soft);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    color: var(--color-primary);
}

.file-item button {
    color: var(--color-text-muted);
    padding: 0;
    line-height: 1;
}

.file-item button:hover {
    color: var(--color-error);
}

.form-success {
    padding: var(--space-12);
    text-align: center;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-success);
}

.form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--color-success);
}

.form-success h3 {
    margin-bottom: var(--space-4);
}

/* ============================
   14. FAQ ACCORDION
   ============================ */
.faq {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: var(--space-6) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    text-align: left;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: color var(--t-base);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--t-base);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
    transition: transform var(--t-base);
}

.faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow);
}

.faq-answer-inner {
    padding-bottom: var(--space-6);
    padding-right: var(--space-12);
    color: var(--color-text-light);
    line-height: 1.75;
}

.faq-answer-inner p:not(:last-child) {
    margin-bottom: var(--space-3);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

/* ============================
   15. TESTIMONIALS / QUOTES
   ============================ */
.testimonial {
    padding: var(--space-10);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-6);
    right: var(--space-8);
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.3;
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    color: var(--color-accent);
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: var(--space-6);
    flex: 1;
    font-weight: 400;
    letter-spacing: 0.005em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================
   16. CTA SECTION
   ============================ */
.cta {
    padding: var(--space-12) 0;
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-3);
}

.cta p {
    font-size: var(--fs-lg);
    color: rgba(248, 245, 240, 0.8);
    margin-bottom: var(--space-5);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   17. FOOTER
   ============================ */
.site-footer {
    background: var(--color-bg-darker);
    color: rgba(248, 245, 240, 0.7);
    padding: var(--space-12) 0 var(--space-5);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-8);
}

.footer-brand h3 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-2);
}

.footer-brand p {
    color: rgba(248, 245, 240, 0.7);
    max-width: 360px;
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(248, 245, 240, 0.85);
    font-size: var(--fs-sm);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-col h4 {
    color: var(--color-text-inverse);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3);
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col ul li a {
    color: rgba(248, 245, 240, 0.7);
    font-size: var(--fs-sm);
    transition: color var(--t-base);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-5);
    border-top: 1px solid rgba(248, 245, 240, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--fs-xs);
    color: rgba(248, 245, 240, 0.5);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: rgba(248, 245, 240, 0.5);
    transition: color var(--t-base);
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ============================
   18. UTILITIES
   ============================ */
.fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }

.divider {
    width: 80px;
    height: 1px;
    background: var(--color-accent);
    margin: var(--space-6) 0;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }

/* Honeypot: visuell unsichtbar, aber von Bots ausfüllbar (display:none nicht
   verwenden, weil manche Bots das erkennen und überspringen). */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Skip link for accessibility, nur bei Keyboard-Fokus sichtbar */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-3) var(--space-4);
    z-index: var(--z-toast);
    border-radius: 0 0 var(--radius-md) 0;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Scroll Down Indicator, nur sichtbar wenn Platz */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(248, 245, 240, 0.5);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    animation: floatY 2.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, var(--color-accent), transparent);
}

/* Bei kurzen Viewports Scroll-Indikator ausblenden */
@media (max-height: 760px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes floatY {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg,
        var(--color-bg-alt) 25%,
        var(--color-border) 50%,
        var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-2);
    align-items: center;
}

.filter-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-right: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--fs-sm);
    font-weight: 500;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-base);
}

.filter-btn:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
}

.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.search-box {
    margin-left: auto;
    position: relative;
    min-width: 240px;
    max-width: 320px;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: var(--space-3) var(--space-5);
    padding-left: var(--space-12);
    font-size: var(--fs-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-box svg {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}

/* Comparison Table */
.compare-table {
    width: 100%;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
    padding: var(--space-5) var(--space-6);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.compare-table th {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-base);
    text-transform: none;
    letter-spacing: 0;
}

.compare-table td {
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.compare-table .check {
    color: var(--color-success);
    font-weight: 600;
}

.compare-table .x {
    color: var(--color-error);
}

.compare-table .row-highlight {
    background: var(--color-accent-soft);
}

.compare-table .row-highlight td {
    font-weight: 600;
    color: var(--color-primary);
}

/* Toast / Notification */
.toast {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    padding: var(--space-4) var(--space-6);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--t-base);
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--color-success);
}

.toast-error {
    background: var(--color-error);
}

/* ============================
   19. ANIMATIONS
   ============================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================
   20. KATALOG: FILTER-GRUPPE + OBERFLÄCHEN-CHIPS
   ============================ */
.filter-bar-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.filter-bar-oberfl {
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    padding-top: var(--space-3);
}

.filter-bar-oberfl .filter-btn {
    font-size: 0.75rem;
}

.tag-oberfl {
    background: rgba(201, 169, 97, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(201, 169, 97, 0.25);
}

.card-meta-oberfl {
    margin-top: 2px;
    margin-bottom: var(--space-2);
    opacity: 0.85;
    flex-wrap: wrap;
}

/* ============================
   21. KATALOG: KLICKBARE KARTE
   ============================ */
.card-clickable {
    cursor: pointer;
}

.card-clickable .card-link,
.card-clickable .card-add {
    cursor: pointer;
}

/* ============================
   22. STEIN-DETAIL-MODAL
   ============================ */
.stein-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.stein-modal.is-open {
    display: flex;
}

.stein-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 22, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.stein-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.25s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.stein-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease;
}

.stein-modal-close:hover {
    background: #fff;
}

.stein-modal [data-modal-content] {
    display: contents;
}

.stein-modal-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-alt);
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.stein-modal-image img,
.stein-modal-image .stone-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stein-modal-image .card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 1;
}

.stein-modal-body {
    padding: var(--space-6) var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.stein-modal-body .card-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.stein-modal-body h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.2;
}

.stein-modal-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.stein-modal-tags {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.stein-modal-tags strong {
    color: var(--color-text);
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
}

.stein-modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
    align-items: stretch;
}

.stein-modal-actions .stein-modal-anfrage {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stein-modal-actions .stein-modal-anfrage svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.stein-modal-actions .stein-modal-anfrage:hover svg {
    transform: translateX(3px);
}

.stein-modal-add {
    flex: 0 0 auto;
    width: 52px;
    height: auto;
    min-height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.stein-modal-add svg {
    width: 22px;
    height: 22px;
}

.stein-modal-add:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: scale(1.04);
}

.stein-modal-add:active {
    transform: scale(0.96);
}

.stein-modal-price {
    margin-top: 4px;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 720px) {
    .stein-modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .stein-modal-image {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .stein-modal-body {
        padding: var(--space-5) var(--space-4) var(--space-4);
    }
}

/* ============================
   HERO ABOVE-THE-FOLD OPTIMIERUNGEN
   Bei flachen Viewports zusätzlich kompaktieren
   ============================ */
@media (max-height: 850px) and (min-width: 901px) {
    .hero-edge {
        padding: calc(var(--header-height) + var(--space-3)) 0 var(--space-5);
    }
    .hero h1 {
        font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
        margin-bottom: var(--space-5);
    }
    .hero .eyebrow {
        margin-bottom: var(--space-5);
        font-size: 0.7rem;
    }
    .hero-subtitle {
        font-size: var(--fs-sm);
        margin-bottom: var(--space-6);
        max-width: 480px;
    }
    .hero-quick-actions {
        gap: var(--space-2);
    }
    .hero-cta-primary {
        padding: var(--space-3) var(--space-6);
        font-size: var(--fs-sm);
    }
    .hero-mosaic {
        height: calc(100vh - 200px);
        max-width: 660px;
    }
    .hero-strip {
        padding: var(--space-4) max(var(--space-6), calc((100vw - 1320px) / 2 + var(--space-6)));
    }
    .hero-strip-text strong {
        font-size: 0.92rem;
    }
}

@media (max-height: 750px) and (min-width: 901px) {
    .hero .eyebrow {
        margin-bottom: var(--space-3);
    }
    .hero h1 {
        font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
        margin-bottom: var(--space-4);
    }
    .hero h1 br:nth-of-type(2) {
        display: none;
    }
    .hero-subtitle {
        font-size: var(--fs-xs);
        margin-bottom: var(--space-4);
    }
    .hero-cta-primary {
        padding: var(--space-3) var(--space-5);
        font-size: var(--fs-xs);
    }
    .hero-mosaic {
        height: calc(100vh - 180px);
        max-width: 580px;
        gap: 8px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .cta {
        display: none;
    }

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