/* Kräftigere Konturen bewahren die Bodoni-Handschrift, auch auf kleinen Displays. */
.inquiry-heading .section-script { font-weight: 750; -webkit-text-stroke: .3px currentColor; }
.inquiry-heading .section-script em { font-weight: 700; -webkit-text-stroke: .4px currentColor; }
.inquiry-sketch path { stroke-width: 1.8; }
.inquiry-sketch .sketch-rule { stroke-width: 1.25; opacity: .8; }
.section-swash path { stroke-width: 1.2; }

/* Der Projektplaner bildet eine dunkle, ruhige Werkbank auf dem warmen Untergrund. */
.inquiry-form {
  --form-text: #f8efd9;
  --form-muted: #b7b9ac;
  --form-accent: #d9b787;
  --pointer-x: 50%;
  --pointer-y: 20%;
  position: relative;
  isolation: isolate;
  color: var(--form-text);
  background: #23261f;
  border: 1px solid #636653;
  border-top: 2px solid #bc9b71;
  padding: 28px 30px;
  box-shadow: 0 20px 50px #30261d18;
}
.inquiry-form::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(330px circle at var(--pointer-x) var(--pointer-y), #d9b7871c, transparent 75%); opacity: 0; transition: opacity .4s; }
@media (hover: hover) and (pointer: fine) { .inquiry-form:hover::before { opacity: 1; } }
.project-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--form-muted); }
.project-step-count { color: var(--form-accent); font-size: 10px; letter-spacing: .1em; flex-shrink: 0; }
.project-preview { position: relative; margin: 18px 0 22px; text-align: center; }
.project-preview svg { display: block; width: 100%; height: 145px; }
.preview-grid { stroke: #777d6266; stroke-width: .6; }
.preview-line { stroke: #e4cb9f; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.preview-surface { fill: url(#project-wood); stroke: #ead4ae; stroke-width: 1.2; stroke-linejoin: round; transition: filter .4s; }
.project-preview[data-finish="smoked"] .preview-surface { filter: brightness(.48) saturate(.8); }
.project-preview[data-finish="chalk"] .preview-surface { filter: brightness(1.35) saturate(.2); }
.project-preview[data-finish="open"] .preview-surface { fill: #414637; }
.preview-caption { font-size: 10px; color: var(--form-muted); }
.preview-caption > span:first-child { color: var(--form-accent); }
.project-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-steps button { display: flex; align-items: center; gap: 8px; border: 0; padding: 8px 0 12px; min-height: 44px; color: var(--form-muted); font-size: 12px; }
.project-steps button > span { font-size: 9px; }
.project-steps [aria-current="step"] { color: var(--form-accent); }
.project-progress { height: 2px; background: #505542; margin-bottom: 24px; overflow: hidden; }
.project-progress span { display: block; height: 100%; background: var(--form-accent); transition: width .45s cubic-bezier(.22,1,.36,1); }
.project-step { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
.project-ready .project-step { min-height: 276px; margin-bottom: 0; animation: project-step-arrive .35s ease-out both; }
@keyframes project-step-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.project-step legend { font-family: var(--serif); font-weight: 650; font-size: 29px; line-height: 1.15; letter-spacing: -.03em; padding: 0; max-width: 100%; }
.project-step legend:focus { outline: none; }
.project-step-hint { font-size: 11px; line-height: 1.7; color: var(--form-muted); margin: 10px 0 20px; }
.inquiry-form .project-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.inquiry-form .project-choice { position: relative; min-height: 125px; display: flex; align-items: start; flex-direction: column; justify-content: center; gap: 16px; padding: 18px 15px; background: #303529; color: var(--form-text); border: 1px solid #5b6150; font-size: 12px; transition: border-color .25s, background .25s, transform .25s; }
.project-choice svg { width: 52px; height: 39px; stroke: #b9bdaa; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.inquiry-form .project-choice:has(input:checked) { background: #444534; border-color: var(--form-accent); color: var(--form-accent); transform: translateY(-2px); }
.project-choice:has(input:checked) svg { stroke: var(--form-accent); }
.choice-check { position: absolute; top: 8px; right: 10px; color: var(--form-accent); font-size: 12px; opacity: 0; transition: opacity .25s; }
.inquiry-form .project-choice > span { color: inherit; }
.inquiry-form .material-choice > span { color: var(--form-text); }
.inquiry-form .material-choice > .material-description { color: var(--form-muted); font-size: 9px; }
.inquiry-form .material-choice > .choice-check { color: var(--form-accent); }
label:has(input:checked) > .choice-check { opacity: 1; }
.material-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inquiry-form .material-choice { position: relative; padding: 10px; margin: 0; background: #303529; border: 1px solid #5b6150; cursor: pointer; font-size: 12px; transition: border-color .25s, background .25s, transform .25s; }
.material-sample { display: block; height: 34px; margin-bottom: 9px; background: url('./assets/oak-albedo.webp') center / cover; }
.sample-smoked { filter: brightness(.48) saturate(.8); }
.sample-chalk { filter: brightness(1.35) saturate(.2); }
.sample-open { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #484e3c 0 1px, transparent 1px 8px); color: var(--form-accent); font-family: var(--serif); font-size: 25px; }
.material-description { display: block; color: var(--form-muted); font-size: 9px; margin-top: 3px; }
.material-choice:has(input:checked) { border-color: var(--form-accent); background: #444534; transform: translateY(-2px); }
.material-choice .choice-check { top: 49px; right: 11px; }
.inquiry-form .project-choice input,
.inquiry-form .material-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.project-choice:has(input:focus-visible), .material-choice:has(input:focus-visible) { outline: 2px solid var(--form-accent); outline-offset: 3px; }
@media (hover: hover) { .inquiry-form .project-choice:hover, .material-choice:hover { border-color: var(--form-accent); transform: translateY(-2px); } }
.project-field { position: relative; margin-bottom: 16px; }
.project-field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--form-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.project-field:focus-within::after { transform: scaleX(1); }
.inquiry-form .project-field label { font-size: 11px; margin-bottom: 8px; }
.inquiry-form .project-field label > span { color: var(--form-muted); font-size: 9px; }
.inquiry-form .project-field input,
.inquiry-form .project-field textarea { display: block; background: #303529; border: 1px solid #5b6150; border-radius: 0; padding: 11px 12px; font-size: 14px; line-height: 1.5; color: var(--form-text); width: 100%; }
.inquiry-form .project-field textarea { min-height: 85px; }
.inquiry-form .project-field input::placeholder,
.inquiry-form .project-field textarea::placeholder { color: #a9ad9f; }
.inquiry-form button:focus-visible,
.inquiry-form .project-field input:focus-visible,
.inquiry-form .project-field textarea:focus-visible { outline: 2px solid var(--form-accent); outline-offset: 3px; }
.project-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #505542; padding-top: 20px; }
.project-actions > button { min-height: 48px; border: 0; font-size: 12px; }
[data-project-back] { color: var(--form-muted); background: none; padding: 8px 0; }
[data-project-next], .inquiry-form .project-actions .submit-button { display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #23261f; background: var(--form-accent); padding: 13px 18px; margin: 0 0 0 auto; width: auto; min-width: 150px; transition: background .25s; }
[data-project-next]:hover, .inquiry-form .project-actions .submit-button:hover { background: #efcf9f; }
.project-actions > button > span { font-size: 19px; }
.inquiry-form .form-note { font-size: 10px; line-height: 1.7; color: var(--form-muted); margin-top: 18px; }
.inquiry-form .form-result { border: 0; padding: 22px 0 0; margin: 0; }
.inquiry-form .form-result h3 { color: var(--form-text); font-size: 36px; margin-top: 22px; }
.inquiry-form .form-result > p { color: var(--form-muted); font-size: 13px; }
.inquiry-form .form-result > button { display: block; min-height: 44px; color: var(--form-accent); font-size: 12px; border-color: #777454; margin-top: 14px; }
#download-status { color: var(--form-muted); font-size: 10px; }
.result-check { width: 48px; height: 48px; stroke: var(--form-accent); stroke-width: 1.5; }
.result-check circle { opacity: .4; }
.result-check path { stroke-dasharray: 1; animation: result-draw .5s ease-out both; }
@keyframes result-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 1000px) and (min-width: 601px) {
  .inquiry { grid-template-columns: 1fr; gap: 30px; }
  .inquiry-heading { max-width: 600px; }
  .inquiry-heading .section-script { font-size: 76px; }
  .inquiry-sketch { display: none; }
  .inquiry-heading .sketch-caption { display: none; }
  .inquiry-form { max-width: none; }
}
@media (max-width: 600px) {
  .inquiry-heading .section-script { font-size: clamp(42px, 11.8vw, 66px); }
  .inquiry-sketch { width: 155px; }
  .inquiry-form { padding: 20px 18px; }
  .project-header { font-size: 10px; gap: 10px; }
  .project-preview { margin: 14px 0 16px; }
  .project-preview svg { height: 120px; }
  .project-steps button { font-size: 11px; gap: 6px; }
  .project-progress { margin-bottom: 22px; }
  .project-ready .project-step { min-height: 305px; }
  .project-step legend { font-size: 27px; }
  .project-step-hint { font-size: 10px; margin-bottom: 18px; }
  .inquiry-form .project-choices { gap: 8px; }
  .inquiry-form .project-choice { padding: 13px 8px; min-height: 113px; font-size: 11px; gap: 14px; }
  .project-choice svg { width: 45px; height: 34px; }
  .choice-check { top: 7px; right: 7px; font-size: 10px; }
  .inquiry-form .material-choice { padding: 9px; font-size: 11px; }
  .inquiry-form .material-choice > .material-description { font-size: 9px; }
  .material-choice .choice-check { right: 7px; }
  .project-actions { gap: 14px; }
  .project-actions > button { font-size: 11px; }
  [data-project-next], .inquiry-form .project-actions .submit-button { min-width: 136px; gap: 22px; padding: 12px 15px; }
  .inquiry-form .project-field input, .inquiry-form .project-field textarea { font-size: 16px; }
  .inquiry-form .form-result h3 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-form::before { display: none; }
  .project-ready .project-step, .result-check path { animation: none; }
  .project-progress span, .preview-surface, .project-choice, .material-choice, .choice-check, .project-field::after { transition: none !important; }
}
