:root {
  --bg: #eff1ed;
  --bg2: #f8f8f6;
  --card: #ffffff;
  --text: #1f2529;
  --muted: #5e666d;
  --line: #c9ced3;
  --accent: #f0b400; /* maskin-gul */
  --accent2: #2f4a5f;
  --shadow: 0 12px 28px rgba(31, 37, 41, 0.13);
  --radius: 16px;
  --radius2: 22px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(240, 180, 0, 0.3);
  --box-gap: 1rem; /* Forside-kilde: afstand mellem bokse/kort */
  --layout-gap: 1.2rem; /* Forside-kilde: afstand mellem kolonner/sektioner */
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  padding: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    'Noto Sans',
    'Liberation Sans',
    sans-serif;
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(255, 214, 92, 0.34), transparent 58%),
    radial-gradient(920px 580px at 90% -5%, rgba(171, 193, 210, 0.34), transparent 56%),
    linear-gradient(180deg, #fdfefe 0%, #eef1f4 52%, #f3eee2 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}
.text-link {
  color: var(--accent2);
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  outline: none;
  box-shadow: var(--focus);
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(151, 159, 166, 0.38);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 240px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(74, 92, 108, 0.35));
  box-shadow: 0 10px 24px rgba(93, 104, 112, 0.2);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand-tag {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -2px;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}
.nav-link {
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--text);
  border-color: rgba(151, 159, 166, 0.55);
  background: rgba(255, 255, 255, 0.84);
}
.nav-link.is-active {
  color: var(--text);
  border-color: rgba(240, 180, 0, 0.56);
  background: rgba(240, 180, 0, 0.16);
}

.header-cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(144, 151, 158, 0.64);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(33, 39, 44, 0.1);
  cursor: pointer;
  font-weight: 650;
}
.btn:focus {
  outline: none;
  box-shadow: var(--focus);
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #cf9200);
  color: #111;
  border-color: rgba(181, 129, 0, 0.5);
}
.btn-primary:hover {
  filter: brightness(1.03);
}
.btn-ghost {
  background: rgba(241, 244, 247, 0.92);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.96);
}
.btn-static {
  cursor: default;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(151, 159, 166, 0.6);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 10px;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(151, 159, 166, 0.38);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(840px 520px at 10% 20%, rgba(255, 208, 74, 0.36), transparent 60%),
    radial-gradient(760px 520px at 85% 8%, rgba(161, 186, 207, 0.32), transparent 55%),
    linear-gradient(180deg, rgba(252, 253, 250, 0.94), rgba(234, 238, 242, 1));
  transform: scale(1.05);
}
.hero-inner {
  position: relative;
  padding: 3.2rem 0 2.4rem;
}
.pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(240, 180, 0, 0.5);
  background: rgba(240, 180, 0, 0.18);
  color: #6b5000;
  border-radius: 999px;
  font-weight: 650;
  margin: 0 0 1rem 0;
}
h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.8rem 0;
}
h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin: 0 0 0.7rem 0;
}
h3 {
  margin: 0 0 0.5rem 0;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.cta-row-tight {
  margin-top: 0.9rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--box-gap);
  margin-top: 1.5rem;
}
.hero-cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(154, 162, 169, 0.55);
  border-radius: var(--radius2);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.muted {
  color: var(--muted);
}
.tiny-note {
  color: var(--muted);
  margin-top: 1.2rem;
  font-size: 0.95rem;
}
.status-note {
  margin-top: 1.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 180, 0, 0.52);
  border-left-width: 5px;
  background: rgba(255, 241, 191, 0.55);
  color: #5a4300;
  font-weight: 650;
}
span[data-vat-note] {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(47, 74, 95, 0.09);
  color: #324554;
  font-size: 0.92rem;
}
p[data-vat-note] {
  display: block;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(47, 74, 95, 0.09);
  color: #324554;
  font-size: 0.92rem;
}

/* Frontpage slider */
.machine-slider {
  margin-top: 1rem;
}
.machine-slider-track {
  position: relative;
  height: clamp(420px, 52vw, 520px);
}
.machine-slide {
  display: none;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius2);
  padding: 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  align-items: stretch;
}
.machine-slide.is-active {
  display: grid;
}
.machine-slide-media {
  border-radius: var(--radius2);
  border: 1px dashed rgba(154, 162, 169, 0.72);
  background: linear-gradient(160deg, rgba(243, 246, 248, 0.95), rgba(255, 248, 224, 0.8));
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  padding: 1rem;
}
.machine-slide-media.has-image,
.media-placeholder.has-image {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: rgba(243, 246, 248, 0.9);
}
.machine-slide-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.machine-slide-title-link {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.machine-slide-title-link:hover {
  text-decoration: underline;
}
.machine-slide-price-box {
  margin: 0.2rem 0 0.9rem;
}
.machine-slide-usage-title {
  margin: 0 0 0.3rem;
}
.machine-slide-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 0;
}
.machine-slide-body h3 {
  margin-top: 0;
}
.machine-slide-specs {
  margin: 0.35rem 0 0.9rem;
}
.machine-slide-specs li {
  margin: 0.35rem 0;
}
.machine-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.slider-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}
.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(154, 162, 169, 0.72);
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
  cursor: pointer;
}
.slider-dot.is-active {
  background: var(--accent);
  border-color: rgba(181, 129, 0, 0.5);
}
.slider-dot:focus {
  outline: none;
  box-shadow: var(--focus);
}

.section {
  padding: 2.4rem 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(237, 241, 245, 0.9), rgba(248, 249, 247, 0.66));
  border-block: 1px solid rgba(151, 159, 166, 0.4);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--layout-gap);
}
.info-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(154, 162, 169, 0.56);
  border-radius: var(--radius2);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.inline-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.badge {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 162, 169, 0.54);
  background: rgba(247, 249, 251, 0.92);
  color: var(--muted);
}

