:root {
    --wood-light: #d4a574;
    --wood-dark: #5c4033;
    --accent: #1a1a1a;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #999999;
    --surface: #ffffff;
    --surface-soft: #f7f7f5;
    --border: #e8e8e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
    transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--border);
}

/* ── Hero Text ── */
.hero-eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-light);
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 36rem;
}

.hero-mission {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 32rem;
    border-left: 2px solid var(--wood-light);
    padding-left: 1.25rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--text);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.section-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-light);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 0.9s ease both;
}
.animate-fade-up-delay {
    animation: fadeUp 0.9s ease 0.15s both;
}
.animate-fade-up-delay-2 {
    animation: fadeUp 0.9s ease 0.3s both;
}

/* ════════════════════════════════════════════
   Explore: zwei Oberkategorien + Matrix
   ════════════════════════════════════════════ */
.explore-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.explore-tab {
    flex: 1 1 220px;
    text-align: left;
    padding: 1.1rem 1.4rem;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.25s ease;
    cursor: pointer;
}
.explore-tab:hover {
    border-color: var(--text);
}
.explore-tab[aria-selected="true"] {
    background: var(--text);
    border-color: var(--text);
}
.explore-tab[aria-selected="true"] .explore-tab-label,
.explore-tab[aria-selected="true"] .explore-tab-sub {
    color: #fff;
}
.explore-tab-label {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--text);
}
.explore-tab-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ── Stage / Layouts ── */
.explore-stage {
    position: relative;
}
.explore-anbieter {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 1.5rem;
    align-items: start;
}
.explore-produkte {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (max-width: 860px) {
    .explore-anbieter { grid-template-columns: 1fr; }
}

/* Stabile Höhe: verhindert das vertikale Springen beim Hovern,
   wenn ein Anbieter mehr/weniger Produkte hat als der vorherige. */
.matrix-pane {
    min-height: 28rem;
}
.matrix-pane-down {
    min-height: 28rem;
}

.matrix-pane-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    min-height: 3rem;
}
.matrix-pane-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.15;
}
.matrix-pane-tag {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.matrix-pane-link {
    white-space: nowrap;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}
.matrix-pane-link:hover { opacity: 0.6; }

/* ── Matrix-Zellen (kompakt) ── */
.matrix-table th,
.matrix-table td { vertical-align: top; }
.product-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    cursor: pointer;
}
.product-cell:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.prod-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-thumb .prod-thumb-icon { font-size: 1.05rem; opacity: 0.4; }
.prod-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prod-meta { min-width: 0; flex: 1; }
.prod-name {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.8125rem;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}
.product-cell:hover .prod-name { opacity: 0.6; }
.prod-price {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    letter-spacing: 0.02em;
}

/* ── Glas-Hologramm-Schaltflächen ── */
.glass-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 18px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(180,205,255,0.12), transparent 60%),
        radial-gradient(120% 80% at 100% 100%, rgba(255,185,225,0.12), transparent 60%),
        var(--surface-soft);
    border: 1px solid var(--border);
}
.glass-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.1rem;
    border-radius: 18px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(180,205,255,0.14), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(255,185,225,0.14), transparent 55%),
        var(--surface-soft);
    border: 1px solid var(--border);
}

.glass-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: rgba(255,255,255,0.45);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 14px;
    box-shadow:
        0 6px 22px rgba(40,30,20,0.07),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    opacity: 0;
    animation: glassIn 0.55s ease forwards;
}
@keyframes glassIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* holografischer Sheen */
.glass-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(150,200,255,0.30) 44%,
        rgba(255,170,225,0.30) 52%,
        rgba(170,255,210,0.28) 60%,
        transparent 74%);
    background-size: 220% 100%;
    background-position: 200% 0;
    transition: background-position 0.9s ease;
    pointer-events: none;
}
/* iridescente Kante */
.glass-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: conic-gradient(from 0deg,
        rgba(120,200,255,0.7),
        rgba(255,160,220,0.7),
        rgba(170,255,200,0.7),
        rgba(255,215,140,0.7),
        rgba(120,200,255,0.7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.glass-btn:hover,
.glass-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(40,30,20,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    outline: none;
}
.glass-btn:hover::before,
.glass-btn:focus-visible::before { background-position: -60% 0; }
.glass-btn:hover::after,
.glass-btn:focus-visible::after,
.glass-btn[aria-pressed="true"]::after { opacity: 1; }
.glass-btn[aria-pressed="true"] {
    background: rgba(255,255,255,0.7);
}

.glass-btn-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    text-align: left;
}
.glass-avatar {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
}
.glass-text { min-width: 0; flex: 1; }
.glass-name {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.glass-sub {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.glass-arrow {
    flex: 0 0 auto;
    color: var(--text-light);
    transition: transform 0.25s ease, color 0.25s ease;
}
.glass-btn-row:hover .glass-arrow,
.glass-btn-row[aria-pressed="true"] .glass-arrow {
    transform: translateX(3px);
    color: var(--text);
}

.glass-btn-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.4rem;
    min-width: 7rem;
}
.glass-icon { font-size: 1.6rem; }
.glass-btn-tile .glass-name { font-size: 1rem; }
