/* Urbaks Biler – v6. Bygget op om logoet: sort/hvid, fed kursiv versaltekst og grønne striber. */

:root {
  --sort: #0e0f10;
  --hvid: #ffffff;
  --flade: #f1f1ee;
  --kant: #dcddd8;
  --tekst: #141516;
  --daempet: #575c60;
  --lys-tekst: #c4c8cb;
  --groen: #22a447;        /* logoets grøn – flader, striber, knapper */
  --groen-tekst: #157a37;  /* grøn tekst på hvid (kontrast ≥ 4.5:1) */
  --groen-dyb: #0f532a;    /* lånebil-sektionen */
  --bredde: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--tekst); background: var(--hvid); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--groen-tekst); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
address { font-style: normal; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--bredde); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spring { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--hvid); padding: 10px 14px; }
.spring:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--groen); outline-offset: 3px; }

.ikon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-logo { width: 1.4em; height: 1.4em; flex: none; }

/* Display-typografi: som logoet – fed, kursiv, versaler */
.stor-titel, .hero__titel, .aar__tal, .kontakt__tlf, .baand, .ydelse__nr, .partner h2 {
  font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
}
.stor-titel { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; margin-bottom: .45em; }
.lead { font-size: 1.15rem; color: var(--daempet); max-width: 34em; }

