/* ========================================================================
   Bauplanung Harald Skroch · Startseite
   Design-Tokens & Basis-Styles
   ======================================================================== */

:root {
  --bg: oklch(0.975 0.012 80);
  --bg-elev: oklch(0.99 0.008 80);
  --bg-deep: oklch(0.93 0.018 75);
  --fg: oklch(0.22 0.015 60);
  --fg-soft: oklch(0.42 0.018 60);
  --fg-mute: oklch(0.58 0.015 60);
  --line: oklch(0.88 0.015 75);
  --line-soft: oklch(0.92 0.012 75);
  --accent: #EC6609;
  --accent-ink: oklch(from var(--accent) 0.42 calc(c * 0.7) h);
  --accent-soft: oklch(from var(--accent) 0.93 calc(c * 0.25) h);
  --sage: oklch(0.55 0.04 130);
  --shadow-1: 0 1px 2px oklch(0.2 0.02 60 / 0.04), 0 2px 8px oklch(0.2 0.02 60 / 0.04);
  --shadow-2: 0 2px 8px oklch(0.2 0.02 60 / 0.06), 0 20px 40px -12px oklch(0.2 0.02 60 / 0.12);

  --font-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --section-y: clamp(80px, 12vw, 160px);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

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

[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

::selection { background: var(--accent); color: var(--bg); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0; }

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

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

.section {
  padding: var(--section-y) 0;
}

.section + .section { border-top: 1px solid var(--line-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent-ink); }

.btn--accent {
  background: var(--accent);
  color: oklch(0.99 0.005 80);
}
.btn--accent:hover { background: var(--accent-ink); }

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--fg); background: var(--bg-elev); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(from var(--accent) l c h / 0.07) 0 2px,
      transparent 2px 14px
    ),
    var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--fg-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.ph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 14px;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--fg-soft);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg), transparent 8%);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}

@media (max-width: 860px) {
  .nav__inner { gap: 12px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 36px;
  width: auto;
}

@media (max-width: 540px) {
  .brand img { height: 28px; }
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}
.nav__links a:hover::after { right: 0; }
.nav__cta { margin-left: 8px; }

/* ---------- Mobile-Toggle + Drawer ---------- */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.nav__toggle:hover {
  border-color: var(--fg);
  background: var(--bg-elev);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.nav__drawer:not([hidden]) {
  visibility: visible;
}
.nav__drawer.is-open {
  pointer-events: auto;
}
.nav__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.2 0.02 60 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__drawer.is-open .nav__drawer-backdrop {
  opacity: 1;
}

.nav__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(380px, 88vw);
  background: var(--bg);
  padding-top: 20px;
  padding-right: 28px;
  padding-bottom: 24px;
  padding-left: 28px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  box-shadow: var(--shadow-2);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: hidden;
}
.nav__drawer.is-open .nav__drawer-panel {
  transform: none;
}
.nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__drawer-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.nav__drawer-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav__drawer-close:hover {
  border-color: var(--fg);
  background: var(--bg-elev);
}
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__drawer-links a {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease;
}
.nav__drawer-links a:hover {
  color: var(--accent);
}
.nav__drawer-cta {
  margin-top: auto;
  justify-content: center;
}

body.no-scroll {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hr-line {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.partner-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--sage);
}
