/* ============================================================
   D.O.G. Label – site.css (seit 2026-04-24)
   Gemeinsame Basis-Styles für alle Seiten (Landing + Subpages).
   Typografie: DM Sans (self-hosted WOFF2, latin + latin-ext)
   Farbwelt: warm Off-White + Near-Black, HKS 53 #00a983 Akzent.
   ============================================================ */

:root {
  --ci: #00a983;           /* HKS 53 Light Mode (Gruppen-CI Darmstadt) */
  --ci-hover: #008870;     /* Hover / dunkler Akzent */
  --ci-dark: #5eddc2;      /* Akzent auf dunklem BG */
  --warm: #f0ece4;         /* Off-White primär */
  --warm-2: #e8e3d9;       /* Beige sekundär */
  --warm-3: #dcd5c6;       /* Beige-Akzent / Linien */
  --ink: #1a1f1e;          /* Near-Black Text */
  --ink-2: #4a5652;        /* Midtone Text */
  --ink-3: #6b7672;        /* leichter Text */
  --dark: #14191a;         /* Dark Section BG */
  --dark-2: #1f2625;
  --line: rgba(26,31,30,0.12);
  --line-strong: rgba(26,31,30,0.22);
  --line-dark: rgba(255,255,255,0.10);
  --card: rgba(255,255,255,0.65);
  --card-dark: rgba(255,255,255,0.04);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 1px 2px rgba(26,31,30,0.04), 0 2px 6px rgba(26,31,30,0.04);
  --shadow-md: 0 4px 12px rgba(26,31,30,0.06), 0 12px 32px rgba(26,31,30,0.06);
  --shadow-lg: 0 8px 24px rgba(26,31,30,0.08), 0 24px 64px rgba(26,31,30,0.08);

  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, picture { max-width: 100%; display: block; }
::selection { background: var(--ci); color: var(--warm); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 3vw, 42px); }
h2 { font-size: clamp(30px, 3.2vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1em; }

em, i {
  font-style: normal;
  font-weight: inherit;
  color: var(--ci);
}

/* ── SKIP LINK ──────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  background: var(--ci); color: #fff;
  padding: 10px 16px; border-radius: 6px;
  z-index: 9999; text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(240,236,228,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
header.scrolled {
  background: rgba(240,236,228,0.94);
  border-bottom-color: var(--line-strong);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height .4s var(--ease);
}
header.scrolled .header-inner { height: 68px; }
.logo {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  padding: 0;
}
.logo img { height: 100%; width: auto; display: block; }

nav.nav-desktop { display: none; align-items: center; gap: 32px; }
nav.nav-desktop a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color .25s var(--ease);
}
nav.nav-desktop a:hover { color: var(--ink); }
nav.nav-desktop a.active,
nav.nav-desktop a.nav-current { color: var(--ci); font-weight: 600; }
nav.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ci);
  transition: width .3s var(--ease);
}
nav.nav-desktop a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--ci);
  border: 1px solid var(--ci);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.header-cta:hover { background: var(--ci-hover); border-color: var(--ci-hover); transform: translateY(-1px); }

.menu-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 8px; }
.hamburger { display: block; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
@media (max-width: 820px) {
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Desktop: Fancy Glass-Dropdown – öffnet auf Hover von .menu-wrap */
.mobile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: auto;
  bottom: auto;
  width: 230px;
  padding: 10px;
  background: rgba(240,236,228,0.96);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(26,31,30,0.08);
  border-radius: 18px;
  box-shadow:
    0 24px 64px -12px rgba(26,31,30,0.22),
    0 8px 24px -6px rgba(26,31,30,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-10px) scale(0.94);
  transform-origin: top right;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease-spring);
}
/* CI-Tint-Glow im Hintergrund */
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, rgba(0,169,131,0.18), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.mobile-menu.open::before,
.menu-wrap:hover .mobile-menu::before,
.menu-wrap:focus-within .mobile-menu::before { opacity: 1; }
.mobile-menu.open,
.menu-wrap:hover .mobile-menu,
.menu-wrap:focus-within .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }

/* Hover-Brücke zwischen Button und Dropdown, damit beim Rüberfahren
   der Cursor nicht in die Lücke fällt und das Menü schließt */
