/* ============================================
   Werkraum Holzgestaltung — Stylesheet
   Fachmagazin-Stil: warmes Off-White, Eiche,
   Anthrazit, dezentes Dunkelgrün
   ============================================ */

/* --- Reset & Basis --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Farben */
    --off-white: #F4EFE6;
    --off-white-2: #EDE6D8;
    --paper: #FBF8F1;
    --oak: #B8895A;
    --oak-dark: #8B5E34;
    --oak-light: #D4B896;
    --oak-pale: #E8D9C0;
    --anthracite: #2A2825;
    --anthracite-2: #3A3733;
    --anthracite-3: #5A554F;
    --green: #3D5240;
    --green-2: #4A6450;
    --green-3: #6B8470;
    --line: #C9BFAE;
    --line-soft: #DDD3BF;
    --ink: #1F1D1A;
    --muted: #7A7268;

    /* Typografie */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Maße */
    --container: 1240px;
    --container-narrow: 960px;
    --header-h: 76px;
    --radius: 4px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(244, 239, 230, 0.96);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--anthracite);
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--anthracite);
    border-radius: var(--radius);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--green);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--green);
}

.nav-link-cta {
    background: var(--anthracite);
    color: var(--off-white);
    padding: 10px 22px;
}

.nav-link-cta:hover {
    background: var(--green);
    color: var(--off-white);
}

.nav-link-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px;
    color: var(--anthracite);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--anthracite);
    color: var(--off-white);
    border: 1px solid var(--anthracite);
}

.btn-primary:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--anthracite);
    border: 1px solid var(--anthracite);
}

.btn-ghost:hover {
    background: var(--anthracite);
    color: var(--off-white);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: var(--off-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184, 137, 90, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 82, 64, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--anthracite);
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--oak-dark);
}

.hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--anthracite-3);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-meta {
    display: flex;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-meta dt {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.hero-meta dd {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--anthracite);
}

.hero-visual {
    position: relative;
}

.hero-figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(42, 40, 37, 0.15);
}

.hero-figure img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: saturate(0.9);
}

.hero-figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(42, 40, 37, 0.85));
    color: var(--off-white);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fig-label {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12px;
    color: var(--oak-light);
    flex-shrink: 0;
}

.hero-sketch {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(42, 40, 37, 0.1);
    color: var(--anthracite-3);
}

.hero-sketch svg {
    width: 100%;
    height: auto;
}

.sketch-caption {
    display: block;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-scroll svg {
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Section Basis --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-head-light {
    color: var(--off-white);
}

.section-head-light .section-num,
.section-head-light .section-lead {
    color: var(--oak-light);
}

.section-head-light .section-title {
    color: var(--off-white);
}

.section-num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--oak-dark);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--anthracite);
    margin-bottom: 20px;
}

.section-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--anthracite-3);
    max-width: 620px;
}

/* --- Vorstellung --- */
.section-about {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--anthracite);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--anthracite-3);
    font-size: 16px;
    line-height: 1.75;
}

.quote {
    margin: 36px 0 0;
    padding: 28px 28px 28px 36px;
    border-left: 3px solid var(--oak);
    background: var(--off-white-2);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--anthracite);
    margin: 0 0 12px;
}

.quote footer {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.about-figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(42, 40, 37, 0.12);
}

.about-figure img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: saturate(0.9);
}

.about-figure figcaption {
    padding: 14px 18px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-top: none;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Grundlagen --- */
.section-grundlagen {
    background: var(--off-white);
}

.grundlagen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.grundlagen-card {
    background: var(--paper);
    padding: 36px 32px;
    transition: background 0.3s ease;
    cursor: default;
}

.grundlagen-card:hover,
.grundlagen-card:focus {
    background: var(--off-white-2);
    outline: none;
}

.grundlagen-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--oak-dark);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.grundlagen-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--anthracite);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.grundlagen-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--anthracite-3);
}

/* --- Materialien --- */
.section-materialien {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.material-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.material-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--anthracite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--off-white);
    transition: all 0.2s ease;
}

.material-tab:hover {
    color: var(--anthracite);
    border-color: var(--anthracite-3);
}

.material-tab.active {
    background: var(--anthracite);
    color: var(--off-white);
    border-color: var(--anthracite);
}

.material-detail {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: stretch;
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
}

.material-swatch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--off-white-2);
    overflow: hidden;
}

