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

:root {
  --bg:       #0a0a0f;
  --surface:  #111118;
  --border:   #1e1e2e;
  --accent:   #6366f1;
  --accent2:  #a78bfa;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --green:    #10b981;
  --tag-bg:   #1e1e2e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo svg { height: 26px; width: auto; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── SECTIONS ── */
section { padding: 6rem 2rem; max-width: 900px; margin: 0 auto; }

/* ── HERO ── */
#hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
h1 .gradient {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #4f52e0; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--muted); text-decoration: none; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SECTION HEADINGS ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── ABOUT ── */
#about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.about-text p strong { color: var(--text); }
.skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.about-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent2);
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ── PROJECTS ── */
#projects { border-top: 1px solid var(--border); }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #111118 60%, #13131e);
  border-color: #2d2d42;
}
.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: var(--tag-bg);
  flex-shrink: 0;
}
.project-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-live { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.status-beta { background: rgba(99,102,241,0.15); color: var(--accent2); border: 1px solid rgba(99,102,241,0.3); }
.status-research { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border); }
.project-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.project-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
}
.project-link {
  font-size: 0.8rem;
  color: var(--accent2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  align-self: flex-start;
}
.project-link:hover { text-decoration: underline; }

/* ── PRINCIPLES ── */
#principles { border-top: 1px solid var(--border); }
.principles-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .principles-list { grid-template-columns: 1fr; } }
.principle {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.principle-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.principle h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.principle p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── DATA SOVEREIGNTY ── */
#sovereignty { border-top: 1px solid var(--border); }
.sovereignty-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.06));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.sovereignty-flag {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.sovereignty-banner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.sovereignty-banner p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.sovereignty-banner strong { color: var(--green); }
.sovereignty-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 600px) { .sovereignty-compare { grid-template-columns: 1fr; } }
.compare-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.compare-card.bad {
  background: rgba(239,68,68,0.04);
  border-color: rgba(239,68,68,0.15);
}
.compare-card.good {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.2);
}
.compare-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.compare-card.bad .compare-header { color: #f87171; }
.compare-card.good .compare-header { color: var(--green); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.compare-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.compare-list li::before {
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}
.compare-card.bad .compare-list li::before { content: '✗'; color: #f87171; }
.compare-card.good .compare-list li::before { content: '✓'; color: var(--green); }
.hosting-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hosting-section > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }
.hosting-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) { .hosting-cards { grid-template-columns: 1fr; } }
.hosting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.hosting-card.highlighted { border-color: var(--accent); }
.hosting-tier {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.hosting-card.highlighted .hosting-tier { color: var(--accent2); }
.hosting-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.hosting-features { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.hosting-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.hosting-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.hosting-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--tag-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  line-height: 1.6;
}
.hosting-price {
  margin: 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.hosting-price .amount {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hosting-price .period { font-size: 0.8rem; color: var(--muted); }
.hosting-price .setup {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.hosting-card.highlighted .hosting-price .amount { color: var(--accent2); }

/* ── LEGAL ── */
#impressum, #datenschutz {
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-content ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}
.legal-content a { font-size: 0.875rem; }

/* ── CONTACT ── */
#contact { border-top: 1px solid var(--border); }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}
.contact-box h2 { margin-bottom: 0.75rem; }
.contact-box p { color: var(--muted); margin-bottom: 2rem; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }