/* 3tow Biler – fælles styling for alle sider */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1b1b1b;
  --dark: #212121;
  --dark-2: #2c2f31;
  --dark-3: #30363c;
  --blue: #43AEFF;
  --blue-dark: #1E8FE0;
  --green: #0AE979;
  --light: #f2f2f2;
  --mist: #eaeff2;
  --white: #ffffff;
  --text: #1b1b1b;
  --muted: #5e6266;
  --line: #dfe3e6;
  --radius: 18px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: 'Oswald', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[data-t] { white-space: pre-line; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-light { background: var(--light); }
.bg-mist { background: var(--mist); }
.bg-white { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.bg-light .eyebrow, .bg-mist .eyebrow, .bg-white .eyebrow { color: var(--blue-dark); }

.h1, .h2, .h3 { font-family: var(--head); text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; font-weight: 600; }
.h1 { font-size: clamp(44px, 7.4vw, 104px); }
.h2 { font-size: clamp(32px, 4.4vw, 58px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 58ch; }
.bg-dark .lead, .bg-ink .lead { color: rgba(255,255,255,.72); }
.accent { color: var(--blue); }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: #6cc0ff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); }
.arrow::after { content: '→'; font-size: 16px; letter-spacing: 0; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background .3s, box-shadow .3s, height .3s;
}
.topbar {
  background: var(--blue); color: var(--ink);
  font-size: 13px; font-weight: 500; text-align: center; padding: 7px 16px;
}
.site-header.solid .topbar { display: none; }
.nav { display: flex; align-items: center; gap: 28px; height: 84px; }
.site-header.solid { background: rgba(27,27,27,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.site-header.solid .nav { height: 70px; }
.logo { display: block; color: var(--white); }
.logo svg { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: .04em; opacity: .86; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--blue); }
.nav-phone { font-family: var(--head); font-size: 18px; letter-spacing: .04em; white-space: nowrap; }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--white);
  padding: 120px var(--gutter) 40px; flex-direction: column; gap: 6px;
}
.mobile-menu a { font-family: var(--head); font-size: 34px; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 24px; font-family: var(--body); font-size: 13px; border-bottom: 0; }
.menu-open .mobile-menu { display: flex; }
@media (max-width: 1080px) {
  .nav-links, .nav-phone { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
}
@media (max-width: 560px) { .nav-cta { display: none; } .burger { margin-left: auto; } }

/* Hero med slider */
.hero { position: relative; min-height: min(100vh, 920px); background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.slides { position: absolute; inset: 0; z-index: -1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease; }
.slide.active img { transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.82) 100%); }
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 160px; padding-bottom: 48px; width: 100%; }
.hero-text { display: none; max-width: 900px; }
.hero-text.active { display: block; animation: rise .9s ease both; }
.hero-text .h1 { margin: 18px 0 22px; }
.hero-text p { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.82); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-arrows { position: absolute; right: var(--gutter); top: 50%; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.15); color: var(--white); cursor: pointer; font-size: 18px;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.round-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.round-btn.light { border-color: var(--line); background: var(--white); color: var(--ink); }
.dots { display: flex; gap: 8px; margin-top: 40px; }
.dots button { width: 34px; height: 3px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s, width .3s; }
.dots button.active { background: var(--blue); width: 54px; }
.stats { border-top: 1px solid rgba(255,255,255,.14); background: rgba(10,10,10,.35); backdrop-filter: blur(6px); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.stat span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 14px; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .hero-arrows { display: none; }
}

/* Åbningstider + hurtigsøgning */
.quickbar { background: var(--mist); padding: clamp(20px, 2.6vw, 32px) 0; position: relative; z-index: 2; }
.quickbar .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.open-now { display: flex; align-items: center; gap: 16px; padding-right: 40px; border-right: 1px solid var(--line); }
.open-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(10,233,121,.18); flex: none; }
.open-dot.closed { background: #e5484d; box-shadow: 0 0 0 6px rgba(229,72,77,.15); }
.open-now small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.open-now strong { font-family: var(--head); font-size: 22px; font-weight: 500; text-transform: uppercase; }
.open-now a { font-size: 12px; color: var(--blue-dark); }
.search { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; }
.field { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.field label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field select, .field input { border: 0; background: none; outline: none; font-weight: 500; font-size: 15px; padding: 2px 0; width: 100%; }
.search .btn { border-radius: 12px; height: 100%; }
@media (max-width: 960px) {
  .quickbar .wrap { grid-template-columns: 1fr; gap: 18px; }
  .open-now { border-right: 0; padding-right: 0; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; min-height: 52px; }
}

/* Tre billedfliser */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--dark); color: var(--white); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); pointer-events: none; }
.tile-label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile-label b { font-family: var(--head); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; text-transform: uppercase; line-height: 1; }
.tile-label span { font-size: 13px; color: rgba(255,255,255,.75); }
.tile-go { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .25s; }
.tile:hover .tile-go { transform: rotate(-45deg); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 10; } }