.swatch-color {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: var(--radius);
    transition: background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.swatch-color::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            87deg,
            transparent 0px,
            transparent 8px,
            rgba(0, 0, 0, 0.04) 8px,
            rgba(0, 0, 0, 0.04) 9px
        ),
        repeating-linear-gradient(
            93deg,
            transparent 0px,
            transparent 22px,
            rgba(0, 0, 0, 0.06) 22px,
            rgba(0, 0, 0, 0.06) 24px
        );
    mix-blend-mode: multiply;
    border-radius: var(--radius);
}

.swatch-grain {
    position: absolute;
    inset: 40px;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.material-info {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.material-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.2rem;
    color: var(--anthracite);
    margin-bottom: 4px;
    letter-spacing: -0.015em;
}

.material-latin {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--oak-dark);
    margin-bottom: 20px;
}

.material-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--anthracite-3);
    margin-bottom: 28px;
}

.material-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.material-specs dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.material-specs dd {
    font-size: 15px;
    color: var(--anthracite);
    font-weight: 500;
}

/* --- Werkzeuge --- */
.section-werkzeuge {
    background: var(--off-white);
}

.werkzeuge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.werkzeug-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.werkzeug-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 40, 37, 0.08);
    border-color: var(--oak);
}

.werkzeug-icon {
    width: 64px;
    height: 64px;
    color: var(--oak-dark);
    margin-bottom: 24px;
    padding: 8px;
    background: var(--off-white-2);
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
}

.werkzeug-icon svg {
    width: 100%;
    height: 100%;
}

.werkzeug-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--anthracite);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.werkzeug-blurb {
    font-size: 15px;
    color: var(--anthracite-3);
    margin-bottom: 24px;
    line-height: 1.6;
}

.werkzeug-specs {
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.werkzeug-specs div {
    margin-bottom: 12px;
}

.werkzeug-specs dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.werkzeug-specs dd {
    font-size: 14px;
    color: var(--anthracite);
}

/* --- Projekte --- */
.section-projekte {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.projekte-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.projekt-item {
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.projekt-item:hover {
    border-color: var(--oak);
}

.projekt-item.open {
    box-shadow: 0 12px 40px rgba(42, 40, 37, 0.08);
    border-color: var(--oak);
}

.projekt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    gap: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.projekt-head:hover {
    background: var(--off-white-2);
}

.projekt-num {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--oak-dark);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.projekt-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--anthracite);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.projekt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projekt-tags span {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    padding: 4px 10px;
    border: 1px solid var(--green-3);
    border-radius: 2px;
    background: rgba(61, 82, 64, 0.04);
}

.projekt-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--anthracite);
    transition: all 0.3s ease;
}

.projekt-toggle:hover {
    background: var(--anthracite);
    color: var(--off-white);
    border-color: var(--anthracite);
}

.toggle-icon {
    transition: transform 0.35s ease;
}

.projekt-item.open .toggle-icon {
    transform: rotate(180deg);
}

.projekt-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.projekt-content {
    padding: 0 32px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--line-soft);
    padding-top: 28px;
}

.projekt-content > p {
    grid-column: 1 / -1;
    font-size: 16px;
    line-height: 1.75;
    color: var(--anthracite-3);
    margin-bottom: 8px;
}

.projekt-diagram {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--anthracite-3);
}

.projekt-diagram svg {
    width: 100%;
    height: auto;
}

.projekt-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
}

.projekt-details li {
    font-size: 15px;
    color: var(--anthracite-3);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.projekt-details li:last-child {
    border-bottom: none;
}

.projekt-details span {
    font-weight: 600;
    color: var(--anthracite);
    display: inline-block;
    min-width: 90px;
}

/* --- Materialsammlung --- */
.section-sammlung {
    background: var(--off-white);
}

.sammlung-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.sammlung-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sammlung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 40, 37, 0.1);
    border-color: var(--oak);
}

.sammlung-card-swatch {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.sammlung-card-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            88deg,
            transparent 0px,
            transparent 6px,
            rgba(0, 0, 0, 0.05) 6px,
            rgba(0, 0, 0, 0.05) 7px
        );
    mix-blend-mode: multiply;
}

.sammlung-card-info {
    padding: 16px 18px;
}

.sammlung-card-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--anthracite);
    margin-bottom: 4px;
}

