/* 3dGecko — Platzhalter / "Im Aufbau". Selbst-enthalten, keine externen
   Ressourcen (keine CDNs, keine Fonts von Dritten) -> schnell + DSGVO-sauber.
   Markenwerte aus apps/web (globals.css / tailwind): --ki-dark, --ki-slate,
   Gecko-Verlauf #56a500 -> #caff00. Kein Hover-Translate (nur Farbwechsel). */

:root {
  --bg: #0f172a;
  --bg2: #1a2336;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent-1: #56a500;
  --accent-2: #caff00;
  --maxw: 70ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;        /* Sticky-Footer-Layout */
  background-color: var(--bg);
  /* Dezentes Blueprint-Punktraster + weicher radialer Glow oben. */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(86, 165, 0, 0.10), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
  background-size: auto, 24px 24px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #ffffff; }            /* Hover = nur Farbwechsel, keine Bewegung */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Header / Logo ---------- */
.site-header { padding: 40px 0 0; }
.logo { display: block; height: 56px; width: auto; max-width: 100%; }

/* ---------- Hero (Startseite) ---------- */
main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.hero { padding: 64px 0 80px; overflow: hidden; }  /* clippt den Roll-in am Sektionsrand, kein H-Scroll */
.hero .logo { height: 96px; margin-bottom: 40px; }

/* ---- Logo-Intro: Gecko (#path11) rollt herein, danach blenden die Buchstaben
   (#path1) darueber ein. Beide Pfade liegen im selben SVG -> pixelgenau aligned. ---- */
.logo-svg { overflow: visible; }                    /* Gecko darf beim Rollen ueber die SVG-Box hinaus */
.logo-svg #path11 {
  transform-box: fill-box;
  transform-origin: center;
  /* Originaltempo wie zuvor; back-out-Kurve gibt den Ueberschwung.
     Weg UND Drehung schwingen ueber denselben Fortschritt proportional mit -> synchron. */
  animation: gecko-roll 1.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.logo-svg #path1 {
  animation: logo-text-fade 0.6s ease-out 0.95s both;
}
/* Rollen ohne Schlupf: Drehung = Weg / Radius. Gecko-Radius ~383 SVG-Einheiten;
   2000 Einheiten Weg => 299deg (statt vorher 1080deg -> das war das "Durchdrehen"). */
@keyframes gecko-roll {
  from { transform: translateX(-2000px) rotate(-299deg); }
  to   { transform: translateX(0) rotate(0); }
}
@keyframes logo-text-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Akzent-Linie im Gecko-Verlauf, sehr dezenter Schimmer. */
.accent-bar {
  height: 4px;
  width: 132px;
  border-radius: 99px;
  margin: 22px 0 28px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-1));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 56ch; margin: 0 0 36px; }
.lead strong { color: var(--ink); font-weight: 600; }

.contact { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #0b1220; }
.btn--primary:hover { color: #0b1220; filter: brightness(1.08); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: 56px 0 72px; }
.legal .back { display: inline-block; font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.legal .back:hover { color: var(--accent-2); }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .stand { color: var(--muted); font-size: 0.85rem; margin: 0 0 36px; }
.legal section { max-width: var(--maxw); margin: 0 0 30px; }
.legal h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--ink);
}
.legal section:first-of-type h2 { border-top: none; padding-top: 0; }
.legal p, .legal ul { color: var(--muted); margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0 0 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .addr { color: var(--ink); line-height: 1.7; }

/* ---------- Footer (immer am Viewport-Boden) ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  padding: 22px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-2); }

@media (max-width: 560px) {
  .site-footer .wrap { justify-content: flex-start; }
  .contact { gap: 12px; }
  .btn { width: 100%; justify-content: center; }
  .hero { padding: 40px 0 56px; }
  .hero .logo { height: auto; width: 72vw; max-width: 300px; margin-bottom: 28px; }
}

/* Reduced Motion: jede Animation aus. */
@media (prefers-reduced-motion: reduce) {
  .accent-bar { animation: none; }
  a, .btn { transition: none; }
  .logo-svg #path11 { animation: none; transform: none; }
  .logo-svg #path1 { animation: none; opacity: 1; }
}
