:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-strong: #f9fafb;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 8px 18px rgba(0, 0, 0, 0.25);
  --max-width: 1080px;
}

/* Reset / Base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, #38bdf8, #1d4ed8);
  color: #0b1120;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6),
    0 10px 25px rgba(8, 47, 73, 0.8);
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-weight: 600;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.35rem 0;
  position: relative;
  color: var(--text-muted);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #22c55e);
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: var(--text-strong);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: var(--text-strong);
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease-out, transform 0.14s ease-out,
    box-shadow 0.14s ease-out, border-color 0.14s ease-out;
}

.btn-primary {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  color: #020617;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-strong);
  background: rgba(15, 23, 42, 0.95);
}

.btn-full {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Card */

.hero-card {
  background: radial-gradient(circle at 0 0, #1e293b, #020617);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  opacity: 0.13;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.9),
    transparent 60%
  );
  pointer-events: none;
}

.hero-card-header {
  position: relative;
  margin-bottom: 1rem;
}

.hero-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-card-header p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.87rem;
}

.hero-card-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-note {
  position: relative;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: radial-gradient(
    circle at top left,
    #020617,
    #020617 30%,
    #020617
  );
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Layout helpers */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
}

/* About */

.about-facts {
  background: radial-gradient(circle at top left, #1e293b, #020617);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.fact {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.fact-value {
  font-size: 0.9rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: radial-gradient(
    circle at top left,
    #020617,
    #020617 40%,
    #020617
  );
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
}

.cards-projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Contact */

.contact-box {
  background: radial-gradient(circle at top left, #1e293b, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal pages */

.legal-main .section-inner {
  max-width: 820px;
}

.legal-main h1 {
  margin-top: 0;
  margin-bottom: 1.3rem;
  font-size: 1.6rem;
}

.legal-main h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.legal-main p,
.legal-main ul {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 1.5rem;
  padding: 1rem 0 1.4rem;
  background: linear-gradient(to top, #020617, transparent);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-strong);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 0;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Simple fallback: mobile Nutzer scrollen einfach, keine JS-Navigation */
  .hero {
    padding-top: 3.25rem;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
