/*
 * abiOM 3.06 - Theme: wifi-tips v2
 * wifi.tips - Router Login, IP Adressen, Piso WiFi
 * Daniel Weihmann, abi Online-Marketing
 *
 * CHANGELOG v2:
 * - Glow-Effekte auf IP-Adressen (text-shadow, 3-Pass)
 * - Ambient-Glow Hintergrund via radial-gradient
 * - Login-Button Glow (box-shadow)
 * - Corner-Marks auf IP-Hero-Card
 * - Top-Gradient-Linie verbessert
 * - Sidebar Quick-Login Grid 2-spaltig mobil
 * - Mobile-First komplett ueberarbeitet
 * - Kein Orange mehr
 *
 * Fonts lokal hosten via gwfh.mranftl.com:
 *   - DM Mono: 400, 500
 *   - Plus Jakarta Sans: 400, 600, 700, 800
 */

/* ============================================================
   FONT-FACE
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono-v16-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-mono-v16-latin-500.woff2') format('woff2');
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:           #080c12;
  --bg2:          #0f1520;
  --bg3:          #141c2a;
  --bg4:          #1a2236;
  --border:       rgba(255, 255, 255, 0.07);
  --border-glow:  rgba(0, 212, 170, 0.35);

  --cyan:         #00d4aa;
  --cyan-dim:     rgba(0, 212, 170, 0.10);
  --cyan-mid:     rgba(0, 212, 170, 0.35);

  /* Glow-Variablen - zentral gesteuert */
  --glow-sm:      0 0 12px rgba(0, 212, 170, 0.55);
  --glow-md:      0 0 24px rgba(0, 212, 170, 0.40), 0 0 60px rgba(0, 212, 170, 0.15);
  --glow-lg:      0 0 40px rgba(0, 212, 170, 0.45), 0 0 100px rgba(0, 212, 170, 0.18);
  --glow-text-sm: 0 0 10px rgba(0, 212, 170, 0.60);
  --glow-text-md: 0 0 18px rgba(0, 212, 170, 0.70), 0 0 40px rgba(0, 212, 170, 0.30);
  --glow-text-lg: 0 0 28px rgba(0, 212, 170, 0.80), 0 0 70px rgba(0, 212, 170, 0.35);

  --blue:         #4fa3ff;
  --green:        #3fb950;
  --text:         #e6edf3;
  --text-muted:   #7a8899;
  --text-subtle:  #3d4a5c;

  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --max-width:    1100px;
  --sidebar-w:    290px;
  --gap:          20px;
  --radius:       8px;
  --radius-lg:    14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  /* Ambient Glow - zwei radiale Gradienten als Atmosphaere */
  background-image:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(0, 212, 170, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(79, 163, 255, 0.05), transparent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient-Glow bleibt beim Scrollen sichtbar */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 163, 255, 0.05), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #fff; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--cyan);
  color: var(--bg);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
#wrapper { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}

#site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* WiFi-Icon als CSS - drei Boegen */
#site-branding::before {
  content: '';
  display: block;
  width: 24px;
  height: 18px;
  background:
    radial-gradient(circle at 50% 100%, transparent 28%, var(--cyan) 29%, var(--cyan) 37%, transparent 38%),
    radial-gradient(circle at 50% 100%, transparent 46%, var(--cyan) 47%, var(--cyan) 57%, transparent 58%),
    radial-gradient(circle at 50% 100%, transparent 65%, var(--cyan) 66%, var(--cyan) 78%, transparent 79%);
  filter: drop-shadow(0 0 4px rgba(0, 212, 170, 0.7));
  flex-shrink: 0;
}

a.site-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

a.site-name:hover { color: var(--cyan); }

.site-name .tld {
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
}

.site-tagline { display: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav { margin-left: auto; }

#main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
}

#main-nav li a {
  display: block;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

#main-nav li a:hover,
#main-nav li a[aria-current="page"] {
  color: var(--text);
  background: var(--bg3);
}

/* Sprachauswahl im Nav */
.lang-switcher {
  display: flex;
  gap: 3px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--cyan);
  border-color: var(--border-glow);
  background: var(--cyan-dim);
  text-shadow: var(--glow-text-sm);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb-nav::-webkit-scrollbar { display: none; }

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--text-subtle);
}

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item.active { color: var(--text); }

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
#content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 18px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

#content-wrapper.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* ============================================================
   IP HERO CARD - Das Herzstuck mit Glow
   ============================================================ */
.ip-hero {
  background: var(--bg2);
  border: 1px solid rgba(0, 212, 170, 0.20);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Gradient-Linie oben */
.ip-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
}

/* Ambient Glow hinter der IP-Adresse */
.ip-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.10), transparent 65%);
  pointer-events: none;
}

