/* more dots media – Firmenseite. Nur die zwei Logofarben und ihre Abstufungen:
   Grau #58595b (das „m“) und Grün #8cc63f (der Punkt). Nur Systemschriften, keine Fremdanfragen. */
:root {
  --grey: #58595b;
  --grey-deep: #2e2f31;   /* Grau abgedunkelt: Bühne, Fuß */
  --grey-ink: #3c3d3f;    /* Grau für Fließtext auf Hell */
  --grey-soft: #8a8b8d;   /* Grau aufgehellt: Nebentext */
  --grey-mist: #eeeeef;   /* Grau sehr hell: Flächen */
  --green: #8cc63f;
  --green-deep: #4d7718;  /* Grün abgedunkelt: Links auf Weiß mit 5,3:1 (#5a8a1c hätte nur 4,1:1) */
  --green-mist: #eef6e2;  /* Grün sehr hell */

  --bg: #f7f7f7;
  --surface: #ffffff;
  --text: var(--grey-ink);
  --muted: #6c6d6f;
  --line: #e2e2e3;
  --link: var(--green-deep);
  --header-bg: rgba(255, 255, 255, 0.78);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #232425;
    --surface: #2e2f31;
    --text: #ececed;
    --muted: #a9aaab;
    --line: #444547;
    --link: var(--green);
    --header-bg: rgba(46, 47, 49, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--green); color: var(--grey-deep); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; position: relative; }

/* ---------- Kopf: bleibt oben, Milchglas ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img {
  display: block; height: 80px; width: auto;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.3);
}
.logo:hover img { transform: rotate(-4deg) scale(1.05); }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; position: relative; padding: 4px 0; }
nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); transform: translateX(-50%) scale(0); transition: transform .25s ease;
}
nav a:hover { color: var(--text); }
nav a:hover::after { transform: translateX(-50%) scale(1); }
nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
nav .lang::after { display: none; }
nav .lang:hover { border-color: var(--green); }
/* Das graue „m“ braucht hellen Grund, soll aber frei stehen statt in einer Kachel:
   im Dunkelmodus bleibt deshalb der ganze Kopf hell. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header {
    --text: var(--grey-ink); --muted: #6c6d6f; --line: #e2e2e3; --header-bg: rgba(247, 247, 247, 0.92);
  }
}

/* ---------- Bühne: dunkles Grau, Punktraster, schwebende grüne Punkte ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #f7f7f7;
  background:
    radial-gradient(circle at 78% 30%, rgba(140, 198, 63, .22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(140, 198, 63, .12), transparent 40%),
    linear-gradient(135deg, var(--grey-deep) 0%, var(--grey) 100%);
}
/* Punktraster, das langsam diagonal wandert */
.hero::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background-image: radial-gradient(rgba(247, 247, 247, .13) 1.6px, transparent 1.8px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate(26px, 26px); } }

.hero .wrap { padding-top: 96px; padding-bottom: 88px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 62px); line-height: 1.08; margin: 0 0 22px; letter-spacing: -0.02em; font-weight: 800;
  max-width: 720px;
}
.hero h1 .dot {
  display: inline-block; width: .26em; height: .26em; margin-left: .06em; border-radius: 50%;
  background: var(--green); vertical-align: baseline;
  box-shadow: 0 0 0 0 rgba(140, 198, 63, .55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 198, 63, .55); }
  70% { box-shadow: 0 0 0 .5em rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}
