:root {
  --green: #2f4a3a;
  --green-dark: #22362a;
  --gold: #b0883a;
  --gold-light: #e6d3a3;
  --wine: #7a2e3a;
  --cream: #f7f1e5;
  --paper: #fffcf6;
  --ink: #2b2a27;
  --muted: #6b675e;
  --line: #ddd2bc;
  --display: 'Federant', 'Cormorant Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.15rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--green-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fabric-defs { position: absolute; width: 0; height: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.eyebrow { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0; font-weight: 600; }
.ornament { width: 180px; height: 22px; margin: .4rem 0 1.4rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 22'%3E%3Cg fill='none' stroke='%23b0883a' stroke-width='1.4'%3E%3Cpath d='M2 11h56c10 0 14-9 22-9s10 9 10 9 2-9 10-9 12 9 22 9h56'/%3E%3Cpath d='M80 2c0 6 4 9 10 9s10-3 10-9M80 20c0-6 4-9 10-9s10 3 10 9'/%3E%3C/g%3E%3Ccircle cx='90' cy='11' r='2.6' fill='%23b0883a'/%3E%3C/svg%3E"); }
.text-page .ornament, .hero-copy .ornament { margin-left: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font: 600 1.05rem var(--body); letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.button:hover { background: var(--green-dark); }
.button.ghost { background: transparent; color: var(--green); }
.button.ghost:hover { background: var(--green); color: #fff; }
.button:disabled { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem); background: rgba(247, 241, 229, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--green-dark); }
.logo { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.logo img + .logo-fallback { display: none; }
.logo-fallback { width: 100%; height: 100%; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 50%; font: 1.7rem var(--display); color: var(--gold); box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--gold-light); }
.brand-name { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1; }
.brand-name span { color: var(--gold); }

.menu { position: relative; }
.menu-toggle { display: flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; border: 1px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); font: 600 1.05rem var(--body); cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--green); color: #fff; }
.menu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.chevron { transition: transform .2s; }
.menu ul { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 270px; margin: 0; padding: .5rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(34, 54, 42, .16); }
.menu a { display: block; padding: .65rem .9rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--cream); }
.menu a[aria-current="page"] { color: var(--green); font-weight: 600; }
.menu a.menu-highlight { color: var(--wine); }

main { min-height: 70vh; }
.page { padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.text-page { max-width: 820px; margin: 0 auto; }
.text-page h2 { margin: 2.2rem 0 .6rem; }
.lead { font-size: 1.35rem; color: var(--green-dark); }
.placeholder-note { color: var(--muted); font-style: italic; }
.small-note { font-size: .95rem; color: var(--muted); }

/* Forside */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; max-width: 1240px; margin: 0 auto; }
.hero-image { position: relative; aspect-ratio: 452 / 747; justify-self: center; width: auto; height: min(80vh, 760px); border-radius: 200px 200px 18px 18px; overflow: hidden; background: linear-gradient(160deg, #efe5cf, #e2d3b2); border: 1px solid var(--line); }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; color: var(--muted); font-style: italic; text-align: center; }
.photo-placeholder .dress-art { width: 62%; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1240px; margin: 3rem auto 0; padding: 0; list-style: none; }
.values li { padding: 1.4rem; border-top: 2px solid var(--gold); background: var(--paper); }
.values strong { display: block; font: 1.25rem var(--display); color: var(--green-dark); }
.values span { color: var(--muted); }

/* Om drakten */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.feature-grid article { padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.feature-grid h2 { font-size: 1.4rem; margin: 0 0 .4rem; }
.feature-grid p { margin: 0; }

/* Steg 1: størrelse */
.size-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1000px; margin: 1rem auto; }
.size-card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s; }
.size-card:hover { border-color: var(--gold); }
.size-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.size-name { font-size: 2.2rem; margin: 0; }
.size-range { margin: 0 0 1rem; font-weight: 600; color: var(--gold); }
.size-measures { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.size-measures dt { color: var(--muted); }
.size-measures dd { margin: 0; text-align: right; }
.size-card .button { margin-top: auto; }
.measure-help { margin-top: 1.5rem; }

/* Steg 2: stoffer */
.designer { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1300px; margin: 0 auto; }
.preview-sticky { position: sticky; top: 90px; }
.model-stage { position: relative; background: radial-gradient(ellipse at 50% 40%, #fffdf8 0%, #f3ead8 75%); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
#dress-3d { display: none; width: 100%; height: min(78vh, 760px); cursor: grab; touch-action: pan-y; }
#dress-3d:active { cursor: grabbing; }
.model-controls, .model-hint { display: none; }
.has-3d #dress-3d { display: block; }
.has-3d .model-controls { display: flex; position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); gap: .3rem; padding: .25rem; background: rgba(255, 252, 246, .9); border: 1px solid var(--line); border-radius: 999px; }
.model-controls button { white-space: nowrap; padding: .35rem 1rem; border: 0; border-radius: 999px; background: transparent; font: 500 1rem var(--body); color: var(--ink); cursor: pointer; }
.model-controls button.selected { background: var(--green); color: #fff; }
.sway-button { display: none; }
.has-3d .sway-button { display: block; position: absolute; bottom: 2.4rem; right: 1rem; padding: .4rem 1rem; border: 1px solid var(--green); border-radius: 999px; background: rgba(255, 252, 246, .9); font: 500 .95rem var(--body); color: var(--green); cursor: pointer; }
.has-3d .sway-button.selected { background: var(--green); color: #fff; }
.has-3d .model-hint { display: block; position: absolute; bottom: .8rem; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; font-style: italic; color: var(--muted); pointer-events: none; transition: opacity .6s; }
.has-3d.touched .model-hint { opacity: 0; }
.has-3d .preview-views { display: none; }
.preview-views { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; align-items: end; padding: 1rem; }
.preview-views figure { margin: 0; text-align: center; }
.preview-views svg { width: 100%; height: auto; }
.preview-views figcaption { font-size: .9rem; color: var(--muted); }
.summary-lines { margin: 0; padding: 0; list-style: none; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.price-line { margin-top: .6rem; padding: 0 .4rem; font-size: .98rem; color: var(--muted); }
.price-line summary { cursor: pointer; list-style: none; }
.price-line summary::-webkit-details-marker { display: none; }
.price-line summary strong { color: var(--ink); font-weight: 500; }
.price-line summary span { margin-left: .4rem; font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; }
.price-line details[open] summary span { display: none; }
.price-line ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.price-line li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding: .15rem 0; }
.price-line p { margin: .4rem 0 0; font-size: .88rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid currentColor; }
.total strong { font: 1.8rem var(--display); }
.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.inline-select select { font: inherit; letter-spacing: normal; color: var(--green-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 .3rem; }
.designer-steps h1 { margin-top: .1em; }

.unique-notice { margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--gold); background: #fbf3df; }
.unique-notice strong { font-family: var(--display); font-weight: 400; color: var(--wine); font-size: 1.15rem; }
.unique-notice p { margin: .3rem 0 0; }

.step { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; animation: rise .4s ease; }
.step h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .3rem; }
.step-number { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: #fff; font: 1rem var(--display); flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.part-block { margin-top: 1.2rem; }
.fabric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem; }
.fabric { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; }
.fabric:hover { border-color: var(--gold); transform: translateY(-2px); }
.fabric.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.swatch-art { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .1); display: block; }
.fabric-name { font-size: .98rem; line-height: 1.2; font-weight: 500; }
.fabric-price { font-size: .88rem; color: var(--muted); }
.tag { position: absolute; top: .9rem; left: .9rem; padding: .05rem .5rem; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; letter-spacing: .04em; }
.tag.last { left: auto; right: .9rem; background: var(--wine); }
.tag + .tag.last { top: .9rem; }
.own-button, .none-button { justify-content: center; align-items: center; text-align: center; border-style: dashed; min-height: 150px; }
.none-icon { font-size: 2rem; line-height: 1; color: var(--muted); }
.camera-icon { width: 46px; height: 46px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4a3a' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3Z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
.fabric-info { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--paper); border-left: 3px solid var(--gold); animation: rise .3s ease; }
.fabric-info img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
.fabric-info dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; margin: .4rem 0; font-size: 1rem; }
.fabric-info dt { color: var(--muted); }
.fabric-info dd { margin: 0; }
.fabric-info .small-note { margin: 0; }
.finish { padding: 1.5rem 0; border-top: 1px solid var(--line); }

/* Dialoger */
dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.8rem; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(34, 54, 42, .45); }
dialog h2 { margin: 0 0 .3rem; }
.close { position: absolute; top: .8rem; right: .8rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--cream); font-size: 1.5rem; cursor: pointer; }
label { display: block; font-weight: 500; margin-bottom: .9rem; }
input, textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: inherit; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.upload { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.4rem; margin-top: 1rem; border: 1.5px dashed var(--gold); border-radius: 14px; text-align: center; cursor: pointer; }
.upload input { max-width: 260px; font-size: .95rem; }
#own-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.own-notice { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: 12px; background: #fbf3df; font-size: 1rem; }
.own-notice p { margin: .2rem 0; }
.summary-art { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; padding: .6rem; background: var(--cream); border-radius: 12px; }
.summary-lines { margin-top: 1rem; }
.checkout-summary .total { margin-bottom: 1rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; margin-top: 1rem; }
.contact-info { margin: 0; }
.contact-info dt { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 1rem; }
.contact-info dd { margin: .1rem 0 0; }
.contact-form { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.form-note { font-size: .95rem; color: var(--muted); margin-bottom: 0; }

/* Footer */
.site-footer { display: grid; justify-items: center; gap: .4rem; padding: 2.5rem 1rem; margin-top: 3rem; background: var(--green-dark); color: #e9e1cc; text-align: center; }
.site-footer .brand-name { color: #fff; }
.site-footer p { margin: 0; font-style: italic; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: .6rem 0; }
.site-footer a { color: var(--gold-light); }
.site-footer small { color: #b7ad94; }

#toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; max-width: calc(100vw - 2rem); padding: .8rem 1.2rem; border-radius: 12px; background: var(--green-dark); color: #fff; transform: translate(-50%, 150%); opacity: 0; transition: transform .3s, opacity .3s; pointer-events: none; }
#toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .hero, .designer, .contact-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 420px; width: 100%; height: auto; margin: 0 auto; }
  .preview-sticky { position: static; }
  .preview-views { max-width: 460px; margin: 0 auto; }
  #dress-3d { height: 62vh; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .logo { width: 40px; height: 40px; }
  .logo-fallback { font-size: 1.3rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-name span { display: block; font-size: .8em; }
  .values, .feature-grid, .size-groups { grid-template-columns: 1fr; }
  .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .fabric-info { grid-template-columns: 80px 1fr; }
  .fabric-info img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Silkeskjerf */
.scarf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.scarf img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.scarf-none { justify-content: center; align-items: center; text-align: center; border-style: dashed; min-height: 120px; }
@media (max-width: 640px) { .scarf-grid { grid-template-columns: repeat(2, 1fr); } }
.fabric-info.none-info { grid-template-columns: 1fr; }

/* Bestilling */
.finish { text-align: center; }
.finish-lead { font: 1.4rem var(--display); color: var(--green-dark); margin: 0 0 .8rem; }
.button-buy { font-size: 1.15rem; padding: 1em 2.2em; background: var(--wine); border-color: var(--wine); }
.button-buy:hover { background: #5f2230; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1150px; margin: 0 auto; }
.checkout-form h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.checkout-form h2:not(:first-child) { margin-top: 1.4rem; }
select { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: inherit; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.profile-option { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); font-weight: 400; cursor: pointer; }
.profile-option input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex: none; accent-color: var(--green); }
.profile-option strong { font-weight: 600; }

/* Lager */
.fabric.sold-out { opacity: .5; cursor: not-allowed; }
.fabric.sold-out:hover { transform: none; border-color: var(--line); }
.sold-note { margin-top: auto; color: var(--wine); font-style: italic; }

/* Kundekonto og Min side */
.link-button { border: 0; background: none; padding: 0; color: var(--green); text-decoration: underline; font: inherit; cursor: pointer; }
.form-error { color: var(--wine); min-height: 1.2em; margin: .2rem 0 .6rem; }
.segmented { display: inline-flex; gap: .2rem; padding: .25rem; margin: .2rem 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.segmented button { padding: .45rem 1.1rem; border: 0; border-radius: 999px; background: transparent; font: 500 1rem var(--body); color: var(--ink); cursor: pointer; }
.segmented button.selected { background: var(--green); color: #fff; }
.account-in { padding: .8rem 1rem; border-radius: 12px; background: #e9efe6; margin-bottom: 1rem; }
.account-in p { margin: 0; }
.menu-account { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.account-page { max-width: 1100px; margin: 0 auto; }
.auth-panel { max-width: 520px; margin: 0 auto; }
.narrow-form { max-width: 560px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.account-head h1 { margin-bottom: .2rem; }
.order-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.order-card { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: .3rem 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: inherit; text-decoration: none; }
.order-card:hover { border-color: var(--gold); }
.order-no { font: 1.15rem var(--display); color: var(--green-dark); }
.order-meta { color: var(--muted); }
.status-pill { display: inline-block; padding: .1rem .7rem; border-radius: 999px; background: #e6e1d6; font-size: .9rem; white-space: nowrap; }
.status-pill.big { font-size: 1.05rem; padding: .3rem 1rem; }
.status-mottatt { background: #fbe9cf; color: #8a4f12; }
.status-bekreftet { background: #f4e3c2; color: #7a5410; }
.status-betalt, .status-produksjon { background: #e1ecdc; color: var(--green-dark); }
.status-sendt, .status-levert { background: var(--green); color: #fff; }
.status-kansellert { background: #f0dadd; color: var(--wine); }
.unread { padding: .1rem .6rem; border-radius: 999px; background: var(--wine); color: #fff; font-size: .85rem; }
.status-steps { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: s; }
.status-steps li { position: relative; text-align: center; font-size: .92rem; color: var(--muted); padding-top: 1.8rem; }
.status-steps li span { position: absolute; top: .3rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); z-index: 1; }
.status-steps li::before { content: ''; position: absolute; top: .78rem; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-steps li:first-child::before { display: none; }
.status-steps li.done, .status-steps li.current { color: var(--green-dark); }
.status-steps li.done span { background: var(--green); border-color: var(--green); }
.status-steps li.done::before, .status-steps li.current::before { background: var(--green); }
.status-steps li.current span { border-color: var(--green); box-shadow: 0 0 0 4px #dbe7d6; }
.status-steps li.current { font-weight: 600; }
.cancelled { color: var(--wine); font-weight: 600; }
.thanks { padding: 1.2rem 1.4rem; border-radius: 16px; background: #e9efe6; margin: 1rem 0; }
.thanks h2 { margin: 0 0 .3rem; }
.thanks p { margin: 0; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.order-box { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.order-box h2 { margin-top: 0; font-size: 1.4rem; }
.order-dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 1rem; }
.order-dl dt { color: var(--muted); }
.order-dl dd { margin: 0; }
.thread { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; max-height: 420px; overflow: auto; }
.ev { padding: .6rem .9rem; border-radius: 12px; background: var(--cream); }
.ev p { margin: .2rem 0 0; }
.ev-who { font-size: .85rem; color: var(--muted); }
.ev-kunde { background: #e9efe6; margin-left: 2rem; }
.ev-admin.ev-melding { background: #fbf3df; margin-right: 2rem; }
.ev-status { background: transparent; border: 1px dashed var(--line); }
.order-box .contact-form { padding: 0; border: 0; background: none; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .order-card { grid-template-columns: 1fr auto; }
  .order-meta { grid-column: 1 / -1; order: 3; }
  .status-steps { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .status-steps li:nth-child(4)::before { display: none; }
}
