/* Celeris · Michael Schnelle — gemeinsames Stylesheet
   Farbe: Petrol #073d52 mit Logo-Türkis.
   Layout: Landing = Vollbild; Name oben; links Logo über Leistungen, rechts mittig der Claim (mobil: Logo, Leistungen, Claim), Leistungen in zwei Spalten (IT / Werbung), Kontaktleiste unten.
   Rechtsseiten = schmale Lesespalte mit Kopfzeile. Keine externen Fonts (DSGVO-freundlich, keine Google-Verbindung). */

:root {
  /* Feste Markenfarbe: Petrol-Hintergrund, unabhängig vom Hell-/Dunkelmodus */
  --bg: #073d52;
  --surface: #0a4a62;
  --surface-2: #0d566f;
  --ink: #f1f7f8;
  --muted: #a9c6ce;
  --rule: #1d5a70;
  --accent: #6cc3ce;
  --accent-ink: #073d52;
  --brand: #5fb0bb;
  --streak: rgba(108, 195, 206, 0.22);
  color-scheme: dark;

  --font-display: "Avenir Next", "Avenir", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", "Avenir Next", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.6vw, 5.6rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Wortmarke ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Landing (Vollbild) ---------- */
.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.landing__top { padding-block: clamp(1.25rem, 3vh, 2.25rem); }

.landing__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.landing__place { text-align: right; }

.landing__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "logo     claim"
    "services claim";
  align-content: center;
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: clamp(1.75rem, 5vh, 3.25rem);
  padding-block: clamp(1.5rem, 4vh, 3rem);
}
.landing__main .headline { grid-area: claim; align-self: center; }
.landing__main .services { grid-area: services; }

/* Logo-Auftritt: Linie zeichnet sich nach rechts, dann klappt der Kasten auf.
   Zwei Lagen desselben PNG, per clip-path getrennt (Linie endet bei ~79.5 %, Kasten beginnt bei ~84 %). */
.hero__logo {
  grid-area: logo;
  display: grid;
  width: 100%;
  max-width: 34rem;
  justify-self: start;
  align-self: end;
}
.hero__logo img { grid-area: 1 / 1; width: 100%; height: auto; display: block; }
.hero__logo-line {
  clip-path: inset(0 20% 0 0);
  animation: draw-line 1000ms cubic-bezier(.65,0,.25,1) 150ms both;
}
.hero__logo-box {
  clip-path: inset(0 0 0 81%);
  animation: open-box 650ms cubic-bezier(.2,.7,.1,1) 1050ms both;
}
@keyframes draw-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 20% 0 0); } }
@keyframes open-box  { from { clip-path: inset(0 0 100% 81%); } to { clip-path: inset(0 0 0 81%); } }

/* Gestaffelter Einstieg von Claim, Labels und Leistungen */
.reveal { animation: rise 600ms cubic-bezier(.2,.7,.1,1) calc(200ms + var(--i, 0) * 70ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

/* Lichtspuren im Hintergrund: senkrecht von oben nach unten, wie der Logo-Kasten */
.landing { position: relative; overflow: hidden; }
.landing > :not(.streaks) { position: relative; z-index: 1; }
/* Nur über Kopf- und Hauptbereich (Grid-Zeilen 1–2), damit die Spuren vor dem Footer enden und dort sanft auslaufen */
.streaks {
  position: absolute;
  inset: 0;
  grid-row: 1 / 3;
  grid-column: 1;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%);
}
.streaks span {
  position: absolute;
  left: var(--x);
  top: 0;
  width: 1px;
  height: var(--h);
  background: linear-gradient(180deg, transparent, var(--streak) 70%, transparent);
  animation: streak var(--d) linear var(--t) infinite;
}
@keyframes streak { from { top: calc(-1 * var(--h)); } to { top: 100%; } }

.head-logo { height: 52px; width: auto; display: block; }
.page-head .brand { flex-direction: row; align-items: center; gap: 1rem; }
.page-head .brand__text { display: grid; gap: 0.1rem; }

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.1rem + 3.9vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.headline em { font-style: normal; color: var(--accent); display: block; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  max-width: 62rem;
}
.services__group { min-width: 0; display: grid; gap: 0.6rem; align-content: start; }
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.services__list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.services__list li::before {
  content: "▪";
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.7em;
  vertical-align: 0.15em;
  display: inline-block;
  transition: transform 250ms cubic-bezier(.2,.7,.1,1), color 250ms ease;
}
.services__list li { transition: color 250ms ease; cursor: default; }
@media (hover: hover) {
  .services__list li:hover { color: var(--accent); }
  .services__list li:hover::before { color: var(--ink); transform: scale(1.6) rotate(45deg); }
}

/* Footer: zwei gleich gestaltete Kachelgruppen, darunter zentriert das Copyright */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.25rem, 3vh, 2rem) 1rem;
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.5rem);
}
.site-foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
}
.copyright {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kacheln (Kontakt + Rechtliches): Icon im türkisen Quadrat wie im Logo, Linie wächst beim Hover */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.contact__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.contact__item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(.2,.7,.1,1);
}
a.contact__item:hover,
a.contact__item:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--brand);
  transform: translateY(-2px);
}
a.contact__item:hover::after,
a.contact__item:focus-visible::after,
a.contact__item[aria-current="page"]::after { transform: scaleX(1); }
a.contact__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }

.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  background: var(--brand);
  color: var(--accent-ink);
}
.contact__icon svg { width: 1.25rem; height: 1.25rem; }
.contact__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}


/* ---------- Rechtsseiten ---------- */
.page-head { border-bottom: 1px solid var(--rule); background: var(--surface); }
.page-head .wrap {
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.back {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.doc { padding-block: clamp(2rem, 6vh, 4rem); }
.doc__inner { max-width: 68ch; display: grid; gap: 0.25rem; }
.doc h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  text-wrap: balance;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.doc h2 .num { font-family: var(--font-mono); font-size: 0.6em; color: var(--accent); }
.doc h3 { margin: 1.5rem 0 0.25rem; font-size: var(--step-1); line-height: 1.3; }
.doc h4 { margin: 1rem 0 0; font-size: var(--step-0); }
.doc p, .doc ul { margin: 0 0 0.75rem; }
.doc ul { padding-left: 1.2rem; }
.doc a { overflow-wrap: anywhere; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  margin-block: 0.5rem 1rem;
  font-variant-numeric: tabular-nums;
}
.card p { margin: 0; }
.card p + p { margin-top: 0.75rem; }


/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .landing__main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "logo" "services" "claim";
  }
  .hero__logo { max-width: min(78%, 22rem); }
  .streaks span:nth-child(odd) { display: none; }
}
@media (max-width: 640px) {
  .page-head .brand__text { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .landing__place { text-align: left; }
  .services__list li { white-space: normal; }
  .site-foot__row, .contact { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-line, .hero__logo-box, .reveal { animation: none; }
  .streaks { display: none; }
  .services__list li, .services__list li::before { transition: none; }
  .contact__item, .contact__item::after { transition: none; }
}
