/* Wartung – hjemmeside (forsiden). Samme værkstedssprog som selve værktøjet:
   grafit, stålgrå, stålplade med nitter (typeskiltet), værkstedsblå og signalgul.
   Barlow / Barlow Semi Condensed ligger i pluginet – ingen eksterne kald. */
:root {
    --graphite: #1f2933;
    --graphite-2: #27323d;
    --night: #161d24;
    --steel: #e6e9ec;
    --plate: #f7f8f9;
    --edge: #b7c0c8;
    --line: #cfd6dc;
    --blue: #1d4f91;
    --blue-dark: #163d70;
    --signal: #f2b705;
    --red: #b42318;
    --muted: #4b5866;
    --on-dark: #d9dee3;
    --on-dark-muted: #a7b1bb;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --head: 'Barlow Semi Condensed', 'Arial Narrow', 'Barlow', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ws {
    background: var(--steel);
    color: var(--graphite);
    font: 400 19px/1.6 'Barlow', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
@media (max-width: 600px) { body.ws { font-size: 18px; } }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(34px, 4.6vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; }
p { margin: 0 0 1em; }

.ws-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main section[id] { scroll-margin-top: 84px; }
.ws-skip { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--graphite); padding: 8px 14px; z-index: 50; font-weight: 600; }
.ws-skip:focus { left: 8px; }
.ws-sub { font-size: 1.08em; color: var(--muted); max-width: 46em; margin: 14px 0 36px; }

/* ─── Knapper ─────────────────────────────── */
.ws-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 26px;
    font: 600 18px/1.2 'Barlow', Arial, sans-serif;
    border-radius: 4px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ws-btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 var(--blue-dark); }
.ws-btn-primary:hover { background: var(--blue-dark); }
.ws-btn-quiet { color: var(--graphite); border-color: var(--edge); background: transparent; }
.ws-btn-quiet:hover { border-color: var(--graphite); }
.ws-btn-signal { background: var(--signal); color: var(--graphite); box-shadow: inset 0 -3px 0 #c99700; }
.ws-btn-signal:hover { background: #ffc61a; }
.ws-btn-light { color: #fff; border-color: rgba(255,255,255,.45); }
.ws-btn-light:hover { border-color: #fff; }

/* ─── Topbjælke ───────────────────────────── */
.ws-top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(247,248,249,.97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px);
}
.ws-top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: 72px; display: flex; align-items: center; gap: 28px; }
.ws-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); font: 700 30px/1 var(--head); letter-spacing: .01em; }
.ws-logo .ws-mark { width: 38px; height: 38px; }
.ws-nav { display: flex; gap: 6px 26px; margin-left: auto; }
.ws-nav a { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 17px; padding: 8px 0; border-bottom: 3px solid transparent; }
.ws-nav a:hover { border-bottom-color: var(--signal); }
.ws-top-act { display: flex; align-items: center; gap: 10px; }
.ws-btn-login { min-height: 46px; padding: 8px 22px; background: var(--graphite); color: #fff; font-size: 17px; }
.ws-btn-login:hover { background: var(--night); }
.ws-burger { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; background: none; border: 2px solid var(--edge); border-radius: 4px; font: 600 16px 'Barlow', Arial, sans-serif; color: var(--graphite); cursor: pointer; }
.ws-burger-bars, .ws-burger-bars::before, .ws-burger-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.ws-burger-bars::before, .ws-burger-bars::after { content: ''; position: absolute; left: 0; }
.ws-burger-bars::before { top: -6px; }
.ws-burger-bars::after { top: 6px; }
.ws-top.is-open .ws-burger-bars { background: transparent; }
.ws-top.is-open .ws-burger-bars::before { transform: translateY(6px) rotate(45deg); }
.ws-top.is-open .ws-burger-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
    .ws-nav { gap: 6px 18px; }
    .ws-nav a { font-size: 16px; }
}
@media (max-width: 900px) {
    .ws-top-in { gap: 12px; flex-wrap: wrap; min-height: 64px; }
    .ws-logo { font-size: 26px; }
    .ws-logo .ws-mark { width: 32px; height: 32px; }
    .ws-top-act { margin-left: auto; }
    .ws-burger { display: inline-flex; }
    .ws-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; margin: 0 0 10px; border-top: 1px solid var(--line); }
    .ws-top.is-open .ws-nav { display: flex; }
    .ws-nav a { font-size: 19px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
    .ws-nav a:hover { border-bottom-color: var(--line); color: var(--blue); }
}
@media (max-width: 380px) {
    .ws-burger-txt { display: none; }
    .ws-btn-login { padding: 8px 14px; }
}

