/* ============================================================
   SERIÖSES TOP-BAR DESIGN: Enterprise / Corporate Portal
   Navbar im Dynamic-Island-Stil
   ============================================================ */
:root {
  --bg-surface: #0f172a;       /* Dark Slate Background */
  --bg-card: #1e293b;          /* Card Background */
  --border-color: #334155;     /* Border Color */
  --accent-primary: #2563eb;   /* Corporate Blue */
  --accent-hover: #1d4ed8;
  --text-main: #f8fafc;        /* White / Bright Text */
  --text-muted: #94a3b8;       /* Slate Gray Text */
  --status-online: #10b981;    /* Emerald Green */
  --status-maint: #f59e0b;     /* Amber */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }

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. TOP NAVBAR – schwebende, abgerundete Leiste */
.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-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.navbar-container {
  padding: 0 1.25rem;
  height: 56px;
  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: 6px;
  object-fit: cover;
}

.brand-title {
  font-size: 1.1rem;
  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.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-link i { font-size: 0.85rem; }

/* Logo-Icon in der Navbar (NetzNetzBrowser) */
.nav-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* 2. MAIN CONTENT AREA */
.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 */
.hero-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
}

.hero-banner h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.section-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Developer Cards */
.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: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dev-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: #475569;
}

.dev-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.dev-name { font-weight: 600; font-size: 0.875rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  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(245, 158, 11, 0.1);
  color: var(--status-maint);
}

.dev-card[data-status="offline"] .dot { background: var(--status-maint); }

/* Services & Partner Cards */
.service-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 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: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  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.875rem; }
.service-desc { font-size: 0.75rem; 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.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.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: rgba(255, 255, 255, 0.04); }

/* 3. FOOTER */
.footer {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  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(--text-main);
}

/* 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(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  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-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cookie-header i {
  color: var(--status-maint);
}

.cookie-body {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cookie-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.cookie-btn-accept {
  background: var(--accent-primary);
  color: #fff;
}

.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: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Responsive Adjustments */
@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;
  }
}