/* olihaas.net – Design-Tokens angelehnt an replica/design/tokens.css (Apple-Nachbau), dunkel umgesetzt */
:root {
  --bg: #000;
  --surface: #0c0c0e;
  --surface-2: #161618;
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .22);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #6e6e73;
  --brand: #7e1630;          /* Logo-Rot vom Briefpapier */
  --accent: #e2415e;         /* aufgehellt für dunklen Grund */
  --accent-hover: #f05a75;
  --grid-minor: rgba(226, 65, 94, .055);
  --grid-major: rgba(226, 65, 94, .11);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --text-hero: clamp(44px, 8vw, 104px);
  --text-headline: clamp(36px, 6vw, 72px);
  --text-lead: clamp(19px, 2.2vw, 28px);
  --text-body: 17px;

  --space-section: clamp(96px, 14vw, 180px);
  --gutter: 16px;
  --content-max: 1080px;
  --nav-h: 48px;
  --radius: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-blur: saturate(1.8) blur(20px);
}
@media (min-width: 735px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-body)/1.47 var(--font-sans);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 13px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Millimeterpapier */
.mm {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -1px -1px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: var(--nav-blur); backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; min-height: 44px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0 -12px 0 0; padding: 0; }
.nav__links a { display: block; padding: 12px; font-size: 13px; color: var(--muted); text-decoration: none; transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: var(--text) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.55) 65%, var(--surface) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr; align-content: space-between; gap: 24px;
  padding-block: calc(var(--nav-h) + 40px) clamp(56px, 10vh, 112px);
}
.hero__content { order: 2; }
.hero__name { margin-bottom: 18px; }
.hero h1 { font: 700 var(--text-hero)/1.0 var(--font-display); letter-spacing: -.035em; }
.hero h1 span { display: inline-block; }
.hero h1 .dot { color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 30ch; font-size: var(--text-lead); line-height: 1.2; color: var(--muted); letter-spacing: .005em; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__logo {
  order: 1; justify-self: end; width: auto; height: min(34svh, 300px);
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, .6));
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr auto; align-content: stretch; align-items: center; }
  .hero__content { order: 1; align-self: end; }
  .hero__logo { order: 2; height: min(68svh, 620px); align-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 400 17px/1.2 var(--font-sans); letter-spacing: -.022em; text-decoration: none;
  transition: background-color .32s var(--ease), color .32s var(--ease), border-color .32s var(--ease), transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.04); }
.btn--secondary:hover { background: var(--text); color: #000; border-color: var(--text); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__head h2 { margin-top: 14px; font: 700 var(--text-headline)/1.05 var(--font-display); letter-spacing: -.03em; }
.section__head p { margin: 14px auto 0; max-width: 46ch; font-size: var(--text-lead); line-height: 1.25; color: var(--muted); }

/* Planung – Braceworks-Rendering, transparent über dem Millimeterpapier */
.plan { margin: 0; }
.plan img { width: 100%; height: auto; }
@media (max-width: 734px) { .plan { margin-inline: calc(var(--gutter) * -1); } }

/* Kontakt */
.contact { text-align: center; padding-top: 0; }
.contact h2 { font: 700 var(--text-hero)/1 var(--font-display); letter-spacing: -.035em; }
.contact h2 .dot { color: var(--accent); }
.contact__lead { margin: 22px auto 0; max-width: 34ch; font-size: var(--text-lead); line-height: 1.25; color: var(--muted); }
.contact__ways { margin: 48px auto 0; display: grid; gap: 12px; max-width: 760px; }
@media (min-width: 735px) { .contact__ways { grid-template-columns: 1fr 1fr; } }
.way {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 26px 28px; border-radius: var(--radius); text-decoration: none;
  background: rgba(22, 22, 24, .88); border: 1px solid var(--border);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.way:hover { border-color: var(--accent); background: rgba(28, 16, 19, .92); }
.way span { color: var(--subtle); font: 500 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.way strong { font: 600 clamp(22px, 3vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em; word-break: break-word; }
.way em { font-style: normal; color: var(--accent); font-size: 15px; margin-top: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 28px 96px; /* Platz für das Netlify-Badge unten rechts */ color: var(--subtle); font-size: 12px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; padding: 12px 0; }
.footer a:hover { color: var(--text); text-decoration: underline; }

/* Einblenden beim Laden (Hero) */
.load { animation: fadeUp 1s var(--ease) both; }
.load[data-delay="1"] { animation-delay: .12s; }
.load[data-delay="2"] { animation-delay: .24s; }
.load[data-delay="3"] { animation-delay: .36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img img { transform: none; }
}

/* Impressum */
.legal { padding-block: calc(var(--nav-h) + 64px) 96px; }
.legal h1 { font: 700 var(--text-headline)/1.05 var(--font-display); letter-spacing: -.03em; margin-bottom: 40px; }
.legal h2 { font: 600 21px/1.3 var(--font-display); margin: 36px 0 8px; }
.legal p { color: var(--muted); max-width: 62ch; }
.legal .todo { color: var(--accent); }
