﻿/* Film und Typografie tragen den Auftakt. Die Mitte bleibt frei von Karten und Panels. */
:root { --paper: #efeee8; --white: #f8f7f2; --ink: #292d27; --muted: #666a60; --line: #cfcec3; --accent: #86533c; --gutter: clamp(24px, 5vw, 88px); }
.header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fffdf5; border: 0; padding-top: 32px; padding-bottom: 32px; }
.header .brand > span { color: #d8b797; }
.header-caption { opacity: .85; }
.header nav { font-size: 12px; gap: 30px; }
.header nav a:last-child { color: inherit; border-bottom: 1px solid #fffdf575; }
.film-intro { position: relative; height: 100svh; min-height: 620px; max-height: 1400px; overflow: hidden; isolation: isolate; background: #36392f; color: #fffdf5; }
.intro-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
/* Dezente Verläufe halten Navigation und Fußzeile lesbar, ohne den Film abzudunkeln. */
.film-intro::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #141a165c, #141a160d 30%, #141a1614 65%, #141a167a); }
.intro-identity { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 150px; text-align: center; pointer-events: none; }
.intro-kicker { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: #eee1cd; text-shadow: 0 1px 12px #151a16; }
.intro-lettering { position: relative; margin: 22px 0 26px; }
/* Hoher Strichkontrast und kräftige Serifen greifen die handwerkliche Vorlage auf.
   Die zweite Zeile bleibt kursiv; der warme Farbton harmoniert mit dem Eichenholz. */
.intro-wordmark { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(66px, 8.8vw, 140px); font-weight: 650; font-style: normal; font-optical-sizing: auto; line-height: .92; letter-spacing: -.055em; margin: 0; color: #fff3da; text-shadow: 0 2px 24px #141a163d; }
.intro-wordmark .write-line:last-child { font-style: italic; font-weight: 600; color: #f2dfbd; }
.lettering-flourishes { position: absolute; width: 138%; height: 145%; left: -19%; top: -20%; overflow: visible; color: #f5e7ce; }
.flourish { stroke: currentColor; stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .75; }
.writing .flourish { stroke-dasharray: 1; animation: flourish-write 2.6s cubic-bezier(.4,0,.2,1) both; }
.writing .flourish-top { animation-delay: .45s; }
.writing .flourish-bottom { animation-delay: 1.1s; }
@keyframes flourish-write { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; opacity: .75; } }
.write-line { display: block; white-space: nowrap; }
.write-letter { display: inline-block; white-space: pre; }
/* Jeder Buchstabe entsteht von links nach rechts; die Zeilenbreite bleibt stabil. */
.writing .write-letter { animation: letter-write .48s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--write-delay); }
/* Kursivbuchstaben ragen seitlich über ihre Zeichenbox hinaus. Die offene
   Endmaske erhält diese Serifen und Schwünge nach dem Zeichnen vollständig. */
@keyframes letter-write { from { opacity: 0; clip-path: inset(-20% 100% -20% 0); transform: translateY(4px); } to { opacity: 1; clip-path: inset(-20% -30%); transform: none; } }
.intro-line { font-size: 9px; max-width: 285px; line-height: 1.9; letter-spacing: .17em; text-transform: uppercase; color: #eee1cd; text-shadow: 0 1px 12px #151a16; }
.writing .intro-kicker { animation: quiet-arrive .8s both; }
.writing .intro-line { animation: quiet-arrive .9s 2.3s both; }
@keyframes quiet-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro-bottom { position: absolute; bottom: 25px; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; border-top: 1px solid #fffdf540; padding-top: 18px; font-size: 10px; }
.intro-continue { display: flex; gap: 22px; align-items: center; min-height: 44px; }
.intro-continue span { font-size: 24px; transition: transform .25s; }
.intro-continue:hover span { transform: translateY(4px); }
#film-toggle { justify-self: end; min-height: 44px; color: inherit; border: 0; padding: 8px 0 8px 20px; font-size: 10px; }
#film-toggle:hover { text-decoration: underline; text-underline-offset: 5px; }
.craft-strip { display: flex; justify-content: space-between; gap: 24px; padding: 24px var(--gutter); border-bottom: 1px solid var(--line); font-size: 11px; }
.craft-strip span::before { content: '↗'; margin-right: 16px; color: var(--accent); }
.craft { padding: 58px var(--gutter) 110px; }
.section-index { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; letter-spacing: .04em; margin-bottom: 62px; }
.craft-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 9vw; align-items: end; margin-bottom: 72px; }
.craft-intro h2 { font-size: clamp(48px, 5.7vw, 88px); letter-spacing: -.06em; line-height: 1.06; }
.craft-intro h2 span { color: var(--accent); }
.craft-copy { max-width: 355px; padding-bottom: 6px; }
.craft-copy p { font-size: 15px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 8px 0; margin-top: 22px; font-size: 12px; min-height: 44px; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
/* Accordion-Galerie nach der 21st.dev-Vorlage von UI Layout.
   Ohne JavaScript bleiben die vier Bilder als normales Raster sichtbar. */
.gallery-topline { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 18px; font-size: 11px; color: var(--muted); }
.gallery-hint > span { margin-left: 16px; color: var(--accent); }
.gallery-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; touch-action: pan-y pinch-zoom; }
.gallery-ready .gallery-panels { display: flex; height: clamp(420px, 39vw, 620px); }
.gallery-panel { position: relative; min-width: 0; min-height: 300px; overflow: hidden; border: 0; padding: 0; color: #fff3da; text-align: left; background: #383b30; isolation: isolate; }
.gallery-ready .gallery-panel { flex: 1; min-height: 0; transition: flex .75s cubic-bezier(.22,1,.36,1); }
.gallery-ready .gallery-panel.is-active { flex: 4.8; }
.gallery-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #171c1733, transparent 35%, #171c1770 75%, #171c17b3); pointer-events: none; }
.gallery-panel img { position: absolute; inset: 0; z-index: -2; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.gallery-ready .gallery-panel:not(.is-active) img { transform: scale(1.06); }
.gallery-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.gallery-number { position: absolute; top: 24px; left: 24px; font-size: 12px; letter-spacing: .08em; }
.gallery-panel-copy { position: absolute; left: 32px; bottom: 35px; right: 65px; transition: opacity .25s .15s, transform .4s .1s; }
.gallery-panel-copy > span { display: block; margin-bottom: 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.gallery-panel-copy strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 550; font-size: clamp(36px, 4vw, 62px); line-height: 1.03; letter-spacing: -.045em; }
.gallery-ready .gallery-panel:not(.is-active) .gallery-panel-copy { opacity: 0; transform: translateY(12px); transition-delay: 0s; }
.gallery-vertical { display: none; }
.gallery-ready .gallery-vertical { display: block; position: absolute; left: 50%; bottom: 30px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: 15px; letter-spacing: .02em; white-space: nowrap; transition: opacity .25s; }
.gallery-panel.is-active .gallery-vertical { opacity: 0; }
.gallery-expand { display: none; }
.gallery-bottomline { display: flex; align-items: start; justify-content: space-between; gap: 40px; padding-top: 24px; }
.gallery-description { font-size: 13px; line-height: 1.8; max-width: 530px; min-height: 48px; color: var(--muted); }
.gallery-navigation { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.gallery-navigation button { width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); font-size: 21px; transition: background .2s, border-color .2s; }
.gallery-navigation button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gallery-count { font-size: 10px; letter-spacing: .1em; min-width: 46px; text-align: center; }
.gallery-study-note { margin-top: 8px; color: var(--muted); font-size: 10px; }
.room { padding: 58px var(--gutter) 80px; background: var(--white); }
.room-intro { align-items: end; margin-bottom: 48px; }
.room-intro h2 { font-size: clamp(36px, 4.6vw, 70px); line-height: 1.12; }
.room-intro h2 span { color: var(--muted); }
.room-intro > p { max-width: 290px; color: var(--muted); }
.room-image { height: auto; aspect-ratio: 16/10; overflow: hidden; }
.room-image img { object-position: center; }
.room-footnote { padding-top: 28px; }
.inquiry { padding-top: 100px; padding-bottom: 110px; background: #e1e4da; gap: 10vw; }
.inquiry-heading h2 { font-size: clamp(66px, 7.5vw, 112px); }
.inquiry-heading > p { font-family: var(--sans); font-style: normal; font-size: 17px; line-height: 1.8; letter-spacing: -.02em; }
.submit-button { background: var(--ink); transition: background .2s; }
.footer { padding-top: 45px; }
[data-reveal] { transition: opacity .8s, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal-pending { opacity: 0; transform: translateY(24px); }
@media (max-width: 900px) {
 .header-caption { display: none; }
 .header nav { gap: 22px; }
 .craft-intro { gap: 40px; grid-template-columns: 1.15fr 1fr; }
 .gallery-ready .gallery-panels { height: 460px; }
 .gallery-panel-copy { left: 24px; bottom: 28px; }
 .room-intro { gap: 36px; }
 .room-intro > p { max-width: 230px; }
 .inquiry { gap: 45px; }
}
@media (max-width: 600px) {
 .header { padding-top: 25px; padding-bottom: 25px; gap: 16px; }
 .header .brand { font-size: 29px; }
 .header nav { font-size: 11px; gap: 18px; }
 .header nav a:first-child, .header nav a:nth-child(2) { display: none; }
 /* Der Film füllt mobil wieder den Hochformat-Auftakt hinter der Schrift. */
 .film-intro { height: 100svh; min-height: 580px; max-height: none; }
 .intro-film { object-position: 49% center; }
 .intro-identity { padding: 110px 20px 130px; }
 .intro-wordmark { font-size: clamp(52px, 13.4vw, 80px); margin: 0; }
 .intro-lettering { margin: 26px 0 30px; }
 .lettering-flourishes { width: 120%; left: -10%; }
 .intro-kicker { font-size: 8px; letter-spacing: .19em; }
 .intro-line { font-size: 8px; max-width: 235px; }
 .intro-bottom { grid-template-columns: 1fr auto; gap: 12px; bottom: 18px; font-size: 9px; padding-top: 13px; }
 .intro-bottom > span { display: none; }
 .intro-continue { gap: 12px; }
 #film-toggle { font-size: 9px; padding-left: 8px; }
 .craft-strip { padding-top: 19px; padding-bottom: 19px; font-size: 9px; gap: 12px; }
 .craft-strip span:nth-child(2) { display: none; }
 .craft-strip span::before { margin-right: 7px; }
 .craft { padding-top: 34px; padding-bottom: 60px; }
 .section-index { font-size: 9px; margin-bottom: 38px; gap: 14px; }
 .craft-intro { grid-template-columns: 1fr; gap: 25px; margin-bottom: 35px; }
 .craft-intro h2 { font-size: clamp(46px, 11.5vw, 65px); }
 .craft-copy { max-width: 100%; }
 .craft-copy p { font-size: 14px; }
 .text-link { margin-top: 14px; }
 .gallery-hint { display: none; }
 .gallery-topline { font-size: 10px; padding-bottom: 15px; }
 .gallery-panels { gap: 6px; }
 /* Volle Bildbreite statt schmaler Streifen: die geschlossenen Paneele
    bilden große, waagerechte Touchflächen unter bzw. über dem Bild. */
 .gallery-panels { grid-template-columns: 1fr; }
 .gallery-ready .gallery-panels { flex-direction: column; height: clamp(480px, 65svh, 560px); }
 .gallery-ready .gallery-panel { flex: 0 0 56px; transition: flex .55s cubic-bezier(.22,1,.36,1); }
 .gallery-ready .gallery-panel.is-active { flex: 1 1 0; }
 .gallery-number { top: 50%; left: 18px; transform: translateY(-50%); font-size: 10px; }
 .gallery-panel.is-active .gallery-number { top: 18px; transform: none; }
 .gallery-ready .gallery-vertical { font-size: 12px; left: 50px; top: 50%; bottom: auto; writing-mode: horizontal-tb; transform: translateY(-50%); }
 .gallery-panel-copy { left: 20px; right: 24px; bottom: 25px; }
 .gallery-panel-copy > span { font-size: 8px; margin-bottom: 12px; }
 .gallery-panel-copy strong { font-size: clamp(28px, 8.5vw, 43px); }
 .gallery-ready .gallery-expand { display: block; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 23px; line-height: 1; }
 .gallery-panel.is-active .gallery-expand { opacity: 0; }
 .gallery-bottomline { flex-direction: column; gap: 14px; padding-top: 20px; }
 .gallery-description { font-size: 12px; min-height: 65px; }
 .gallery-navigation { align-self: end; }
 .gallery-study-note { margin-top: 16px; font-size: 9px; }
 .room { padding-top: 35px; padding-bottom: 50px; }
 .room-intro { display: block; margin-bottom: 30px; }
 .room-intro h2 { font-size: clamp(31px, 8.2vw, 45px); }
 .room-intro > p { font-size: 14px; max-width: 320px; margin-top: 24px; }
 .room-image { aspect-ratio: 4/5; height: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
 .room-image img { object-position: 58% center; }
 .room-footnote { display: block; }
 .room-footnote > p { margin-top: 15px; font-size: 14px; }
 .room-disclaimer { margin-top: 18px; display: block; }
 .inquiry { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; gap: 35px; }
 .inquiry-heading h2 { font-size: 72px; }
 .inquiry-heading > p { font-size: 16px; }
 .form-split { grid-template-columns: 1fr; gap: 22px; }
 .form-split label { min-height: 0; }
 .footer-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
 .footer-top > span { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
 .writing .write-letter, .writing .intro-line, .writing .intro-kicker, .writing .flourish { animation: none; }
 [data-reveal], .gallery-panel, .gallery-panel img, .gallery-panel-copy, .gallery-vertical, .gallery-expand { transition: none !important; }
 .reveal-pending { opacity: 1; transform: none; }
}
