:root {
  --primary-color: #222;
  --secondary-color: #444;
  --surface-color: #eee;
  --surface-strong: #f7f7f7;
  --text-color: #fff;
  --ink-color: #1c1c1c;
  --muted-color: #4a4a4a;
  --border-color: #cfcfcf;
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 18px rgba(0, 0, 0, 0.08);
  --max-width: 1240px;
  --header-height: 104px;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink-color);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
    linear-gradient(135deg, #f3f3f3 0%, #e7e7e7 50%, #f4f4f4 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header,
.hero,
.page-content,
.site-footer {
  width: 100%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding-top: 0;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 32px;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  height: 98px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-item.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 14px;
}

.nav-link,
.nav-submenu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #111;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.02rem;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.nav-link {
  gap: 10px;
}

.nav-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex: 0 0 auto;
}

.nav-link:hover,
.nav-submenu a:hover,
.nav-link.is-active,
.nav-item.is-active > .nav-link {
  background: #f2f2f2;
  border-color: #d9d9d9;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 250px;
  display: none;
  flex-direction: column;
  padding: 10px 8px 8px;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: var(--shadow-soft);
  z-index: 30;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  display: flex;
}

.nav-submenu a.is-active {
  background: #0f0f0f;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #d0d0d0;
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
}

.hero {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 0;
  align-items: stretch;
}

.hero:empty {
  display: none;
}

.hero-copy,
.hero-media,
.card,
.content-panel,
.info-card,
.machine-card,
.cta-panel {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.hero-copy {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(34, 34, 34, 0.96) 0%, rgba(68, 68, 68, 0.96) 100%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 255, 255, 0.04) 24px 25px);
  color: var(--text-color);
}

.hero-copy-contact {
  padding: 76px 72px;
}

.hero-copy-full {
  grid-column: 1 / -1;
}

.hero-media {
  min-height: 420px;
  overflow: hidden;
  background: #d7d7d7;
}

.hero-media-contact {
  min-height: 920px;
}

.hero-media-contact img {
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img[src*="logo-aulum.png"] {
  object-fit: contain;
  padding: 28px;
}

.section-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8d8d8;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.4rem;
}

p,
li {
  margin: 0;
  line-height: 1.7;
  color: var(--muted-color);
}

.hero-copy h1,
.hero-copy .hero-lead {
  color: var(--text-color);
}

.hero-lead {
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-copy-contact .hero-detail {
  max-width: 42ch;
  font-size: 1.12rem;
  line-height: 1.5;
}

.hero-contact-intro {
  margin-bottom: 24px;
  font-size: 1.2rem !important;
  line-height: 1.7 !important;
}

.hero-contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-contact-strong {
  font-size: 1.42rem;
  font-weight: 700;
  color: #fff;
}

.hero-contact-line {
  color: rgba(255, 255, 255, 0.94) !important;
}

.hero-actions,
.cta-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
}

.button.primary {
  background: var(--primary-color);
  color: var(--text-color);
}

.button.secondary {
  background: #fff;
  color: var(--primary-color);
  border-color: #bdbdbd;
}

.contact-pill {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
  border-radius: 18px !important;
}

.hero-actions:empty {
  display: none;
}

.button:hover,
.nav-link:hover,
.nav-submenu a:hover,
.footer-links a:hover,
.info-list a:hover,
.contact-list a:hover {
  filter: brightness(0.96);
}

.button:focus-visible,
.nav-link:focus-visible,
.nav-submenu a:focus-visible,
.nav-toggle:focus-visible,
.footer-links a:focus-visible,
.info-list a:focus-visible,
.contact-list a:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.page-content {
  padding: 0;
}

.page-content > * + * {
  margin-top: 0;
}

.section-block,
.about-section,
.info-band,
.contact-grid {
  display: grid;
  gap: 0;
}

.section-heading {
  margin-bottom: 24px;
  padding: 72px 32px 56px;
  text-align: center;
}

.section-block-no-title {
  padding-top: 40px;
}

.all-caps-heading {
  text-transform: uppercase;
  text-align: center;
}

.section-heading .section-label,
.content-panel .section-label,
.info-card .section-label {
  color: var(--secondary-color);
}

.content-panel,
.info-card {
  padding: 32px;
  background: var(--surface-strong);
}