/* Om os */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about .h2 { margin: 18px 0 24px; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; left: 22px; bottom: 22px; background: var(--blue); color: var(--ink); border-radius: 14px; padding: 16px 20px; }
.about-badge b { font-family: var(--head); font-size: 44px; line-height: 1; display: block; }
.about-badge span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 32px 0 36px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: rgba(10,233,121,.16); color: var(--green); display: grid; place-items: center; font-size: 13px; flex: none; margin-top: 1px; }
.purpose { margin-top: clamp(48px, 6vw, 90px); padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.purpose small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.purpose p { font-family: var(--head); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.25; font-weight: 400; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 11; }
  .checks { grid-template-columns: 1fr; }
  .purpose { grid-template-columns: 1fr; gap: 12px; }
}

/* Værksted-kort */
.workshop { background: var(--dark-2); padding: clamp(14px, 2vw, 28px); }
.workshop-card { max-width: var(--wrap); margin: 0 auto; background: var(--light); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.workshop-text { padding: clamp(32px, 5vw, 72px); }
.workshop-text .h2 { margin: 16px 0 20px; }
.workshop-text ul { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }
.workshop-text li { display: flex; gap: 12px; font-weight: 500; }
.workshop-text li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; margin-top: 1px; }
.workshop-media { position: relative; min-height: 420px; }
.workshop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workshop-media .tag { position: absolute; left: 20px; bottom: 20px; background: rgba(27,27,27,.8); color: var(--white); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 860px) { .workshop-card { grid-template-columns: 1fr; } .workshop-media { min-height: 280px; order: -1; } }