/* Lists */
.checklist,
.bullet {
  padding-left: 1.1rem;
}
.checklist li {
  margin: 0.4rem 0;
}
.checklist li::marker {
  color: var(--accent);
}
.bullet li {
  margin: 0.35rem 0;
}
.facts {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(254, 254, 252, 0.94);
  border: 1px solid rgba(154, 162, 169, 0.5);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 700;
}

.faq details {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0.7rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-body {
  padding-top: 0.6rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(151, 159, 166, 0.38);
  padding: 1.6rem 0;
  background: rgba(241, 244, 246, 0.9);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.6rem;
  align-items: start;
}
.footer-contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 1.2rem;
  justify-content: flex-end;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-group-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.footer-nav-groups a {
  text-decoration: none;
  color: var(--muted);
}
.footer-nav-groups a:hover {
  color: var(--text);
}

/* Pages layout */
.prose {
  max-width: 78ch;
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--layout-gap);
  margin-top: 1rem;
}
.sidebar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius2);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 92px;
}
.sidebar-title {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.side-link {
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
}
.side-link:hover {
  color: var(--text);
  border-color: rgba(151, 159, 166, 0.55);
  background: rgba(255, 255, 255, 0.84);
}
.side-link.is-active {
  color: var(--text);
  border-color: rgba(240, 180, 0, 0.56);
  background: rgba(240, 180, 0, 0.16);
}

.product {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--layout-gap);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius2);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.machine-list > .product[id] {
  scroll-margin-top: 110px;
}
.machine-list {
  display: grid;
  gap: var(--box-gap);
  margin-bottom: 1rem;
}
.page-bottom-gap {
  margin-bottom: 1rem;
}
.media-placeholder {
  border-radius: var(--radius2);
  border: 1px dashed rgba(154, 162, 169, 0.72);
  background: rgba(243, 246, 248, 0.9);
  padding: 1rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.machine-photo {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.price-box {
  border-radius: var(--radius2);
  border: 1px solid rgba(154, 162, 169, 0.54);
  background: rgba(252, 253, 251, 0.94);
  padding: 1rem;
  margin: 0.7rem 0 1rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(151, 159, 166, 0.44);
}
.price-row:last-child {
  border-bottom: none;
}
.machine-detail-note {
  margin: 0.95rem 0;
}
.machine-detail-note h3 {
  margin: 0 0 0.5rem;
}
.machine-detail-note .bullet {
  margin: 0.35rem 0 0.9rem;
}

/* Contact */
.contact-cards {
  display: grid;
  gap: var(--box-gap);
  margin-top: 1rem;
}
.contact-layout {
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius2);
  padding: 0.9rem 1rem;
}
.contact-card:hover {
  border-color: rgba(240, 180, 0, 0.56);
}
.contact-card-static {
  cursor: default;
}
.contact-card-static:hover {
  border-color: rgba(154, 162, 169, 0.54);
}
.contact-icon {
  font-size: 1.3rem;
}
.form-wrap {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(154, 162, 169, 0.54);
  border-radius: var(--radius2);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.3rem;
}
.field-help {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.field input:not([type='checkbox']):not([type='radio']),
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(154, 162, 169, 0.56);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}
.field input:not([type='checkbox']):not([type='radio']):focus,
.field textarea:focus {
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(240, 180, 0, 0.56);
}
.date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.date-range-item label {
  margin-bottom: 0.25rem;
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
}
.check input {
  width: auto;
  margin: 0;
}
.check-main {
  font-weight: 650;
  color: var(--text);
}
.check-sub {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}
.check-sub a {
  color: inherit;
  text-decoration: underline;
}
.check-sub a:hover {
  color: var(--text);
}
.hp {
  display: none;
}
.callout {
  margin-top: 1.4rem;
  border-radius: var(--radius2);
  border: 1px solid rgba(240, 180, 0, 0.42);
  background: rgba(255, 238, 180, 0.5);
  padding: 1rem;
}
.lejevilkaar-content {
  min-height: clamp(760px, 70vh, 980px);
}
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 37, 41, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.success-overlay-card {
  width: min(520px, 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(240, 180, 0, 0.56);
  background: rgba(255, 255, 253, 0.98);
  box-shadow: 0 16px 34px rgba(33, 39, 44, 0.26);
  padding: 1rem 1.1rem;
}
.success-overlay-card h3 {
  margin-bottom: 0.3rem;
}
.success-overlay-card p {
  margin: 0;
  color: var(--muted);
}
.image-preview-card {
  width: min(980px, 100%);
  padding: 0.75rem;
}
.image-preview-close {
  margin-left: auto;
}
.image-preview-figure {
  margin: 0.55rem 0 0;
}
.image-preview-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(154, 162, 169, 0.54);
  background: rgba(255, 255, 255, 0.98);
}
.image-preview-caption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  padding: 1rem;
  z-index: 100;
}
.cookie-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 253, 0.97);
  border: 1px solid rgba(154, 162, 169, 0.56);
  border-radius: var(--radius2);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 70px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid rgba(154, 162, 169, 0.58);
    border-radius: var(--radius2);
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero-cards {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .machine-slide {
    grid-template-columns: 1fr;
  }
  .machine-slider-track {
    height: 620px;
  }
  .machine-slide-media {
    min-height: 190px;
  }
  .machine-slide-image {
    min-height: 190px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav-groups {
    justify-content: flex-start;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    top: auto;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .date-range {
    grid-template-columns: 1fr;
  }
}
