/* Fonts: System-Fallbacks (keine externen Requests, keine lokalen Font-Dateien nötig) */

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

:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface2: #1a1a1f;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8ec;
  --text-soft: rgba(232,232,236,0.84);
  --muted: rgba(232,232,236,0.64);
  --accent: #c8f0a0;
  --accent-dim: rgba(200,240,160,0.12);
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid rgba(200,240,160,0.65);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-200%);
  padding: 0.6rem 0.9rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  z-index: 200;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   Header / Nav
───────────────────────────────────────────────────────────── */
header nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 1.25rem;
  margin-left: 1.25rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { color: var(--text); }

.lang-sep {
  color: rgba(255,255,255,0.18);
  font-size: 0.8rem;
  user-select: none;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   Routing / Pages
───────────────────────────────────────────────────────────── */
.page {
  display: none;
  padding-top: 64px;
  min-height: 100vh;
}

.page.active { display: block; }

/* ── HOME ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-cta {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #0c0c0e;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 1rem;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

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

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
}

.app-card {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.app-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.app-card:hover { background: var(--surface2); }
.app-card:hover::after { transform: scaleX(1); }

.app-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.app-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.app-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: 900px;
  margin: 0 auto;
}

/* ── INNER PAGES ── */
.inner-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

.inner-page .page-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.inner-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.inner-page .subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.5rem 0 0.8rem;
}

.prose p, .prose li {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,240,160,0.3);
  transition: border-color 0.2s;
}

.prose a:hover { border-color: var(--accent); }

/* Support cards (aktuell optional, kann später wieder genutzt werden) */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.support-card {
  background: var(--surface);
  padding: 1.8rem;
}

.support-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.support-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.support-card a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
}

.footer-logo .brand-accent { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header nav {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
  }

  .nav-logo { order: 1; font-size: 1.05rem; }

  .lang-switch {
    order: 2;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    gap: 0.45rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 0.9rem 1.1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links a { font-size: 0.78rem; }

  .page { padding-top: 112px; }

  .hero {
    min-height: auto;
    padding: 5rem 1rem 3rem;
  }
  .hero-label { margin-bottom: 1.4rem; }
  .hero p { font-size: 1rem; }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .btn { justify-content: center; }
  .btn-ghost { margin-left: 0; margin-top: 0; }

  .section { padding: 4rem 1rem; }
  .section h2 { margin-bottom: 2rem; }

  .app-card { padding: 1.4rem; }

  .inner-page { padding: 4rem 1rem 6rem; }
  .inner-page .subtitle { margin-bottom: 2.5rem; padding-bottom: 2rem; }

  .support-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
  header nav { padding: 0.7rem 0.85rem; }
  .nav-links { gap: 0.75rem 0.9rem; }
  .nav-links a { font-size: 0.74rem; }
  .hero { padding: 4.5rem 0.85rem 2.75rem; }
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