/* Proces */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 30px 26px 34px; position: relative; counter-increment: step; transition: border-color .25s, transform .25s; }
.step:hover { border-color: var(--blue); transform: translateY(-3px); }
.step::before { content: '0' counter(step); font-family: var(--head); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(67,174,255,.7); display: block; margin-bottom: 26px; }
.step h3 { font-family: var(--head); text-transform: uppercase; font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.66); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Bilkort */
.car-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.car-rail::-webkit-scrollbar { display: none; }
.car-rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .car-rail { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 800px) { .car-rail { grid-auto-columns: calc((100% - 18px) / 1.6); } }
@media (max-width: 520px) { .car-rail { grid-auto-columns: 86%; } }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.car {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; position: relative;
}
.car:hover { box-shadow: 0 18px 40px rgba(16,20,24,.12); transform: translateY(-3px); }
.car-media { position: relative; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car:hover .car-media img { transform: scale(1.04); }
.car-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--white); }
.badge.el { background: var(--green); color: var(--ink); }
.badge.new { background: var(--blue); color: var(--ink); }
.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-title { font-family: var(--head); font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.car-variant { font-size: 13px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.car-specs small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.car-specs b { font-size: 14px; font-weight: 600; }
.car-price { margin-top: auto; display: flex; justify-content: space-between; align-items: end; }
.car-price b { font-family: var(--head); font-size: 26px; font-weight: 600; line-height: 1; }
.car-price small { font-size: 12px; color: var(--muted); }
.car-price .go { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.car:hover .go { background: var(--blue); color: var(--ink); }
.rail-nav { display: flex; gap: 10px; align-items: center; }
.rail-nav .btn { white-space: nowrap; }
@media (max-width: 560px) { .rail-nav .round-btn { display: none; } }

/* Finansiering */
.finance { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.fin-card { background: var(--white); border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.fin-card.featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fin-card h3 { font-family: var(--head); text-transform: uppercase; font-size: 28px; font-weight: 600; margin: 14px 0 10px; }
.fin-card .big { font-family: var(--head); font-size: 54px; line-height: 1; color: var(--blue-dark); margin: 6px 0 4px; }
.fin-card.featured .big { color: var(--blue); }
.fin-card p { color: var(--muted); font-size: 15px; }
.fin-card.featured p { color: rgba(255,255,255,.7); }
.fin-card .btn { margin-top: 24px; }
@media (max-width: 960px) { .finance { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.person-photo { aspect-ratio: 1 / 1; background: var(--dark); display: grid; place-items: center; color: var(--blue); font-family: var(--head); font-size: 64px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-info { padding: 18px 20px 22px; }
.person-info b { font-family: var(--head); font-size: 22px; text-transform: uppercase; font-weight: 600; display: block; }
.person-info span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); font-weight: 600; }
.person-info a { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.person-info a + a { margin-top: 2px; }
.person-info a:hover { color: var(--ink); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }

/* Første skridt */
.firststep { text-align: center; }
.firststep .h1 { font-size: clamp(40px, 6vw, 88px); max-width: 15ch; margin: 18px auto 18px; }
.firststep p { color: var(--muted); }
.signatures { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; margin-top: 30px; }
.signatures span { font-family: 'Caveat', cursive; font-size: clamp(28px, 3vw, 40px); color: var(--ink); opacity: .75; transform: rotate(-4deg); }

/* Kontakt-CTA */
.cta { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); }
.cta-text { padding: clamp(48px, 7vw, 110px) var(--gutter); max-width: 720px; margin-left: auto; width: 100%; }
.cta-text .h1 { font-size: clamp(40px, 5.4vw, 80px); margin: 16px 0 28px; }
.cta-text .h1 em { font-style: normal; color: var(--blue-dark); }
.cta-media { position: relative; min-height: 380px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta-media { min-height: 260px; } }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(56px, 7vw, 96px) 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 40px; }
.footer .logo svg { height: 28px; margin-bottom: 22px; }
.footer h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; font-weight: 600; }
.footer a:hover { color: var(--white); }
.footer-links { list-style: none; display: grid; gap: 8px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.hours dd { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.hours .today, .hours .today + dd { color: var(--blue); font-weight: 600; }
.footer-note { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 20px; max-width: 34ch; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-bottom a { margin-left: 18px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Underside-hero (biler.html) */
.page-hero { background: var(--ink); color: var(--white); padding: 170px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(67,174,255,.22), transparent 65%); }
.page-hero .h1 { margin: 16px 0 14px; position: relative; }
.page-hero p { color: rgba(255,255,255,.7); position: relative; }
.filterbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 70px; z-index: 10; }
.filterbar .wrap { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.filterbar .field { background: var(--light); border-color: transparent; }
.result-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 10px; }
.result-line b { color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
@media (max-width: 860px) { .filterbar { position: static; } .filterbar .wrap { grid-template-columns: 1fr 1fr; } .filterbar .field:first-child { grid-column: 1 / -1; } }

/* Fade-in ved scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide img, .hero-text.active { transition: none; animation: none; }
}

/* Cookie-samtykke */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 900; width: min(420px, calc(100vw - 32px));
  background: var(--white); color: var(--ink); border-radius: 16px; padding: 20px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28); border: 1px solid var(--line); font-size: 14px;
}
.cookie-banner b { font-family: var(--head); text-transform: uppercase; font-size: 20px; font-weight: 600; }
.cookie-banner p { color: var(--muted); margin: 6px 0 16px; }
.cookie-banner p a { color: var(--blue-dark); text-decoration: underline; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 0 12px; font-size: 12px; }
.has-test-banner .cookie-banner { bottom: 44px; }

/* ===== Redigeringstilstand (kun synlig for 3tow-medarbejdere) ===== */
.editbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  background: #111; color: #fff; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.35);
  font-size: 13px; max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center;
}
.editbar .who { color: rgba(255,255,255,.6); padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.editbar button, .editbar a.eb {
  border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
  background: rgba(255,255,255,.1); color: #fff; white-space: nowrap;
}
.editbar button:hover, .editbar a.eb:hover { background: rgba(255,255,255,.18); }
.editbar button:disabled { opacity: .4; cursor: default; }
.editbar .primary { background: var(--blue); color: var(--ink); }
.editbar .primary:hover { background: #6cc0ff; }
.editbar .toggle { display: flex; align-items: center; gap: 10px; }
.editbar .toggle i { width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; transition: background .2s; }
.editbar .toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.editing .editbar .toggle i { background: var(--green); }
.editing .editbar .toggle i::after { transform: translateX(14px); }
.editbar .status { color: var(--green); font-size: 12px; padding: 0 4px; }
.editbar .status.warn { color: #ffd966; }
.test-banner { background: #ffd966; color: var(--ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; }
.has-test-banner .editbar { bottom: 44px; }

.editing [data-t] { outline: 1.5px dashed rgba(67,174,255,.7); outline-offset: 3px; border-radius: 3px; cursor: text; min-width: 1em; }
.editing [data-t]:hover { outline-color: var(--blue); background: rgba(67,174,255,.08); }
.editing [data-t]:focus { outline: 2px solid var(--blue); background: rgba(67,174,255,.12); }
.editing [data-t].changed { outline-color: var(--green); }
.img-edit {
  position: absolute; top: 12px; right: 12px; z-index: 5; border: 0; cursor: pointer;
  background: var(--blue); color: var(--ink); font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.item-tools { position: absolute; top: 10px; right: 10px; z-index: 6; display: flex; gap: 6px; }
.item-tools button { border: 0; cursor: pointer; font-weight: 700; font-size: 12px; padding: 7px 11px; border-radius: 999px; background: var(--blue); color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.item-tools button.del { background: #e5484d; color: #fff; }
.add-item {
  border: 2px dashed var(--blue); border-radius: var(--radius); background: rgba(67,174,255,.06); color: var(--blue-dark);
  font-weight: 700; font-size: 15px; cursor: pointer; min-height: 220px; display: grid; place-items: center;
}
.bg-dark .add-item { color: var(--blue); }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1100; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; color: var(--ink); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal header { padding: 20px 24px 6px; display: flex; justify-content: space-between; align-items: center; }
.modal header h3 { font-family: var(--head); text-transform: uppercase; font-size: 24px; font-weight: 600; }
.modal .x { border: 0; background: none; font-size: 26px; cursor: pointer; line-height: 1; color: var(--muted); }
.modal form { padding: 10px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .f { display: flex; flex-direction: column; gap: 4px; }
.modal .f.wide { grid-column: 1 / -1; }
.modal .f > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.modal input[type=text], .modal input[type=number], .modal input[type=url], .modal input[type=email], .modal select, .modal textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; width: 100%; background: #fff;
}
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.modal .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.modal .imgpick { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.modal .imgpick img, .modal .imgpick .ph { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.modal .imgpick .row { display: flex; gap: 8px; }
.modal .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal .btn { min-height: 42px; font-size: 12px; }
.modal .hint { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.modal .versions { list-style: none; padding: 6px 24px 24px; display: grid; gap: 8px; }
.modal .versions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.modal .versions small { color: var(--muted); display: block; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.toast.err { background: #b42318; }
