/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); text-transform: uppercase; letter-spacing: -.005em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); margin-bottom: 8px;
}
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ============ KNAPPER ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ HEADER ============ */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.logo::before {
  content: ""; width: 14px; height: 26px; background: var(--orange);
  transform: skewX(-14deg); border-radius: 2px;
}
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--orange); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); font-weight: 600; }
.site-nav .nav-cta {
  background: var(--orange); color: #fff; padding: 8px 16px;
  border-radius: var(--radius); border-bottom: none; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--orange-ink); border-bottom: none; }
.lang-switch { font-size: .85rem; color: var(--muted); }
.lang-switch a { color: var(--muted); }

/* Oversættelses-banner (kun /kl/) */
.translation-banner {
  background: var(--vinter-soft); color: var(--ink);
  font-size: .9rem; padding: 8px 20px; text-align: center;
  border-bottom: 1px solid var(--line);
}

/* Sæsonbanner */
.season-banner {
  background: var(--vinter); color: #fff; font-weight: 600;
  font-size: .95rem; text-align: center; padding: 10px 20px;
}
.season-banner[hidden] { display: none; }

/* ============ SEKTIONER & DELERE ============ */
.section { padding: var(--section-y) 0; }
.section-tight { padding: 48px 0; }
.page-intro { padding: 56px 0 40px; }
.section-panel { background: var(--panel); }

/* Prototype-advarsel (kun på inaktive/upublicerede test-sider) */
.proto-banner {
  background: #FDE7D6; color: var(--orange-ink); border-bottom: 2px solid var(--orange);
  font-size: .95rem; padding: 10px 20px; text-align: center;
}

/* ============ HERO ============ */
.hero { background: var(--panel); padding: 76px 0 128px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
/* Hjul-buer bag hero'en — Bauhaus-geometri i negativ plads, aldrig bag brødtekst */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  right: -150px; top: -170px; background: var(--vinter-soft);
}
/* Vej + bil, der ruller ind på load (sidder bag hero-indholdet) */
.hero-ground { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 1; }
.hero-ground::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--line);
}
.hero-ground .wrap { position: relative; }
.hero-car { position: absolute; left: 20px; bottom: 0; width: 244px; }
.hero-car .car { width: 100%; height: auto; display: block; }
.hero-greeting {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .24em; color: var(--orange-ink);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px;
}
.hero-greeting::before {
  content: ""; width: 26px; height: 13px; background: var(--orange);
  border-radius: 26px 26px 0 0; /* lille hjul-bue-mærke */
}
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Booking-kort (heroens tunge element) */
.book-card {
  background: var(--panel); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 10px 10px 0 0 var(--ink);
}
.book-card .label { color: var(--orange-ink); }
.book-card-lead { font-size: .98rem; color: var(--muted); margin-bottom: 16px; }
.book-card .service-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.book-card .service-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.book-card .service-list a::after { content: "→"; color: var(--orange-ink); font-weight: 600; }
.book-card .service-list a:hover { border-color: var(--orange); }
.book-card-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* ============ KORT-GRIDS ============ */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-accent { border-top: 3px solid var(--orange); }

/* Servicepakker */
.pkg-includes { margin: 0 0 12px; padding: 0 0 0 18px; color: var(--muted); font-size: .95rem; }
.pkg-includes li { margin-bottom: 4px; }
.pkg-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--orange-ink); margin: 0 0 14px; }
.pkg-price .todo-pill { font-family: var(--font-body); font-size: .85rem; }

/* Nummererede trin (dækhotel) */
.stepnum {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--orange-ink); margin-bottom: 6px;
}

/* Dækhotel-teaser */
.hotel-teaser { background: var(--vinter-soft); }
.hotel-teaser .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hotel-teaser .label { color: var(--vinter); }
.hotel-badge {
  background: var(--panel); border: 2px solid var(--vinter); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.hotel-badge .big {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  text-transform: uppercase; color: var(--vinter); line-height: 1.1;
}

/* ============ FAQ ============ */
.faq { max-width: 760px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--orange-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); margin: 0; }