/* Eck-Markierungen */
.ip-hero .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 212, 170, 0.35);
  border-style: solid;
}
.ip-hero .corner-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.ip-hero .corner-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.ip-hero .corner-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.ip-hero .corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.ip-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.ip-label::before {
  content: '//';
  opacity: 0.45;
}

/* IP-Adresse mit dreifachem Glow */
.ip-address {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  /* Drei-Pass-Glow: weit, mittel, nah */
  text-shadow:
    0 0 80px rgba(0, 212, 170, 0.22),
    0 0 35px rgba(0, 212, 170, 0.50),
    0 0 14px rgba(0, 212, 170, 0.75);
}

.ip-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 460px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Chips (Status-Tags) */
.ip-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  border: 1px solid;
}

.chip-green {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.30);
  background: rgba(63, 185, 80, 0.08);
}

.chip-blue {
  color: var(--blue);
  border-color: rgba(79, 163, 255, 0.30);
  background: rgba(79, 163, 255, 0.08);
}

.chip-amber {
  color: #d29922;
  border-color: rgba(210, 153, 34, 0.30);
  background: rgba(210, 153, 34, 0.08);
}

/* Button-Gruppe */
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* LOGIN-BUTTON - Hauptelement, mit starkem Glow */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--glow-md);
  letter-spacing: 0.01em;
  width: 100%;
}

.btn-login::after { content: '\2192'; font-size: 1.1rem; }

.btn-login:hover {
  background: #00f0c0;
  color: var(--bg);
  box-shadow: var(--glow-lg);
  transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

/* Sekundaer-Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--cyan-dim);
}

/* ============================================================
   ROUTER DATA CARD
   ============================================================ */
.router-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 0 20px;
}

.router-card-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.router-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.router-data-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 3px;
}

.router-data-item span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--cyan);
  font-weight: 500;
  text-shadow: var(--glow-text-sm);
}

/* ============================================================
   ARTICLE TYPOGRAPHY
   ============================================================ */
.article-header { margin-bottom: 22px; }

.article-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
  margin-bottom: 8px;
}

.article-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-meta {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.6rem 0 0.5rem;
}

.article-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1.4rem 0 0.4rem;
}

.article-body p {
  margin-bottom: 0.95rem;
  color: var(--text);
  font-size: 0.95rem;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: #fff; }

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.3rem;
  font-size: 0.95rem;
}

.article-body li { margin-bottom: 0.35rem; }

/* Code - mit Cyan-Glow */
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
}

.article-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  box-shadow: -2px 0 16px rgba(0, 212, 170, 0.10);
}

.article-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 16px;
  margin: 1.5rem 0;
  background: var(--cyan-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  box-shadow: -2px 0 14px rgba(0, 212, 170, 0.10);
}

/* Summary Box */
.summary-box {
  background: var(--bg2);
  border-left: 3px solid var(--cyan);
  padding: 12px 16px;
  margin: 0.8rem 0 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: -2px 0 14px rgba(0, 212, 170, 0.10);
}

/* HTML-Tabelle */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body th {
  background: var(--bg3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Nummerierte Schritt-Liste */
.steps-list {
  list-style: none;
  margin: 0.8rem 0 1.4rem;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.steps-list li:last-child { border-bottom: none; }

.steps-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
  text-shadow: var(--glow-text-sm);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.20);
}

/* ============================================================
   POST GRID (Startseite)
   ============================================================ */
.home-hero {
  padding: 40px 18px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 170, 0.08), transparent 70%);
  pointer-events: none;
}

.home-hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-sm);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.home-hero-title {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.home-hero-title span {
  color: var(--cyan);
  text-shadow: var(--glow-text-md);
}

.home-hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

/* Suchbox */
.search-box {
  display: flex;
  max-width: 440px;
  margin: 0 auto 40px;
  background: var(--bg2);
  border: 1px solid rgba(0, 212, 170, 0.20);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.search-box:focus-within {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
}

.search-box input::placeholder { color: var(--text-subtle); }

.search-box button {
  background: var(--cyan);
  border: none;
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: #00f0c0; }

/* IP Scroll Strip */
.ip-quicklinks {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px 28px;
}

.ip-quicklinks-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ip-quicklinks-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  padding-top: 4px;
}

.ip-scroll::-webkit-scrollbar { display: none; }

.ip-card {
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid rgba(0, 212, 170, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 130px;
}

.ip-card:hover {
  border-color: var(--border-glow);
  background: var(--bg3);
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}

.ip-card-addr {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 500;
  text-shadow: var(--glow-text-sm);
  margin-bottom: 3px;
}

.ip-card-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ip-card-vol {
  display: block;
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  margin-top: 2px;
}

/* Section Heading */
.section-heading {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Post Grid */
.post-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}

.post-card:hover {
  border-color: rgba(0, 212, 170, 0.30);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.post-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
}

.post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.post-card-title a { color: inherit; text-decoration: none; }
.post-card:hover .post-card-title { color: var(--cyan); }

.post-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-subtle);
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  text-shadow: var(--glow-text-sm);
}

.read-more::after { content: '\2192'; }
.read-more:hover { gap: 8px; color: #fff; text-shadow: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar { position: sticky; top: 76px; }

.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--gap);
}

