/* planitreal.de — Tokens: cowork-shared/planitreal-landing/design.md §1 */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --sunken: #f4f4f4;
  --line: #e0e0e0;
  --line-strong: #c6c6c6;
  --fg: #161616;
  --fg-2: #525252;
  --fg-3: #6f6f6f;
  --accent: #0072C3;
  --primary: #0072C3;
  --on-primary: #ffffff;
  --primary-hover: #00539A;
  --logo: #0072C3;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161616;
    --sunken: #262626;
    --line: #393939;
    --line-strong: #525252;
    --fg: #f4f4f4;
    --fg-2: #c6c6c6;
    --fg-3: #a8a8a8;
    --accent: #33B1FF;
    --primary-hover: #00539A;
    --logo: #ffffff;
  }
}
@media (max-width: 479px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
strong, b { font-weight: 500; color: var(--fg); }
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--fg); padding: 8px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* Typografie */
.display {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--fg);
}
.display .l, .display .b { display: block; }
.display .b { font-weight: 500; }
.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  font-weight: 300;
}

/* Knopf */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--on-primary);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: inset 0 0 0 3px var(--surface); }
.btn-sm { height: 38px; font-size: 14px; }

/* Kopfzeile */
html { scroll-padding-top: 73px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo {
  display: block;
  flex: none;
  height: 34px;
  aspect-ratio: 898.42 / 256;
  background: var(--logo);
  -webkit-mask: url("../assets/logo-quer.svg") no-repeat left center / contain;
  mask: url("../assets/logo-quer.svg") no-repeat left center / contain;
}
/* Rechts der Knopf „Kontakt“ */
.header-nav { display: flex; align-items: center; align-self: stretch; gap: 24px; }
@media (max-width: 479px) { .header-nav { gap: 16px; } }
/* Schmal: unter 380 px das Logo quer 28 px hoch, unter 340 px die Kleinform (1 : 1) */
@media (max-width: 379px) { .logo { height: 28px; } }
@media (max-width: 339px) {
  .logo {
    aspect-ratio: 1 / 1;
    -webkit-mask-image: url("../assets/kleinform.svg");
    mask-image: url("../assets/kleinform.svg");
  }
}

/* Abschnitte */
main > section { border-bottom: 1px solid var(--line); }

/* 1 — Hero */
.hero { display: flex; align-items: center; min-height: min(calc(100svh - 73px - 173px), 960px); padding: 48px 0; }
.hero-text > * + * { margin-top: 24px; }
.hero-text .lead { max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail { font: 400 13px/1.4 var(--mono); color: var(--fg-3); }
@media (min-width: 720px) {
  .hero { padding: 64px 0; }
}

/* Abschnitte allgemein */
.sec { padding: 48px 0; }
@media (min-width: 720px) { .sec { padding: 72px 0; } }
.h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 300;
  color: var(--fg);
}
.h2 b { font-weight: 500; }
.h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; font-weight: 600; color: var(--fg); }
.sub { color: var(--fg-3); }

/* 2 — Was wir machen */
.leistung .lead { margin-top: 24px; max-width: 52ch; }

/* 3 — Kontakt */
.cta-inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.cta-inner p { max-width: 60ch; }
.cta-inner .btn { margin-top: 8px; }

/* Fußzeile */
.site-footer { padding: 32px 0; font-size: 13px; font-weight: 400; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.mark {
  width: 24px; height: 24px; flex: 0 0 24px;
  background: var(--fg-3);
  -webkit-mask: url("../assets/kleinform.svg") no-repeat center / contain;
  mask: url("../assets/kleinform.svg") no-repeat center / contain;
}
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--fg-3); }
.footer-nav a { color: var(--fg-2); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); text-decoration: underline; }

/* Pflichtseiten */
.legal { padding: 48px 0 72px; border-bottom: 1px solid var(--line); }
.legal .wrap > * { max-width: 65ch; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--fg); margin-bottom: 24px; }
.legal h2 { font-size: 1.1rem; font-weight: 600; color: var(--fg); margin: 32px 0 8px; }
.legal h3 { font-size: 1rem; font-weight: 600; color: var(--fg); margin: 20px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; margin-bottom: 12px; }
