/* Atosari GmbH – Website
   Markenfarben aus dem Logo: Schiefer, Violett, Petrol.
   Bewusst ohne Animationen / bewegte Bilder. */

/* Schriften lokal eingebunden (keine Verbindung zu Google), Lizenz: assets/fonts/OFL-Inter.txt */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #2c3442;
  --slate: #4c5667;
  --muted: #6b7484;
  --line: #d9dce2;
  --paper: #ffffff;
  --bg: #f5f4f0;
  --violet: #8a4d9b;
  --violet-soft: #efe5f2;
  --teal: #4f9ea9;
  --teal-soft: #e2f0f2;
  --night: #232a36;
  --night-2: #2d3644;

  --display: "Inter Tight", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
}

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

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

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 16px; z-index: 100; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 32px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--slate);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--teal); }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.lang a, .lang span { padding: 5px 11px; text-decoration: none; }
.lang span { background: var(--ink); color: #fff; }
.lang a { color: var(--slate); }
.lang a:hover { background: var(--teal-soft); }

/* ---------- Buttons & Labels ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--violet); border-color: var(--violet); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn .arrow { font-family: var(--display); font-size: 20px; line-height: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet); box-shadow: 14px 0 0 -2px var(--teal);
  margin-right: 12px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; margin: 0; letter-spacing: -.028em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--violet); }

.lead { font-size: 20px; color: var(--slate); max-width: 34em; }

section { padding: 112px 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 64px;
}
.section-head p { margin: 0; color: var(--slate); font-size: 18px; }
.section-head .eyebrow { margin-bottom: 20px; }

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

.hero {
  background: var(--paper);
  padding: 88px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 { margin: 22px 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* Grafik ragt über die Spalte hinaus, damit das Netz nach außen ausläuft */
.hero-graph { width: 150%; max-width: none; height: auto; margin: -12% -38% -12% -12%; }
.hero-graph text {
  font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--slate);
  paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round;
  letter-spacing: .02em;
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.fact { padding: 32px 28px 36px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b {
  display: block; font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ink);
}
.fact b sup { font-size: .45em; color: var(--teal); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 18em; }

/* ---------- Bedeutung des Namens (Akronym) ---------- */

.name-band { background: var(--night); color: #e9ecf1; }
.name-band .eyebrow { color: #c9a5d4; }
.name-band .eyebrow::before { background: #c9a5d4; box-shadow: 14px 0 0 -2px #84c6cf; }
.name-band h2 em { color: #84c6cf; }
.name-band .section-head p { color: #b9c0cc; }

.acronym {
  --ls: 96px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.acronym li { --c: #c9a5d4; position: relative; padding-right: 12px; }
.acronym li:nth-child(2) { --c: #bdaad3; }
.acronym li:nth-child(3) { --c: #b2b0d2; }
.acronym li:nth-child(4) { --c: #a7b6d1; }
.acronym li:nth-child(5) { --c: #9bbbd0; }
.acronym li:nth-child(6) { --c: #8fc0d0; }
.acronym li:nth-child(7) { --c: #84c6cf; }

.acronym .letter {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: var(--ls); line-height: 1; letter-spacing: -.04em; color: var(--c);
}
.acronym .dot {
  display: block; position: relative; z-index: 1;
  width: 12px; height: 12px; margin: 16px 0 18px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 5px var(--night);
}
/* Verbindungslinie von Knoten zu Knoten */
.acronym li:not(:last-child)::after {
  content: ""; position: absolute; left: 6px; right: -6px;
  top: calc(var(--ls) + 16px + 5px); height: 2px;
  background: linear-gradient(90deg, var(--c), #56657a);
}
.acronym .word { display: block; font-weight: 700; font-size: 17px; color: #fff; }
.acronym .word b { color: var(--c); font-weight: 700; }
.acronym .desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #9ea7b5; }

/* ---------- Auf einen Blick ---------- */

/* Vier Knoten auf einer Verbindungslinie, darunter je eine Karte */
.glance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative; list-style: none; margin: 0; padding: 0;
}
.glance-grid::before {
  content: ""; position: absolute; top: 31px; left: 32px; right: 32px; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
}
.glance-item { --c: var(--violet); display: flex; flex-direction: column; }
.glance-item:nth-child(2) { --c: #7a5ba0; }
.glance-item:nth-child(3) { --c: #5a86a8; }
.glance-item:nth-child(4) { --c: var(--teal); }

.glance-ico {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--c); color: var(--c);
  box-shadow: 0 0 0 8px var(--bg);
}
.glance-ico svg { width: 28px; height: 28px; }
.glance-ico .idx {
  position: absolute; top: -6px; right: -10px;
  min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px;
  display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 11px; font-weight: 700;
}

.glance-card {
  position: relative; flex: 1;
  margin-top: 28px; padding: 26px 24px 28px;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--c);
}
.glance-card::before {
  content: ""; position: absolute; left: 31px; top: -31px; height: 28px;
  border-left: 2px dotted var(--c);
}
.glance-item .k {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c);
}
.glance-card h3 { margin: 10px 0 12px; font-size: 21px; }
.glance-card p { margin: 0; font-size: 15.5px; color: var(--slate); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.glance-card .chips + p { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Module (Knotenpfad) ---------- */

.modules { background: var(--paper); }

.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before {
  content: ""; position: absolute; top: 18px; bottom: 18px; left: 165px; width: 2px;
  background: linear-gradient(var(--violet), var(--teal));
}
.step {
  display: grid; grid-template-columns: 110px 84px 1fr 1.1fr; gap: 0 24px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num {
  font-family: var(--display); font-size: 54px; line-height: 1; color: var(--line);
  -webkit-text-stroke: 1px var(--slate); color: transparent;
}
.step .node {
  width: 20px; height: 20px; border-radius: 50%; margin: 14px 0 0 22px;
  background: var(--paper); border: 5px solid var(--violet); position: relative; z-index: 1;
}
.step:nth-child(2) .node { border-color: #7a5ba0; }
.step:nth-child(3) .node { border-color: #6a6fa5; }
.step:nth-child(4) .node { border-color: #5a86a8; }
.step:nth-child(5) .node { border-color: var(--teal); }
.step h3 { padding-top: 6px; }
.step .tag {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.step p { margin: 6px 0 0; color: var(--slate); }

/* ---------- Game Development ---------- */

.games {
  background: var(--night); color: #e9ecf1;
  position: relative; overflow: hidden;
}
.games .eyebrow { color: #c9a5d4; }
.games .eyebrow::before { background: #c9a5d4; box-shadow: 14px 0 0 -2px #84c6cf; }
.games h2 em { color: #84c6cf; }
.games .section-head p { color: #b9c0cc; }
.games .bg-grid { position: absolute; right: -60px; top: -40px; width: 560px; opacity: .55; pointer-events: none; }
.games .wrap { position: relative; }

.game-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: #3a4556; border: 2px solid #3a4556;
}
.game-card { background: var(--night-2); padding: 36px 36px 40px; }
.game-card .code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px; font-weight: 700; color: #84c6cf;
  display: inline-block; padding: 3px 9px; border: 1px solid #4a5a6d; border-radius: 3px;
}
.game-card h3 { margin: 20px 0 12px; color: #fff; }
.game-card p { margin: 0; color: #b9c0cc; }
.game-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.game-card li {
  font-size: 13px; font-weight: 600; color: #dfe3ea;
  padding: 4px 10px; border-radius: 999px; background: #384354;
}
.games-note {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  padding: 24px 28px; border: 1px dashed #56657a; border-radius: var(--radius); color: #c9cfd8;
}
.games-note b { font-family: var(--display); font-weight: 500; font-size: 22px; color: #fff; }

/* ---------- Ergebnisse ---------- */

.results-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.big-stat {
  background: var(--paper); border-left: 6px solid var(--violet);
  padding: 40px 40px 44px;
}
.big-stat b {
  display: block; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: .9;
  font-size: clamp(88px, 12vw, 152px); color: var(--ink);
}
.big-stat b small { font-size: .42em; color: var(--violet); }
.big-stat p { margin: 18px 0 0; font-size: 18px; color: var(--slate); }

.checklist { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.checklist li {
  counter-increment: r;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line); font-size: 18px;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--display); font-size: 22px; color: var(--teal);
}
.kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kpis span {
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--teal-soft); color: #2f6e77;
}

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

.contact { background: var(--paper); }
.contact-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0;
  border: 2px solid var(--ink);
}
.contact-main { padding: 56px; }
.contact-main h2 { margin: 18px 0 20px; }
.contact-main p { color: var(--slate); font-size: 18px; max-width: 30em; }
.contact-main .btn { margin-top: 18px; }
.contact-card {
  padding: 56px 48px; background: var(--violet-soft);
  border-left: 2px solid var(--ink);
  display: flex; flex-direction: column; justify-content: center;
}
/* Foto mit Verlaufsring in Markenfarben */
.contact-card .avatar {
  width: 136px; height: 136px; border-radius: 50%;
  object-fit: cover; padding: 4px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
}
.contact-card h3 { margin-top: 20px; }
.contact-card .role { color: var(--muted); font-weight: 600; margin: 4px 0 22px; }
.contact-card a {
  display: block; text-decoration: none; font-weight: 700; padding: 10px 0;
  border-top: 1px solid rgba(44, 52, 66, .15);
  overflow-wrap: anywhere;
}
.contact-card a:hover { color: var(--violet); }

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

.site-footer { background: var(--night); color: #b9c0cc; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #84c6cf;
}
.site-footer p { margin: 0; }
.footer-grid.footer-slim { grid-template-columns: 1fr auto; align-items: end; }
.site-footer a { color: #e9ecf1; }
.footer-brand { font-family: var(--display); font-size: 28px; color: #fff; margin-bottom: 8px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a4556;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Rechtliche Seiten ---------- */

.legal { padding: 80px 0 112px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p { margin: 0 0 12px; color: var(--slate); }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--slate); }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal .todo {
  background: #fff6db; border-left: 4px solid #d9a400; padding: 14px 18px; color: #6b5300;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid, .section-head, .results-grid, .contact-box { grid-template-columns: 1fr; }
  .hero-graph { width: 120%; max-width: 680px; margin: -4% auto -4% -10%; }
  .acronym { --ls: 60px; }
  .acronym .word { font-size: 15px; }
  .acronym .desc { font-size: 13px; }
  .glance-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .glance-grid::before { display: none; }
  .step { grid-template-columns: 70px 64px 1fr; }
  .step > p { grid-column: 3; }
  .path::before { left: 115px; }
  .step .node { margin-left: 12px; }
  .contact-card { border-left: 0; border-top: 2px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .brand img { height: 42px; }
  .site-header .header-cta { display: none; }
  .hero { padding-top: 48px; }
  .lead { font-size: 18px; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .fact, .fact + .fact { padding: 22px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .acronym { --ls: 52px; grid-template-columns: 1fr; }
  .acronym li {
    display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid #3a4556;
  }
  .acronym li:last-child { border-bottom: 0; }
  .acronym li:not(:last-child)::after, .acronym .dot { display: none; }
  .acronym .letter { grid-row: span 2; }
  .glance-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .step { grid-template-columns: 44px 1fr; gap: 0 16px; }
  .step .num { display: none; }
  .step > p, .step h3 { grid-column: 2; }
  .step .node { margin: 10px 0 0 0; }
  .path::before { left: 9px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { padding: 28px 22px; }
  .games .bg-grid { width: 340px; right: -120px; }
  .games-note { grid-template-columns: 1fr; }
  .contact-main, .contact-card { padding: 32px 22px; }
  .big-stat { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