.menu-wrap::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 230px;
  height: 18px;
  pointer-events: none;
}
.menu-wrap:hover::after { pointer-events: auto; }

.mobile-menu a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  padding: 11px 36px 11px 18px;
  border-radius: 10px;
  transition: background .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
  opacity: 0;
  transform: translateX(8px);
  overflow: hidden;
}
/* Staggered Cascade-In der Items */
.mobile-menu.open a,
.menu-wrap:hover .mobile-menu a,
.menu-wrap:focus-within .mobile-menu a { animation: menuItemIn .45s var(--ease) forwards; }
.mobile-menu a:nth-child(1) { animation-delay: .08s; }
.mobile-menu a:nth-child(2) { animation-delay: .14s; }
.mobile-menu a:nth-child(3) { animation-delay: .20s; }
.mobile-menu a:nth-child(4) { animation-delay: .26s; }
.mobile-menu a:nth-child(5) { animation-delay: .34s; }
@keyframes menuItemIn {
  to { opacity: 1; transform: none; }
}

/* Linker Akzent-Bar auf Hover */
.mobile-menu a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%;
  background: var(--ci);
  border-radius: 2px;
  transition: transform .3s var(--ease-spring);
  transform-origin: center;
}
/* Chevron rechts auf Hover */
.mobile-menu a::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-size: 18px;
  font-weight: 500;
  color: var(--ci);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .3s var(--ease-spring);
}
.mobile-menu a:hover {
  background: linear-gradient(90deg, rgba(0,169,131,0.12), rgba(0,169,131,0.04));
  color: var(--ci);
  padding-left: 22px;
}
.mobile-menu a:hover::before { transform: translateY(-50%) scaleY(1); }
.mobile-menu a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.mobile-menu a.nav-current {
  background: rgba(0,169,131,0.08);
  color: var(--ci);
  font-weight: 600;
}
.mobile-menu a.nav-current::before { transform: translateY(-50%) scaleY(1); }

/* Separator vor CTA */
.mobile-menu a.mobile-cta {
  margin-top: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ci);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border-top: 0;
  opacity: 0;
  box-shadow: 0 6px 18px rgba(0,169,131,0.28);
  overflow: hidden;
}
.mobile-menu a.mobile-cta::before,
.mobile-menu a.mobile-cta::after { display: none; }
.mobile-menu a.mobile-cta:hover {
  background: var(--ci-hover);
  color: #ffffff;
  padding-left: 18px;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,169,131,0.35);
}
/* Trennlinie über dem CTA */
.mobile-menu::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
  transition-delay: .35s;
}
.mobile-menu.open::after,
.menu-wrap:hover .mobile-menu::after,
.menu-wrap:focus-within .mobile-menu::after { opacity: 1; }

/* Mobile: Fullscreen-Menü (Klick-Toggle statt Hover) */
@media (max-width: 820px) {
  .menu-wrap { position: static; }
  .menu-wrap::after { display: none; }
  .menu-wrap:hover .mobile-menu,
  .menu-wrap:focus-within .mobile-menu {
    transform: translateY(-100%);
    opacity: 1;
    pointer-events: none;
  }
  .mobile-menu {
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    width: auto;
    padding: 120px 20px 48px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    transform: translateY(-100%);
    transform-origin: center;
    opacity: 1;
    pointer-events: none;
    gap: 20px;
    background: var(--warm);
  }
  .mobile-menu.open { transform: translateY(0); pointer-events: auto; }
  .mobile-menu a {
    font-size: 34px;
    padding: 8px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:hover,
  .mobile-menu a.nav-current { background: transparent; color: var(--ink); }
  .mobile-menu a.mobile-cta {
    font-size: 16px;
    background: var(--ink);
    color: var(--warm);
    padding: 14px 20px;
    border-bottom: 0;
    margin-top: 12px;
  }
  .mobile-menu a.mobile-cta:hover { background: var(--ink); color: var(--warm); }
}

/* ── GLOBAL LAYOUT ──────────────────────────────── */
main { margin-top: 0; }
section { padding: 96px 20px; position: relative; }
section.slim { padding: 64px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ci);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--ci);
}

