/* Thomas Holzwerkstatt – Grundgestaltung
   Dunkler Holzgrund, warmes Off-White, feine Serifen. */

:root {
  --bg: #1b1512;
  --bg-2: #261f19;
  --ink: #efe7dc;
  --muted: #b3a89b;
  --silver: #b9bfa9;
  --silver-ink: #1b1512;
  --line: rgba(239, 231, 220, 0.16);
  --light: #e4e2d4;
  --light-2: #d8d8c6;
  --light-ink: #1c1511;
  --light-muted: #66685a;
  --moss: #5a6a4c;
  --fir: #27322a;
  --fir-2: #1f2822;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --text: 'EB Garamond', Georgia, serif;
  --max: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 760px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.eyebrow { font-family: var(--text); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2em; }
.light .eyebrow { color: var(--moss); }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; }
.center { text-align: center; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Knöpfe */
.btn {
  display: inline-block;
  font-family: var(--text);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--silver);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--silver); color: var(--silver-ink); }
.btn-solid { background: var(--silver); color: var(--silver-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.light .btn { border-color: var(--moss); color: var(--moss); }
.light .btn:hover { background: var(--moss); border-color: var(--moss); color: var(--light); }
.link { border-bottom: 1px solid currentColor; padding-bottom: .1em; transition: opacity .3s; }
.link:hover { opacity: .65; }

/* Kopf */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.1rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.site-header.scrolled { background: var(--bg); padding: .7rem 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .02em; white-space: nowrap; }
.brand small { display: block; font-family: var(--text); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: -.15em; }
.nav { display: none; gap: 2.2rem; }
.nav a { font-size: 1.05rem; position: relative; padding: .2em 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: .6rem 0 .6rem .6rem; margin-right: -.1rem; }
.menu-btn span.bars { width: 24px; height: 12px; position: relative; display: inline-block; flex-shrink: 0; }
.menu-btn span.bars::before, .menu-btn span.bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span.bars::before { top: 0; } .menu-btn span.bars::after { top: 11px; }
body.menu-open .menu-btn span.bars::before { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn span.bars::after { top: 5px; transform: rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-nav a { font-family: var(--serif); font-size: 2.2rem; }
body.menu-open .mobile-nav { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none; } }
@media (max-width: 899px) { .brand { font-size: 1.3rem; white-space: normal; min-width: 0; flex: 1 1 auto; } .brand small { font-size: .55rem; letter-spacing: .12em; margin-top: 0; } .header-row { gap: .75rem; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: clip; isolation: isolate; }
.hero .media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24,19,16,.55) 0%, rgba(24,19,16,.25) 45%, rgba(24,19,16,.75) 100%); }
.hero-inner { padding: 7rem var(--gutter) 5rem; max-width: 860px; }
.hero h1 { margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lead { color: var(--ink); opacity: .9; margin-bottom: 2rem; }
.hero .scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.hero .scroll-hint::after { content: ''; display: block; width: 1px; height: 36px; margin: .6rem auto 0; background: var(--muted); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero.small { min-height: 62svh; }
.hero.small .hero-inner { padding-top: 9rem; }

/* Abschnitte */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.light { background: var(--light); color: var(--light-ink); }
.section.light-2 { background: var(--light-2); color: var(--light-ink); }
.section.fir { background: var(--fir); }
.site-footer { background: var(--fir-2); }
.section.tight { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head p { color: var(--muted); }
.light .section-head p { color: var(--light-muted); }

/* Produktraster */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; }
.card .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card .frame img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .frame img { transform: scale(1.04); }
.card:hover .frame img.alt { opacity: 1; }
.card .meta { padding: 1rem 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card h3 { font-size: 1.45rem; margin: 0; }
.card .wood { display: block; font-size: .95rem; color: var(--muted); margin-top: .15em; }
.light .card .wood { color: var(--light-muted); }
.card .price { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.card.sold .frame::after { content: 'Verkauft'; position: absolute; top: 1rem; left: 1rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(24,19,16,.85); color: var(--ink); padding: .4em .8em; }

/* Zweispalter */
.split { display: grid; gap: 2.5rem var(--gutter); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } .split.rev > :first-child { order: 2; } }
.split .frame { overflow: hidden; }
.split .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .frame.wide img { aspect-ratio: 3 / 2; }
.split .text h2 { margin-bottom: .6em; }
.split .text p + .btn { margin-top: 1rem; }

/* Breites Parallax-Band */
.band { position: relative; min-height: 70svh; display: grid; place-items: center; text-align: center; overflow: clip; isolation: isolate; view-timeline: --band block; }
.band .media { position: absolute; inset: -15% 0; z-index: -1; will-change: transform; }
.band .media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(24,19,16,.5); }
.band .inner { padding: 5rem var(--gutter); max-width: 760px; }
.band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.3; font-style: italic; }
.band cite { display: block; font-style: normal; font-family: var(--text); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 1.5rem; }

/* Drei Werte */
.values { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values h3 { font-size: 1.6rem; }
.values p { color: var(--light-muted); }
.values .num { font-family: var(--serif); font-size: 2.6rem; color: var(--moss); line-height: 1; margin-bottom: .4em; }

/* Galerie (Mauerwerk-Raster) */
.mosaic { display: grid; gap: var(--gutter); grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 860px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic .frame { overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.2s var(--ease); }
.mosaic .frame:hover img { transform: scale(1.04); }
.mosaic .tall { grid-row: span 2; } .mosaic .tall img { aspect-ratio: 4 / 7.1; }
.mosaic .wide { grid-column: span 2; } .mosaic .wide img { aspect-ratio: 8 / 5; }

/* Produktseite */
.product { display: grid; gap: 2.5rem var(--gutter); padding-top: 7.5rem; }
@media (min-width: 900px) { .product { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 5vw, 5rem); align-items: start; } .product .info { position: sticky; top: 7rem; } }
.product .gallery { display: grid; gap: var(--gutter); }
.product .gallery img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.product .gallery .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.product .gallery .pair img { aspect-ratio: 1; }
.product .info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.product .info .price { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 1.5rem; }
.product .info .price small { font-family: var(--text); font-size: .85rem; color: var(--muted); margin-left: .6em; }
.specs { list-style: none; margin: 1.5rem 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .7em 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.specs li span:first-child { color: var(--muted); }
.product .note { font-size: .95rem; color: var(--muted); margin-top: 1.2rem; }

/* Fragen und Antworten */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid rgba(28,21,17,.18); }
.faq-item { border-bottom: 1px solid rgba(28,21,17,.18); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.15rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--moss); transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.3rem; color: var(--light-muted); max-width: 64ch; }

/* Formular */
.form { display: grid; gap: 1.2rem; }
.form label { display: grid; gap: .4rem; font-size: .95rem; letter-spacing: .04em; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--silver); padding: .6em 0; border-radius: 0;
  transition: border-color .3s;
}
.form select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c9c3b9' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right center; padding-right: 1.6rem; }
.form select option { background: var(--bg-2); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--ink); }
.form textarea { min-height: 7rem; resize: vertical; }
.form .row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .actions { margin-top: .5rem; }
.form .hint { font-size: .9rem; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border: 1px solid var(--silver); margin-bottom: 2rem; }

/* Textseiten (Impressum, Datenschutz) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.8rem; margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); opacity: .9; }
.prose .placeholder { background: rgba(201,195,185,.14); padding: .05em .3em; }

/* Fuss */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.footer-row { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-row { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { margin-bottom: .8rem; }
.site-footer p { color: var(--muted); max-width: 36ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer h4 { font-family: var(--text); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer .bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: var(--muted); font-size: .88rem; }

/* Parallax: der Browser animiert selbst, flüssig auch auf dem iPhone */
@supports (animation-timeline: view()) {
  .band .media { animation: band-parallax linear both; animation-timeline: --band; }
  @keyframes band-parallax { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
  .hero .media { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes hero-parallax { to { transform: translateY(9%); } }
}

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .media, .band .media { transform: none !important; }
  .hero .scroll-hint::after { animation: none; }
}
