:root {
  /* C64-inspirierte Farbpalette - verstärkt */
  --c64-blue-bg: #b9d4ff;
  --c64-blue-mid: #6a9adb;
  --c64-blue-dark: #3a5a9a;
  --c64-blue-darker: #1a2f5a;
  
  --c64-border-outer: #cfe0ff;
  --c64-border-inner: #a9c6ff;
  
  --c64-text: #0a2540;
  --c64-text-soft: #245a9a;
  --c64-accent: #0288D1;
  --c64-accent-hover: #0A3871;
  
  /* Neue Akzentfarben */
  --c64-orange: #FF8000;
  --c64-success: #2e8b57;
  --c64-warning: #d17b02;
}

/* ==================== GRUNDLAYOUT ==================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  color: var(--c64-text);
  background-color: var(--c64-blue-bg);
  font-size: 15px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  line-height: 1.6;

  /* Verbesserte C64-Scanlines */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.25)),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 2px,
      rgba(255,255,255,0) 2px,
      rgba(255,255,255,0) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10,37,64,0.04) 0px,
      rgba(10,37,64,0.04) 1px,
      rgba(10,37,64,0) 1px,
      rgba(10,37,64,0) 8px
    );
  background-size: auto, 4px 4px, 8px 8px;
  background-attachment: fixed;
}

/* Dezente CRT-Effekte */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  animation: c64Flicker 150ms infinite;
}

@keyframes c64Flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

/* ==================== SIDEBAR ==================== */

.public-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1a2832 0%, #0f1a24 100%);
  color: #fff;
  position: fixed;
  top: 0;
  bottom: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 4px 0 12px rgba(0,0,0,0.3);
  /* Neu */
  display: flex;
  flex-direction: column;
}

.public-sidebar h3 {
  margin: 0;
  padding: 16px 20px 12px 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fb6ff;
  border-bottom: 2px solid rgba(143, 182, 255, 0.2);
  background: rgba(255,255,255,0.03);
}

.public-sidebar h3:first-child {
  margin-top: 0px;
}

.public-sidebar a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.9em;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.public-sidebar a:hover {
  color: #ffffff;
  background: rgba(143, 182, 255, 0.1);
  border-left-color: var(--c64-accent);
  padding-left: 24px;
}

.public-sidebar > a {
  margin-bottom: 4px;
}

/* Kategorien-Styles in Sidebar */
.public-sidebar > div[style*="font-weight:bold"] {
  margin-top: 18px !important;
  padding: 12px 20px 8px 20px !important;
  font-weight: 700 !important;
  font-size: 0.85em !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #8fb6ff !important;
  border-bottom: 2px solid rgba(143, 182, 255, 0.2) !important;
  background: rgba(255,255,255,0.03) !important;
}

/* ==================== HAUPTINHALT ==================== */

.page-content {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px; /* Höhe der Statusline */
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 30px 60px 30px;
  width: 100%;
  box-sizing: border-box;
}

/* ==================== HEADER ==================== */

header {
  background: linear-gradient(135deg, rgba(2, 137, 209, 0.25) 0%, rgba(10, 56, 113, 0.15) 100%);
  backdrop-filter: blur(10px);
  color: var(--c64-text);
  padding: 24px 30px;
  border-bottom: 3px solid rgba(2, 136, 209, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header img {
  height: 90px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--c64-blue-darker);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

header h2 {
  font-size: 1.3em;
  margin: 8px 0 0 0;
  font-weight: 400;
  color: var(--c64-text-soft);
}

/* ==================== TYPOGRAFIE ==================== */

h3 {
  color: var(--c64-blue-darker);
  font-size: 1.6em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--c64-accent);
  position: relative;
}

h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--c64-orange);
}

h4 {
  color: var(--c64-blue-dark);
  font-size: 1.2em;
  margin: 20px 0 10px 0;
}

p {
  margin-bottom: 16px;
  color: var(--c64-text);
}

/* ==================== SECTIONS ==================== */