.hero p { font-size: 19px; color: rgba(247, 247, 247, .82); max-width: 620px; margin: 0 0 32px; }
.hero strong { color: #fff; }
/* Firmenname über dem Spruch */
.brand { margin-bottom: 14px; font-size: clamp(20px, 2vw, 24px); font-weight: 800; line-height: 1.2; color: var(--green); }

/* Logo-Zeichen als Punktmatrix im Stil eines Terminals; Aufbau und Lichtstreif stecken im SVG
   (tools/make_dot_logo.py). Senkrecht mittig über top/bottom/margin statt transform,
   weil das Einblenden der Bühne transform belegt. */
.dotlogo {
  position: absolute; z-index: -1; right: -190px; top: 0; bottom: 0; margin: auto 0;
  width: 440px; height: auto; pointer-events: none;
}
/* schmaler Platz neben dem Text: an den rechten Rand rücken und hinter den Text zurücknehmen */
@media (max-width: 1399px) { .dotlogo { right: min(0px, calc(500px - 50vw + 16px)); width: min(440px, 44vw); opacity: .3; } }
@media (max-width: 759px) {
  .dotlogo { position: static; display: block; width: 190px; margin: 0 0 26px; opacity: 1; }
}

/* schwebende Punkte, bewusst flach: volle Kreise und Ringe (nur Kontur) ohne Verlauf, Glanz oder Schatten.
   Lage und Tempo je Punkt über Variablen. */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters span {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--green);
  opacity: var(--o, .85);
  animation: float var(--t, 14s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.floaters span.ring { background: none; border: 2px solid var(--green); opacity: var(--o, .55); }
@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(var(--dx, 18px), var(--dy, -24px)); }
  100% { transform: translate(calc(var(--dx, 18px) * -0.6), calc(var(--dy, -24px) * 0.5)); }
}
/* ---------- Knöpfe ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1.5px solid rgba(247, 247, 247, .35); color: #f7f7f7; background: rgba(247, 247, 247, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--green); background: rgba(140, 198, 63, .12); }
.btn.primary {
  background: var(--green); border-color: var(--green); color: var(--grey-deep);
  box-shadow: 0 8px 24px -8px rgba(140, 198, 63, .7);
}
.btn.primary:hover { box-shadow: 0 14px 30px -10px rgba(140, 198, 63, .85); background: #9bd052; }
/* Lichtstreif, der beim Überfahren durchläuft */
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; position: relative; }
section h2 {
  font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 28px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
section h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 18px 0 0 -2px rgba(140, 198, 63, .45), 34px 0 0 -4px rgba(140, 198, 63, .2);
  margin-right: 34px;
}
section h3 { font-size: 18px; margin: 30px 0 8px; }
/* jeder zweite Abschnitt auf feinem Punktgrund */
section.alt {
  background-color: var(--surface);
  background-image: radial-gradient(rgba(88, 89, 91, .12) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.card::before {   /* grüne Kante, die beim Überfahren aufläuft */
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.card::after {    /* großer Punkt in der Ecke */
  content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--green-mist); transition: transform .5s ease; z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(88, 89, 91, .55); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { transform: scale(1.35); }
.card .icon {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--grey); color: #f7f7f7; font-weight: 800; font-size: 18px;
}
.card .icon::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin: 14px 0 0 2px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
/* ein Spiel als Beispiel unter den Karten, nicht als Firmenbeschreibung */
.example { margin: 26px 0 0; color: var(--muted); }
.example .label {
  display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--green-mist); color: var(--green-deep);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card::after { background: rgba(140, 198, 63, .1); }
  :root:not([data-theme="light"]) .example .label { background: rgba(140, 198, 63, .16); color: var(--green); }
  :root:not([data-theme="light"]) section.alt { background-image: radial-gradient(rgba(236, 236, 237, .08) 1.2px, transparent 1.4px); }
}

/* Kontaktkarte */
.contact {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(135deg, var(--grey-deep), var(--grey)); color: #f7f7f7;
  border-radius: 22px; padding: 30px 32px; position: relative; overflow: hidden; isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(247, 247, 247, .1) 1.4px, transparent 1.6px); background-size: 20px 20px;
}
.contact::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(140, 198, 63, .45), transparent 70%);
}
.contact .big-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 10px rgba(140, 198, 63, .18); }
.contact address strong { color: #fff; }
.contact .small { color: rgba(247, 247, 247, .7); margin-bottom: 0; }

address { font-style: normal; }
.legal { max-width: 780px; }
.small { font-size: 15px; color: var(--muted); }
code { font-size: .9em; background: var(--grey-mist); padding: 1px 5px; border-radius: 5px; color: var(--grey-ink); }

/* ---------- Fuß ---------- */
footer {
  background: var(--grey-deep); color: rgba(247, 247, 247, .7); font-size: 14px; padding: 34px 0 44px; position: relative;
}
footer::before {   /* Punktreihe als Trennlinie */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px;
  background-image: radial-gradient(circle, var(--green) 2.2px, transparent 2.6px); background-size: 16px 6px;
  opacity: .8;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: rgba(247, 247, 247, .85); }
footer a:hover { color: var(--green); }

/* ---------- Einblenden beim Scrollen (nur wo der Browser es kann) ---------- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Einstieg der Bühne */
.hero .wrap > :not(.dotlogo) { animation: rise .8s cubic-bezier(.2, .8, .3, 1) both; }
.hero .wrap > :nth-child(3) { animation-delay: .08s; }
.hero .wrap > :nth-child(4) { animation-delay: .16s; }
.hero .wrap > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  header { position: static; }   /* zweizeilig über 100 px hoch: oben festgehalten nähme er zu viel vom Schirm */
  .hero .wrap { padding-top: 64px; padding-bottom: 60px; }
  .contact { grid-template-columns: 1fr; padding: 26px 22px; }
  .contact .big-dot { width: 44px; height: 44px; }
  nav { gap: 12px; }
  .logo img { height: 56px; }
  .wordmark { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
