/* Arno Häberlin GmbH — static site styles */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --color-green: #2f5233;
  --color-green-dark: #243f27;
  --color-anthracite: #2c3338;
  --color-neutral: #f2f3f4;
  --color-neutral-dark: #e3e5e7;
  --color-white: #ffffff;
  --color-accent: #0166b0;
  --color-accent-hover: #014f8a;
  --color-text: #1f2428;
  --color-muted: #5a6269;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 72rem;
  --header-height: 6.25rem;
  --radius: 0.25rem;
  --shadow: 0 2px 12px rgb(44 51 56 / 0.08);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-neutral);
}

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

a {
  color: var(--color-green);
}

a:hover {
  color: var(--color-green-dark);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-anthracite);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Overlay: frosted glass over hero; solid again when scrolled (JS: is-scrolled) */
.site-header--overlay:not(.is-scrolled) {
  background: rgb(20 28 32 / 0.28);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: none;
}

/* Split from :has() so scrolled state still works where :has() is unsupported */
.site-header--overlay.is-scrolled {
  background: var(--color-anthracite);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--overlay:has(.site-nav.is-open) {
  background: var(--color-anthracite);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Pull first hero under the transparent sticky header so it blends into the photo */
.site-header--overlay + main > .hero:first-child {
  margin-top: calc(var(--header-height, 100px) * -1);
  box-sizing: border-box;
}

/* Reserve header space so centred content / page titles sit below the nav */
.site-header--overlay + main > .hero--home:first-child {
  padding-top: var(--header-height, 100px);
}

.site-header--overlay + main > .hero--page:first-child {
  min-height: calc(14rem + var(--header-height, 100px));
}

/* Tall page heroes (title + highlight banner) need header clearance like the home hero */
.site-header--overlay + main > .hero--page.hero--with-highlight:first-child,
.site-header--overlay + main > .hero--page:first-child:has(.hero-highlight) {
  padding-top: var(--header-height, 100px);
  min-height: calc(22rem + var(--header-height, 100px));
  align-items: center;
}

/* FGL membership mark — sits beside the logo, not a full-width strip */
.header-badge {
  display: block;
  height: 1.65rem;
  width: auto;
  max-width: 11.5rem;
  flex-shrink: 0;
  order: 1;
}

@media (min-width: 900px) {
  .header-badge {
    height: 2.25rem;
    max-width: 15.5rem;
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
  flex-shrink: 0;
}

.logo-link img {
  height: 5rem;
  width: auto;
  display: block;
}

/* Desktop nav is visible from 900px; cap logo slightly below 1200 so nav stays one line */
@media (max-width: 1199px) and (min-width: 900px) {
  .logo-link img {
    height: 4.75rem;
  }
}

.logo-text {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
  max-width: 8rem;
  color: var(--color-anthracite);
}

.header-phone {
  margin-left: auto;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-accent);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-phone:hover {
  color: var(--color-accent-hover);
  background: rgb(1 102 176 / 0.12);
}

/* Icon chips (home, Instagram) — same chip treatment & height as text items */
.site-nav a.nav-icon {
  justify-content: center;
  /* Match text link padding so chip height aligns in Safari */
  box-sizing: border-box;
}

.site-nav a.nav-icon img,
.site-nav a.nav-icon svg {
  /* Sized to match text menu item optical weight (was reading small in Safari) */
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgb(255 255 255 / 0.65);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  min-height: 44px;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.0625rem 0.125rem;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item--has-sub {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.92);
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* Always-on dark chip so labels stay legible over the transparent hero header */
  background: rgb(20 28 32 / 0.45);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-white);
  background: rgb(20 28 32 / 0.72);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    order: 3;
  }

  .header-phone {
    display: none;
  }

  .header-badge {
    margin-left: auto;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    padding-top: 0.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }

  .nav-sub {
    padding: 0.15rem 0 0.35rem 0.75rem;
    margin-left: 0.5rem;
    border-left: 2px solid rgb(255 255 255 / 0.15);
  }

  .nav-sub a {
    font-size: 0.875rem;
    min-height: 40px;
    color: rgb(255 255 255 / 0.82);
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 2;
    flex: 1;
    min-width: 0;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }

  .site-nav > ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .nav-sub {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 0;
    min-width: 11.5rem;
    background: var(--color-anthracite);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.2rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 110;
  }

  .nav-item--has-sub:hover .nav-sub,
  .nav-item--has-sub:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-sub a {
    font-size: 0.8125rem;
    padding: 0.45rem 0.85rem;
    min-height: 36px;
  }

  .site-nav a {
    font-size: 0.8125rem;
    padding: 0.35rem 0.45rem;
    min-height: 36px;
  }
}

@media (min-width: 1280px) {
  .site-nav a {
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
  }
}

@media (min-width: 1728px) {
  .site-nav a {
    font-size: 0.9375rem;
    padding: 0.45rem 0.55rem;
  }
}

@media (min-width: 1600px) {
  .logo-text {
    display: none;
  }
}

main {
  min-height: 50vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--white {
  background: var(--color-white);
}

.section--green {
  background: var(--color-green);
  color: var(--color-white);
}

.section--green a {
  color: var(--color-white);
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-green-dark);
}

.hero--home {
  /* Explicit height (not only min-height): absolute slides take no flow space,
     so min-height alone can collapse to .hero-content on some reloads/browsers. */
  height: min(88vh, 820px);
  min-height: min(88vh, 820px);
  max-height: min(88vh, 820px);
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

@supports (height: 1svh) {
  .hero--home {
    height: min(88svh, 820px);
    min-height: min(88svh, 820px);
    max-height: min(88svh, 820px);
  }
}

@media (max-width: 767px) {
  .hero--home {
    height: min(80vh, 620px);
    min-height: min(80vh, 620px);
    max-height: min(80vh, 620px);
  }

  @supports (height: 1svh) {
    .hero--home {
      height: min(80svh, 620px);
      min-height: min(80svh, 620px);
      max-height: min(80svh, 620px);
    }
  }
}

.hero--page {
  min-height: 14rem;
  align-items: flex-end;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}

/* <picture> is not always a positioning box in Safari — force it */
.hero > picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* Home slideshow: stack slides; first picture stays visible without JS */
.hero--home > picture.hero-slide,
.hero--home .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero--home > picture.hero-slide.is-active,
.hero--home .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Progressive enhancement: without JS, single picture has no .is-active — keep it visible */
.hero--home > picture:only-of-type,
.hero--home:not(.hero--slideshow) > picture.hero-slide {
  opacity: 1;
}

.hero--home.hero--slideshow > picture.hero-slide:not(.is-active) {
  opacity: 0;
}

.hero--home.hero--slideshow > picture.hero-slide.is-active {
  opacity: 1;
}

.hero-slide picture,
.hero-slide img,
.hero--home > picture.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

/* Ken Burns: scale on img only (picture owns opacity crossfade). Restart via is-active toggle. */
@keyframes hero-ken-burns-in {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes hero-ken-burns-out {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero--home.hero--slideshow > picture.hero-slide.is-active:nth-of-type(odd) img {
  animation: hero-ken-burns-in 7.5s ease-out forwards;
  animation-play-state: var(--kb-state, running);
}

.hero--home.hero--slideshow > picture.hero-slide.is-active:nth-of-type(even) img {
  animation: hero-ken-burns-out 7.5s ease-out forwards;
  animation-play-state: var(--kb-state, running);
}

/* Play-state via inherited custom property — can't lose a specificity fight */
.hero--home.is-paused {
  --kb-state: paused;
}

.hero-pause {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius);
  background: rgb(20 28 32 / 0.55);
  color: var(--color-white);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: none;
}

.hero--slideshow .hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-pause:hover,
.hero-pause:focus-visible {
  background: rgb(20 28 32 / 0.78);
  border-color: rgb(255 255 255 / 0.85);
  outline: 2px solid rgb(255 255 255 / 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero--home > picture.hero-slide,
  .hero--home .hero-slide {
    transition: none;
  }

  /* Park Ken Burns on first frame (scale 1 / 1.06); no continuous zoom */
  .hero--home {
    --kb-state: paused;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(20 28 32 / 0.88) 0%,
    rgb(20 28 32 / 0.55) 45%,
    rgb(20 28 32 / 0.35) 100%
  );
}

.hero--page::after {
  background: linear-gradient(to top, rgb(36 63 39 / 0.92) 0%, rgb(36 63 39 / 0.45) 55%, rgb(36 63 39 / 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.hero-content--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
  color: var(--color-white);
  max-width: 18ch;
}

.hero--home h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 14ch;
  margin: 0 auto;
}

.hero-eyebrow,
.hero .lead {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  margin: 0 0 0.75rem;
  max-width: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.88);
}

/* Lead banner like the original Wix site — light blue plate, larger than body copy */
.hero-highlight {
  margin: 1.25rem auto 0;
  max-width: 46rem;
  padding: 0.95rem 1.35rem;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 0.18);
  text-align: center;
}

.text-highlight {
  display: inline;
  font-size: 1.35rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 0.12em 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-cta {
  margin: 1.5rem 0 0;
}

.hero--page .hero-content {
  padding: 2rem 1.25rem;
}

.hero--page h1 {
  max-width: none;
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--color-anthracite);
}

.section--green h1,
.section--green h2,
.section--green h3 {
  color: var(--color-white);
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.prose {
  max-width: 42rem;
}

.prose-wide {
  max-width: 52rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-green);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.stats-section {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

.stats-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(44 51 56 / 0.82);
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stats-section h2 {
  color: var(--color-white);
}

.stats-section .stat {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.15);
  backdrop-filter: blur(4px);
}

.stats-section .stat-value {
  color: var(--color-white);
}

.stats-section .stat-label {
  color: rgb(255 255 255 / 0.82);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-outline:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.anchor-nav a {
  padding: 0.5rem 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-dark);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-green);
}

.anchor-nav a:hover {
  border-color: var(--color-green);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split img,
.split picture {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.machine-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.machine-card img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.machine-card h3 {
  margin-top: 0;
}

.machine-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.partner-list {
  columns: 1;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 600px) {
  .partner-list {
    columns: 2;
  }
}

@media (min-width: 900px) {
  .partner-list {
    columns: 3;
  }
}

.partner-list li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-neutral-dark);
}

.partner-name {
  font-weight: 600;
  display: block;
}

.partner-detail {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-details {
  font-size: 1.05rem;
}

.contact-details dt {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--color-anthracite);
}

.contact-details dd {
  margin: 0.25rem 0 0;
}

.contact-details a {
  font-weight: 600;
}

.quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-muted);
  border-left: 4px solid var(--color-green);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

form {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--color-neutral-dark);
  border-radius: var(--radius);
  background: var(--color-white);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: rgb(47 82 51 / 0.12);
  color: var(--color-green-dark);
}

.form-status--err {
  background: rgb(200 50 50 / 0.1);
  color: #8b1a1a;
}

.noscript-fallback {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-neutral-dark);
  border-radius: var(--radius);
}