.lead {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 18px 0 0;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  letter-spacing: 0.005em;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ci); color: #ffffff; border-color: var(--ci); }
.btn-primary:hover { background: var(--warm); color: var(--ci); border-color: var(--ci); }
.btn-ghost { background: transparent; color: var(--ci); border-color: var(--ci); }
.btn-ghost:hover { background: var(--warm); color: var(--ci); border-color: var(--ci); box-shadow: 0 4px 14px rgba(0,136,112,0.15); }

/* ── PAGE HERO (Subpages) ───────────────────────── */
.page-hero {
  padding: 140px 20px 60px;
  background: var(--warm-2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 95% 10%, rgba(0,169,131,0.08), transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(220,213,198,0.6), transparent 50%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.page-hero h1 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; }
.page-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ci);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-label::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--ci);
}

.page-content {
  padding: 80px 20px;
  background: var(--warm);
}
.page-inner {
  max-width: 840px;
  margin: 0 auto;
}
.page-inner-wide { max-width: var(--max); margin: 0 auto; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,25,26,0.78) 0%, rgba(20,25,26,0.88) 60%, rgba(20,25,26,0.94) 100%),
    url("Industrie%20Bild%2001.webp") center/cover no-repeat;
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 24px;
  font-size: 14.5px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); margin-top: 14px; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 48px; width: auto; border-radius: 8px; display: block; }
.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  background: rgba(94,221,194,0.08);
  border: 1px solid rgba(94,221,194,0.22);
  border-radius: 999px;
  color: var(--ci-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.footer-tag:hover {
  background: rgba(94,221,194,0.14);
  border-color: rgba(94,221,194,0.4);
  color: var(--ci-dark);
  transform: none;
}
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,0.6);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-col a:hover { color: var(--ci-dark); transform: translateX(2px); }
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: rgba(255,255,255,0.6);
}
.footer-contact-row svg { width: 14px; height: 14px; color: var(--ci-dark); flex-shrink: 0; }
.footer-contact-row.prominent {
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--warm);
  margin-top: 4px;
  margin-bottom: 8px;
}
.footer-contact-row.prominent svg { width: 16px; height: 16px; }
.footer-contact-row a { color: inherit; }

.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); transition: color .25s var(--ease); }
.footer-bottom-links a:hover { color: var(--ci-dark); }

.footer-ci-bar {
  background: var(--ci);
  padding: 18px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-ci-bar span,
.footer-ci-bar a {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.footer-ci-bar a {
  font-weight: 600;
  transition: opacity .2s var(--ease);
}
.footer-ci-bar a:hover { opacity: 0.85; }

/* ── SCROLL REVEAL (Basis) ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOCUS VISIBLE (WCAG 2.4.7) ─────────────────── */
*:focus-visible {
  outline: 2px solid var(--ci);
  outline-offset: 2px;
  border-radius: 4px;
}
.logo:focus-visible,
.header-cta:focus-visible,
.footer-ci-bar a:focus-visible { outline-offset: 3px; }

/* ── COOKIE-BANNER (TKG §165) ───────────────────── */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 400;
  background: var(--dark);
  color: var(--warm);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  padding: 18px 22px;
  max-width: 720px;
  margin: 0 auto;
  animation: cookie-slide .35s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-slide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1 1 360px; min-width: 220px; }
.cookie-text strong { display: block; font-size: 14px; margin-bottom: 4px; letter-spacing: 0.02em; }
.cookie-text p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.82); }
.cookie-text a { color: var(--ci-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-ok {
  padding: 10px 22px;
  background: var(--ci);
  color: #fff;
  border: 1px solid var(--ci);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cookie-ok:hover { background: var(--warm); color: var(--ci); transform: translateY(-1px); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 820px) {
  nav.nav-desktop, .header-cta { display: none; }
  section { padding: 72px 20px; }
  .page-hero { padding: 110px 20px 48px; }
  .page-content { padding: 56px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  h1 { font-size: clamp(32px, 8vw, 42px); }
  h2 { font-size: clamp(26px, 7vw, 38px); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  header, .mobile-menu, .cookie-banner, form { display: none !important; }
}