/* ─── Hero ────────────────────────────────── */
.ws-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.ws-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ws-hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; max-width: 15em; }
.ws-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--muted); margin: 24px 0 32px; max-width: 34em; }
.ws-hero-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* Typeskiltet: stålplade med nitter og indgraverede felter */
.ws-plate {
    position: relative; margin: 0;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 1px, rgba(255,255,255,0) 1px 3px),
        linear-gradient(180deg, #fbfcfc 0%, var(--plate) 55%, #eceff2 100%);
    border: 1px solid var(--edge); border-radius: 6px;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #d4dae0, 0 1px 2px rgba(31,41,51,.1), 0 22px 40px -24px rgba(31,41,51,.45);
    padding: 34px 36px 30px;
}
.ws-rivet { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #c4cbd2 45%, #8a959f 100%); box-shadow: 0 1px 1px rgba(31,41,51,.35), inset 0 0 0 1px rgba(31,41,51,.18); }
.ws-rivet.tl { top: 12px; left: 12px; } .ws-rivet.tr { top: 12px; right: 12px; }
.ws-rivet.bl { bottom: 12px; left: 12px; } .ws-rivet.br { bottom: 12px; right: 12px; }
.ws-plate-head { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; margin: 0 0 6px; border-bottom: 2px solid var(--graphite); font: 700 30px/1 var(--head); }
.ws-plate-made { margin-left: auto; font: 500 14px/1.2 'Barlow', Arial, sans-serif; color: var(--muted); text-align: right; }
.ws-plate-rows { margin: 0; }
.ws-plate-rows > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid #d3d9de; }
.ws-plate-rows > div:last-child { border-bottom: 0; }
.ws-plate-rows dt { font: 600 16px/1.4 var(--head); color: var(--muted); letter-spacing: .02em; }
.ws-plate-rows dd { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }

@media (max-width: 900px) {
    .ws-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ws-plate { max-width: 560px; }
}
@media (max-width: 480px) {
    .ws-plate { padding: 30px 22px 24px; }
    .ws-plate-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ws-plate-made { display: none; }
    .ws-hero-act .ws-btn { width: 100%; }
}

/* ─── Forløbet (mørkt bånd) ───────────────── */
.ws-flow { background: var(--graphite); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.ws-flow .ws-sub { color: var(--on-dark-muted); }
.ws-flow-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ws-steps { list-style: none; margin: 0; padding: 0; }
.ws-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 0 0 30px; position: relative; }
.ws-steps li:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 58px; bottom: 6px; width: 2px; background: rgba(242,183,5,.35); }
.ws-steps h3 { color: #fff; margin: 8px 0 8px; }
.ws-steps p { color: var(--on-dark); margin: 0; }
.ws-steps em { font-style: normal; font-weight: 600; color: #fff; }
/* Trinnenes numre står i en møtrik – samme form som Wartungs mærke */
.ws-nut {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: var(--signal); color: var(--graphite);
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    font: 700 26px/1 var(--head);
}

.ws-phones { display: flex; gap: 18px; justify-content: center; position: sticky; top: 100px; }
.ws-phone { width: 250px; max-width: 48%; flex: 0 0 auto; background: #0e1318; border-radius: 30px; padding: 10px; box-shadow: 0 30px 50px -26px rgba(0,0,0,.8); }
.ws-phone-2 { margin-top: 60px; }
.ws-ph-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; color: var(--graphite); border-radius: 22px 22px 0 0; padding: 18px 14px 10px; font: 700 17px/1 var(--head); border-bottom: 1px solid var(--line); }
.ws-ph-av { width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ws-ph-body { background: var(--steel); border-radius: 0 0 22px 22px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.ws-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 5px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ws-card-missed { border-left-color: var(--red); }
.ws-c-when { color: var(--red); font-size: 11.5px; }
.ws-c-time { color: var(--graphite); }
.ws-c-cust { color: var(--graphite); font: 700 15px/1.2 var(--head); }
.ws-c-note { background: #fff8e1; border-left: 3px solid var(--signal); padding: 3px 6px; margin-top: 3px; color: var(--graphite); }
.ws-c-btn { display: block; text-align: center; background: var(--blue); color: #fff; border-radius: 4px; padding: 7px; font-weight: 600; font-size: 12px; margin-top: 6px; }
.ws-field { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; }
.ws-field b { color: var(--graphite); font-size: 14px; }
.ws-field small { color: var(--blue); font-size: 10.5px; }
.ws-sign { background: #fff; border: 1px dashed var(--edge); border-radius: 5px; padding: 6px 8px 4px; text-align: center; font-size: 10.5px; color: var(--muted); }

.ws-missed { margin-top: clamp(24px, 4vw, 40px); border: 2px solid rgba(242,183,5,.6); border-radius: 6px; padding: 24px 28px; max-width: 52em; background: var(--graphite-2); }
.ws-missed h3 { color: #fff; margin-bottom: 8px; }
.ws-missed p { margin: 0; color: var(--on-dark); }
.ws-missed strong { color: var(--signal); }

@media (max-width: 900px) {
    .ws-flow-grid { grid-template-columns: minmax(0, 1fr); }
    .ws-phones { position: static; }
}
@media (max-width: 480px) {
    .ws-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .ws-nut { width: 44px; height: 44px; font-size: 21px; }
    .ws-steps li:not(:last-child)::before { left: 21px; top: 46px; }
    .ws-phones { gap: 10px; }
    .ws-phone { padding: 7px; border-radius: 24px; }
    .ws-phone-2 { margin-top: 40px; }
    .ws-missed { padding: 20px; }
}

/* ─── Roller ──────────────────────────────── */
.ws-roles { padding: clamp(56px, 8vw, 104px) 0; }
.ws-roles h2 { margin-bottom: 36px; }
.ws-roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--graphite); }
.ws-role { padding: 26px 40px 10px 0; }
.ws-role + .ws-role { padding: 26px 0 10px 40px; border-left: 1px solid var(--edge); }
.ws-role h3 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 14px; }
.ws-list { list-style: none; margin: 0; padding: 0; }
.ws-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.ws-list li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.ws-note { margin: 28px 0 0; color: var(--muted); font-size: .95em; }
@media (max-width: 760px) {
    .ws-roles-grid { grid-template-columns: minmax(0, 1fr); }
    .ws-role, .ws-role + .ws-role { padding: 24px 0 8px; border-left: 0; }
    .ws-role + .ws-role { border-top: 1px solid var(--edge); margin-top: 16px; }
}

/* ─── Jeres navn på værktøjet ─────────────── */
.ws-own { background: var(--plate); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.ws-own-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ws-own h2 { margin-bottom: 20px; }
.ws-own p { color: var(--muted); max-width: 34em; }
.ws-loginmock { display: flex; justify-content: center; }
.ws-plate-sm { width: 100%; max-width: 340px; padding: 30px 30px 28px; display: flex; flex-direction: column; }
.ws-lm-brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--head); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ws-lm-mono { width: 38px; height: 38px; border-radius: 5px; background: #2f6b4f; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 17px/1 var(--head); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.ws-lm-title { font: 700 24px/1 var(--head); margin-bottom: 12px; }
.ws-lm-label { font-size: 13px; font-weight: 600; margin: 6px 0 4px; }
.ws-lm-input { border: 1px solid var(--edge); border-radius: 4px; background: #fff; padding: 8px 10px; font-size: 14px; color: var(--muted); }
.ws-lm-btn { margin-top: 16px; background: var(--blue); color: #fff; text-align: center; border-radius: 4px; padding: 10px; font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .ws-own-grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── Sikkerhed ───────────────────────────── */
.ws-sec { padding: clamp(56px, 8vw, 104px) 0; }
.ws-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.ws-checks li { padding: 18px 0 18px 0; border-top: 1px solid var(--edge); color: var(--muted); }
.ws-checks b { display: block; color: var(--graphite); font: 700 21px/1.25 var(--head); margin-bottom: 4px; }
@media (max-width: 760px) { .ws-checks { grid-template-columns: minmax(0, 1fr); } }

/* ─── På vej ──────────────────────────────── */
.ws-next { background: var(--plate); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.ws-next h2 { padding-left: 18px; border-left: 8px solid var(--signal); }
.ws-next-list { margin: 0; border-top: 3px solid var(--graphite); }
.ws-next-list > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ws-next-list dt { font: 700 22px/1.3 var(--head); }
.ws-next-list dd { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .ws-next-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ─── Kontakt ─────────────────────────────── */
.ws-contact { background: var(--graphite); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.ws-contact-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 64px; align-items: center; }
.ws-contact h2 { margin-bottom: 18px; }
.ws-contact p { color: var(--on-dark); margin: 0; max-width: 34em; }
.ws-contact-act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ws-contact-act .ws-btn { min-width: 240px; }
.ws-contact-mail a { color: var(--on-dark); font-size: 17px; word-break: break-all; }
@media (max-width: 760px) {
    .ws-contact-in { grid-template-columns: minmax(0, 1fr); }
    .ws-contact-act .ws-btn { width: 100%; min-width: 0; }
}

/* ─── Bund ────────────────────────────────── */
.ws-foot { background: var(--night); color: var(--on-dark-muted); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 16px; }
.ws-foot-in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.ws-foot-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 700 22px/1 var(--head); }
.ws-foot-logo .ws-mark path { fill: #fff; }
.ws-foot-logo .ws-mark circle:last-child { fill: var(--night); }
.ws-foot a { margin-left: auto; color: #fff; font-weight: 600; }
@media (max-width: 520px) { .ws-foot a { margin-left: 0; } }