section {
  background: rgba(255, 255, 255, 0.85);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(143, 182, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ==================== FORMULARE ==================== */

form {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6fb 100%);
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid rgba(2, 136, 209, 0.2);
}

form label {
  display: block;
  font-weight: 600;
  color: var(--c64-blue-darker);
  margin-bottom: 8px;
  font-size: 0.95em;
}

form input, form textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 0 0 20px 0;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--c64-accent);
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

form input[readonly] {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

form button {
  background: linear-gradient(135deg, var(--c64-accent) 0%, var(--c64-accent-hover) 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(2, 136, 209, 0.3);
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(2, 136, 209, 0.4);
  background: linear-gradient(135deg, var(--c64-accent-hover) 0%, #083060 100%);
}

form button:active {
  transform: translateY(0);
}

/* ==================== LINKS ==================== */

a:link, a:visited {
  color: var(--c64-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #cc6600;
  text-decoration: underline;
}

main a:link, main a:visited {
  color: var(--c64-accent);
  font-weight: 500;
}

main a:hover {
  color: var(--c64-accent-hover);
}

/* ==================== LISTEN ==================== */

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.6;
}

ul li::before {
  content: "✓";
  color: var(--c64-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1em;
}

/* ==================== ARTIKEL-VORSCHAU ==================== */

.article-preview {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 4px solid var(--c64-accent);
  transition: all 0.2s ease;
}

.article-preview:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left-color: var(--c64-orange);
}

.article-preview h4 {
  margin: 0 0 8px 0;
  font-size: 1.3em;
}

.article-preview h4 a {
  color: var(--c64-blue-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-preview h4 a:hover {
  color: var(--c64-accent);
}

.article-preview p {
  margin: 6px 0;
  color: #4b5563;
  font-size: 0.95em;
}

.article-preview strong {
  color: var(--c64-blue-dark);
}

.article-preview em {
  color: #6b7280;
  font-size: 0.9em;
}

/* ==================== KATEGORIE-GRID ==================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.category-tile {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: var(--c64-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid rgba(143, 182, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c64-accent), var(--c64-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-tile:hover::before {
  transform: scaleX(1);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--c64-accent);
}

.category-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--c64-blue-darker);
}

.category-subcount {
  font-size: 0.9em;
  color: #6b7280;
  line-height: 1.5;
}

/* ==================== BREADCRUMB ==================== */

.breadcrumb {
  margin: 0 0 24px 0;
  font-size: 0.9em;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border-left: 3px solid var(--c64-accent);
}

.breadcrumb a {
  color: var(--c64-accent);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #6b7280;
  margin: 0 8px;
}

/* ==================== CODE-SNIPPETS ==================== */

.snippet-box {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin: 28px 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 14px 20px;
  border-bottom: 2px solid #e5e7eb;
}

.snippet-title {
  font-weight: 600;
  font-size: 1.05em;
  color: var(--c64-blue-darker);
}

.snippet-lang {
  font-size: 0.85em;
  padding: 6px 14px 6px 32px;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  position: relative;
  background: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snippet-lang::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  background: #fff;
  opacity: 0.7;
  border-radius: 2px;
}

/* Sprachspezifische Farben */
.snippet-lang-php { background: #777bb3; }
.snippet-lang-javascript { background: #f7df1e; color: #000; }
.snippet-lang-sql { background: #336791; }
.snippet-lang-apex { background: #00a1e0; }
.snippet-lang-html { background: #e34c26; }
.snippet-lang-css { background: #264de4; }
.snippet-lang-python { background: #3776ab; }

.snippet-copy {
  background: var(--c64-accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.snippet-copy:hover {
  background: var(--c64-accent-hover);
  transform: scale(1.05);
}

.snippet-box pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #2d2d2d;
  font-size: 0.9em;
  line-height: 1.6;
}

.snippet-box code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ==================== INFO-BOXEN ==================== */

.info-box {
  padding: 18px 24px;
  border-radius: 8px;
  margin: 24px 0;
  border-left: 4px solid var(--c64-accent);
  background: linear-gradient(135deg, #f0f6fb 0%, #e8f2fa 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.info-box--warning {
  border-left-color: var(--c64-warning);
  background: linear-gradient(135deg, #fff4e5 0%, #ffe8cc 100%);
}

.info-box--success {
  border-left-color: var(--c64-success);
  background: linear-gradient(135deg, #e8f7ef 0%, #d4f0e0 100%);
}

/* ==================== FOOTER ==================== */

footer {
  background: linear-gradient(135deg, rgba(2, 137, 209, 0.25) 0%, rgba(10, 56, 113, 0.15) 100%);
  backdrop-filter: blur(10px);
  color: var(--c64-text);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  border-top: 3px solid rgba(2, 136, 209, 0.3);
  margin-top: auto;
}

/* ==================== GUIDE-STYLING ==================== */

.guide {
  background: #ffffff;
  padding: 32px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  line-height: 1.8;
}

.guide h1, .guide h2, .guide h3 {
  color: var(--c64-blue-darker);
}

.guide h2 {
  margin-top: 36px;
  border-bottom: 3px solid var(--c64-accent);
  padding-bottom: 10px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 900px) {
  /* Ticker ist ausgeblendet, also kein Abstand für statusline nötig */
  .page-content {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  .public-sidebar {
    position: relative;
    width: 100%;
    top: auto;
    bottom: auto;
    box-shadow: none;
  }
  
  .page-content {
    margin-left: 0;
  }
  
  main {
    padding: 24px 16px 40px 16px;
  }
  
  header {
    padding: 20px 16px;
  }
  
  header img {
    height: 70px;
  }
  
  header h1 {
    font-size: 1.6em;
  }
  
  header h2 {
    font-size: 1.1em;
  }
  
  section {
    padding: 24px 20px;
  }
  
  h3 {
    font-size: 1.4em;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  form {
    padding: 20px;
  }
  
  form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4em;
  }
  
  header h2 {
    font-size: 1em;
  }
  
  h3 {
    font-size: 1.3em;
  }
  
  .snippet-box pre {
    padding: 16px;
    font-size: 0.85em;
  }
}

/* ==================== ARTIKEL-CONTENT ==================== */

.article-content,
.category-description {
  line-height: 1.8;
  font-size: 1.05em;
}

.article-content p,
.category-description p {
  margin-bottom: 16px;
}

.category-description {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
  border: 2px solid #e5e7eb;
  border-left: 4px solid var(--c64-accent);
  padding: 20px 24px;
  margin: 20px 0 28px 0;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #374151;
}

.category-description code {
  background: #e5e7eb;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.95em;
  color: var(--c64-blue-dark);
  font-weight: 500;
}

/* ==================== ANIMATIONEN ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.4s ease-out;
}

/* ==================== SCROLLBAR STYLING ==================== */

.public-sidebar::-webkit-scrollbar {
  width: 8px;
}

.public-sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.public-sidebar::-webkit-scrollbar-thumb {
  background: rgba(143, 182, 255, 0.3);
  border-radius: 4px;
}

.public-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 182, 255, 0.5);
}

/* ==================== CKEDITOR TABELLEN ==================== */

/* Figure-Container für Tabellen */
figure.table {
  margin: 32px 0;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #ffffff;
  border: 2px solid rgba(143, 182, 255, 0.25);
}

/* Tabellen Basis-Styling */
figure.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  margin: 0;
  background: #ffffff;
}

/* Tabellen-Header */
figure.table table thead {
  background: linear-gradient(135deg, var(--c64-blue-dark) 0%, var(--c64-blue-darker) 100%);
  color: #ffffff;
}

figure.table table thead tr {
  border: none;
}

figure.table table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

figure.table table thead th:last-child {
  border-right: none;
}

/* Tabellen-Body */
figure.table table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

figure.table table tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

figure.table table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

figure.table table tbody tr:hover {
  background-color: rgba(143, 182, 255, 0.08);
}

figure.table table tbody tr:last-child {
  border-bottom: none;
}

figure.table table tbody td {
  padding: 14px 20px;
  color: var(--c64-text);
  vertical-align: top;
  border-right: 1px solid #f3f4f6;
}

figure.table table tbody td:last-child {
  border-right: none;
}

/* Code in Tabellen */
figure.table table code {
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--c64-blue-dark);
  font-weight: 500;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  border: 1px solid #e5e7eb;
}

/* Strong in Tabellen */
figure.table table strong {
  color: var(--c64-blue-darker);
  font-weight: 700;
}

/* Mobile Responsive Tabellen */
@media (max-width: 768px) {
  figure.table {
    margin: 24px -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  figure.table table {
    font-size: 0.85em;
  }
  
  figure.table table thead th,
  figure.table table tbody td {
    padding: 12px 10px;
  }
}

/* ==================== CKEDITOR CONTENT-SPEZIFISCH ==================== */

/* Section Labels (Kapitel-Nummern) */
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--c64-accent) 0%, var(--c64-accent-hover) 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.3);
}

/* Hint-Boxen */
.hint {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border-left: 4px solid var(--c64-warning);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 2px 6px rgba(209, 123, 2, 0.15);
}

.hint p:first-child {
  margin-top: 0;
}

.hint p:last-child {
  margin-bottom: 0;
}

.hint strong {
  color: var(--c64-warning);
}

/* Inline Code (außerhalb von Pre-Blöcken) */
p code,
li code,
td code:not(figure.table code),
.category-description code {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--c64-blue-dark);
  font-weight: 500;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  border: 1px solid #d1d5db;
}

/* Pre-Code-Blöcke (CKEditor generiert) */
pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  border: 2px solid #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  line-height: 1.6;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* SQL Syntax Highlighting (basic) */
pre code.language-sqlX {
  color: #f8f8f2;
}

/* CKEditor Listen mit data-list-item-id */
ul li[data-list-item-id] {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.7;
}

ul li[data-list-item-id]::before {
  content: "✓";
  color: var(--c64-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1em;
}

/* Verschachtelte Listen */
ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 20px;
}

ul ul li[data-list-item-id]::before {
  content: "→";
  color: var(--c64-orange);
}

/* ==================== BLOCKQUOTES (falls verwendet) ==================== */

blockquote {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6fb 100%);
  border-left: 4px solid var(--c64-accent);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--c64-text-soft);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ==================== FIGURE MIT BILDERN (falls verwendet) ==================== */

figure.image {
  margin: 32px 0;
  text-align: center;
}

figure.image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid rgba(143, 182, 255, 0.2);
}

figure.image figcaption {
  margin-top: 12px;
  font-size: 0.9em;
  color: #6b7280;
  font-style: italic;
}

/* Lightbox Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px; /* Abstand zu den Rändern */
}

.lightbox-overlay.active {
    display: flex;
}

/* Lightbox Inhalt */
.lightbox-content {
    position: relative;
    max-width: 85%; /* Maximal 85% der Viewport-Breite */
    max-height: 85vh; /* Maximal 85% der Viewport-Höhe */
    display: flex;
  flex-direction: column;
  align-items: center; /* zentriert Bild und Caption horizontal */
  gap: 10px; /* kleiner Abstand zwischen Bild und Caption */
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(85vh - 60px); /* Platz für Caption reservieren */
    width: auto; /* WICHTIG: Verhindert Hochskalierung */
    height: auto; /* WICHTIG: Verhindert Hochskalierung */
    object-fit: contain; /* Seitenverhältnis beibehalten */
    display: block;
    margin: 0 auto;
}

/* Bildunterschrift */
.lightbox-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
  text-align: center;
  font-size: 16px;
  max-width: 100%;
  align-self: center; /* Caption folgt der Zentrierung des Inhalts */
}

/* Schließen-Button */

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2.2em;
  color: #FF8000;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none; /* Standard: unsichtbar */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  transition: background 0.2s;
}
.lightbox-close.active {
  display: flex; /* Zeigen, wenn Lightbox aktiv */
}
.lightbox-close:hover {
  background: rgba(0,0,0,0.95);
  color: #fff;
}

/* Close-Button sichtbar machen, wenn die Lightbox aktiv ist */
.lightbox-overlay.active .lightbox-close {
    display: flex;
}

@media (max-width: 600px) {
  .lightbox-overlay {
    padding: 20px; /* weniger Rand auf kleinen Screens */
  }

  .lightbox-content {
    max-width: 100%;
    width: 100%;
    align-items: center;
  }

  .lightbox-content img {
    max-width: 100%;
    height: auto;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    width: 40px;
    height: 40px;
  }
}

/* Cursor-Hinweis für klickbare Bilder */
.lightbox-image {
    cursor: zoom-in;
}

/* Menü einklappen */

.menu-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255,255,255,0.05);
  padding-left: 10px;
}
.menu-group.active .menu-content {
  max-height: 500px; /* ausreichend groß für deine Unterpunkte */
  transition: max-height 0.5s ease;
}
.menu-toggle {
  background: none;
  border: none;
  color: #8fb6ff;
  font-size: 1em;
  font-weight: bold;
  padding: 10px 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.menu-toggle:hover {
  background: none;
  color: #FF8000;
}


.c64-has-sub {
  background: linear-gradient(90deg, #b9d4ff 0%, #6a9adb 100%);
  color: #0a2540;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  letter-spacing: 1px;
  border-left: 4px solid #0288D1;
  box-shadow: 0 2px 8px rgba(2,136,209,0.15);
  position: relative;
}



.menu-group.active > .menu-toggle,
a.active-link {
  background: linear-gradient(90deg, #FF8000 0%, #b9d4ff 100%);
  color: #1a2f5a !important;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  border-left: 4px solid #0288D1;
  box-shadow: 0 2px 8px rgba(2,136,209,0.15);
}

.public-sidebar a.active-link:hover {
  color: #FF8000 !important;
}

.menu-content a {
  display: block;
  padding: 8px 24px;
  color: #8fb6ff;
  text-decoration: none;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  transition: background 0.2s, color 0.2s;
}
.menu-content a:hover,
.menu-content a.active-link {
  background: #3a5a9a;
  color: #FF8000 !important;
  border-left: 3px solid #FF8000;
}

.c64-arrow {
  font-size: 1.2em;
  color: #FF8000;
  margin-left: 8px;
  vertical-align: middle;
}

.menu-content-single a {
  display: block;
  padding: 8px 24px;
  color: #8fb6ff;
  text-decoration: none;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  transition: background 0.2s, color 0.2s;
}
.menu-content-single a:hover {
  background: #3a5a9a;
  color: #FF8000 !important;
  border-left: 3px solid #FF8000;
}

/* ==================== PAGINATION ==================== */

/* ==================== PAGINATION (C64 Sidebar Style) ==================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-block;
  padding: 10px 18px;
  background: #1a2832; /* Sidebar-Dunkel */
  color: #d1d5db;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 1em;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: rgba(143, 182, 255, 0.1);
  color: #FF8000;
  border-left-color: var(--c64-accent);
  padding-left: 22px;
}

.pagination-current {
  background: linear-gradient(90deg, #FF8000 0%, #b9d4ff 100%);
  color: #1a2f5a !important;
  border-left: 4px solid #0288D1;
  font-weight: bold;
}

.pagination-disabled {
  background: #0f1a24;
  color: #6b7280;
  border-left: 3px solid transparent;
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-dots {
  padding: 10px 8px;
  color: #8fb6ff;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 1.2em;
}

.pagination-prev,
.pagination-next {
  font-weight: bold;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 4px;
  }
  
  .pagination-link {
    padding: 8px 12px;
    font-size: 0.8em;
    min-width: 36px;
  }
  
  .pagination-prev,
  .pagination-next {
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .pagination {
    justify-content: space-between;
  }
  
  .pagination-link {
    padding: 6px 10px;
    font-size: 0.75em;
    min-width: 32px;
  }
  
  .pagination-dots {
    display: none; /* Punkte ausblenden bei sehr kleinen Bildschirmen */
  }
}

/* ==================== PRISM.JS COPY BUTTON STYLES ==================== */

/*
Style 1: Klassischer C64-Button
.copy-to-clipboard-button {
  background: linear-gradient(135deg, var(--c64-blue-dark) 0%, var(--c64-blue-darker) 100%);
  color: #fff;
  border: 2px solid var(--c64-border-outer);
  border-radius: 0;
  padding: 6px 12px;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.copy-to-clipboard-button:hover {
  background: linear-gradient(135deg, var(--c64-orange) 0%, var(--c64-blue-dark) 100%);
  border-color: var(--c64-orange);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 8px rgba(255,128,0,0.5);
  color: var(--c64-blue-darker);
}
*/


/* Style 2: CRT-Monitor-Glow */
.copy-to-clipboard-button {
  background: linear-gradient(135deg, var(--c64-blue-bg) 0%, var(--c64-blue-mid) 100%);
  color: var(--c64-text);
  border: 1px solid var(--c64-border-inner);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(2,136,209,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.copy-to-clipboard-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.copy-to-clipboard-button:hover {
  box-shadow: 0 0 20px rgba(255,128,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  color: var(--c64-orange);
}

.copy-to-clipboard-button:hover::before {
  left: 100%;
}

/*
Style 3: Pixelated C64-Icon
.copy-to-clipboard-button {
  background: var(--c64-blue-darker);
  color: #fff;
  border: 2px solid var(--c64-border-outer);
  border-radius: 0;
  padding: 6px 10px;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--c64-border-inner), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.2s ease;
  image-rendering: pixelated;
}

.copy-to-clipboard-button:hover {
  background: var(--c64-orange);
  color: var(--c64-blue-darker);
  box-shadow: 4px 4px 0 var(--c64-border-inner), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translate(-2px, -2px);
}
*/

/*
Style 4: Tape-Cassette-Retro
.copy-to-clipboard-button {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: var(--c64-orange);
  border: 2px solid var(--c64-border-outer);
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  transition: all 0.3s ease;
}

.copy-to-clipboard-button::after {
  content: '▶';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c64-orange);
  font-size: 1.2em;
}

.copy-to-clipboard-button:hover {
  background: linear-gradient(135deg, var(--c64-orange) 0%, #333 100%);
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(255,128,0,0.3), 0 4px 8px rgba(255,128,0,0.5);
}
*/

/* 
Style 5: Neon-Cyberpunk-C64 (aktiv)
.copy-to-clipboard-button {
  background: rgba(2,136,209,0.1);
  color: var(--c64-accent);
  border: 1px solid var(--c64-accent);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'VT323', 'Consolas', 'Courier New', monospace;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(2,136,209,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 5px rgba(2,136,209,0.5); }
  100% { box-shadow: 0 0 15px rgba(255,128,0,0.8); }
}

.copy-to-clipboard-button:hover {
  background: rgba(255,128,0,0.2);
  color: var(--c64-orange);
  border-color: var(--c64-orange);
  box-shadow: 0 0 20px rgba(255,128,0,1), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: none;
}
*/

/* Nur für Box-Ansicht */
.category-grid .article-preview {
	position: relative;  
    height: 200px;     /* maximale Höhe */
    overflow: hidden;      /* Inhalt abschneiden */

    background: #ffffff;
	padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 4px solid var(--c64-accent);
    transition: all 0.2s ease;
}

/* Optional: schöner Hover-Effekt */
.category-grid .Xarticle-preview:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* Optional: Fade-Out am unteren Rand */
.category-grid .Xarticle-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.category-grid .article-link { 
	display: block; 
  	height: 100%; 
}

@media (max-width: 1024px) {
    .page-content {
        padding-bottom: 0 !important;
    }
}
.sidebar-footer {
    margin-top: auto;          /* Footer nach unten drücken */
    margin-bottom: 40px;       /* Abstand zum unteren Fensterrand */
    text-align: center;
    font-size: 12px;
    color: #8fb6ff;            /* C64-Soft-Blue */
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
    letter-spacing: 1px;
    opacity: 0.8;
    padding: 10px 0;
    border-top: 2px solid rgba(143, 182, 255, 0.2);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}


.dot-nav {
    display: inline-block;
    cursor: pointer;
    user-select: none;
	opacity: 0; transform: translateX(-20px); 
  	transition: opacity 0.4s ease, transform 0.4s ease; 
  	margin: 20px 0;  
}

.dot-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 6px;
    transition: all 0.25s ease;
}

/* Items als Buttons */
.dot-nav-item {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
 	pointer-events: none; /* deaktiviert Klicks */  
}

/* DOT-Zustand */
.dot-nav-dot {
    position: absolute;
    inset: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #8fb6ff;
    box-shadow: 0 0 4px rgba(143,182,255,0.8);
    transition: opacity 0.2s ease;
}

/* ICON / QUADRAT-Zustand (zunächst unsichtbar) */
.dot-nav-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: #0a2540;
    background: linear-gradient(135deg, #b9d4ff 0%, #6a9adb 100%);
    border: 2px solid #cfe0ff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 10px;
}

/* QUADRAT-Zustand */
.dot-nav.is-open .dot-nav-item {
    width: 80px;   /* HIER GRÖSSE EINSTELLEN */
    height: 60px;
    pointer-events: auto; /* aktiviert Klicks */
    cursor: pointer;
}

.dot-nav.is-open .dot-nav-grid {
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 60px);
    gap: 8px;
  	padding-left: 0px;
}


.dot-nav.is-open .dot-nav-dot {
    opacity: 0;
}

.dot-nav.is-open .dot-nav-icon {
    opacity: 1;
    transform: scale(1);
}

.dot-nav.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* Feld 1 – Hellblau */
.item-1 .dot-nav-icon {
    background: linear-gradient(135deg, #b9d4ff, #6a9adb);
    border-color: #cfe0ff;
}

/* Feld 2 – Orange */
.item-2 .dot-nav-icon {
    background: linear-gradient(135deg, #ffb066, #ff8000);
    border-color: #ffcc99;
}

/* Feld 3 – Grün */
.item-3 .dot-nav-icon {
    background: linear-gradient(135deg, #8cff9a, #2e8b57);
    border-color: #b6ffcc;
}

/* Feld 4 – Gelb */
.item-4 .dot-nav-icon {
    background: linear-gradient(135deg, #fff59d, #fbc02d);
    border-color: #fff9c4;
}

/* Feld 5 – Pink */
.item-5 .dot-nav-icon {
    background: linear-gradient(135deg, #ff99cc, #ff5fff);
    border-color: #ffcce6;
}

/* Feld 6 – Lila */
.item-6 .dot-nav-icon {
    background: linear-gradient(135deg, #d1b3ff, #8e44ad);
    border-color: #e8d6ff;
}

/* Feld 7 – Cyan */
.item-7 .dot-nav-icon {
    background: linear-gradient(135deg, #a0ffff, #5fffff);
    border-color: #ccffff;
}

/* Feld 8 – Rot */
.item-8 .dot-nav-icon {
    background: linear-gradient(135deg, #ff8a80, #c62828);
    border-color: #ffb3b0;
}

/* Feld 9 – Dunkelblau */
.item-9 .dot-nav-icon {
    background: linear-gradient(135deg, #6a9adb, #1a2f5a);
    border-color: #a9c6ff;
}

/* Mobile Menu - nur auf Handys anzeigen */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

/* Desktop Menu - nur auf PCs anzeigen */
.desktop-menu {
    display: none;
}

@media (min-width: 769px) {
    .desktop-menu {
        display: block;
    }
}

/* --- HORIZONTAL DOT NAV (hor-nav) --- */

.dot-nav-hor {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 100;
}

.dot-nav-hor.is-visible {
    opacity: 1;
    transform: translateY(0);

}

/* Overlay-Hintergrund für Modal */
.dot-nav-hor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dot-nav-hor.is-open .dot-nav-hor-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Trigger: 3 horizontale Striche */
.dot-nav-hor-trigger {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.dot-nav-hor-trigger span {
    width: 30px;
    height: 3px;
    background: #8fb6ff;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(143, 182, 255, 0.8);
    transition: all 0.3s ease;
}

/* Striche verstecken, wenn Grid offen */
.dot-nav-hor.is-open .dot-nav-hor-trigger {
  display: none; /* remove trigger from flow so it doesn't occupy vertical space when open */
}

/* Grid: 2 Spalten × 5 Reihen - im Flow, animiertes Auf-/Zuklappen */
.dot-nav-hor-grid {
  display: grid;
  grid-template-columns: repeat(2, 180px); /* Breite des kompletten Menüs*/
  grid-template-rows: repeat(5, 60px); /* Höhe der einzelnen Items */
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  box-shadow: none;
  position: relative;
  z-index: 999;
  margin: 0 !important;
  max-height: 0;
  opacity: 0;
  transform: scale(0.9);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, margin 0.25s ease;
  justify-items: center;
}

/* Grid geöffnet */
.dot-nav-hor.is-open .dot-nav-hor-grid {
  margin: 0 auto !important;
  width: fit-content;
  padding: 15px 20px 15px 20px; /* Innenabstand (oben, rechts, unten, links) */
  max-height: 420px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Items */
.dot-nav-hor .dot-nav-item {
    position: relative;
    width: 150px; /* Breite der einzelnen Items */
    height: 60px; /* Höhe der einzelnen Items */
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

/* DOT-Zustand */
.dot-nav-hor .dot-nav-dot {
    position: absolute;
    inset: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #8fb6ff;
    box-shadow: 0 0 4px rgba(143, 182, 255, 0.8);
    transition: opacity 0.2s ease;
    opacity: 1;
}

/* ICON-Zustand */
.dot-nav-hor .dot-nav-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #0a2540;
    background: linear-gradient(135deg, #b9d4ff 0%, #6a9adb 100%);
    border: 2px solid #cfe0ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 10px;
}

/* Im Open-Zustand: Icons sichtbar, Dots unsichtbar */
.dot-nav-hor.is-open .dot-nav-dot {
    opacity: 0;
}

.dot-nav-hor.is-open .dot-nav-icon {
    opacity: 1;
    transform: scale(1);
}

/* Farben für Items (exakt wie dotmenu.php) */
.dot-nav-hor .item-1 .dot-nav-icon {
    background: linear-gradient(135deg, #b9d4ff, #6a9adb);
    border-color: #cfe0ff;
}

.dot-nav-hor .item-2 .dot-nav-icon {
    background: linear-gradient(135deg, #ffb066, #ff8000);
    border-color: #ffcc99;
}

.dot-nav-hor .item-3 .dot-nav-icon {
    background: linear-gradient(135deg, #8cff9a, #2e8b57);
    border-color: #b6ffcc;
}

.dot-nav-hor .item-4 .dot-nav-icon {
    background: linear-gradient(135deg, #fff59d, #fbc02d);
    border-color: #fff9c4;
}

.dot-nav-hor .item-5 .dot-nav-icon {
    background: linear-gradient(135deg, #ff99cc, #ff5fff);
    border-color: #ffcce6;
}

.dot-nav-hor .item-6 .dot-nav-icon {
    background: linear-gradient(135deg, #d1b3ff, #8e44ad);
    border-color: #e8d6ff;
}

.dot-nav-hor .item-7 .dot-nav-icon {
    background: linear-gradient(135deg, #a0ffff, #5fffff);
    border-color: #ccffff;
}

.dot-nav-hor .item-8 .dot-nav-icon {
    background: linear-gradient(135deg, #ff8a80, #c62828);
    border-color: #ffb3b0;
}

.dot-nav-hor .item-9 .dot-nav-icon {
    background: linear-gradient(135deg, #6a9adb, #1a2f5a);
    border-color: #a9c6ff;
}

.dot-nav-hor .item-10 .dot-nav-icon {
    background: linear-gradient(135deg, #ff9900, #cc6600);
    border-color: #ffcc99;
}

/* Links in Menü */
.dot-nav-hor .dot-nav-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Im Artikel */
.article-content img {
  display: block;
  max-width: 100%;  /* passt sich der Inhaltsbreite an */
  height: auto;     /* behält Seitenverhältnis */
  margin: 0 auto;   /* optional zentrieren */
}

/* Im Pop-up/Lightbox */
.lightbox-image img,
.lightbox-img {
  display: block;
  max-width: 90vw;   /* begrenzt auf Viewport-Breite */
  max-height: 90vh;  /* begrenzt auf Viewport-Höhe */
  width: auto;
  height: auto;
  margin: 0 auto;
}