.content-panel > * + *,
.info-card > * + * {
  margin-top: 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 32px 40px;
}

.services-grid {
  max-width: 980px;
  margin: 0 auto 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}

.cards-grid-plain {
  margin: 0 32px 40px;
}

.cards-grid > * {
  min-width: 0;
}

.card {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.services-grid .card {
  border-radius: 22px !important;
}

.cards-grid-plain .card,
.reference-card {
  border-radius: 18px !important;
}

.card-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.page-ydelser .card-body,
.page-referencer .card-body {
  min-height: 0;
}

.page-ydelser .cards-grid-plain .card-body {
  padding: 28px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-ydelser .cards-grid-plain h3 {
  font-size: 1.7rem;
}

.page-ydelser .cards-grid-plain p {
  font-size: 1.08rem;
  line-height: 1.8;
}

.service-card {
  cursor: pointer;
}

.card-meta {
  font-weight: 800;
  color: var(--secondary-color);
}

.about-section,
.contact-grid,
.info-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-section > *,
.contact-grid > *,
.info-band > *,
.home-intro-band > * {
  min-width: 0;
}

.home-logo-band {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 980px;
  padding: 72px 24px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.48));
  border: 0;
  box-shadow: none;
}

.home-logo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  opacity: 0.36;
  filter: saturate(0.8) contrast(0.88) brightness(0.9);
}

.home-logo-band > img:last-child {
  position: relative;
  z-index: 1;
  max-height: 920px;
  max-width: 1280px;
  width: 100%;
  object-fit: contain;
  transform: translateY(180px);
  filter: drop-shadow(0 18px 34px rgba(255, 255, 255, 0.5));
}

.hero-text-block + .hero-text-block {
  margin-top: 20px;
}

.hero-detail,
.hero-bullets li {
  color: var(--text-color);
}

.hero-detail + .hero-detail,
.hero-bullets {
  margin-top: 14px;
}

.hero-bullets {
  padding-left: 20px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 32px 40px;
}

.gallery-card {
  margin: 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-maskiner .machines-section,
.page-referencer .cards-grid,
.page-ydelser .cards-grid {
  padding-top: 40px;
}

.page-referencer .reference-card .card-body {
  display: none;
}

.reference-text-card .card-body {
  display: flex !important;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 30px 28px;
}

.reference-text-card .card-kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.reference-text-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.reference-text-card h3 {
  font-size: 1.65rem;
  line-height: 1.15;
}

.page-kontakt .hero {
  grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
}

.page-kontakt .hero-media img {
  object-fit: cover;
  object-position: center;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.home-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.95fr);
  gap: 48px;
  justify-content: center;
  align-items: center;
  padding: 120px 72px;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.96) 0%, rgba(68, 68, 68, 0.96) 100%);
  color: #fff;
  border: 0;
  box-shadow: none;
}

.home-intro-title,
.home-intro-side {
  max-width: 560px;
}

.home-intro-title {
  justify-self: end;
}

.home-intro-side {
  justify-self: start;
}

.home-intro-title p,
.home-intro-title h1,
.home-intro-side p {
  color: #fff;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.home-intro-title p {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.home-intro-title h1 {
  font-size: clamp(1.95rem, 3.8vw, 3.3rem);
  margin-bottom: 0;
  line-height: 1.15;
}

.home-intro-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.home-intro-side p {
  font-size: clamp(1.12rem, 1.4vw, 1.4rem);
  line-height: 1.9;
}

.home-experience-band {
  padding: 112px 72px;
  background: #3b3b3b;
  border: 0;
  box-shadow: none;
}

.home-experience-band h2,
.home-experience-band p {
  color: #fff;
}

.home-experience-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.home-experience-band h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.85rem);
}

.home-experience-copy p {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.9;
}

.home-experience-copy p + p {
  margin-top: 24px;
}

.about-copy-plain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 56px 48px;
  background: transparent;
}

.about-copy-plain p {
  font-size: 1.2rem;
  line-height: 2;
}

