/* ============================================================
   NetzNetz – Design "Papier Dunkel" (dunkel, warm, eckig-klar)
   Basis: Variablen, Navbar, Seiten-Layout, Footer, Cookie-Banner
   ============================================================ */
:root {
  --bg-surface: #181612;       /* warmes Tintenschwarz */
  --bg-card: #211e18;
  --bg-input: #14120e;
  --border-color: #3a352b;
  --edge: #6b6455;             /* kräftigere Kanten (Modals, Hover) */
  --accent-primary: #8b97ff;   /* helles Indigo */
  --accent-hover: #a9b2ff;
  --accent-soft: rgba(139, 151, 255, 0.14);
  --on-accent: #10133a;
  --text-main: #f1ece0;
  --text-muted: #a39a88;
  --status-online: #5fd08e;
  --status-maint: #e0a64a;
  --danger: #ef6a5b;
  --hover-tint: rgba(241, 236, 224, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --font-main: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-code: 'Cascadia Code', 'JetBrains Mono', ui-monospace, monospace;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #4a4538 transparent; }
html { color-scheme: dark; }
::selection { background: var(--accent-primary); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

body {
  background: var(--bg-surface);
  font-family: var(--font-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* 1. NAVBAR */
.navbar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 1152px;
  margin: 12px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--edge);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
}

.navbar-container {
  padding: 0 1.25rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { width: 32px; height: 32px; border-radius: var(--r-s); object-fit: cover; }
.brand-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-main); }

.brand-badge {
  font-family: var(--font-code);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-s);
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 151, 255, 0.3);
  text-decoration: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-s);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.nav-link i { font-size: 0.85rem; }
.nav-icon { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.nav-link:hover { background: var(--hover-tint); color: var(--accent-primary); }

/* 2. INHALT */
.main-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-primary);
  border-radius: var(--r-m);
  padding: 1.75rem 2rem;
}
.hero-banner h1 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.hero-banner p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }

.section-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Entwickler-Karten */
.dev-list { display: flex; flex-direction: column; gap: 0.6rem; }

.dev-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-m);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dev-card:hover { border-color: var(--edge); box-shadow: 3px 3px 0 var(--edge); }

.dev-left { display: flex; align-items: center; gap: 0.75rem; }

.dev-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-s);
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.dev-name { font-weight: 600; font-size: 0.9rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-s);
  background: rgba(95, 208, 142, 0.12);
  color: var(--status-online);
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-online); }

.dev-card[data-status="offline"] .status-badge { background: rgba(224, 166, 74, 0.13); color: var(--status-maint); }
.dev-card[data-status="offline"] .dot { background: var(--status-maint); }

/* Service- & Partner-Karten */
.service-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-m);
  padding: 1.1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.service-box:last-child { margin-bottom: 0; }
.service-header { display: flex; align-items: center; gap: 0.75rem; }

.service-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--hover-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-avatar img { width: 100%; height: 100%; object-fit: cover; }

.service-title { font-weight: 600; font-size: 0.9rem; }
.service-desc { font-size: 0.78rem; color: var(--text-muted); }
.service-actions { display: flex; gap: 0.5rem; }

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  border-radius: var(--r-s);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary { background: var(--accent-primary); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--hover-tint); border-color: var(--edge); }

/* 3. FOOTER */
.footer {
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--edge);
  padding: 1.25rem 0;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent-primary); text-decoration: underline; }

/* 4. COOKIE-BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  background: var(--bg-card);
  border: 1px solid var(--edge);
  border-radius: var(--r-m);
  padding: 1.25rem;
  box-shadow: 5px 5px 0 var(--edge);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-header { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-serif); font-weight: 700; font-size: 1rem; color: var(--text-main); }
.cookie-header i { color: var(--status-maint); }
.cookie-body { font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }
.cookie-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--r-s);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.cookie-btn-accept { background: var(--accent-primary); color: var(--on-accent); }
.cookie-btn-accept:hover { background: var(--accent-hover); }
.cookie-btn-essential { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.cookie-btn-essential:hover { background: var(--hover-tint); color: var(--text-main); }

/* Responsive */
@media (max-width: 850px) {
  .navbar-container { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; }
  .nav-menu { flex-wrap: wrap; justify-content: center; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .cookie-banner { bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}