/* Gebr. Neuhoff GmbH & Co. KG — globale Stile
   Design-Tokens aus greenearth-DESIGN.md als CSS-Variablen,
   Tailwind-Utilities bleiben inline im Markup. */

:root {
  --color-primary: #78716C;
  --color-primary-dark: #57534E;
  --color-primary-lit: #A8A29E;
  --color-secondary: #57534E;
  --color-secondary-dark: #44403C;
  --color-tertiary: #78716C;
  --color-ink: #1C1917;
  --color-canvas: #FAFAF9;
  --color-surface-base: #FAFAF9;
  --color-surface-soft: #F5F5F4;
  --color-hairline: #E7E5E4;
  --color-hairline-strong: #D6D3D1;
  --color-body: #1C1917;
  --color-mute: #57534E;
  --color-ondark: #FAFAF9;
  --color-ondark-mute: rgba(250, 250, 249, 0.72);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --space-section: 64px;
  --font-sans: "Inter", "-apple-system", "Segoe UI", "Helvetica", Arial, sans-serif;
  --font-headings: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-mono: "Source Code Pro", "Fira Code", Consolas, monospace;
  --shadow-sm: 1px 2px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 2px 4px 4px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-surface-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
}

h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

::selection {
  background-color: var(--color-tertiary);
  color: var(--color-canvas);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Hero-Slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1200ms ease-in-out, visibility 0s linear 1200ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1200ms ease-in-out, visibility 0s linear 0s;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--color-ondark-mute);
  border-radius: 9999px;
  background-color: transparent;
  transition: background-color 200ms, border-color 200ms;
}

.hero-dot.is-active {
  background-color: var(--color-primary-lit);
  border-color: var(--color-primary-lit);
}

/* Auf-/zuklappbare Projektreferenzliste */
.ref-details summary {
  list-style: none;
  cursor: pointer;
}

.ref-details summary::-webkit-details-marker {
  display: none;
}

.ref-chevron {
  display: inline-block;
  transition: transform 200ms ease;
}

.ref-details[open] .ref-chevron {
  transform: rotate(180deg);
}

/* Footer-Akkordeon: Spaltenköpfe werden zu auf-/zuklappbaren Zeilen */
.footer-acc {
  border: 0;
}

.footer-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--color-ondark, #FAFAF9);
}

.footer-acc summary::-webkit-details-marker {
  display: none;
}

.footer-acc summary:hover {
  color: var(--color-ondark, #FAFAF9);
}

.footer-acc-chevron {
  display: inline-block;
  font-size: 15px;
  color: var(--color-ondark-mute, rgba(250, 250, 249, 0.72));
  transition: transform 200ms ease;
}

.footer-acc[open] .footer-acc-chevron {
  transform: rotate(180deg);
}

/* Mobile: Inhalt ausblenden, solange nicht aufgeklappt */
@media (max-width: 767px) {
  .footer-acc > ul {
    display: none;
  }
  .footer-acc[open] > ul {
    display: block;
  }
}

/* Desktop & Tablet: Akkordeon immer aufgeklappt halten */
@media (min-width: 768px) {
  .footer-acc > ul {
    display: block !important;
  }
}


/* Mobiler Navigations-Drawer (Side-Bar) */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(28, 25, 23, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 0s linear 0s;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: 18rem;
  max-width: 85vw;
  background-color: var(--color-ink, #1C1917);
  color: var(--color-ondark, #FAFAF9);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 320ms;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Hamburger-Menü: Balken verwandeln sich beim Öffnen in ein X */
.nav-burger {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-burger .nav-burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2.5px 0;
  background-color: var(--color-ondark, #FAFAF9);
  transition: transform 300ms ease, opacity 200ms ease;
}

.nav-burger.is-open .nav-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open .nav-burger-bar:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open .nav-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body scroll sperren, solange der Drawer geöffnet ist */
body.nav-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-drawer-backdrop,
  .nav-burger .nav-burger-bar {
    transition: none;
  }
}
