/*
 * site.css — Shared design system
 * Aesthetic: Industrial-Clean
 * Palette: Frame-matched greys + Signal Yellow accent
 * Fonts: Clash Display (headings) + Cabinet Grotesk (body)
 */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #e8e8e6;
  --bg-dark:      #1a1917;
  --surface:      #f0efed;
  --surface-2:    #ffffff;
  --border:       rgba(0,0,0,0.10);
  --border-heavy: rgba(0,0,0,0.18);

  --text:         #151412;
  --text-muted:   #6b6a67;
  --text-faint:   #a8a7a4;
  --text-inv:     #f5f4f0;

  /* Signal Yellow — Sprinter/Baustelle */
  --accent:       #f0c000;
  --accent-dark:  #c89800;
  --accent-text:  #151412;

  --font-display: 'Clash Display', 'DM Sans', sans-serif;
  --font-body:    'Cabinet Grotesk', 'DM Sans', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-xl:  24px;

  --nav-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  /* Glassmorphism on the grey bg */
  background: rgba(232, 232, 230, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(232, 232, 230, 0.96);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}
.nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,192,0,0.35);
}

/* Hamburger — mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  z-index: 199;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.nav-drawer a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-drawer a:hover, .nav-drawer a.active { background: rgba(0,0,0,0.05); color: var(--text); }
.nav-drawer .nav-cta { display: block; text-align: center; }

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
}

/* ── Page wrapper (below nav) ────────────────────────────── */
.page-body {
  padding-top: var(--nav-h);
}

/* ── Section helpers ─────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 1160px;
  margin: 0 auto;
}
.section-full {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.body-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ── Accent stripe divider ───────────────────────────────── */
.stripe-divider {
  width: 100%;
  height: 3px;
  background: var(--accent);
}

/* ── Cards / surfaces ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.card-dark {
  background: var(--bg-dark);
  color: var(--text-inv);
  border-color: rgba(255,255,255,0.07);
}

/* ── Service list (home) ─────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--border-heavy);
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}
.service-item {
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s ease;
}
.service-item:hover { background: var(--surface-2); }
.service-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-icon svg { width: 18px; height: 18px; color: var(--accent-text); }
.service-title {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.service-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Region chips ────────────────────────────────────────── */
.region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.region-chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.region-chip:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* ── Dark band (USPs / CTA strip) ────────────────────────── */
.dark-band {
  background: var(--bg-dark);
  color: var(--text-inv);
}
.usp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 1160px;
  margin: 0 auto;
}
.usp-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.usp-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.usp-label {
  font-size: 0.85rem;
  color: rgba(245,244,240,0.55);
  line-height: 1.45;
}

/* ── Contact form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text);
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(240,192,0,0.18);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.form-submit {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--text);
  color: var(--text-inv);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  border: none;
}
.form-submit:hover {
  background: var(--bg-dark);
  transform: translateY(-1px);
}

/* ── Contact info card ───────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.contact-info-value a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(245,244,240,0.45);
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(245,244,240,0.45);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: rgba(245,244,240,0.85); }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Über Uns — team / story ─────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.story-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
}
.story-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
/* Accent corner tag on visual */
.story-visual::after {
  content: 'Seit 2015';
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.value-bullet {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.value-bullet svg { width: 11px; height: 11px; color: var(--accent-text); }

/* ── Page hero (non-animation pages) ────────────────────── */
.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  max-width: 1160px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 480px) {
  .usp-row { grid-template-columns: 1fr 1fr; }
}
