/* =============================================
   Quicksom.com — Dark Modern Theme
   ============================================= */

:root {
  --bg-primary: #0d0f14;
  --bg-secondary: #13161e;
  --bg-card: #1a1d27;
  --bg-card-hover: #1f2333;
  --accent: #6c63ff;
  --accent-light: #8b85ff;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --text-primary: #f0f2f8;
  --text-secondary: #8b92a8;
  --text-muted: #555d74;
  --border: #232738;
  --border-light: #2e3347;
  --success: #34d399;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px rgba(108, 99, 255, 0.15);
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-secondary); }

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent-light); }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-light); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ── Hero ── */
#hero {
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f0f2f8 0%, #9b96ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(108,99,255,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ── Section Labels ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── About ── */
#about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transition: all var(--transition);
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--accent); }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ── Apps ── */
#apps {}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.app-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-accent);
}
.app-card:hover::before { opacity: 1; }

.app-card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.app-card-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.app-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.app-card-links {
  display: flex;
  gap: 0.75rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.app-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Coming soon card */
.app-card.coming-soon {
  opacity: 0.55;
  border-style: dashed;
  cursor: default;
}
.app-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ── Contact ── */
#contact {
  background: var(--bg-secondary);
  text-align: center;
}

#contact .section-desc { margin: 0 auto 2rem; }

/* ── Footer ── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Sub-pages (Impressum / Datenschutz) ── */
.subpage-hero {
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text-primary);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text-secondary);
}

.prose p, .prose li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

.prose a { color: var(--accent-light); }
.prose a:hover { text-decoration: underline; }

.prose .highlight-box {
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.prose .highlight-box p { color: var(--text-primary); margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  section { padding: 4rem 0; }
  #hero { padding: 8rem 0 5rem; }
}

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

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
