/* ============================================================
   Lucas Keil IT Services — Stylesheet
   Dark Navy · Cyan Accent · Manrope (lokal gehostet)
   ============================================================ */

/* ---------- Schrift (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #070b16;
  --bg-soft:       #0b1222;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent:        #38e0f5;
  --accent-2:      #4d8cff;
  --accent-soft:   rgba(56, 224, 245, 0.12);
  --accent-glow:   rgba(56, 224, 245, 0.35);
  --ok:            #3ddc97;

  --text:          #f4f7fb;
  --text-muted:    #aab4c5;
  --text-dim:      #7c879a;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max:           1140px;
  --radius:        18px;
  --radius-lg:     26px;
  --nav-h:         68px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:        0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(820px 520px at 80% -8%, rgba(77, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 480px at 6% 10%, rgba(56, 224, 245, 0.09), transparent 55%),
    linear-gradient(180deg, #070b16 0%, #060912 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent-glow); color: #03121a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #03121a;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.08rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, #5cc8ff 100%);
  color: #03121a;
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent-glow); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #03121a;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #03121a; min-height: 40px; padding: 0 18px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(7, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  font-weight: 800;
}
.hero-lead {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.15rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 36px;
  margin-top: 44px;
  list-style: none;
}
.stats strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.stats span { color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }

.status-card {
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}
.status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}
.status-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.status-head span { margin-left: 8px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.status-row + .status-row { border-top: 1px solid var(--border); }
.status-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.status-icon svg { width: 20px; height: 20px; }
.status-row div { flex: 1; min-width: 0; }
.status-row strong { display: block; font-size: 0.98rem; }
.status-row small { color: var(--text-dim); font-size: 0.85rem; }
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.12);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .stats { gap: 22px; }
  .stats strong { font-size: 1.5rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Karten ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { margin-top: 8px; color: var(--text-muted); }

.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 224, 245, 0.14), rgba(77, 140, 255, 0.10));
  border-color: rgba(56, 224, 245, 0.28);
}
.card-cta p { margin: 0 0 8px; }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 28px;
  border-left: 2px solid var(--border-strong);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.steps p { margin-top: 8px; color: var(--text-muted); }

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 380px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 224, 245, 0.25), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(77, 140, 255, 0.25), transparent 55%),
    var(--bg-soft);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.about-text p { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.about-text strong { color: var(--text); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.tags li {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 220px; }
}

/* ---------- Vorteile ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  list-style: none;
}
.features li { padding-top: 20px; border-top: 1px solid var(--border-strong); }
.features p { margin-top: 6px; color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Kontakt ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(56, 224, 245, 0.12), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(77, 140, 255, 0.12), transparent 60%),
    var(--bg-soft);
}
.contact-box > div > p { margin-top: 14px; color: var(--text-muted); font-size: 1.08rem; }
.contact-list { display: grid; gap: 12px; list-style: none; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.contact-list a:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.contact-list small { display: block; color: var(--text-dim); font-size: 0.82rem; font-weight: 600; }
.contact-list strong { font-size: 1.02rem; word-break: break-word; }
@media (max-width: 820px) {
  .contact-box { grid-template-columns: 1fr; padding: 32px 22px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer nav ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 780px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.legal .subtitle { margin-top: 10px; color: var(--text-dim); }
.legal h2 {
  margin: 44px 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
}
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 12px 22px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--text-muted); }
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  color: var(--text-muted);
}
.legal dt { color: var(--text-dim); }
@media (max-width: 520px) {
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; }
.notfound p { margin: 8px 0 28px; color: var(--text-muted); }

/* ---------- Animation (nur Hero, ohne JS) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .container > * { animation: rise 0.8s var(--ease) both; }
.hero .container > *:nth-child(2) { animation-delay: 0.12s; }

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

/* ---------- Sprachumschalter ---------- */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-switch a {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--surface-hover); color: var(--text); }
.notfound .home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 680px) {
  .nav .brand span:not(.brand-mark) { display: none; }
}

/* ---------- Verstecktes Terminal ---------- */
.term {
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  height: min(62vh, 540px);
  border: 1px solid rgba(56, 224, 245, 0.3);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(4, 7, 15, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(56, 224, 245, 0.06), 0 0 60px -20px var(--accent-glow);
  color: #d6e2f0;
  font: 14px/1.6 var(--mono);
  transform: translate(-50%, -104%);
  transition: transform 0.22s var(--ease);
  cursor: text;
}
.term.open { transform: translate(-50%, 0); }
.term[hidden] { display: none; }

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  cursor: default;
}
.term-dots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
  margin-right: 34px;
}
.term-title { flex: 1; text-align: center; }
.term-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font: 20px/1 var(--mono);
  cursor: pointer;
}
.term-close:hover { background: var(--surface-hover); color: var(--text); }

.term-out {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 4px;
  overscroll-behavior: contain;
}
.t-row { white-space: pre-wrap; word-break: break-word; }
.t-cmd { color: var(--text); margin-top: 6px; }
.t-dim { color: var(--text-dim); }
.t-accent { color: var(--accent); }
.t-err { color: #ff7a8a; }
.t-pair { display: grid; grid-template-columns: minmax(0, 16ch) 1fr; gap: 12px; }
.t-key { color: var(--accent-2); }
.t-link { color: var(--accent); text-underline-offset: 3px; }
.t-fetch { display: flex; gap: 22px; white-space: pre; }
.t-logo { min-width: 14ch; color: var(--accent); }

.term-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 16px;
}
.term-prompt { color: var(--ok); white-space: nowrap; }
.term-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  caret-color: var(--accent);
}

.term-open {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: 600 0.85rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  cursor: pointer;
  transition: color 0.2s;
}
.term-open:hover { color: var(--accent); }

@media (max-width: 600px) {
  .term { height: 72vh; border-radius: 0 0 12px 12px; font-size: 13px; }
  .term-prompt { font-size: 0; }
  .term-prompt::before { content: "$"; font-size: 13px; }
  .t-pair { grid-template-columns: 1fr; gap: 0; margin-bottom: 4px; }
  .t-fetch { flex-direction: column; gap: 0; }
}