.about-media {
  min-height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.info-band {
  background: linear-gradient(180deg, #e1e1e1 0%, #ececec 100%);
  padding: 24px;
  border: 1px solid #d0d0d0;
  box-shadow: var(--shadow-card);
}

.info-list,
.contact-list {
  padding-left: 20px;
}

.info-list li + li,
.contact-list li + li {
  margin-top: 10px;
}

.machines-list {
  display: grid;
  gap: 22px;
}

.machines-section {
  padding: 0 40px 40px;
}

.machines-list {
  max-width: 1180px;
  margin: 0 auto;
}

.machine-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0;
  background: #fff;
  overflow: hidden;
}

.machine-card .card-body {
  background: #fff;
  padding: 36px 42px;
}

.machine-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.cta-panel {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e4e4e4 100%);
}

.site-footer {
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px;
  background: #fff;
  color: #111;
  border-top: 1px solid #d8d8d8;
  box-shadow: none;
}

.footer-inner-dark {
  background: #3b3b3b;
  color: #fff;
  border-top: 1px solid #2e2e2e;
}

.footer-inner p,
.footer-inner a,
.footer-inner strong {
  color: #111;
}

.footer-inner-dark p,
.footer-inner-dark a,
.footer-inner-dark strong {
  color: #fff;
}

.footer-label {
  color: #555;
}

.footer-inner-dark .footer-label {
  color: #d3d3d3;
}

.footer-service-links {
  flex-direction: column;
  align-items: flex-start;
}

.footer-service-links a {
  font-weight: 700;
}

.reference-card {
  border-radius: 18px !important;
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    max-width: 760px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .home-intro-band {
    grid-template-columns: 1fr;
    padding: 72px 40px;
  }

  .home-intro-title,
  .home-intro-side {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-media {
    min-height: 360px;
  }

  .home-experience-band {
    padding: 80px 56px;
  }

  .home-experience-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-logo-band {
    min-height: 780px;
  }

  .home-logo-band > img:last-child {
    max-height: 720px;
    transform: translateY(128px);
  }
}

@media (max-width: 860px) {
  .page-kontakt .hero {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .nav-submenu a {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-submenu {
    position: static;
    display: flex;
    min-width: 100%;
    padding: 8px 0 8px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .about-section,
  .contact-grid,
  .info-band,
  .footer-inner,
  .machine-card,
  .cta-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .machine-card {
    grid-template-columns: 1fr;
  }

  .machines-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .page-content,
  .site-footer {
    width: 100%;
  }

  .header-inner {
    padding: 14px 16px;
  }

  .brand-logo {
    height: 58px;
  }

  .hero-copy,
  .content-panel,
  .info-card,
  .cta-panel {
    padding: 24px;
  }

  .hero-copy-contact {
    padding: 24px 20px;
  }

  .hero-copy-contact .hero-detail,
  .hero-contact-intro {
    max-width: 100%;
  }

  .hero-contact-intro {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
  }

  .hero-contact-details {
    padding: 20px 18px;
  }

  .hero-contact-strong {
    font-size: 1.12rem;
  }

  .hero-media-contact {
    min-height: 320px;
  }

  .hero-media-contact img {
    min-height: 320px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .home-intro-band,
  .home-experience-band,
  .home-logo-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-logo-band {
    min-height: 560px;
    padding-top: 32px;
    padding-bottom: 16px;
  }

  .home-logo-band > img:last-child {
    max-height: 520px;
    transform: translateY(68px);
  }

  .home-intro-band {
    gap: 18px;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .home-intro-title h1 {
    font-size: clamp(1.15rem, 6.2vw, 1.7rem);
    line-height: 1.2;
  }

  .home-intro-side p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .section-heading {
    padding: 56px 20px 44px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 20px 28px;
    width: 100%;
    max-width: 100%;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 20px 28px;
  }

  .services-grid {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-media {
    min-height: 280px;
  }

  .about-media img,
  .machine-card img {
    min-height: 220px;
  }

  .machine-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f2f2f2;
  }

  .machine-card .card-body {
    padding: 20px;
  }

  .machines-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading,
  .cards-grid,
  .about-copy-plain {
    padding-left: 20px;
    padding-right: 20px;
  }

  .all-caps-heading {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(1.1rem, 5.8vw, 1.45rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .services-grid .card,
  .services-grid .card-link {
    width: 100%;
    max-width: 100%;
  }

  .home-experience-band {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .home-experience-band h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .home-experience-copy p,
  .about-copy-plain p {
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .footer-inner {
    padding: 24px 20px;
  }
}