.legal {
  background: var(--color-white);
  padding: 3rem 0 4rem;
}

.legal h1 {
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-draft-notice {
  padding: 0.75rem 1rem;
  background: rgb(1 102 176 / 0.12);
  border-left: 4px solid var(--color-accent);
  margin-bottom: 2rem;
  font-weight: 600;
}

.site-footer {
  background: var(--color-anthracite);
  color: rgb(255 255 255 / 0.85);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-nap {
  font-style: normal;
  line-height: 1.5;
}

.footer-nap p {
  margin: 0 0 0.5rem;
}

.footer-company {
  font-weight: 700;
  color: var(--color-white);
}

.footer-copy {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.65);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.15s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgb(44 51 56 / 0.12);
  color: var(--color-text);
}

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

.service-card-body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--color-green);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.site-footer a {
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.material-list {
  columns: 1;
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

@media (min-width: 600px) {
  .material-list {
    columns: 2;
  }
}

.material-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

/* —— Cookie consent banner —— */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgb(20 28 32 / 0.96);
  color: var(--color-white);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 -8px 32px rgb(0 0 0 / 0.28);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-consent-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.88);
}

.cookie-consent-text a {
  color: #9fd0a3;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--color-white);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent .btn {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.cookie-consent-reject {
  background: transparent;
  color: var(--color-white);
  border-color: rgb(255 255 255 / 0.45);
}