.sammlung-card-hard {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.sammlung-detail {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(42, 40, 37, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sammlung-detail-inner {
    position: relative;
    background: var(--off-white);
    border-radius: var(--radius);
    max-width: 720px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sammlung-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--anthracite);
    transition: all 0.2s ease;
}

.sammlung-close:hover {
    background: var(--anthracite);
    color: var(--off-white);
}

.sammlung-detail-swatch {
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.sammlung-detail-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            87deg,
            transparent 0px,
            transparent 8px,
            rgba(0, 0, 0, 0.05) 8px,
            rgba(0, 0, 0, 0.05) 9px
        ),
        repeating-linear-gradient(
            93deg,
            transparent 0px,
            transparent 22px,
            rgba(0, 0, 0, 0.07) 22px,
            rgba(0, 0, 0, 0.07) 24px
        );
    mix-blend-mode: multiply;
}

.sammlung-detail-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sammlung-detail-info h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2rem;
    color: var(--anthracite);
    margin-bottom: 4px;
}

.sammlung-detail-info p {
    color: var(--anthracite-3);
}

.sammlung-detail-info p:nth-of-type(1) {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--oak-dark);
    margin-bottom: 16px;
}

.sammlung-detail-info p:nth-of-type(2) {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

#detailSpecs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

#detailSpecs dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

#detailSpecs dd {
    font-size: 14px;
    color: var(--anthracite);
    font-weight: 500;
}

/* --- Impressionen --- */
.section-impressionen {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.impressionen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.impression {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--off-white);
    border: 1px solid var(--line-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impression:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 40, 37, 0.1);
}

.impression img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 0.5s ease;
}

.impression:hover img {
    transform: scale(1.04);
}

.impression figcaption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Kontakt --- */
.section-kontakt {
    background: var(--anthracite);
    color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.section-kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(184, 137, 90, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    position: relative;
}

.kontakt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.kontakt-block h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--oak-light);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.kontakt-block p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--off-white);
    opacity: 0.85;
}

.kontakt-block a {
    color: var(--oak-light);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.kontakt-block a:hover {
    border-bottom-color: var(--oak-light);
}

.kontakt-aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.kontakt-note {
    padding: 28px;
    background: var(--anthracite-2);
    border: 1px solid var(--anthracite-3);
    border-radius: var(--radius);
}

.kontakt-note h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--oak-light);
    margin-bottom: 14px;
}

.kontakt-note p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--off-white);
    opacity: 0.8;
}

.kontakt-sketch {
    background: var(--anthracite-2);
    border: 1px solid var(--anthracite-3);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--oak-light);
}

.kontakt-sketch svg {
    width: 100%;
    height: auto;
}

/* --- Footer --- */
.site-footer {
    background: var(--anthracite);
    color: var(--off-white);
    padding: 64px 0 32px;
    border-top: 1px solid var(--anthracite-3);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--anthracite-3);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--off-white);
    margin-bottom: 16px;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--off-white);
    opacity: 0.7;
    max-width: 320px;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    color: var(--oak-light);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--off-white);
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--oak-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 13px;
    color: var(--off-white);
    opacity: 0.6;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        max-width: none;
    }

    .hero-figure img {
        height: 420px;
    }

    .hero-sketch {
        bottom: -20px;
        left: 20px;
        width: 160px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-figure img {
        height: 400px;
    }

    .grundlagen-grid,
    .werkzeuge-grid,
    .impressionen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .material-detail {
        grid-template-columns: 1fr;
    }

    .material-swatch {
        min-height: 200px;
    }

    .material-info {
        padding: 32px;
    }

    .sammlung-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kontakt-info {
        grid-template-columns: 1fr 1fr;
    }

    .projekt-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .container,
    .header-inner,
    .hero-grid {
        padding: 0 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: var(--paper);
        border-left: 1px solid var(--line);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 40px rgba(42, 40, 37, 0.1);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .nav-link {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: var(--radius);
    }

    .nav-link-cta {
        text-align: center;
        margin-top: 8px;
    }

    .nav-close {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .hero {
        padding: calc(var(--header-h) + 40px) 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-meta {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-meta dd {
        font-size: 22px;
    }

    .hero-sketch {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .grundlagen-grid,
    .werkzeuge-grid,
    .impressionen-grid,
    .sammlung-grid {
        grid-template-columns: 1fr;
    }

    .material-tabs {
        gap: 6px;
    }

    .material-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .material-specs {
        grid-template-columns: 1fr;
    }

    .projekt-head {
        padding: 20px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .projekt-toggle {
        align-self: flex-end;
    }

    .projekt-content {
        padding: 0 22px 24px;
        padding-top: 20px;
    }

    .kontakt-info {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sammlung-detail-inner {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .sammlung-detail-swatch {
        min-height: 200px;
    }

    .sammlung-detail-info {
        padding: 28px 24px;
    }

    #detailSpecs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .grundlagen-card,
    .werkzeug-card {
        padding: 24px 20px;
    }

    .projekt-name {
        font-size: 1.25rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}