/* Drei eigene Kapitel, eine gemeinsame typografische Handschrift.
   Die Bodoni aus dem Film bleibt der rote Faden, Manrope erklärt und führt. */
.craft-intro .section-script,
.room-intro .section-script,
.inquiry-heading .section-script {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 650;
  font-optical-sizing: auto;
  line-height: .98;
  letter-spacing: -.045em;
}
.section-script em { display: block; font-weight: 550; color: var(--accent); }
.section-index { margin-bottom: 35px; }

/* 01: Die dunkle Bühne bringt die Bilder nach vorn. Keine Einleitung vor der Galerie. */
.craft {
  --ink: #fff3da;
  --muted: #b8b7ac;
  --line: #515349;
  --accent: #d8b797;
  --white: #20211d;
  background: #20211d;
  color: var(--ink);
  padding: 48px var(--gutter) 72px;
}
.craft-intro { position: relative; display: block; margin-bottom: 45px; }
.craft-intro .section-script { font-size: clamp(48px, 5.1vw, 78px); }
.craft-intro .section-script em { display: inline; }
.section-swash { position: absolute; right: 0; bottom: 0; width: 220px; height: 50px; color: var(--accent); opacity: .65; }
.section-swash path { stroke: currentColor; stroke-width: .7; }
.gallery-bottomline { padding-top: 20px; }
.gallery-description { min-height: 48px; }
.craft .gallery-panel-copy strong { color: #fff3da; }
.gallery-study-note { opacity: .85; }

/* 02: Eine helle Raumstudie mit Details direkt im Motiv. */
.room { padding: 55px var(--gutter) 70px; background: #f4f1e8; }
.room-intro { align-items: end; margin-bottom: 35px; }
.room-intro .section-script { font-size: clamp(56px, 6.4vw, 98px); }
.room-intro > p { margin-bottom: 6px; font-size: 13px; line-height: 1.8; }
.room-image { position: relative; aspect-ratio: 3 / 2; margin: 0; height: auto; }
/* Der Rahmen wächst in die seitlichen Abstände. Seine Höhe bleibt stabil,
   damit nachfolgende Inhalte beim Scrollen nicht hin und her springen. */
.room-enhanced .room-image { width: calc(100% + 2 * var(--room-spread, 0px)); margin-inline: calc(-1 * var(--room-spread, 0px)); }
.room-image figcaption { pointer-events: none; }
@media (min-width: 601px) {
  .room-image { height: 50vw; min-height: 380px; aspect-ratio: auto; }
}
.room-image img { object-position: center; }
.room-image { overflow: hidden; }
.room-scene { position: absolute; inset: 0; }
.room-scene img { width: 100%; height: 100%; object-fit: cover; }
.room-enhanced .room-detail-layout { display: flex; justify-content: flex-end; padding-top: 16px; }
.room-image .room-card { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; left: 28px; width: min(30%, 330px); min-height: 0; max-width: none; padding: 28px; background: #24271ee6; color: #fff3da; border: 1px solid #ead5ad70; border-radius: 20px; box-shadow: 0 26px 60px -26px #0009, 0 10px 26px -18px #0008, inset 0 1px 0 #fff6; overflow: hidden; isolation: isolate; }
/* Adaptation: 21st.dev/@educalvolpz/components/glass-card.
   Glas, polierter Innenrand und Lichtreflex in der warmen Werkstück-Palette. */
@supports (backdrop-filter: blur(14px)) {
  .room-image .room-card { background: #24271ec9; backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
}
.room-card::before { content: ''; position: absolute; inset: 6px; border-radius: 14px; border: 1px solid #ecd2a62b; box-shadow: inset 0 1px 0 #fff3; pointer-events: none; }
.room-card::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(220px circle at var(--glass-x, 25%) var(--glass-y, 0%), #f0d2a326, transparent 75%), linear-gradient(145deg, #fff3 0%, transparent 24%, transparent 80%, #c79e6a20); }
.room-image .room-card > .label { display: inline-block; color: #e4cba3; font-size: 9px; letter-spacing: .08em; padding: 6px 9px; border: 1px solid #ddc09540; border-radius: 30px; background: #ddc0950c; }
.room-image .room-card h3 { color: #fff3da; }
.room-image .room-card > p { color: #e0dfd2; }
.room-card > .label { color: #766b5c; font-size: 9px; padding-right: 24px; }
.room-image .room-card h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; margin: 14px 0 12px; }
.room-card > p { color: #5f6257; font-size: 12px; line-height: 1.7; }
.room-card .room-card-short { display: none; }
.room-card-close { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; padding: 0; border: 0; color: #e4cba3; font-size: 22px; border-radius: 50%; }
.room-card-close:hover { color: #fff3da; background: #fff1; }
.room-card-close:focus-visible { outline: 2px solid #e4cba3; outline-offset: -5px; }
@media (max-width: 600px) {
  .room-image .room-card { top: 12px; translate: none; left: 12px; width: 60%; padding: 14px 12px; }
  .room-image .room-card > .label, .room-card > p:not(.room-card-short) { display: none; }
  .room-image .room-card h3 { font-size: 18px; line-height: 1.1; margin: 0 18px 8px 0; }
  .room-card .room-card-short { display: block; font-size: 11px; line-height: 1.5; }
  .room-card-close { width: 44px; height: 44px; top: -5px; right: -5px; font-size: 19px; }
  .room-image[data-selected="storage"] .room-card { top: auto; bottom: 12px; width: 48%; }
  .room-image.has-detail figcaption { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .room-enhanced .room-image { width: 100%; margin-inline: 0; }
  .room-card::after { background: linear-gradient(145deg, #fff2, transparent 40%, #c79e6a15); }
}
@media (max-width: 360px) {
  .room-image .room-card { width: 54%; padding: 12px 10px; }
  .room-image .room-card h3 { font-size: 17px; margin-right: 15px; }
  .room-card-close { right: 0; top: 0; }
}
.room-hotspot { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #fff3dac0; border-radius: 50%; background: #20211dbd; color: #fff3da; font-size: 10px; transform: translate(-50%, -50%); transition: background .2s, color .2s; }
.room-hotspot[data-room-select="table"] { left: 80%; top: 63%; }
.room-hotspot[data-room-select="bench"] { left: 55%; top: 83%; }
.room-hotspot[data-room-select="storage"] { left: 65%; top: 25%; }
.room-hotspot[aria-pressed="true"] { background: #fff3da; color: #292d27; }
.room-hotspot[aria-pressed="true"]::after { content: ''; position: absolute; inset: -6px; border: 1px solid #fff3da90; border-radius: 50%; }
.room-hotspot:hover { background: #fff3da; color: #292d27; }
.room-detail-layout { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 40px; padding-top: 30px; }
.room-detail { max-width: 530px; min-height: 145px; }
.room-detail > .label { font-size: 10px; color: var(--muted); }
.room-detail h3 { font-family: var(--serif); font-style: italic; font-size: 36px; margin: 10px 0; color: var(--accent); }
.room-detail p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.room-detail-nav { display: flex; gap: 20px; padding-top: 12px; }
.room-detail-nav button { border: 0; border-bottom: 1px solid var(--line); min-height: 46px; padding: 6px 0; font-size: 12px; display: flex; gap: 10px; align-items: center; }
.room-detail-nav button span { color: var(--muted); font-size: 9px; }
.room-detail-nav button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.room-footnote { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; gap: 20px; }
.room-disclaimer { max-width: none; font-size: 10px; }
.room-footnote .text-link { margin: 0; border-bottom: 0; font-size: 11px; }

/* 03: Der Projektabschluss ist ein persönliches Notizblatt.
   Inspirationsquelle: 21st.dev / ln-dev7 / contact-16; eigene lokale Umsetzung. */
.inquiry { background: #e4dbca; padding: 80px var(--gutter) 95px; gap: 8vw; align-items: start; }
.inquiry-heading > .label { font-size: 10px; letter-spacing: .04em; }
.inquiry-heading .section-script { font-size: clamp(66px, 6.7vw, 102px); margin: 30px 0; }
.inquiry-heading > p { font-size: 14px; line-height: 1.8; }
.inquiry-sketch { width: min(100%, 320px); height: auto; margin-top: 40px; color: #906c4e; }
.inquiry-sketch path { stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.inquiry-sketch .sketch-rule { stroke-dasharray: 3 5; opacity: .6; }
.inquiry-heading .sketch-caption { font-size: 10px; color: var(--muted); margin-top: 4px; }
.inquiry-form { width: 100%; max-width: 600px; background: #f8f5ed; padding: 32px; border-top: 3px solid #a68566; box-shadow: 0 15px 45px #42301b0d; }
.sheet-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: 25px; font-size: 10px; color: var(--muted); }
.project-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 27px; }
.project-choices legend { font-size: 13px; margin-bottom: 14px; }
.inquiry-form .project-choice { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-bottom: 2px solid var(--line); cursor: pointer; font-size: 12px; min-height: 76px; transition: background .2s, border-color .2s; }
.project-choice .choice-number { font-size: 9px; color: var(--muted); }
/* Radios bleiben native Formularelemente und sind per Tastatur erreichbar. */
.project-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.project-choice:has(input:checked) { background: #ece5d9; border-color: var(--accent); color: var(--accent); }
.project-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.inquiry-form .form-split { margin-top: 22px; }
.inquiry-form .submit-button { margin-top: 26px; background: #604432; }
.inquiry-form .submit-button:hover { background: #392d24; }
.inquiry-form .form-result h3 { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 31px; }
.footer { background: #20211d; padding-top: 52px; }
.footer-signature { font-family: var(--serif); font-weight: 550; font-size: clamp(48px, 7.6vw, 112px); line-height: 1; letter-spacing: -.045em; color: #fff3da; margin-bottom: 48px; }
.footer-signature em { color: #d8b797; }
.footer-top > span { color: #c9c7ba; }

@media (max-width: 1000px) {
  .section-swash { width: 150px; opacity: .45; }
  .room-detail-layout { grid-template-columns: 1fr; gap: 8px; }
  .room-detail-nav { padding: 0; }
  .room-detail { min-height: 132px; }
}
@media (max-width: 600px) {
  .section-index { margin-bottom: 24px; font-size: 9px; }
  .craft { padding: 30px var(--gutter) 42px; }
  .craft .section-index > span:last-child { display: none; }
  .craft-intro { margin-bottom: 26px; }
  .craft-intro .section-script { font-size: clamp(41px, 11.5vw, 60px); }
  .craft-intro .section-script em { display: block; }
  .section-swash { display: none; }
  .gallery-description { min-height: 64px; }
  .gallery-bottomline { gap: 8px; }
  .gallery-study-note { margin-top: 14px; }
  .room { padding: 32px var(--gutter) 40px; }
  .room-intro { margin-bottom: 25px; }
  .room-intro .section-script { font-size: clamp(48px, 13vw, 72px); }
  .room-intro > p { margin-top: 18px; font-size: 12px; }
  .room-image { aspect-ratio: 3 / 2; margin: 0; }
  .room-image figcaption { font-size: 8px; left: 12px; right: 12px; bottom: 10px; }
  .room-image figcaption > span:first-child { display: none; }
  .room-detail-layout { padding-top: 24px; }
  .room-detail { min-height: 152px; }
  .room-detail h3 { font-size: 29px; }
  .room-detail p { font-size: 12px; }
  .room-detail-nav { gap: 15px; justify-content: space-between; }
  .room-detail-nav button { font-size: 10px; gap: 6px; }
  .room-footnote { flex-direction: column; align-items: start; gap: 4px; margin-top: 24px; padding-top: 16px; }
  .room-footnote .room-disclaimer { margin-top: 0; font-size: 9px; }
  .inquiry { padding: 36px var(--gutter) 46px; gap: 27px; }
  .inquiry-heading .section-script { font-size: clamp(48px, 12.8vw, 69px); margin: 24px 0 20px; }
  .inquiry-heading > p { font-size: 12px; }
  .inquiry-sketch { width: 160px; margin-top: 16px; }
  .inquiry-heading .sketch-caption { display: none; }
  .inquiry-form { padding: 22px 18px; }
  .sheet-heading { font-size: 9px; padding-bottom: 20px; margin-bottom: 22px; }
  .project-choices { gap: 8px; }
  .inquiry-form .project-choice { padding: 10px 7px; font-size: 11px; min-height: 70px; }
  .inquiry-form .form-split { gap: 20px; }
  .footer { padding-top: 35px; }
  .footer-signature { font-size: clamp(39px, 10.5vw, 62px); margin-bottom: 32px; }
  .footer-signature em { display: block; }
}