.cookie-consent-reject:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.7);
}

.cookie-consent .btn-primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.cookie-consent .btn-primary:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
}

/* —— Photo collages (Maschinen & Mietpark showcase) —— */
.section--tight-top {
  padding-top: 1.5rem;
}

.showcase-heading {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1.75rem;
}

.photo-collage {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.photo-collage figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-neutral-dark);
}

.photo-collage img,
.photo-collage picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-collage img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-collage figure:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .photo-collage figure:hover img {
    transform: none;
  }
}

/* Full-width feature band */
.photo-collage--feature .photo-collage__feature {
  aspect-ratio: 21 / 9;
  min-height: 14rem;
}

@media (max-width: 767px) {
  .photo-collage--feature .photo-collage__feature {
    aspect-ratio: 16 / 10;
  }
}

/* Large + square duo (Wix-style mosaic) */
.photo-collage--duo {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .photo-collage--duo {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: minmax(16rem, 28vw);
  }

  .photo-collage--duo figure {
    min-height: 0;
    height: 100%;
  }

  .photo-collage--duo img {
    height: 100%;
  }
}

/* Equal pair */
.photo-collage--pair {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .photo-collage--pair {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-collage--pair figure {
  aspect-ratio: 4 / 3;
}

/* Three-up row */
.photo-collage--trio {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .photo-collage--trio {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .photo-collage--trio {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.photo-collage--trio figure {
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .split--reverse > :first-child {
    order: 2;
  }

  .split--reverse > :last-child {
    order: 1;
  }
}

/* Taller machine cards for balance under showcase */
.machine-card {
  min-height: 100%;
}

/* —— Material catalog (product-style tiles) —— */
.catalog-lead {
  text-align: center;
  max-width: 40rem;
  margin: -0.75rem auto 2rem;
  color: var(--color-muted);
}

.material-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .material-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .material-catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .material-catalog {
    grid-template-columns: repeat(4, 1fr);
  }
}

.material-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-neutral-dark);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.material-card:hover {
  box-shadow: 0 8px 28px rgb(44 51 56 / 0.14);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .material-card:hover {
    transform: none;
  }
}

.material-card-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-neutral);
}

.material-card-media img,
.material-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.material-card-media img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

.material-card:hover .material-card-media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .material-card:hover .material-card-media img {
    transform: none;
  }
}

.material-card-body {
  padding: 0.9rem 1rem 1.15rem;
  background: rgb(1 102 176 / 0.06);
  border-top: 1px solid var(--color-neutral-dark);
  flex: 1;
  text-align: center;
}

.material-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-anthracite);
  font-weight: 700;
}

.material-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.35;
}
