/* Deres Auto — booking. "Pitstop"-designsprog (delt med daekcenter.gl, Nick 24/9): lyst, industrielt,
   Barlow, skarpe hjørner, taktilt. Ét udtryk på tværs af sites. Tokens 1:1 fra daekcenter/assets/tokens.css. */

:root {
    --bg: #F6F7F5;            /* lys beton */
    --panel: #FFFFFF;
    --ink: #131A1F;
    --muted: #5C6A72;
    --orange: #E4570F;        /* KUN CTA / valgt / book */
    --orange-ink: #B94406;    /* hover/tekst-variant (AA på hvid) */
    --vinter: #1B6E9E;        /* dæk/positiv accent */
    --vinter-soft: #E8F1F7;
    --line: #DDE2E0;
    --ink-panel: #1B242B;     /* footer */
    --radius: 6px;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; min-height: 100%;
    background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.side { max-width: 760px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 0 20px; }

/* ---- Header ---- */
.top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand {
    font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
    display: inline-flex; align-items: center; gap: 10px;
}
.brand::before { content: ""; width: 14px; height: 26px; background: var(--orange); transform: skewX(-14deg); border-radius: 2px; }

.lang { display: flex; gap: 6px; }
.lang-btn {
    background: transparent; border: 1px solid var(--line); color: var(--muted);
    border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .85rem;
    cursor: pointer; transition: border-color .12s ease, color .12s ease;
}
.lang-btn:hover { border-color: var(--muted); }
.lang-btn.aktiv { background: var(--ink); border-color: var(--ink); color: #fff; }

.indhold { flex: 1; padding: 40px 0; }

.bund { margin-top: 24px; background: var(--ink-panel); color: #C9D2D8; font-size: .9rem; text-align: center; padding: 22px 16px; border-radius: var(--radius); }

/* ---- Hero (forside) ---- */
.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 12px; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 0 0 24px; }
.note { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* ---- Forside: hero + "sådan booker du"-kort + "vidste du at"-tips (Nick 2/10: ikke helt tom) ---- */
.forside {
    position: relative; overflow: hidden;   /* hjul-buen klippes her, ikke i hero-kolonnen */
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center;
    padding: 28px 10px 18px 0;               /* plads til kortets 8px-skygge */
}
.forside .hero { position: static; overflow: visible; padding: 0; }
.forside .hero-sub { margin-bottom: 28px; }

.trin-kort {
    position: relative; z-index: 1;
    background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: 8px 8px 0 0 var(--ink);
}
.trin-kort-titel { font-family: var(--font-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; }
.trin-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.trin { display: flex; gap: 14px; align-items: flex-start; }
.trin-nr {
    flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
    background: var(--ink); color: #fff; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.trin b { font-weight: 600; }
.trin-tekst { color: var(--muted); font-size: .92rem; }

.tip-kort {
    margin-top: 32px; background: var(--vinter-soft); border-left: 4px solid var(--vinter); border-radius: 0;
    padding: 18px 22px;
}
.tip-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.tip-titel { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; color: var(--vinter); }
.tip-prikker { display: flex; gap: 6px; }
.tip-prik { width: 7px; height: 7px; border-radius: 50%; background: rgba(27, 110, 158, .25); transition: background-color .2s ease; }
.tip-prik.aktiv { background: var(--vinter); }
.tip-tekst { margin: 0 0 10px; font-size: 1.05rem; min-height: 3.3em; }
.tip-naeste { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--vinter); cursor: pointer; }
.tip-naeste:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .forside { grid-template-columns: 1fr; gap: 28px; }
    .forside .hero::before { width: 240px; height: 240px; right: -120px; top: -150px; }   /* aldrig bag brødteksten */
}

/* ---- Knapper ---- */
.btn-primary {
    display: inline-block; background: var(--orange); color: #fff;
    border: 2px solid transparent; border-radius: var(--radius); padding: 12px 24px;
    font: inherit; font-family: var(--font-body); font-weight: 600; cursor: pointer;
    transition: background-color .12s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--orange-ink); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-sekundaer {
    display: inline-block; background: transparent; border: 2px solid var(--ink); color: var(--ink);
    border-radius: var(--radius); padding: 12px 24px; font: inherit; font-family: var(--font-body);
    font-weight: 600; cursor: pointer; transition: background-color .12s ease, color .12s ease;
}
.btn-sekundaer:hover { background: var(--ink); color: #fff; }

/* ---- Booking-wizard ---- */
.wz { max-width: 640px; margin: 0 auto; }
.wz-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.wz-bar-fyld { height: 100%; background: var(--orange); transition: width .3s ease; }
.wz-trin-nr { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 12px 2px 16px; }

/* Kortet er det tunge signatur-element (Pitstop: "booking-kortet ER hero'en"). */
.wz-kort { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 8px 8px 0 0 var(--ink); }

.wz-lbl { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 18px 0 8px; }
.wz-lbl:first-child { margin-top: 0; }
.wz-input {
    width: 100%; background: var(--panel); border: 1px solid var(--muted); border-radius: var(--radius);
    padding: 11px 13px; color: var(--ink); font: inherit; transition: border-color .12s ease, box-shadow .12s ease;
}
.wz-input:focus { outline: none; border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.wz-input.fejl { border-color: #c0392b; }
.wz-fejl { color: #c0392b; font-size: .82rem; margin: 6px 0 0; }
.wz-note { color: var(--muted); font-size: .95rem; }
.wz-hjaelp { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.wz-raekke { display: flex; gap: 10px; margin-top: 10px; }
.wz-raekke .wz-input { margin-top: 0; }
.wz-kode { max-width: 160px; flex: 0 0 auto; }

/* Ydelser */
.wz-ydelser { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wz-ydelse {
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
    color: var(--ink); font: inherit; cursor: pointer; text-align: left;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.wz-ydelse:hover { border-color: var(--orange); transform: translateY(-2px); }
.wz-ydelse.valgt { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.wz-ydelse-navn { font-weight: 600; }
.wz-ydelse-min { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* Tider */
.wz-tider { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.wz-tid {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 0;
    color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums;
    transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.wz-tid:hover { border-color: var(--orange); }
.wz-tid.valgt { border-color: var(--orange); background: var(--orange); color: #fff; }

/* Opsummering */
.wz-opsum { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 8px; display: flex; flex-direction: column; }
.wz-opsum-r { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wz-opsum-r:last-child { border-bottom: 0; }
.wz-opsum-r span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.wz-ok { color: var(--vinter); font-weight: 600; }

/* Knapper i wizard */
.wz-knapper { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wz-knapper .btn-primary { margin-left: auto; }

/* Kundeoprettelse + valg-knapper */
.wz-kundetype { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.wz-kundetype .wz-ydelse { flex: 1; min-width: 120px; align-items: center; justify-content: center; text-align: center; }
.wz-samtykke { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.wz-samtykke input { margin-top: 3px; accent-color: var(--orange); }
.wz-fejlliste { margin: 12px 0 0; padding-left: 18px; color: #c0392b; }

/* ---- Responsivt / bevægelse ---- */
@media (max-width: 560px) {
    .wz-kort { padding: 20px 16px; box-shadow: 6px 6px 0 0 var(--ink); }
    .wz-knapper { flex-direction: column-reverse; }
    .wz-knapper .btn-primary, .wz-knapper .btn-sekundaer { width: 100%; text-align: center; }
}
/* ============ PITSTOP-SIGNATURER ============ */

/* "Hurtigbane" — tynd diagonal racing-stribe i toppen af siden */
body::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 20;
    background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--ink) 14px 18px);
}

/* Hero: hjul-bue-geometri i negativ plads (Bauhaus, aldrig bag brødtekst) */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero::before {
    content: ""; position: absolute; z-index: 0;
    width: 340px; height: 340px; border-radius: 50%;
    right: -130px; top: -150px; background: var(--vinter-soft);
}

/* Footer: dækmønster-tekstur + stort fælg-omrids som lav-kontrast vandmærke */
.bund { position: relative; z-index: 0; overflow: hidden;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 16px, transparent 16px 34px); }
.bund::after {
    content: ""; position: absolute; z-index: -1; right: -70px; bottom: -120px;
    width: 250px; height: 250px; border-radius: 50%; border: 34px solid rgba(255,255,255,.05);
}

/* Entré-animationer — kun med JS og uden reduced-motion (.has-js sættes synkront i <head>) */
@media (prefers-reduced-motion: no-preference) {
    .has-js .hero h1        { animation: heroRise .55s both .06s; }
    .has-js .hero .hero-sub { animation: heroRise .55s both .16s; }
    .has-js .hero .btn-primary { animation: heroRise .55s both .26s; }
    .has-js .hero::before   { animation: bgPop .9s ease both; }
    .has-js .trin-kort      { animation: heroRise .55s both .22s; }
    .has-js .tip-kort       { animation: heroRise .55s both .36s; }
    .has-js .tip-tekst      { animation: kortInd .3s ease both; }        /* nyt tip glider ind */
    .has-js .wz-kort        { animation: kortInd .3s ease both; }         /* blidt skift mellem trin */
    .has-js .wz-ydelse, .has-js .wz-tid { animation: kortInd .25s ease both; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bgPop    { from { opacity: 0; transform: scale(.6); }         to { opacity: 1; transform: none; } }
@keyframes kortInd  { from { opacity: 0; transform: translateY(10px); }  to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    * , *::before, *::after { transition: none !important; animation: none !important; }
}
