/* ============================================================
   NetzCloud – Design System
   Dunkles Theme im Stil von Radio Bartenstein,
   adaptiert auf die NetzCloud-Identität (Indigo/Violett).
   ============================================================ */

:root {
  --bg:        #0a0c11;
  --bg-soft:   #0f121a;
  --card-bg:   #14171f;
  --card-hover:#181c26;
  --border:    #242833;
  --border-lit:#323847;

  --text:      #f3f4f7;
  --muted:     #8b909e;
  --faint:     #5b6070;

  --accent:    #6366f1;  /* Indigo  */
  --accent-2:  #a855f7;  /* Violett */
  --accent-lit:#818cf8;
  --green:     #22c55e;

  --maxw: 1080px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Ambient glow im Hintergrund ------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(540px 540px at 18% -5%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(540px 540px at 88% 8%, rgba(168,85,247,0.14), transparent 60%);
}

/* ============================== NAV ======================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 17, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99,102,241,0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-links .btn-accent {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-links .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 49;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  padding: 10px 0;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ============================ HERO ========================= */
.hero {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 56px;
}

.hero-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  background: rgba(20,23,31,0.6);
  margin-bottom: 26px;
}
.eyebrow .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-soft 2s infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent-lit), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38ch;
  margin: 0 auto 40px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

/* ===================== LINK CARDS ========================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s var(--ease) forwards;
}
.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.12s; }
.link-card:nth-child(3) { animation-delay: 0.19s; }
.link-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-lit);
  background: var(--card-hover);
}

.link-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(168,85,247,0.16));
  border: 1px solid var(--border-lit);
}

.link-body { flex: 1; min-width: 0; }
.link-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}
.link-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 2px;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--faint);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.link-card:hover .link-arrow {
  color: var(--accent-lit);
  transform: translateX(3px);
}

/* ====================== LEGAL PAGE ========================= */
.legal-page {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 72px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin-bottom: 36px;
}

.legal-section {
  margin-bottom: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lit);
  margin-bottom: 13px;
}

.legal-section p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}
.legal-section a { color: var(--accent-lit); }
.legal-section a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 28px;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--text); }

/* ========================= FOOTER ========================== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.footer-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--faint); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--muted); }

/* ====================== RESPONSIVE ========================= */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .link-card { opacity: 1; transform: none; }
}
