/* ------------------------------------------------------------------
   OPEN EYES — Stylesheet
   Farben: Schwarz / Weiß, Akzent Blau (aus dem Logo gesampelt)
   ------------------------------------------------------------------ */

:root {
  --black: #000000;
  --ink: #0e0e10;
  --white: #f4f4f2;
  --paper: #ffffff;
  --grey-1: #1a1a1d;
  --grey-2: #2b2b30;
  --grey-3: #6b6b72;
  --grey-4: #a9a9b0;
  --grey-5: #d9d9d6;
  --blue: #3b8fd9;
  --blue-deep: #1f5f9e;
  --blue-ink: #0b2a4a;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --line: 1px solid var(--grey-2);
  --line-light: 1px solid var(--grey-5);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue); color: var(--black); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--blue); color: var(--black); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Typografie-Bausteine ---------- */

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-4);
}
.label::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--blue);
  margin-right: 12px;
  vertical-align: 1px;
}
.on-light .label { color: var(--grey-3); }

.h-display {
  font-size: clamp(44px, 8.5vw, 124px);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 500;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 500;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--grey-4);
  max-width: 34em;
}
.on-light .lede { color: var(--grey-3); }

.accent { color: var(--blue); }

/* ---------- Layout ---------- */

.wrap { padding-inline: var(--gutter); }

.section { padding-block: clamp(80px, 12vw, 160px); }
.section + .section { border-top: var(--line); }

.on-light { background: var(--paper); color: var(--ink); }
.on-light .section + .section { border-top: var(--line-light); }

.head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 48px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .head { grid-template-columns: 1fr 1fr; align-items: end; }
  .head .lede { justify-self: end; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--black) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 22px; width: auto; }
.brand span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-menu { position: relative; }
.contact-trigger {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 10px 0;
  transition: color .2s;
}
.contact-trigger:hover, .contact-trigger:focus-visible { color: var(--white); }
.contact-trigger::after {
  content: ""; display: inline-block; vertical-align: 2px;
  width: 6px; height: 6px; margin-left: 12px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.contact-trigger[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.contact-trigger.plain::after { display: none; }

.contact-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 280px;
  display: grid;
  gap: 10px;
  padding: 24px 28px;
  background: var(--black);
  border: var(--line);
}
.contact-panel[hidden] { display: none; }
.contact-panel .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 4px;
}
.contact-panel a {
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s;
}
.contact-panel a:hover, .contact-panel a:focus-visible { color: var(--blue); }

@media (max-width: 560px) {
  .contact-panel {
    position: fixed;
    top: 68px; left: 0; right: 0;
    min-width: 0;
    border-inline: 0;
    padding: 24px var(--gutter);
  }
  .contact-panel a { font-size: 19px; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: min(calc(100svh - 68px), 880px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: 40px 32px;
  position: relative;
  overflow: hidden;
}
.hero-top { background: var(--black); padding-bottom: 12px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-logo {
  align-self: center;
  justify-self: center;
  width: auto;
  height: clamp(200px, 42svh, 400px);
  max-width: 80vw;
  object-fit: contain;
  margin-block: 24px;
}
.hero-bottom {
  display: grid;
  gap: 32px;
  border-top: var(--line);
  padding-top: 28px;
  background: var(--black); /* deckt die Hintergrundlinien ab */
}
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--grey-4); text-transform: uppercase;
}
.hero-meta strong { color: var(--white); font-weight: 500; display: block; margin-top: 4px; }

/* dezente Linien im Hintergrund — kein Glow, kein Blob */
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grey-1); z-index: -1;
}
.hero::before { left: 33.33%; }
.hero::after { left: 66.66%; }

/* ---------- Button / Link ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--grey-2);
  padding: 16px 22px;
  transition: border-color .25s, background .25s, color .25s;
}
.btn::after { content: "→"; color: var(--blue); transition: transform .3s var(--ease); }
.btn:hover, .btn:focus-visible { border-color: var(--blue); }
.btn:hover::after { transform: translateX(4px); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: var(--black); }
.btn.solid::after { color: var(--black); }
.btn.solid:hover { background: var(--white); border-color: var(--white); }
.on-light .btn { color: var(--ink); border-color: var(--grey-5); }
.on-light .btn:hover { border-color: var(--blue); }

/* ---------- Leistungen ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--line-light);
}
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: 1fr 1fr 1fr; } }

.service {
  border-bottom: var(--line-light);
  padding: 36px 28px 40px 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 300px;
  position: relative;
}
@media (min-width: 720px) {
  .service { padding-right: 36px; }
  .service:nth-child(2n) { padding-left: 36px; border-left: var(--line-light); }
}
@media (min-width: 1100px) {
  .service:nth-child(2n) { padding-left: 0; border-left: 0; }
  .service:nth-child(3n+2), .service:nth-child(3n) { padding-left: 36px; border-left: var(--line-light); }
}
.service .num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--grey-3);
}
.service h3 { font-size: 26px; letter-spacing: -.02em; font-weight: 500; line-height: 1.1; }
.service p { color: var(--grey-3); font-size: 16px; max-width: 30em; }
.service::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--blue); transition: width .5s var(--ease);
}
.service:hover::after { width: 100%; }

/* ---------- Über uns ---------- */

.about {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 96px; }
}
.about .text p + p { margin-top: 1.2em; }
.about .text p { color: var(--grey-4); max-width: 36em; }
.about .text p:first-child { color: var(--white); font-size: 20px; }

.facts { border-top: var(--line); }
.fact {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 24px; padding: 22px 0; border-bottom: var(--line);
}
.fact .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-4); }
.fact .v { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; line-height: 1; font-weight: 500; }
.fact .v small { font-size: .5em; color: var(--blue); margin-left: 4px; letter-spacing: 0; }

/* ---------- Ablauf ---------- */

.steps { display: grid; gap: 0; border-top: var(--line-light); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 32px 0 40px; border-bottom: var(--line-light); }
@media (min-width: 900px) {
  .step { padding-right: 40px; }
  .step + .step { padding-left: 40px; border-left: var(--line-light); }
}
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: .1em; }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 20px 0 12px; }
.step p { color: var(--grey-3); font-size: 16px; }

/* ---------- Kontakt ---------- */

.contact {
  display: grid; gap: 48px;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 96px; } }
.contact-list { border-top: var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: var(--line);
}
.contact-list .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-4); padding-top: 4px; }
.contact-list .v { font-size: 20px; letter-spacing: -.01em; }
.contact-list a:hover { color: var(--blue); }
.contact-list .v .sub { display: block; font-size: 15px; color: var(--grey-4); margin-top: 4px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: var(--line);
  padding-block: 28px 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-3);
}
.site-footer ul { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--white); }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal { max-width: 760px; padding-block: clamp(64px, 10vw, 128px); }
.legal .label { margin-bottom: 20px; display: block; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.02; font-weight: 500; margin-bottom: 48px; }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 56px 0 14px; padding-top: 24px; border-top: var(--line); }
.legal h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; color: var(--white); }
.legal p { color: var(--grey-4); margin-bottom: 1em; }
.legal address { font-style: normal; color: var(--white); line-height: 1.7; margin-bottom: 1em; }
.legal ul { list-style: none; margin-bottom: 1em; }
.legal li { color: var(--grey-4); padding-left: 20px; position: relative; margin-bottom: .4em; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }
.legal a { color: var(--white); border-bottom: 1px solid var(--grey-2); }
.legal a:hover { border-color: var(--blue); }
.legal .back { display: inline-block; margin-top: 64px; }

/* ---------- Scroll-Reveal (dezent) ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