/* ---------- knapper og links */
.knap {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.3em; border: 2px solid transparent; border-radius: 3px;
  font: inherit; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.knap:hover { transform: translateY(-2px); }
.knap--stor { padding: .9em 1.5em; font-size: 1rem; }
.knap--groen { background: var(--groen); color: var(--sort); }
.knap--groen:hover { background: #2bbd55; }
.knap--hvid { background: var(--hvid); color: var(--groen-dyb); }
.knap--hvid:hover { background: #e8f5ec; }
.knap--kant { background: transparent; color: var(--hvid); border-color: rgba(255, 255, 255, .55); }
.knap--kant:hover { border-color: var(--hvid); background: rgba(255, 255, 255, .08); }

.tekstlink { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--groen-tekst); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.tekstlink:hover { color: var(--tekst); }
.fb-link { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; color: var(--hvid); text-decoration: none; }
.fb-link:hover { text-decoration: underline; }
.fb-link--moerk { color: var(--tekst); }

/* Logoets to grønne streger omkring en lille tekst */
.striber { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hvid); }
.striber::before, .striber::after { content: ""; flex: none; height: 4px; width: 44px; border-radius: 2px; background: var(--groen); transform-origin: right; animation: streg .8s .2s ease-out both; }
.striber::after { transform-origin: left; }
@keyframes streg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 480px) {
  .striber { gap: 10px; font-size: .7rem; letter-spacing: .12em; white-space: nowrap; }
  .striber::before, .striber::after { width: 26px; }
}

/* ---------- sidehoved */
.top { position: sticky; top: 0; z-index: 50; background: var(--sort); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 88px; transition: height .3s ease; }
.logo img { height: 68px; width: auto; transition: height .3s ease; }
.hovednav { margin-left: auto; }
.hovednav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.hovednav a:not(.knap) { color: var(--hvid); text-decoration: none; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: .88rem; letter-spacing: .04em; padding: 6px 0; }
.hovednav a:not(.knap):hover, .hovednav a.aktiv:not(.knap) { color: var(--groen); box-shadow: inset 0 -3px 0 var(--groen); }
.hovednav__ring { display: none; }
.kun-lille { display: none; }
.menuknap { display: none; background: none; border: 0; color: var(--hvid); padding: 8px; cursor: pointer; }
.menuknap .ikon { width: 28px; height: 28px; }
.ikon--luk { display: none; }

.forside .top { position: fixed; inset: 0 0 auto; background: transparent; transition: background-color .35s, box-shadow .35s; }
.forside .top.top--rullet, .menu-aaben .forside .top { background: rgba(14, 15, 16, .95); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
@supports (backdrop-filter: blur(1px)) { .forside .top.top--rullet { background: rgba(14, 15, 16, .84); backdrop-filter: blur(12px); } }
@media (min-width: 960px) {
  .forside .top--rullet .top__inner { height: 70px; }
  .forside .top--rullet .logo img { height: 54px; }
}
@media (max-width: 959px) {
  .top__inner { gap: 12px; height: 68px; }
  .logo img { height: 54px; }
  .top__ring { margin-left: auto; }
  .menuknap { display: block; }
  .hovednav { display: none; position: fixed; inset: 68px 0 0; background: var(--sort); padding: 24px 20px; overflow-y: auto; }
  .menu-aaben .hovednav { display: block; }
  .menu-aaben .ikon--menu { display: none; }
  .menu-aaben .ikon--luk { display: block; }
  .hovednav ul { flex-direction: column; gap: 0; margin-bottom: 24px; }
  .hovednav li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .hovednav a:not(.knap) { display: block; padding: 16px 0; font-size: 1.3rem; box-shadow: none !important; }
  .hovednav__ring { display: flex; width: 100%; }
}
@media (max-width: 480px) { .kun-stor { display: none; } .kun-lille { display: inline; } }

/* ---------- hero */
.hero { position: relative; background: var(--sort); color: var(--hvid); overflow: hidden; }
.hero__foto { position: absolute; inset: 0; overflow: hidden; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; animation: hero-zoom 14s ease-out both; }
.hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 16, .95) 0%, rgba(14, 15, 16, .8) 38%, rgba(14, 15, 16, .15) 75%), linear-gradient(0deg, rgba(14, 15, 16, .7) 0%, transparent 35%); }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__inner { position: relative; min-height: min(92vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 130px; padding-bottom: 40px; }
.hero__titel { font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .92; max-width: 9.5em; margin-bottom: .3em; animation: ind .8s ease-out both; }
.hero__lead { font-size: 1.2rem; color: #dadddf; max-width: 31em; animation: ind .8s .1s ease-out both; }
.hero__knapper { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 56px; animation: ind .8s .2s ease-out both; }
.hero__fakta { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.hero__fakta li:not(:last-child)::after { content: "/"; margin: 0 16px; color: var(--groen); }
@keyframes ind { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .hero__foto::after { background: linear-gradient(0deg, rgba(14, 15, 16, .97) 0%, rgba(14, 15, 16, .85) 45%, rgba(14, 15, 16, .25) 100%); }
  .hero__foto img { object-position: 45% 25%; }
  .hero__inner { min-height: 640px; padding-top: 220px; }
}

/* ---------- kørende bånd */
.baand { overflow: hidden; background: var(--groen); color: var(--sort); font-size: clamp(1.1rem, 2.2vw, 1.5rem); padding: 14px 0; }
.baand__spor { display: flex; width: max-content; animation: koer 45s linear infinite; }
.baand span { display: inline-flex; align-items: center; white-space: nowrap; }
.baand span::after { content: ""; width: 34px; height: 4px; margin: 0 26px; background: var(--sort); transform: skewX(-20deg); }
.baand:hover .baand__spor { animation-play-state: paused; }
@keyframes koer { to { transform: translateX(-50%); } }

/* ---------- sektioner */
.sektion { padding: 100px 0; }
.sektion--sort { background: var(--sort); color: var(--hvid); }
.sektion--flade { background: var(--flade); }
.sektion--groen { background: var(--groen-dyb); color: var(--hvid); }
@media (max-width: 720px) { .sektion { padding: 64px 0; } }

/* ---------- ydelser: nummereret liste, som et skilt på værkstedsvæggen */
.vaerksted { display: grid; gap: 48px; }
.ydelser { margin: 36px 0 28px; padding: 0; list-style: none; border-top: 3px solid var(--tekst); }
.ydelse { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--kant); }
.ydelse::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--groen); transition: width .35s ease; }
.ydelse:hover::before { width: 100%; }
.ydelse__nr { font-size: 1.9rem; line-height: 1; color: var(--groen); }
.ydelse h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .2em; }
.ydelse p { margin: 0; color: var(--daempet); }
.priser { margin: 14px 0 0; max-width: 420px; }
.priser div { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.priser dd { margin: 0 0 0 auto; font-weight: 800; font-style: italic; white-space: nowrap; background: var(--sort); color: var(--hvid); padding: 2px 10px; transform: skewX(-8deg); }
.ydelser__slut { font-weight: 700; }
.ydelser__slut a { font-weight: 800; }
.vaerksted__foto { overflow: hidden; }
.vaerksted__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s ease; }
.vaerksted__foto:hover img { transform: scale(1.04); }
@media (min-width: 960px) {
  .vaerksted { grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: start; }
  .vaerksted__foto { position: sticky; top: 96px; margin-top: 12px; }
}