.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.sidebar-widget-body { padding: 14px; }

/* Quick-Login-Liste in Sidebar */
.quick-login-list { list-style: none; }

.quick-login-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.quick-login-list li:last-child { border-bottom: none; }

.quick-login-list .ip {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
}

.quick-login-list a.go {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.quick-login-list a.go:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-sm);
}

.sidebar-post-list { list-style: none; }

.sidebar-post-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list a { color: var(--text); }
.sidebar-post-list a:hover { color: var(--cyan); }

.sidebar-post-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* ============================================================
   RELATED ARTICLES (Mobile-freundlich)
   ============================================================ */
.related-list { list-style: none; margin-bottom: 24px; }

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
}

.related-item:hover {
  border-color: rgba(0, 212, 170, 0.30);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.related-ip {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  text-shadow: var(--glow-text-sm);
  min-width: 110px;
  flex-shrink: 0;
}

.related-info { flex: 1; min-width: 0; }

.related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.related-arrow { color: var(--text-muted); font-size: 0.88rem; flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { margin: 2rem 0; }

.faq-section > h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 13px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-item h3::after {
  content: '+';
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
  text-shadow: var(--glow-text-sm);
}

.faq-answer {
  font-size: 0.88rem;
  padding: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   ADSENSE SLOTS
   ============================================================ */
.ad-slot {
  width: 100%;
  min-height: 90px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
}

.ad-slot-sidebar {
  min-height: 250px;
  margin-bottom: var(--gap);
}

/* ============================================================
   QUELLENZEILE
   ============================================================ */
.sources {
  margin-top: 2.5rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-subtle);
}

.sources h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.sources ol { margin-left: 1.2rem; }
.sources li { margin-bottom: 4px; }
.sources a { color: var(--text-subtle); }
.sources a:hover { color: var(--cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 28px 18px;
  background: var(--bg2);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-left strong { color: var(--text); font-weight: 700; }
.footer-left .tld { color: var(--cyan); text-shadow: var(--glow-text-sm); }

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a { font-size: 0.80rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--cyan); }
.footer-nav .sep { color: var(--text-subtle); }

.footer-affiliate {
  max-width: var(--max-width);
  margin: 14px auto 0;
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page { text-align: center; padding: 80px 18px; }

.error-page h1 {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--cyan);
  text-shadow: var(--glow-text-lg);
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

.error-page p { color: var(--text-muted); margin-bottom: 24px; }

.no-posts {
  padding: 40px 0;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
}

/* ============================================================
   MOBILE FIRST - bis 640px
   ============================================================ */
@media (max-width: 900px) {
  #content-wrapper {
    grid-template-columns: 1fr !important;
    padding: 18px;
    width: 100%;
    max-width: 100%;
  }

  #content-wrapper > main {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  #sidebar {
    position: static;
    width: 100%;
  }

  .home-hero {
    padding: 28px 18px 20px;
    text-align: center;
  }

  .home-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .search-box {
    max-width: 100%;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hub-excerpt { display: none; }
  .hub-card { padding: 14px 16px; gap: 12px; }
  .hub-icon { width: 38px; height: 38px; }

  .quick-login-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .qlm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    gap: 8px;
  }

  .qlm-item:nth-child(even) { border-right: none; }
  .qlm-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 640px) {
  :root { --gap: 14px; }

  .header-inner { padding: 0 14px; gap: 10px; }

  #main-nav { display: none; } /* Hamburger-Menu via JS */

  .home-hero { padding: 28px 14px 20px; }
  .home-hero-title { font-size: 1.75rem; }

  .ip-hero { padding: 18px 16px; }
  .ip-address { font-size: clamp(1.9rem, 8vw, 2.8rem); }

  .ip-chips { gap: 5px; }
  .chip { font-size: 0.60rem; padding: 2px 8px; }

  .btn-login { font-size: 0.9rem; padding: 13px; }
  .btn-group { gap: 8px; }

  .post-grid { padding: 0 14px 32px; }

  .router-data { grid-template-columns: 1fr; gap: 10px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }

  .related-ip { font-size: 0.88rem; min-width: 90px; }

  .search-box { margin-bottom: 28px; }
}


/* Startseite: kein 2-Spalten-Grid, Sidebar fliesst unten */
body.type-home #content-wrapper {
  grid-template-columns: 1fr !important;
}
body.type-home #sidebar {
  display: none;
}
/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #sidebar, #site-footer,
  .btn-login, .btn-secondary, .ad-slot,
  .ip-hero::before, .ip-hero::after,
  body::before, body::after { display: none !important; }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .ip-address {
    color: black;
    text-shadow: none;
  }

  .article-title { font-size: 18pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
