/* Plus Jakarta Sans (SIL Open Font License 1.1, siehe fonts/OFL.txt), lokal gehostet, Teilmenge Latin, variabel 200–800 */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-italic.woff2") format("woff2");
}

:root {
  --bg: #060d14;
  --bg-band: #09141f;
  --text: #edf3f5;
  --muted: #98aeb3;
  --line: rgba(255, 255, 255, 0.09);
  --line-hover: rgba(45, 226, 208, 0.42);
  --teal: #2de2d0;
  --green: #7cf27a;
  --grad: linear-gradient(95deg, var(--teal), var(--green));
  --glass: rgba(14, 26, 36, 0.62);
  --glass-hover: rgba(18, 34, 46, 0.76);
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(920px 620px at 84% 6%, rgba(45, 226, 208, 0.09), transparent 62%),
    radial-gradient(700px 520px at 0% 42%, rgba(124, 242, 122, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.62 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }

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

section[id] { scroll-margin-top: 72px; }

h1, h2, h3 {
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 36em; }

/* Glas-Karten */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 20px 44px -24px rgba(0, 0, 0, 0.72);
}

/* Kopfzeile */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 13, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.logo circle { fill: var(--green); }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .94rem;
  opacity: .82;
  transition: opacity .15s, color .15s, border-color .15s, box-shadow .15s;
}
.nav a:hover { opacity: 1; color: var(--teal); }
.nav__cta {
  opacity: 1 !important;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 208, 0.45);
  background: rgba(45, 226, 208, 0.06);
}
.nav__cta:hover {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(45, 226, 208, 0.25);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 156px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: 62%;
  height: 84%;
  background: radial-gradient(ellipse at 60% 50%, rgba(45, 226, 208, 0.16), rgba(124, 242, 122, 0.05) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { z-index: 2; }
.hero__grid {
  position: absolute;
  inset: 0 0 0 38%;
  background-image:
    linear-gradient(rgba(45, 226, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 208, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 42%, #000 28%, transparent 74%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 42%, #000 28%, transparent 74%);
  pointer-events: none;
}
.hero__wave {
  position: absolute;
  left: 38%;
  top: 6%;
  width: 64%;
  height: 92%;
  z-index: 1;
  pointer-events: none;
}
.hero__inner h1, .hero__inner .lead { text-shadow: 0 2px 20px var(--bg); }
.hero__inner .glow { text-shadow: none; }

.pill {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(124, 242, 122, 0.09);
  border: 1px solid rgba(124, 242, 122, 0.30);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.glow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: #04221d;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(45, 226, 208, 0.36);
  transition: transform .15s, box-shadow .15s, border-color .15s, background-color .15s, color .15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(124, 242, 122, 0.50);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid rgba(45, 226, 208, 0.42);
  box-shadow: none;
}
.btn--ghost:hover {
  border-color: var(--teal);
  background: rgba(45, 226, 208, 0.08);
  box-shadow: 0 0 18px rgba(45, 226, 208, 0.22);
}
.btn--big {
  font-size: 1.08rem;
  padding: 14px 28px;
}

/* Abschnitte */
.section { padding: 88px 0; position: relative; }

.section--deep {
  background: var(--bg-band);
}
.section--deep::before,
.section--deep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 226, 208, 0.26), transparent);
}
.section--deep::before { top: 0; }
.section--deep::after { bottom: 0; }

h2.dot::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: 11px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(45, 226, 208, 0.50);
}

/* Raster & Karten */
.grid { display: grid; gap: 20px; margin-top: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 28px;
  position: relative;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.card:hover {
  border-color: var(--line-hover);
  background: var(--glass-hover);
}
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: .35rem;
}
.ico {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
  transition: opacity .2s, stroke .2s;
}
.card:hover .ico {
  opacity: 1;
  stroke: var(--green);
}

/* Kennzahlen */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 1.6rem 0 1.8rem;
}
.stat {
  border-left: 2px solid rgba(45, 226, 208, 0.55);
  padding: 4px 0 4px 16px;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

/* Referenzen */
.ref {
  display: flex;
  flex-direction: column;
}
.ref__title {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.ref__title span {
  color: var(--teal);
  font-size: .88em;
  margin-left: 4px;
  display: inline-block;
  transition: transform .15s;
}
.ref__title:hover { color: var(--teal); }
.ref__title:hover span { transform: translate(2px, -2px); }

.ref__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto !important;
  padding-top: 1.35rem;
}
.ref__links a {
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  transition: border-color .15s, color .15s, background-color .15s;
}
.ref__links a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(45, 226, 208, 0.08);
}

.badge {
  align-self: flex-start;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: .95rem;
  color: #9beee5;
  background: rgba(45, 226, 208, 0.08);
  border: 1px solid rgba(45, 226, 208, 0.24);
}
.badge--mint {
  color: #b7f5b6;
  background: rgba(124, 242, 122, 0.08);
  border-color: rgba(124, 242, 122, 0.24);
}

/* Über mich */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about__photo {
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1a22;
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(45, 226, 208, 0.08);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

/* Kontakt */
.contact {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(460px 220px at 50% 108%, rgba(45, 226, 208, 0.14), transparent 72%),
    var(--glass);
}
.contact .lead { margin: 0 auto 1.6rem; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.contact__meta { font-size: .95rem; margin-bottom: 0; }

/* Fußzeile */
.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  font-size: .9rem;
  color: var(--muted);
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--teal); }

/* Rechtstexte */
.legal { padding: 60px 24px 88px; max-width: 760px; }
.legal__back {
  display: inline-block;
  margin-bottom: 1.8rem;
  font-size: .92rem;
  text-decoration: none;
  color: var(--muted);
}
.legal__back:hover { color: var(--teal); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .grid--2 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { width: 180px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 68px 0 220px; }
  .hero__wave { left: 0; top: auto; bottom: 0; width: 100%; height: 42%; }
  .hero__grid { inset: 42% 0 0 0; }
  .hero::after { right: 0; top: auto; bottom: -10%; width: 100%; height: 55%; }
  .section { padding: 60px 0; }
  .card { padding: 22px; }
  .contact { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav a, .ref__title, .ref__title span, .ref__links a, .ico { transition: none; }
}
