/* Stromfee Redispatch-Portal — Shared Topbar + Footer (Holger 2026-05-15)
 * Cyan-Light-Theme (eigene Redispatch-Identität), aber Cross-Links zur Stromfee-Family.
 * Verwendung: <link rel="stylesheet" href="/_shared.css"> in <head>
 */

:root {
  --rd-primary: #00aeef;
  --rd-primary-hover: #0095d0;
  --rd-ink: #0f172a;
  --rd-ink-soft: #475569;
  --rd-mute: #6b7280;
  --rd-line: #e2e8f0;
  --rd-bg-soft: #f8fafc;
}

/* ─── Topbar ─── */
.rd-topnav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rd-line);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}
.rd-topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.rd-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--rd-ink);
  text-decoration: none;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.rd-brand .rd-brand-tag {
  color: var(--rd-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 6px;
}
.rd-topnav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.rd-topnav-links a {
  color: var(--rd-ink-soft);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.rd-topnav-links a:hover { color: var(--rd-primary); }
.rd-topnav-links a.rd-cross {
  color: var(--rd-mute);
  font-size: 13px;
}
.rd-topnav-links a.rd-cross::after {
  content: ' ↗';
  opacity: 0.6;
  font-size: 11px;
}
.rd-topnav-links a.rd-cta {
  background: linear-gradient(135deg, var(--rd-primary), var(--rd-primary-hover));
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,174,239,0.25);
}
.rd-topnav-links a.rd-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,174,239,0.4);
}
.rd-topnav-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--rd-ink);
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .rd-topnav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    padding: 14px 24px;
    border-bottom: 1px solid var(--rd-line);
    gap: 14px;
    align-items: stretch;
  }
  .rd-topnav-links.rd-open { display: flex; }
  .rd-topnav-burger { display: block; }
}

/* ─── Footer ─── */
.rd-footer {
  background: var(--rd-bg-soft);
  border-top: 1px solid var(--rd-line);
  padding: 36px 0 28px;
  margin-top: 60px;
}
.rd-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.rd-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 13px;
}
.rd-footer-links a {
  color: var(--rd-ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.rd-footer-links a:hover { color: var(--rd-primary); }
.rd-footer-links .rd-sep {
  color: var(--rd-line);
  user-select: none;
}
.rd-footer-meta {
  text-align: center;
  color: var(--rd-mute);
  font-size: 12px;
  line-height: 1.6;
}
.rd-footer-meta a {
  color: inherit;
  text-decoration: underline;
}