/* ============ FORMULARER ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field select {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--muted); border-radius: var(--radius);
}
.field input:focus, .field select:focus { border-color: var(--orange); }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; cursor: pointer; background: var(--panel);
}
.choice-row input { accent-color: var(--orange); }
.choice-row label:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.form-note { font-size: .85rem; color: var(--muted); }

/* ============ BOOKING-WIZARD ============ */
.wizard { max-width: 720px; }
.wizard-steps {
  display: flex; gap: 8px; margin-bottom: 28px; padding: 0; list-style: none;
  flex-wrap: wrap;
}
.wizard-steps li {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  display: flex; align-items: center; gap: 8px; background: var(--panel);
}
.wizard-steps li .n {
  font-family: var(--font-display); font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; background: var(--line);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.wizard-steps li[aria-current="step"] { border-color: var(--orange); color: var(--ink); }
.wizard-steps li[aria-current="step"] .n { background: var(--orange); color: #fff; }
.wizard-steps li.done .n { background: var(--ink); color: #fff; }
.wizard-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.wizard-panel[hidden] { display: none; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Service-valg */
.service-pick { display: grid; gap: 10px; }
.service-pick label {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; background: var(--panel);
}
.service-pick label:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.service-pick input { accent-color: var(--orange); margin-right: 10px; }
.service-pick .sp-title { font-weight: 600; }
.service-pick .sp-text { display: block; font-size: .9rem; color: var(--muted); margin-left: 26px; }

/* Slot-vælger */
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.day-tabs button {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  transition: border-color .12s ease, background-color .12s ease;
}
.day-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot-grid button {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 10px 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.slot-grid button:hover { border-color: var(--orange); }
.slot-grid button[aria-pressed="true"] {
  background: var(--orange); border-color: var(--orange); color: #fff;
}

/* Opsummering */
.summary { border-top: 2px solid var(--ink); margin-top: 20px; padding-top: 14px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }

/* ============ PRISTABEL ============ */
.price-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: none; }
.price-table th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 600;
}
.price-table .p-note { font-size: .88rem; color: var(--muted); }
.todo-pill {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: var(--muted); border: 1px dashed var(--muted);
  border-radius: 99px; padding: 3px 12px; white-space: nowrap;
}
.tablewrap { overflow-x: auto; }

/* ============ KONTAKT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.map-placeholder {
  background: var(--panel); border: 1px dashed var(--muted); border-radius: var(--radius);
  min-height: 260px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600;
}

/* ============ CTA-BÅND ============ */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px;
}
.cta-band h2 { margin: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink-panel); color: #C9D2D8; font-size: .92rem;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 16px, transparent 16px 34px);
  position: relative; overflow: hidden;
}
/* Stort fælg-omrids som lav-kontrast vandmærke */
.site-footer::after {
  content: ""; position: absolute; right: -90px; bottom: -140px; z-index: 0;
  width: 340px; height: 340px; border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, .045);
}
.site-footer .wrap {
  padding-top: 44px; padding-bottom: 44px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.site-footer .f-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: #fff; }
.site-footer .f-parent { color: #8FA0AB; margin-top: 4px; }
.site-footer a { color: #C9D2D8; }
.site-footer .f-note { max-width: 26rem; color: #8FA0AB; }

/* ============ INTERAKTION / BEVÆGELSE ============ */
/* Kort løfter sig let ved hover — taktilt, men diskret */
.card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(19, 26, 31, .4); }

/* Feature-figur (geometrisk illustration i "Det klarer vi"-kortene) */
.feature-illus { width: 74px; height: 74px; margin-bottom: 6px; }
.feature-illus .illus { width: 100%; height: 100%; overflow: visible; }

/* Scroll-reveal: KUN aktiv når JS har sat .js-motion på <html>
   (uden JS eller ved reduced-motion er alt synligt fra start). */
.js-motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js-motion .reveal.in { opacity: 1; transform: none; }

/* Entré- og pop-animationer — kun når JS/IO er til stede OG brugeren ikke
   har bedt om mindre bevægelse. .has-js sættes synkront i <head> (ingen flash). */
@media (prefers-reduced-motion: no-preference) {
  /* Hero popper ind på load, forskudt */
  .has-js .hero-greeting { animation: heroRise .6s both .05s; }
  .has-js .hero h1       { animation: heroRise .6s both .15s; }
  .has-js .hero-sub      { animation: heroRise .6s both .25s; }
  .has-js .hero-actions  { animation: heroRise .6s both .35s; }
  .has-js .book-card     { animation: cardPop .7s cubic-bezier(.34, 1.4, .5, 1) both .32s; }
  .has-js .hero::before  { animation: bgPop 1s ease both; }

  /* Bilen ruller ind fra venstre, mens hjulene drejer */
  .has-js .hero-car        { animation: carDriveIn 1.4s cubic-bezier(.16, .7, .3, 1) both .1s; }
  .has-js .hero-car .wheel { animation: wheelRoll 1.4s linear both .1s; }

  /* Feature-figurer: delene skjult indtil kortet er i syne — så popper de ind */
  .has-js .feature-illus .pop { transform: scale(0); transform-box: fill-box; transform-origin: 50% 50%; }
  .has-js .feature.in .feature-illus .pop { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
  .has-js .feature.in .feature-illus .pop:nth-child(1) { animation-delay: .02s; }
  .has-js .feature.in .feature-illus .pop:nth-child(2) { animation-delay: .07s; }
  .has-js .feature.in .feature-illus .pop:nth-child(3) { animation-delay: .12s; }
  .has-js .feature.in .feature-illus .pop:nth-child(4) { animation-delay: .17s; }
  .has-js .feature.in .feature-illus .pop:nth-child(5) { animation-delay: .22s; }
  .has-js .feature.in .feature-illus .pop:nth-child(6) { animation-delay: .27s; }
  .has-js .feature.in .feature-illus .pop:nth-child(7) { animation-delay: .32s; }
  .has-js .feature.in .feature-illus .pop:nth-child(8) { animation-delay: .37s; }
}

@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cardPop  { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bgPop    { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes popIn    { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes carDriveIn { from { transform: translateX(-165%); } to { transform: none; } }
@keyframes wheelRoll  { from { transform: rotate(0); } to { transform: rotate(2.75turn); } }

/* ============ RESPONSIVT ============ */
@media (max-width: 920px) {
  .hero { padding-bottom: 60px; }
  .hero-ground { display: none; } /* bilen vises kun på desktop, hvor der er plads til vejen */
  .hero .wrap, .hotel-teaser .wrap { grid-template-columns: 1fr; gap: 32px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .wizard-panel { padding: 20px 16px; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; text-align: center; }
  .hero { padding: 44px 0 60px; }
  .hero::before { width: 300px; height: 300px; right: -120px; top: -120px; }
  .section { padding: 60px 0; }
  .book-card { box-shadow: 6px 6px 0 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