/* ---------- om os med "20 års erfaring" */
.om { display: grid; gap: 48px; align-items: center; }
.aar { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.aar__tal { font-size: clamp(5.5rem, 13vw, 9rem); line-height: .8; color: var(--groen); min-width: 1.15em; }
.aar__tekst { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; }
.om__tekst p:not(.aar) { color: var(--lys-tekst); max-width: 34em; }
.om__tekst .fb-link { margin-top: 8px; }
.om__foto { overflow: hidden; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.om__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galleri { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px; }
.galleri figure { overflow: hidden; }
.galleri img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.35); transition: transform .7s ease, filter .4s; }
.galleri figure:hover img { transform: scale(1.07); filter: none; }
@media (min-width: 960px) { .om { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
@media (max-width: 700px) { .galleri { grid-template-columns: 1fr 1fr; margin-top: 56px; } }

/* ---------- lånebil: foto som et billede sat op på væggen */
.laanebil { display: grid; gap: 48px; align-items: center; }
.laanebil .lead { color: #d3e6da; margin-bottom: 1.6em; }
.laanebil__foto { justify-self: center; max-width: 400px; background: var(--hvid); padding: 12px 12px 44px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); transform: rotate(-3deg); transition: transform .5s ease, opacity .7s ease-out; }
.laanebil__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.laanebil__foto:hover { transform: rotate(0) scale(1.02); }
@media (min-width: 900px) { .laanebil { grid-template-columns: 440px 1fr; gap: 88px; } }

/* ---------- CarSpot og sponsor */
.samarbejde { display: grid; gap: 56px; }
.partner { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.partner h2 { font-size: 1.4rem; }
.partner p { color: var(--daempet); }
.partner__logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.partner__logo--sort { background: var(--sort); padding: 14px; }
.partner__logo img { width: 100%; height: auto; }
@media (min-width: 900px) { .samarbejde { grid-template-columns: 1fr 1fr; gap: 72px; } .partner { grid-template-columns: 140px 1fr; } }

/* ---------- kontakt */
.kontakt__grid { display: grid; gap: 48px; }
.kontakt__tlf { display: inline-block; font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; color: var(--tekst); text-decoration: none; margin: 4px 0 18px; padding-bottom: 6px; background: linear-gradient(var(--groen), var(--groen)) 0 100% / 0 6px no-repeat; transition: background-size .4s ease; }
.kontakt__tlf:hover { background-size: 100% 6px; }
.kontakt__note { color: var(--daempet); }
.kontakt__info h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--daempet); margin: 0 0 8px; }
.kontakt__info address, .tider { margin: 0 0 24px; }
.tider div { display: flex; gap: 12px; justify-content: space-between; max-width: 340px; padding: 6px 0; border-bottom: 1px solid var(--kant); }
.tider dd { margin: 0; font-weight: 800; }
.kontakt__links { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
@media (min-width: 960px) { .kontakt__grid { grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: end; } }

/* ---------- sidefod */
.fod { background: var(--sort); color: var(--lys-tekst); padding: 64px 0 24px; font-size: .95rem; border-top: 6px solid var(--groen); }
.fod a { color: var(--lys-tekst); text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.fod a:hover { color: var(--hvid); }
.fod h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hvid); margin-bottom: 1em; }
.fod ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fod__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fod__logo img { height: 96px; width: auto; margin-bottom: 14px; }
.fod__bund { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.fod__bund p { margin: 0; }

/* ---------- animationer ved scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.js [data-reveal].vist { opacity: 1; transform: none; }
.js .laanebil__foto[data-reveal] { transform: translateY(40px) rotate(-9deg); }
.js .laanebil__foto[data-reveal].vist { transform: rotate(-3deg); }
.js .laanebil__foto[data-reveal].vist:hover { transform: rotate(0) scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
