:root {
  --ink: #101a18;
  --ink-soft: #263632;
  --muted: #66736f;
  --paper: #f6f7f4;
  --card: #ffffff;
  --green: #176b50;
  --green-dark: #0c4e3a;
  --mint: #dff4e8;
  --lime: #c8f46d;
  --line: #dfe5e1;
  --danger: #a33b32;
  --shadow: 0 24px 70px rgba(17, 48, 38, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif; }
a { color: var(--green); }

.site-header, body > header {
  min-height: 76px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  border-bottom: 1px solid rgba(223, 229, 225, .8); background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
  position: relative; z-index: 10;
}
.site-header { position: sticky; top: 0; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-weight: 900; font-size: 1.55rem; letter-spacing: -.055em; text-decoration: none; color: var(--ink); }
.brand span, .brand i { color: var(--green); font-style: normal; }
.brand small { margin-left: .65rem; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .9rem; }
.site-header nav a:hover { color: var(--green); }
.header-cta { padding: .68rem 1rem; border-radius: 999px; background: var(--ink); color: white; text-decoration: none; font-weight: 800; font-size: .86rem; }

.hero { min-height: 650px; max-width: 1600px; margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 5vw 6rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: 6vw; align-items: center; overflow: hidden; }
.hero-copy { max-width: 790px; }
.kicker, .section-eyebrow { text-transform: uppercase; letter-spacing: .15em; color: var(--green); font-weight: 850; font-size: .74rem; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 7.2rem); line-height: .9; letter-spacing: -.075em; margin: .75rem 0 1.8rem; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.button-link, button { border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 800; padding: .9rem 1.25rem; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button-link:hover, button:hover { background: var(--green); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23,107,80,.18); }
.hero-primary { background: var(--green); padding: 1rem 1.35rem; }
.hero-secondary { color: var(--ink); background: white; border: 1px solid var(--line); padding: 1rem 1.35rem; }
.preorder-banner { display: flex; gap: .8rem; align-items: center; margin-top: 2rem !important; padding: .8rem 1rem; border: 1px solid #d9e7ca; border-radius: 12px; background: #f5faec; font-size: .88rem !important; }
.preorder-banner strong { flex: none; color: var(--green-dark); }

.hero-visual { min-height: 480px; position: relative; display: grid; place-items: center; border-radius: 34px; background: radial-gradient(circle at 70% 20%, rgba(200,244,109,.8), transparent 34%), linear-gradient(145deg,#e6f2ec,#c5ddd1); box-shadow: var(--shadow); }
.printer-stage { width: 74%; height: 73%; position: relative; border: 11px solid var(--ink); border-bottom-width: 18px; border-radius: 26px 26px 16px 16px; background: linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.2)); box-shadow: inset 0 0 70px rgba(255,255,255,.6), 0 26px 50px rgba(14,51,39,.2); overflow: hidden; }
.printer-stage:before, .printer-stage:after { content: ""; position: absolute; top: 17%; width: 7px; height: 68%; background: var(--ink); border-radius: 5px; }
.printer-stage:before { left: 11%; } .printer-stage:after { right: 11%; }
.print-head { position: absolute; z-index: 3; top: 14%; left: 50%; width: 72px; height: 54px; transform: translateX(-50%); border-radius: 11px 11px 7px 7px; background: var(--ink); box-shadow: 0 7px 0 var(--green); }
.print-head:after { content: ""; position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); border: 9px solid transparent; border-top: 11px solid var(--green-dark); }
.print-head span { position: absolute; width: 13px; height: 13px; right: 10px; top: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.print-line { position: absolute; height: 3px; background: var(--green); opacity: .65; left: 18%; right: 18%; border-radius: 99px; }
.line-one { top: 36%; } .line-two { top: 42%; left: 24%; } .line-three { top: 48%; right: 23%; }
.print-object { position: absolute; z-index: 2; left: 50%; bottom: 17%; width: 43%; height: 42%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; }
.print-object i { display: block; height: 25%; margin: -1px auto 0; background: linear-gradient(90deg,var(--green-dark),var(--green),#3e9678); border-radius: 4px; box-shadow: inset 0 -2px rgba(0,0,0,.12); }
.print-object i:nth-child(1) { width: 100%; } .print-object i:nth-child(2) { width: 86%; } .print-object i:nth-child(3) { width: 69%; } .print-object i:nth-child(4) { width: 48%; }
.print-bed { position: absolute; left: 12%; right: 12%; bottom: 11%; height: 18px; border-radius: 4px; background: var(--ink); box-shadow: 0 8px 0 rgba(16,26,24,.22); }
.visual-chip { position: absolute; padding: .7rem .95rem; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); border-radius: 12px; box-shadow: 0 14px 32px rgba(16,55,42,.14); font-size: .8rem; font-weight: 850; }
.chip-top { top: 8%; right: -2%; } .chip-bottom { bottom: 9%; left: -4%; }

.trust-strip { max-width: 1500px; margin: 0 auto 7rem; padding: 1.4rem 5vw; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 16px 42px rgba(27,60,49,.05); }
.trust-strip > div { display: flex; gap: .8rem; align-items: center; padding: .3rem 1.2rem; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border: 0; }
.trust-strip strong { color: var(--green); font-size: .72rem; }
.trust-strip span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.trust-strip b { display: block; color: var(--ink); font-size: .88rem; }

.process { max-width: 1500px; margin: 0 auto 8rem; padding: 0 5vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: end; }
.process h2, .configurator-heading h2 { font-size: clamp(2.2rem,4vw,4rem); line-height: 1; letter-spacing: -.055em; margin: .65rem 0 0; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.process li { min-height: 195px; padding: 1.25rem; border-radius: 18px; background: var(--ink); color: white; }
.process li span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; }
.process li strong { display: block; margin: 2rem 0 .35rem; font-size: 1.02rem; }
.process li p { margin: 0; color: #b9c7c2; font-size: .86rem; }

.configurator-heading { max-width: 1500px; margin: 0 auto 2rem; padding: 0 5vw; }
.configurator-heading p { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.wizard-layout { display: grid; gap: 1.2rem; padding: 0 5vw 7rem; max-width: 1500px; margin: auto; }
.wizard-progress { position: sticky; top: 76px; z-index: 8; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: 0 12px 28px rgba(17,48,38,.08); }
.wizard-progress span { display: flex; align-items: center; gap: .65rem; min-height: 58px; padding: .7rem 1rem; background: #fff; color: #8a9591; font-size: .85rem; font-weight: 850; }
.wizard-progress b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1ee; color: var(--muted); }
.wizard-progress span.active { color: var(--green-dark); background: #f4fbf7; }
.wizard-progress span.active b { background: var(--green); color: white; }
.wizard-panel { scroll-margin-top: 150px; }
.wizard-panel > h2, .subpanel > h2 { margin: .25rem 0 1.25rem; font-size: clamp(1.55rem,2.5vw,2.25rem); line-height: 1.1; letter-spacing: -.035em; }
.wizard-panel h3, .subpanel h3 { margin: 1.35rem 0 .75rem; }
.wizard-primary { margin-top: 1.25rem; min-width: 210px; background: var(--green); }
.compact-grid { max-width: 300px; margin-top: 1rem; }
.parallel-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; align-items: start; }
.subpanel { padding: clamp(1rem,2.2vw,1.6rem); border: 1px solid var(--line); border-radius: 18px; background: #fbfcfb; }
.subpanel form, .subpanel > form, #register-form, #login-form, #address-form { display: grid; gap: .85rem; }
.analysis-status { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--ink); color: white; }
.analysis-status p { margin: .15rem 0 0; color: #c4d0cc; }
.analysis-status.complete { background: var(--green-dark); }
.analysis-status.failed { background: #7e3029; }
.spinner { flex: none; width: 34px; height: 34px; border: 4px solid rgba(255,255,255,.28); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
.analysis-status.complete .spinner { animation: none; border: 0; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.analysis-status.complete .spinner:after { content: "✓"; font-weight: 950; }
.analysis-status.failed .spinner { animation: none; border: 0; background: #fff; }
.analysis-status.failed .spinner:after { content: "!"; display: grid; place-items: center; height: 100%; color: var(--danger); font-weight: 950; }
@keyframes spin { to { transform: rotate(360deg); } }
.material-position { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.availability-hint { color: var(--muted); font-size: .8rem; font-weight: 650; }
.availability-hint.available { color: var(--green); }
.availability-hint.procurement { color: #8b5517; }
.social-login { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.social-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.social-button.paypal { color: #073a82; background: #ffc439; }
.or-divider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--muted); font-size: .78rem; }
.or-divider:before, .or-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.newsletter-consent { padding: .85rem; border-radius: 12px; background: #f4f8f5; }
#login-panel { margin: 1rem 0; }
#login-panel summary { cursor: pointer; color: var(--green); font-weight: 850; }
#address-form { margin-top: 1rem; }
.result-panel { border-top: 5px solid var(--lime); }
.layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.65fr); gap: 1.5rem; padding: 0 5vw 7rem; max-width: 1500px; margin: auto; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.2rem,2.5vw,2rem); box-shadow: var(--shadow); }
.steps { counter-reset: s; }
.section { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.section:first-of-type { padding-top: .3rem; }
.section:last-child { border: 0; }
.section h2 { font-size: 1.18rem; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.section h2:before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .72rem; border-radius: 10px; background: var(--mint); color: var(--green-dark); font-size: .83rem; }
.section h3 { font-size: 1rem; margin: 1.4rem 0 .8rem; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.35rem; margin-bottom: 1rem; }
.catalog-page { max-width: 1680px; margin: 0 auto; padding: 0 4vw 7rem; }
.catalog-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3rem; align-items: end; margin: clamp(1.5rem,4vw,4rem) 0 2rem; padding: clamp(2rem,5vw,4.5rem); overflow: hidden; border-radius: 32px; background: linear-gradient(130deg,#0b1e19 0%,#113c30 62%,#176b50 100%); color: white; box-shadow: 0 28px 80px rgba(13,54,42,.18); }
.catalog-hero:after { content: ""; position: absolute; width: 390px; aspect-ratio: 1; right: -120px; top: -190px; border-radius: 50%; border: 70px solid rgba(200,244,109,.12); }
.catalog-hero > * { position: relative; z-index: 1; }
.catalog-hero .kicker { color: var(--lime); }
.catalog-hero h1 { max-width: 900px; margin: .7rem 0 1rem; font-size: clamp(3rem,6.5vw,6.7rem); line-height: .9; letter-spacing: -.067em; }
.catalog-hero p { max-width: 720px; margin: 0; color: #c4d2cd; font-size: 1.08rem; }
.catalog-hero-stat { display: flex; gap: 1rem; align-items: center; min-width: 245px; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.catalog-hero-stat strong { font-size: clamp(2.4rem,4vw,4.25rem); line-height: 1; letter-spacing: -.06em; }
.catalog-hero-stat span { color: #d5e0dc; font-size: .78rem; font-weight: 750; line-height: 1.35; }
.catalog-browser-page { margin: 0; padding: clamp(1rem,2.5vw,2rem); border-bottom: 0; box-shadow: 0 20px 60px rgba(17,48,38,.07); }
.catalog-browser { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.catalog-heading { margin-bottom: 1.5rem; }
.catalog-heading h2 { margin: .25rem 0 .4rem; }
.catalog-heading p { margin: 0; color: var(--muted); }
.catalog-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; align-items: end; margin-bottom: 1.7rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,#f8faf8,#f0f5f2); }
.catalog-filter-search { grid-column: span 2; }
.catalog-filter-actions { display: flex; gap: .5rem; align-items: center; }
.catalog-filter-actions > * { flex: 1; text-align: center; }
.catalog-result-line { margin: 0 0 1.1rem; color: var(--muted); font-weight: 700; }
.catalog-result-line strong { color: var(--ink); font-size: 1.2rem; }
.catalog-empty { padding: 2rem; border-radius: 16px; background: #f3f6f4; text-align: center; }
.catalog-empty p { color: var(--muted); }
.catalog-pagination { margin-bottom: 0; }
.catalog-card { position: relative; min-width: 0; display: grid; grid-template-rows: 1fr auto; overflow: hidden; border: 1px solid #dce5e0; border-radius: 22px; background: #fff; box-shadow: 0 9px 28px rgba(17,48,38,.055); transition: border .2s, transform .2s, box-shadow .2s; }
.catalog-card:hover { transform: translateY(-5px); border-color: #b0c9bd; box-shadow: 0 22px 48px rgba(19,62,48,.14); }
.catalog-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,80,.13), 0 18px 40px rgba(19,62,48,.11); }
.catalog-card-open { width: 100%; min-width: 0; display: grid; grid-template-rows: auto 1fr; justify-items: stretch; padding: 0; border-radius: 0; background: #fff; color: var(--ink); text-align: left; box-shadow: none; }
.catalog-card-open:hover { background: #fff; color: var(--ink); transform: none; box-shadow: none; }
.catalog-card-open:focus-visible { z-index: 1; outline: 3px solid rgba(23,107,80,.35); outline-offset: -3px; }
.catalog-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(145deg,#e4ece7,#f4f7f5); }
.catalog-image { width: 100%; height: 100%; aspect-ratio: auto; display: block; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.catalog-card:hover .catalog-image { transform: scale(1.035); }
.catalog-image-count, .catalog-ready-badge { position: absolute; top: .8rem; padding: .38rem .62rem; border-radius: 999px; font-size: .7rem; font-weight: 850; line-height: 1; box-shadow: 0 7px 20px rgba(8,28,22,.16); }
.catalog-image-count { right: .8rem; background: rgba(13,29,24,.82); color: white; backdrop-filter: blur(8px); }
.catalog-ready-badge { left: .8rem; background: var(--lime); color: var(--ink); }
.catalog-card-body { min-width: 0; display: grid; align-content: start; gap: .52rem; padding: 1.05rem 1.05rem .9rem; }
.catalog-card-body strong { display: -webkit-box; min-height: 2.65em; overflow: hidden; color: var(--ink); font-size: 1.12rem; line-height: 1.28; letter-spacing: -.018em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.catalog-card-eyebrow { overflow: hidden; color: var(--green); font-size: .7rem; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.catalog-card-stats { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--muted); font-size: .73rem; font-weight: 650; }
.catalog-card-actions { display: flex; gap: .6rem; align-items: center; padding: 0 1.05rem 1.05rem; }
.catalog-card-actions a { font-size: .78rem; font-weight: 850; }
.catalog-card .catalog-order-link { flex: 1; padding: .7rem .8rem; color: white; }
.catalog-source-link { flex: 0 0 auto; padding: .6rem .2rem; text-decoration: none; }
.catalog-load-sentinel { height: 2px; }
.catalog-load-status { margin: 1.2rem 0 0; color: var(--muted); text-align: center; }
.catalog-dialog { width: min(1180px,calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 28px; background: white; color: var(--ink); box-shadow: 0 32px 100px rgba(5,24,18,.32); }
.catalog-dialog::backdrop { background: rgba(8,19,16,.68); backdrop-filter: blur(5px); }
.catalog-dialog-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: clamp(1.4rem,3.5vw,3rem); padding: clamp(1rem,3vw,2.2rem); }
.catalog-gallery { min-width: 0; }
.catalog-gallery-stage { position: relative; display: grid; place-items: center; min-height: 420px; overflow: hidden; border-radius: 20px; background: linear-gradient(145deg,#e7eee9,#f7f9f7); }
.catalog-gallery-stage > img { width: 100%; height: min(62vh,650px); display: block; object-fit: contain; }
.catalog-gallery-arrow { position: absolute; top: 50%; width: 2.8rem; height: 2.8rem; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(10,30,24,.75); color: white; font-size: 2rem; font-weight: 400; transform: translateY(-50%); backdrop-filter: blur(8px); }
.catalog-gallery-arrow:hover { transform: translateY(-50%) scale(1.04); }
.catalog-gallery-prev { left: .8rem; }.catalog-gallery-next { right: .8rem; }
.catalog-gallery-counter { position: absolute; right: .8rem; bottom: .8rem; padding: .34rem .62rem; border-radius: 999px; background: rgba(10,30,24,.75); color: white; font-size: .72rem; font-weight: 850; backdrop-filter: blur(8px); }
.catalog-gallery-thumbnails { display: flex; gap: .55rem; margin-top: .7rem; padding: .15rem 0 .35rem; overflow-x: auto; scrollbar-width: thin; }
.catalog-gallery-thumb { width: 72px; height: 58px; flex: 0 0 auto; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #edf2ef; box-shadow: none; }
.catalog-gallery-thumb:hover { background: #edf2ef; transform: none; box-shadow: none; }
.catalog-gallery-thumb.active { border-color: var(--green); }
.catalog-gallery-thumb img { width: 100%; height: 100%; display: block; border-radius: 6px; object-fit: cover; }
.catalog-dialog-content { min-width: 0; align-self: start; padding: .6rem .4rem .4rem 0; }
.catalog-dialog h2 { margin: .45rem 0 .2rem; font-size: clamp(2rem,4vw,3.5rem); line-height: 1; letter-spacing: -.05em; }
.catalog-dialog-close { position: sticky; z-index: 3; top: .75rem; float: right; width: 2.7rem; height: 2.7rem; margin: .75rem .75rem -3.45rem 0; padding: 0; border-radius: 50%; background: rgba(10,30,24,.86); font-size: 1.65rem; backdrop-filter: blur(8px); }
.catalog-dialog-creator { margin: .5rem 0 1.25rem; color: var(--green); font-weight: 800; }
.catalog-description { max-height: 15rem; overflow: auto; padding-right: .4rem; color: #44524e; white-space: pre-line; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.catalog-tags span { padding: .28rem .58rem; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .75rem; font-weight: 750; }
.catalog-modal-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.catalog-modal-stats div { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; }
.catalog-modal-stats dt { color: var(--muted); font-size: .72rem; }
.catalog-modal-stats dd { margin: .15rem 0 0; font-weight: 850; }
.catalog-dialog-actions { display: grid; grid-template-columns: 1fr auto; gap: .65rem; margin-top: 1.25rem; }
.selected-catalog, .catalog-entry { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #f4f9f6; }
.selected-catalog img { width: min(180px,28vw); aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.selected-catalog > div { flex: 1; }
.selected-catalog h2, .catalog-entry h2 { margin: .25rem 0; }
.selected-catalog p, .catalog-entry p { margin: .25rem 0; color: var(--muted); }

label { display: grid; gap: .42rem; color: #42514c; font-size: .83rem; font-weight: 750; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: .88rem .95rem; border: 1px solid #cbd4cf; border-radius: 11px; background: white; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,80,.1); }
textarea { min-height: 6rem; resize: vertical; }
.choices { display: grid; gap: .65rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfc; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: #f2faf6; box-shadow: 0 0 0 2px rgba(23,107,80,.08); }
.choice input, .consent input { width: auto; margin-top: .25rem; accent-color: var(--green); }
.choice span { display: block; margin-top: .12rem; color: var(--muted); font-size: .86rem; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; }
button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-link.secondary { background: #e7eee9; color: var(--ink); }
.result { position: sticky; top: 94px; height: max-content; border-top: 5px solid var(--lime); }
.result .kicker { margin-bottom: .3rem; }
.price { font-size: clamp(3rem,6vw,5rem); line-height: 1; font-weight: 900; letter-spacing: -.07em; margin: .55rem 0; }
.price-small { font-size: 2rem; font-weight: 900; }
.muted { color: var(--muted); }
.notice { padding: .9rem 1rem; border: 1px solid #dbe8d2; border-left: 4px solid var(--lime); border-radius: 8px; background: #f7fbee; }
.error { color: var(--danger); font-weight: 750; }
.checkout { display: grid; gap: .85rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.checkout h2 { margin: 0; }
footer { padding: 2rem 5vw; background: var(--ink); color: #b8c5c0; text-align: center; font-size: .84rem; }
footer a { color: white; text-decoration: none; }

/* Mehrseitiger Bestellprozess */
.wizard-page, .account-page { max-width: 1500px; margin: 0 auto; padding: 1.5rem 5vw 6rem; }
.wizard-page .wizard-progress { top: 82px; margin: 0 0 3rem; }
.wizard-intro { max-width: 900px; margin: 3rem 0 2rem; }
.wizard-intro h1 { margin: .5rem 0; font-size: clamp(2.5rem,6vw,5rem); line-height: .98; letter-spacing: -.055em; }
.wizard-intro > p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.wizard-content { display: grid; gap: 1.25rem; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: flex-end; margin: 1.5rem 0; }
.wizard-actions .error { flex-basis: 100%; text-align: right; }
.plate-card { overflow: hidden; }
.plate-heading { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.plate-heading h2 { margin: .25rem 0; }
.plate-heading img { width: min(260px,42vw); max-height: 170px; object-fit: contain; background: #edf2ef; border-radius: 14px; }
.part-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 1rem; }
.part-picker { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fcfdfc; }
.part-picker header { display: flex; gap: .75rem; align-items: center; margin-bottom: .9rem; }
.part-picker header strong, .part-picker header small { display: block; }
.part-picker header small { margin-top: .2rem; color: var(--muted); }
.source-color { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; border-radius: 50%; background: var(--source-color); border: 3px solid #fff; box-shadow: 0 0 0 1px #aab5af; }
.part-picker fieldset { margin: .85rem 0 0; padding: 0; border: 0; }
.part-picker legend { margin-bottom: .45rem; color: #42514c; font-size: .83rem; font-weight: 750; }
.color-swatches { display: grid; grid-template-columns: repeat(auto-fill,minmax(78px,1fr)); gap: .5rem; }
.color-swatch { display: grid; justify-items: center; gap: .35rem; min-height: 74px; padding: .45rem .25rem; border: 1px solid #ccd5d0; border-radius: 11px; background: white; color: var(--ink); cursor: pointer; }
.color-swatch > span { width: 2rem; height: 2rem; border-radius: 50%; background: var(--swatch); border: 2px solid white; box-shadow: 0 0 0 1px #9aa7a0; }
.color-swatch small { max-width: 100%; line-height: 1.05; font-size: .69rem; overflow-wrap: anywhere; }
.color-swatch.selected { border-color: var(--green); background: #ecf7f0; box-shadow: 0 0 0 2px rgba(23,107,80,.15); }
.availability-hint { min-height: 2.8rem; margin: .45rem 0 0; font-size: .78rem; color: var(--muted); }
.availability-hint.available { color: #0d7049; }.availability-hint.procurement { color: #8a5700; }
.price-layout { grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); align-items: start; }
.configuration-summary { display: grid; gap: .35rem; padding: 0; list-style: none; }
.configuration-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.configuration-summary span { color: var(--muted); }.configuration-summary strong { text-align: right; }
.legal-consent { padding: .9rem; border: 1px solid #dfc78d; border-radius: 10px; background: #fff9ea; }
.account-page { display: grid; gap: 1rem; }.account-login { max-width: 620px; }.account-login form { display: grid; gap: .8rem; }
.account-summary, .account-order { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.account-order { padding: 1rem 0; border-top: 1px solid var(--line); }.account-order h3 { margin: .4rem 0; }.account-order p { margin: 0; color: var(--muted); }
.account-order-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.danger-button { background: #8d2e25; color: white; }

/* Kundenansicht für Vormerkungen und Bestellungen */
.status-page { display: grid; gap: 1.25rem; max-width: 1380px; margin: 0 auto; padding: 3rem 5vw 6rem; }
.status-hero { display: flex; justify-content: space-between; gap: 3rem; align-items: end; padding: clamp(1.5rem,4vw,3rem); overflow: hidden; border-radius: 28px; background: linear-gradient(135deg,var(--ink),#173b31); color: white; box-shadow: 0 24px 60px rgba(14,39,31,.18); }
.status-hero h1 { max-width: 850px; margin: .55rem 0; font-size: clamp(2.4rem,5vw,4.8rem); line-height: .98; letter-spacing: -.055em; overflow-wrap: anywhere; }
.status-hero p { margin: .5rem 0 0; color: #bdcbc6; }
.status-hero .kicker { margin-top: 1.3rem; color: var(--lime); }
.status-total { flex: 0 0 auto; display: grid; justify-items: end; gap: .2rem; text-align: right; }
.status-total small, .status-total span { color: #bdcbc6; }
.status-total strong { font-size: clamp(2.2rem,5vw,4.5rem); line-height: 1; letter-spacing: -.06em; }
.pill-active { background: var(--lime); color: var(--ink); font-weight: 850; }
.status-notice { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 1.25rem; }
.status-notice p { margin: .2rem 0 0; }
.status-notice form { flex: 0 0 auto; }
.status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.status-card h2, .status-page > .card > h2 { margin: .3rem 0 1.25rem; font-size: clamp(1.55rem,2.5vw,2.3rem); letter-spacing: -.035em; }
.detail-list, .price-list { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(0,1.2fr); margin: 0; }
.detail-list dt, .detail-list dd, .price-list dt, .price-list dd { margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt, .price-list dt { color: var(--muted); }
.detail-list dd, .price-list dd { text-align: right; font-weight: 750; overflow-wrap: anywhere; }
.price-list .price-total { padding-top: 1rem; border-bottom: 0; color: var(--ink); font-size: 1.2rem; font-weight: 900; }
.delivery-date { margin: .3rem 0 .7rem; color: var(--green-dark); font-size: clamp(1.8rem,4vw,3.2rem); font-weight: 900; letter-spacing: -.045em; }
.plate-preview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; }
.plate-preview-grid figure { margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 16px; background: #f6f9f7; }
.plate-preview-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; border-radius: 11px; background: #e8eeea; }
.plate-preview-grid figcaption { padding: .6rem .25rem .2rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
.material-detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: .75rem; }
.material-detail { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.material-color { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; border-radius: 50%; background: var(--material-color); border: 3px solid white; box-shadow: 0 0 0 1px #aab5af; }
.material-detail strong, .material-detail span, .material-detail small { display: block; overflow-wrap: anywhere; }
.material-detail span { margin: .15rem 0; color: var(--green-dark); font-weight: 750; }
.material-detail small { color: var(--muted); }
.warning-list { padding-left: 1.15rem; }
.warning-list li { margin: .4rem 0; }
.safety-detail + .safety-detail { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.status-timeline { margin: 0; padding: 0; list-style: none; }
.status-timeline li { display: flex; gap: .8rem; min-height: 54px; }
.status-timeline li > span { width: 13px; height: 13px; margin-top: .18rem; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--mint); }
.status-timeline li div { display: grid; align-content: start; padding-bottom: 1rem; }
.status-timeline small { margin-top: .15rem; color: var(--muted); }
.status-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }

/* Administration */
.admin-nav { display: flex; gap: .9rem; align-items: center; }
.admin-nav a { font-weight: 750; text-decoration: none; }
.admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 2rem 5vw; }
.admin-grid .wide { grid-column: span 2; }
.admin-page { display: grid; gap: 1rem; padding: 2rem 5vw 5rem; max-width: 1600px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.page-heading h1 { margin: .15rem 0; font-size: 2.2rem; }
.filter-bar { display: grid; grid-template-columns: minmax(220px,2fr) minmax(170px,1fr) minmax(170px,1fr) auto auto; gap: .8rem; align-items: end; margin: 1.5rem 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.record { padding: 1rem 0; border-top: 1px solid var(--line); }
.record:first-of-type { border-top: 0; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .65rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pill { display: inline-block; border-radius: 99px; background: #e7eee9; padding: .15rem .55rem; font-size: .75rem; }
.audit-entry { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.audit-entry summary { cursor: pointer; font-weight: 750; }
.audit-entry pre, .safety-product pre { overflow: auto; background: var(--ink); color: #eef8f0; padding: 1rem; border-radius: 10px; font-size: .78rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.login { max-width: 420px; margin: 10vh auto; }
.login form { display: grid; gap: 1rem; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-visual { min-height: 410px; max-width: 600px; width: 100%; margin: auto; }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .trust-strip > div:nth-child(n+3) { padding-top: 1rem; }
  .process { grid-template-columns: 1fr; }
  .layout, .admin-grid { grid-template-columns: 1fr; }
  .parallel-grid { grid-template-columns: 1fr; }
  .result { position: static; }
  .admin-grid .wide { grid-column: auto; }
  .price-layout { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero-stat { width: max-content; }
  .catalog-dialog-layout { grid-template-columns: 1fr; }
  .catalog-gallery-stage > img { height: min(52vh,540px); }
}

@media (max-width: 650px) {
  .site-header { padding: 0 1rem; min-height: 66px; }
  .brand small { display: none; }
  .header-cta { font-size: .75rem; padding: .6rem .75rem; }
  .hero { min-height: auto; padding: 3.2rem 1rem 4rem; }
  .hero h1 { font-size: clamp(3rem,16vw,4.4rem); }
  .hero-visual { min-height: 330px; border-radius: 22px; }
  .chip-top { right: 1%; } .chip-bottom { left: 1%; }
  .trust-strip { margin: 0 1rem 5rem; padding: .8rem; grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem; }
  .trust-strip > div:last-child { border-bottom: 0; }
  .process, .configurator-heading { padding-left: 1rem; padding-right: 1rem; }
  .process { margin-bottom: 5rem; }
  .process ol { grid-template-columns: 1fr; }
  .process li { min-height: 150px; }
  .process li strong { margin-top: 1rem; }
  .layout { padding: 0 1rem 5rem; }
  .catalog-page { padding: 0 1rem 4rem; }
  .catalog-hero { padding-top: 3rem; }
  .catalog-hero { margin-top: 1rem; padding: 2rem 1.25rem; border-radius: 22px; }
  .catalog-hero h1 { font-size: clamp(2.8rem,14vw,4.5rem); }
  .catalog-hero-stat { width: 100%; min-width: 0; }
  .wizard-layout { padding: 0 1rem 5rem; }
  .wizard-progress { top: 66px; }
  .wizard-progress span { justify-content: center; min-height: 48px; padding: .5rem; font-size: 0; }
  .wizard-progress b { font-size: .8rem; }
  .card { padding: 1rem; border-radius: 16px; }
  .wizard-page, .account-page { padding: .5rem 1rem 4rem; }
  .wizard-page .wizard-progress { top: 66px; margin-bottom: 2rem; }
  .plate-heading, .account-summary, .account-order { display: block; }
  .plate-heading img { width: 100%; max-height: 220px; }
  .account-order-actions { justify-content: flex-start; margin-top: 1rem; }
  .grid, .catalog-grid, .catalog-heading, .catalog-filters, .detail-grid, .filter-bar { grid-template-columns: 1fr; }
  .catalog-filter-search { grid-column: auto; }
  .catalog-filter-actions { display: grid; }
  .catalog-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); border-radius: 20px; }
  .catalog-dialog-layout { grid-template-columns: 1fr; padding: .7rem; }
  .catalog-gallery-stage { min-height: 260px; border-radius: 14px; }
  .catalog-gallery-stage > img { height: min(43vh,380px); }
  .catalog-dialog-content { padding: .5rem; }
  .catalog-modal-stats { grid-template-columns: 1fr 1fr; }
  .catalog-dialog-actions { display: grid; }
  .selected-catalog, .catalog-entry { align-items: flex-start; flex-direction: column; }
  .page-heading { display: block; }
  .status-page { padding: 1.25rem 1rem 4rem; }
  .status-hero, .status-notice { display: block; }
  .status-total { justify-items: start; margin-top: 2rem; text-align: left; }
  .status-notice form, .status-notice .button-link { margin-top: 1rem; }
  .detail-list, .price-list { grid-template-columns: 1fr; }
  .detail-list dt, .price-list dt { padding-bottom: .1rem; border-bottom: 0; }
  .detail-list dd, .price-list dd { padding-top: .1rem; text-align: left; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  header, .screen-only { display: none !important; }
  .admin-page { padding: 0; display: block; }
  .card { box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 1.5rem; }
  .safety-product { break-inside: avoid; page-break-inside: avoid; }
  .safety-sheet .detail-grid { grid-template-columns: repeat(3,1fr); }
}
