/* =========================================
   1. SCHRIFTARTEN
   Dateien müssen in /static/fonts/ liegen.
   ========================================= */
/* Roboto v50 */
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/roboto-v50-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v50-latin-regular.woff') format('woff');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/roboto-v50-latin-500.woff2') format('woff2'), url('../fonts/roboto-v50-latin-500.woff') format('woff');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/roboto-v50-latin-700.woff2') format('woff2'), url('../fonts/roboto-v50-latin-700.woff') format('woff');
}

/* Montserrat v31 */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'), url('../fonts/montserrat-v31-latin-regular.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'), url('../fonts/montserrat-v31-latin-600.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2'), url('../fonts/montserrat-v31-latin-800.woff') format('woff');
}

/* =========================================
   1.b FONT AWESOME (LOKAL & DATENSCHUTZFREUNDLICH)
   ========================================= */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
}

.fa, .fas, .fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.fa, .fas, .fa-regular, .fa-solid, .fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-spin { animation: fa-spin 2s infinite linear; }
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   2. VARIABLEN
   ========================================= */
:root {
  --color-bg-light: #f9f9f9;
  --color-text-light: #222;
  --color-primary: #4f46e5;
  --color-accent: #6366f1;
  --color-bg-dark: #121212;
  --color-text-dark: #e4e4e7;
  --color-sidebar-bg-light: #ffffff;
  --color-sidebar-bg-dark: #1e1e2f;
  --color-card-border-light: #e5e7eb;
  --color-card-border-dark: #333333;
  --color-meta: #6b7280;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --color-success: #10b981;
}

html { scroll-behavior: smooth; }

body {
  margin: 0; font-family: var(--font-body);
  background-color: var(--color-bg-light); color: var(--color-text-light);
  display: flex; height: 100vh; overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
  background-color: var(--color-bg-dark); color: var(--color-text-dark);
  --color-primary: #8ab4f8; --color-accent: #aecbfa; --color-meta: #9ca3af;
}

main.content { flex-grow: 1; padding: 2rem 3rem; overflow-y: auto; position: relative; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-primary); color: white; padding: 8px; z-index: 100;
}
.skip-link:focus { top: 0; }

/* =========================================
   3. SEITENLEISTE & NAVIGATION
   ========================================= */
nav.sidebar {
  width: 300px; background-color: var(--color-sidebar-bg-light);
  border-right: 1px solid var(--color-card-border-light);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; flex-shrink: 0;
  overflow-y: auto; transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark nav.sidebar { background-color: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark); }

nav.sidebar h1 {
  font-family: var(--font-heading); font-size: 1.8rem; margin: 0 0 0.5rem;
  color: var(--color-primary); font-weight: 800;
}
nav.sidebar .tagline { font-size: 0.9rem; margin-bottom: 2rem; line-height: 1.4; color: var(--color-meta); }

nav.sidebar .nav-section { margin-bottom: 2rem; }
nav.sidebar .nav-section h2 {
  font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--color-meta); margin-bottom: 0.75rem; font-weight: 600;
}

nav.sidebar a.nav-link {
  text-decoration: none; color: inherit; padding: 0.5rem 0 0.5rem 0.8rem; font-weight: 500;
  border-left: 3px solid transparent; margin-left: -0.3rem;
  transition: border-color 0.3s ease, color 0.3s ease; display: block; margin-bottom: 0.5rem;
}
nav.sidebar a.nav-link:hover, nav.sidebar a.nav-link:focus {
  border-color: var(--color-primary); color: var(--color-primary); outline: none;
}
nav.sidebar a.nav-link.active {
  border-color: var(--color-primary); color: var(--color-primary);
  background: rgba(79, 70, 229, 0.05); font-weight: 600;
}
body.dark nav.sidebar a.nav-link.active { background: rgba(138, 180, 248, 0.1); }

.mobile-menu-btn {
  display: none; width: 100%; padding: 0.8rem;
  background: var(--color-bg-light); border: 2px solid var(--color-card-border-light);
  border-radius: 8px; color: var(--color-text-light); font-weight: 600;
  cursor: pointer; text-align: left; margin-bottom: 1rem;
}
body.dark .mobile-menu-btn {
  background: var(--color-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-text-dark);
}
.mobile-menu-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.mobile-menu-btn i { margin-right: 0.5rem; }

nav.sidebar .toggle-theme {
  margin-top: auto; cursor: pointer; background-color: #4f46e5;
  color: white; border: none; padding: 0.6rem 1rem;
  border-radius: 6px; transition: background-color 0.3s ease; font-weight: 600;
}
nav.sidebar .toggle-theme:hover { background-color: var(--color-accent); }
body.dark nav.sidebar .toggle-theme { background-color: #3730a3; color: #ffffff; border: 1px solid #4f46e5; }
body.dark nav.sidebar .toggle-theme:hover { background-color: #4338ca; }

.widget {
  background: rgba(79, 70, 229, 0.05); padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem;
  border: 1px solid var(--color-card-border-light);
}
body.dark .widget { background: rgba(138, 180, 248, 0.05); border-color: var(--color-card-border-dark); }
.widget h4 {
  font-family: var(--font-heading); font-size: 1rem; margin: 0 0 0.75rem 0;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-primary);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  font-size: 0.9rem; margin-bottom: 0.5rem; padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--color-card-border-light);
}
body.dark .widget li { border-bottom-color: var(--color-card-border-dark); }
.widget li:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }

/* =========================================
   4. GLOBALE KOMPONENTEN
   ========================================= */
.btn {
  width: 100%; padding: 1rem; border: none; border-radius: 8px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; transition: all 0.2s; font-size: 1rem;
}
.btn-primary { background: #4f46e5; color: white; }
.btn-primary:hover { background: #6366f1; }
.btn-secondary {
  background: transparent; border: 1px solid var(--color-card-border-light); color: var(--color-text-light);
}
body.dark .btn-secondary { border-color: var(--color-card-border-dark); color: var(--color-text-dark); }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-success { background: #10b981; color: white; border: none; }

body.dark .btn, body.dark .btn-primary, body.dark .action-button,
body.dark .cta-btn, body.dark .hero-btn {
  background-color: #4f46e5 !important; color: #ffffff !important; border: none;
}
body.dark .btn:hover, body.dark .btn-primary:hover, body.dark .action-button:hover,
body.dark .cta-btn:hover, body.dark .hero-btn:hover {
  background-color: #6366f1 !important;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  border-radius: 16px; padding: 3rem; color: white; margin-bottom: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2); overflow: hidden; position: relative;
}
body.dark .hero {
  background: linear-gradient(135deg, #1e1e2f, #312e81);
  box-shadow: none; border: 1px solid var(--color-card-border-dark);
}
.hero-content { max-width: 550px; z-index: 2; }
.hero h1, .hero h2 {
  font-family: var(--font-heading); font-size: 2.5rem; margin: 0 0 1rem 0;
  line-height: 1.2; font-weight: 800;
}
.hero p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; opacity: 0.9; }
.hero-btn {
  background: white; color: #4f46e5; padding: 0.8rem 1.5rem;
  border-radius: 8px; text-decoration: none; font-weight: 700;
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.hero-image {
  width: 350px; height: 250px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: rotate(3deg); z-index: 1;
  transition: transform 0.3s ease;
}
.hero:hover .hero-image { transform: rotate(0deg) scale(1.02); }

/* SEKTIONEN */
section { margin-bottom: 4rem; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 1.5rem; border-bottom: 2px solid var(--color-card-border-light);
  padding-bottom: 1rem;
}
body.dark .section-header { border-color: var(--color-card-border-dark); }
.section-header h3, .section-header h2 {
  font-family: var(--font-heading); font-size: 1.8rem; margin: 0;
  color: var(--color-primary); font-weight: 700;
}
.section-link {
  text-decoration: none; color: var(--color-meta); font-weight: 600;
  font-size: 0.9rem; display: flex; align-items: center; transition: color 0.2s;
}
.section-link:hover { color: var(--color-primary); }
.section-link::after { content: '→'; margin-left: 5px; }

/* 1. Gemeinsame Container-Breite (jetzt breiter für mehr Platz) */
.container, 
.preview-grid, 
.service-grid, 
.files-grid,
.text-card-section,
.disclosure-box,
.vpn-section-wrapper { /* NEU: Damit auch die Überschriften bündig sind */
  max-width: 1400px; /* Erhöht von 1140px für breitere Karten */
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* 2. STARTSEITE: Speziell für die 4 Karten nebeneinander */
.preview-grid {
  display: grid;
  /* Erzwingt 4 Spalten auf großen Bildschirmen */
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* 3. EMPFEHLUNGEN (single.html): Speziell für die 3 Karten nebeneinander */
.service-grid {
  display: grid;
  /* Erzwingt 3 Spalten auf großen Bildschirmen */
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* 4. RESPONSIVE ANPASSUNGEN: Verhindert das "Unter-einander-rutschen" zu früh */

/* Für Tablets: 2 Karten nebeneinander */
@media (max-width: 1100px) {
  .preview-grid, .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Für Smartphones: Alles untereinander */
@media (max-width: 700px) {
  .preview-grid, .service-grid {
    grid-template-columns: 1fr;
  }
  
  /* Optional: Padding auf Handy reduzieren für mehr Platz */
  .text-card-section {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* FIX: position: relative hinzugefügt, um Badges innerhalb der Karte zu halten */
.article-card, .tool-card, .service-card, .file-card {
  background: var(--color-sidebar-bg-light); border: 1px solid var(--color-card-border-light);
  border-radius: 10px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  position: relative; 
}
body.dark .article-card, body.dark .tool-card, body.dark .service-card, body.dark .file-card {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
}
.article-card:hover, .tool-card:hover, .service-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.article-content, .tool-content, .service-content {
  padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1;
}
.tool-title, .article-title, .service-card h3 {
  font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 0.75rem 0;
  color: var(--color-text-light); font-weight: 700; line-height: 1.3;
}
body.dark .tool-title, body.dark .article-title, body.dark .service-card h3 { color: var(--color-text-dark); }
.tool-excerpt, .article-excerpt {
  font-size: 0.95rem; color: var(--color-meta); margin-bottom: 1rem; flex-grow: 1; line-height: 1.5;
}
.tool-link, .article-link {
  font-size: 0.9rem; color: var(--color-primary); text-decoration: none;
  font-weight: 700; display: inline-flex; align-items: center;
}
.tool-link::after, .article-link::after { content: '→'; margin-left: 5px; transition: margin-left 0.2s; }
.tool-link:hover::after, .article-link:hover::after { margin-left: 10px; }

.tool-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* SERVICE CARD SPEZIFIKA */
.service-icon {
  font-size: 3rem; margin-bottom: 0.5rem; display: block;
}
.service-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.service-badge {
  position: absolute; top: 10px; right: 10px; padding: 4px 8px;
  border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
}
.badge-top { background: #ef4444; color: white; }
.badge-value { background: #10b981; color: white; }
.badge-privacy { background: #4f46e5; color: white; }

.service-features {
  list-style: none; padding: 0; margin: 0 0 1.5rem 0;
}
.service-features li {
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem;
}
.service-features li i { color: #10b981; }

.service-price {
  font-size: 0.9rem; color: var(--color-meta); text-align: center;
  margin-top: auto; margin-bottom: 1rem; padding-top: 1rem;
  border-top: 1px dotted var(--color-card-border-light);
}
body.dark .service-price { border-top-color: var(--color-card-border-dark); }
.price-tag {
  font-weight: 800; color: var(--color-primary); font-size: 1.2rem;
}


/* =========================================
   5. TOOL-STYLES
   ========================================= */
.tool-header {
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-card-border-light);
}
body.dark .tool-header { border-color: var(--color-card-border-dark); }
.tool-header h1 {
  font-family: var(--font-heading); font-size: 2.5rem;
  margin: 0 0 0.5rem 0; color: var(--color-primary); font-weight: 800;
}
.tool-container { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.tool-section {
  background: var(--color-sidebar-bg-light); padding: 2rem; border-radius: 12px;
  border: 1px solid var(--color-card-border-light);
}
body.dark .tool-section {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
}
.tool-section h3 {
  margin-bottom: 1.5rem; font-size: 1.5rem; display: flex; align-items: center;
  gap: 0.5rem; font-family: var(--font-heading);
}

.tool-section input[type="text"],
.tool-section input[type="password"],
.tool-section input[type="email"] {
  width: 100%; padding: 1rem; border: 2px solid var(--color-card-border-light);
  border-radius: 8px; font-size: 1rem; background: var(--color-bg-light);
  color: var(--color-text-light); font-family: 'Courier New', monospace;
  margin-bottom: 1rem; box-sizing: border-box; transition: border-color 0.2s;
}
body.dark .tool-section input {
  background: var(--color-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-text-dark);
}
.tool-section input:focus { outline: none; border-color: var(--color-primary); }

.password-display { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.password-output {
  flex: 1; padding: 1rem; background: var(--color-bg-light);
  border: 2px solid var(--color-card-border-light); border-radius: 8px;
  font-family: 'Courier New', monospace; font-size: 1.1rem; word-break: break-all;
  min-height: 50px; display: flex; align-items: center;
}
body.dark .password-output { background: var(--color-bg-dark); border-color: var(--color-card-border-dark); }
.copy-btn {
  padding: 1rem 1.5rem; background: #4f46e5; color: white; border: none;
  border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: all 0.2s;
}
.strength-bar {
  height: 8px; background: var(--color-bg-light); border-radius: 4px;
  overflow: hidden; margin-bottom: 0.5rem;
}
body.dark .strength-bar { background: var(--color-bg-dark); }
.strength-fill { height: 100%; transition: width 0.3s, background-color 0.3s; border-radius: 4px; }
.strength-weak { background: #ef4444; }
.strength-fair { background: #f59e0b; }
.strength-good { background: #eab308; }
.strength-strong { background: #10b981; }
.strength-very-strong { background: #059669; }

.entropy-display {
  background: var(--color-bg-light); padding: 1rem; border-radius: 8px;
  margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
body.dark .entropy-display { background: var(--color-bg-dark); }
.entropy-item { text-align: center; }
.entropy-value { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); display: block; }
.controls { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.control-group { display: flex; justify-content: space-between; align-items: center; }
.slider-container { display: flex; align-items: center; gap: 1rem; flex: 1; max-width: 300px; }
input[type="range"] { flex: 1; cursor: pointer; }

.pwned-result {
  margin-top: -0.5rem; margin-bottom: 1rem; padding: 0.75rem; border-radius: 8px;
  font-weight: 600; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem;
}
.pwned-safe {
  background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2);
}
.pwned-danger {
  background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2);
}
body.dark .pwned-safe { color: #34d399; background: rgba(5, 150, 105, 0.2); }
body.dark .pwned-danger { color: #f87171; background: rgba(220, 38, 38, 0.2); }

/* =========================================
   NEUES HISTORY-DESIGN (Screenshot-Style)
   ========================================= */

.history-section {
  background: #ffffff; /* Heller Hintergrund wie im Screenshot */
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-card-border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark Mode Anpassung für die Section */
body.dark .history-section {
  background: var(--color-sidebar-bg-dark);
  border-color: var(--color-card-border-dark);
  box-shadow: none;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.history-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text-light);
}
body.dark .history-header h3 { color: var(--color-text-dark); }

/* Icons oben rechts (Download & Delete All) */
.history-actions {
  display: flex;    /* Ordnet Buttons nebeneinander an */
  gap: 0.5rem;      /* Abstand zwischen den Buttons */
  flex-shrink: 0;   /* Verhindert, dass die Buttons bei langem Passwort schrumpfen */
}
.icon-btn {
  background: none;
  border: none;
  color: var(--color-meta);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.icon-btn:hover { color: var(--color-primary); }
.icon-btn.clear-history:hover { color: #ef4444; }

/* Die Liste der Einträge */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

.history-item {
  background: #f8fafc; /* Sehr helles Grau */
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid #edf2f7;
}

body.dark .history-item {
  background: rgba(255,255,255,0.03);
  border-color: var(--color-card-border-dark);
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.history-password {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  word-break: break-all;
  font-weight: 600;
  color: #1a202c;
}
body.dark .history-password { color: #f7fafc; }

.history-time {
  font-size: 0.75rem;
  color: var(--color-meta);
}

/* Button-Gruppe pro Eintrag */
.history-actions {
  display: flex;
  gap: 0.5rem;
}

.history-action-btn {
  width: 36px !important;  /* Feste Breite */
  height: 36px !important; /* Feste Höhe */
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}
/* Stellt sicher, dass die Icons in den Buttons weiß und sichtbar sind */
.history-action-btn i {
  color: #ffffff !important;
  font-size: 1rem;
  pointer-events: none; /* Verhindert, dass das Icon den Klick abfängt */
}

/* Zentrierung optimieren */
.history-action-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.history-action-btn:hover {
  transform: scale(1.1);
}
/* Blau für Kopieren */
.btn-copy {
  background-color: #4f46e5;
}
.btn-copy:hover { background-color: #4338ca; }
.btn-copy.copied { background-color: #10b981; } /* Grün bei Erfolg */

/* Rot für Löschen */
.btn-delete {
  background-color: #ef4444;
}
.btn-delete:hover { background-color: #dc2626; }

/* --- FIX: Stärke-Label Abstand --- */
.strength-label span:first-child {
  margin-right: 5px;      /* Fügt das Leerzeichen nach "Stärke:" ein */
}

/* --- FIX: Passwort-Text im Verlauf --- */
.history-password {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  color: var(--color-text-light);
}
body.dark .history-password { color: var(--color-text-dark); }

.loading { text-align: center; padding: 3rem; }
.loading i { font-size: 3rem; color: var(--color-primary); animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.score-card {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
    /* NEU HINZUGEFÜGT FÜR DIE ZENTRIERUNG: */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* FÜGE DIESEN BLOCK DIREKT DARUNTER EIN */
/* --- OPTIMIERTER STATUS-BADGE --- */
#scoreStatus {
    display: inline-block !important;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    width: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dynamische Status-Farben */
#scoreStatus.success { background-color: rgba(16, 185, 129, 0.85) !important; } /* Grün */
#scoreStatus.warning { background-color: rgba(245, 158, 11, 0.85) !important; }  /* Orange */
#scoreStatus.danger  { background-color: rgba(239, 68, 68, 0.85) !important; }  /* Rot */

/* Spezielle Anpassung für den Dark Mode */
body.dark #scoreStatus {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.score-number { font-size: 4rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1; }
.score-total { font-size: 1.5rem; opacity: 0.7; }
.test-categories { display: grid; gap: 1.5rem; }
.test-category {
  background: var(--color-sidebar-bg-light); border: 1px solid var(--color-card-border-light);
  border-radius: 12px; padding: 2rem;
}
body.dark .test-category {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
}
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.test-items { display: grid; gap: 1rem; }
.test-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: var(--color-bg-light); border-radius: 8px;
  border-left: 4px solid transparent;
}
body.dark .test-item { background: var(--color-bg-dark); }
.test-item.pass { border-left-color: #10b981; }
.test-item.warning { border-left-color: #f59e0b; }
.test-item.fail { border-left-color: #ef4444; }
.test-value {
  font-family: 'Courier New', monospace; font-size: 0.9rem; color: var(--color-meta);
  margin: 0 1rem; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recommendations {
  background: rgba(59, 130, 246, 0.1); border-left: 4px solid var(--color-primary);
  padding: 1.5rem; border-radius: 8px; margin-top: 2rem;
}
body.dark .recommendations { background: rgba(138, 180, 248, 0.1); }
.action-button {
  width: 100%; padding: 1rem 2rem; background: #4f46e5; color: white;
  border: none; border-radius: 8px; font-weight: 600; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-top: 2rem;
}

.info-box {
  background: rgba(79, 70, 229, 0.05); border: 1px solid var(--color-card-border-light);
  border-radius: 8px; padding: 1.5rem; margin-top: 2rem;
}
body.dark .info-box { background: rgba(138, 180, 248, 0.05); border-color: var(--color-card-border-dark); }
.info-box h3 { margin-top: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; color: var(--color-text-light); }
body.dark .info-box h3 { color: var(--color-text-dark); }
.info-box ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.info-box li { margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.info-box li i { color: var(--color-primary); margin-top: 4px; }

.drop-zone {
  border: 2px dashed var(--color-card-border-light); border-radius: 12px;
  padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s;
  background: var(--color-bg-light); min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
body.dark .drop-zone { background: var(--color-bg-dark); border-color: var(--color-card-border-dark); }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--color-primary); background: rgba(79, 70, 229, 0.05); }
.file-preview { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; background: #eee; }

.tab-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.tab-btn {
  padding: 1.5rem; background: var(--color-sidebar-bg-light); border: 2px solid var(--color-card-border-light);
  border-radius: 12px; cursor: pointer; transition: all 0.3s; text-align: center;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--color-text-light);
}
body.dark .tab-btn {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-text-dark);
}
.tab-btn.active {
  border-color: var(--color-primary); background: rgba(79, 70, 229, 0.1); color: var(--color-primary);
}
body.dark .tab-btn.active { background: rgba(138, 180, 248, 0.1); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-card {
  background: var(--color-bg-light); padding: 2rem; border-radius: 12px;
  margin-top: 2rem; border-left: 4px solid transparent;
}
body.dark .result-card { background: var(--color-bg-dark); }
.result-card.success { border-left-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.result-card.warning { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.result-card.error { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* =========================================
   6. TEXT, FOOTER & VERSCHIEDENES
   ========================================= */
.text-content {
  background: var(--color-sidebar-bg-light); padding: 3rem; border-radius: 12px;
  border: 1px solid var(--color-card-border-light); max-width: 800px;
  margin: 0 auto; line-height: 1.8;
}
body.dark .text-content {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
}
.text-content h2 {
  font-family: var(--font-heading); color: var(--color-primary); margin-top: 2rem;
  margin-bottom: 1rem; font-size: 1.5rem; border-bottom: 1px solid var(--color-card-border-light);
  padding-bottom: 0.5rem;
}
body.dark .text-content h2 { border-bottom-color: var(--color-card-border-dark); }
.text-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
body.dark .text-content a { color: #818cf8; }

.affiliate-box {
  background: var(--color-sidebar-bg-light); border: 2px solid var(--color-primary);
  border-radius: 12px; padding: 1.5rem; margin-top: 3rem; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1.5rem; position: relative;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}
body.dark .affiliate-box { background: var(--color-sidebar-bg-dark); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

.affiliate-badge {
  position: absolute; top: -12px; left: 20px; background: var(--color-primary);
  color: white; padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.75rem;
  font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;
}
body.dark .affiliate-badge { background-color: #4f46e5 !important; color: white !important; }

.aff-icon {
  font-size: 3.5rem; line-height: 1; flex-shrink: 0;
}
.aff-content { flex-grow: 1; }
.aff-content h4 {
  font-family: var(--font-heading); font-size: 1.4rem; margin: 0 0 0.5rem 0;
  color: var(--color-primary); font-weight: 800;
}
body.dark .aff-content h4 { color: #8ab4f8; }

.aff-content p {
    margin: 0 0 1rem 0; line-height: 1.5; font-size: 0.95rem;
}

.aff-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.aff-features li {
  font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500;
}
.aff-features li i { color: var(--color-success); }

.aff-action .btn {
    padding: 0.6rem 1.2rem !important; font-size: 0.9rem !important;
    width: auto !important; display: inline-flex !important;
    margin-bottom: 0.25rem; text-decoration: none !important;
}

.service-content .btn {
  width: fit-content !important; align-self: flex-start !important;
  display: inline-flex !important; min-width: 140px;
  justify-content: center; margin: 0 auto;
}

.disclosure-box {
  display: flex; gap: 1rem; background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3); padding: 1.5rem; border-radius: 8px;
  font-size: 0.9rem; color: var(--color-meta);
}

.cta-support {
  background: linear-gradient(to right, var(--color-sidebar-bg-light), rgba(79, 70, 229, 0.05));
  border: 1px solid var(--color-primary); border-radius: 12px; padding: 1.5rem;
  margin-top: 3rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}
body.dark .cta-support {
  background: linear-gradient(to right, var(--color-sidebar-bg-dark), rgba(138, 180, 248, 0.05));
  border-color: var(--color-primary);
}
.cta-icon { font-size: 2.5rem; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}
.cta-btn {
  background: #4f46e5; color: white; text-decoration: none; padding: 0.8rem 1.2rem;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

footer {
  background: var(--color-sidebar-bg-light); color: var(--color-meta);
  border-top: 1px solid var(--color-card-border-light); padding: 2rem 0;
  text-align: center; margin-top: 3rem;
}
body.dark footer {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-meta);
}
footer a { color: var(--color-text-light); text-decoration: none; font-weight: 500; transition: color 0.2s; }
body.dark footer a { color: var(--color-text-dark); }
footer a:hover, body.dark footer a:hover { color: var(--color-primary); }

#backToTop {
  position: fixed; bottom: 30px; right: 30px; background: var(--color-primary);
  color: white; border: none; padding: 0.7rem 1rem; border-radius: 30px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  z-index: 1000; font-size: 1.2rem;
}
#backToTop.show { opacity: 1; pointer-events: auto; }

/* =========================================
   8. KONTAKTFORMULAR
   ========================================= */
.contact-container {
  max-width: 800px; margin: 0 auto;
}

.contact-form {
  background: var(--color-sidebar-bg-light); padding: 2rem; border-radius: 12px;
  border: 1px solid var(--color-card-border-light);
}
body.dark .contact-form {
  background: var(--color-sidebar-bg-dark); border-color: var(--color-card-border-dark);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95rem;
  color: var(--color-text-light);
}
body.dark .form-group label { color: var(--color-text-dark); }

.form-control {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--color-card-border-light);
  border-radius: 8px; font-size: 1rem; background: var(--color-bg-light);
  color: var(--color-text-light); transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: var(--font-body);
}
body.dark .form-control {
  background: var(--color-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-text-dark);
}

.form-control:focus {
  outline: none; border-color: var(--color-primary);
}

textarea.form-control {
  min-height: 150px; resize: vertical;
}

#formResult {
  margin-top: 1.5rem; padding: 1rem; border-radius: 8px; display: none;
  font-weight: 500; text-align: center;
}
#formResult.success {
  background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2);
}
#formResult.error {
  background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 720px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  nav.sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-card-border-light);
    padding: 1rem 1.5rem;
    max-height: none;
    overflow-y: visible;
  }

  nav.sidebar .widget { display: none; }

  main.content { padding: 1.5rem; }

  .mobile-menu-btn { display: block; }

  .sidebar-content { display: none; }
  .sidebar-content.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
    margin-bottom: 1rem;
  }

  .score-number { font-size: 3rem; }

  .test-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .test-value { max-width: 100%; margin: 0; }

  .tab-switcher { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 1rem; }
}
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95rem;
  color: var(--color-text-light);
}
body.dark .form-group label { color: var(--color-text-dark); }

.form-control {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--color-card-border-light);
  border-radius: 8px; font-size: 1rem; background: var(--color-bg-light);
  color: var(--color-text-light); transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: var(--font-body);
}
body.dark .form-control {
  background: var(--color-bg-dark); border-color: var(--color-card-border-dark);
  color: var(--color-text-dark);
}

.form-control:focus {
  outline: none; border-color: var(--color-primary);
}

textarea.form-control {
  min-height: 150px; resize: vertical;
}

/* Erfolgs-/Fehlermeldungs-Box */
#formResult {
  margin-top: 1.5rem; padding: 1rem; border-radius: 8px; display: none;
  font-weight: 500; text-align: center;
}
#formResult.success {
  background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2);
}
#formResult.error {
  background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 720px) {
  /* Scrollen auf Mobilgeräten erlauben */
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  nav.sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-card-border-light);
    padding: 1rem 1.5rem;
    max-height: none;
    overflow-y: visible;
  }

  nav.sidebar .widget { display: none; }

  main.content { padding: 1.5rem; }

  .mobile-menu-btn { display: block; }

  .sidebar-content { display: none; }
  
  .sidebar-content.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
    margin-bottom: 1rem;
  }

  .score-number { font-size: 3rem; }

  .test-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .test-value { max-width: 100%; margin: 0; }

  .tab-switcher { grid-template-columns: 1fr; }

  /* Formular auf dem Handy untereinander */
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
}
/* --- FIX: Metadaten-Tool Controls --- */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid var(--color-card-border-light);
}

body.dark .controls-container {
    background: var(--color-sidebar-bg-dark);
    border-color: var(--color-card-border-dark);
}

.settings-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Der Abstand zwischen "Format:" und der Box */
}

.setting-item label {
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

/* Kompakte Dropdown-Box */
.compact-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-card-border-light);
    border-radius: 8px;
    background: white;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 180px;
}

body.dark .compact-select {
    background: var(--color-bg-dark);
    border-color: var(--color-card-border-dark);
    color: white;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-badge {
    background: var(--color-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
}

.actions-group {
    display: flex;
    gap: 1rem;
}

.btn-compact {
    width: auto !important; /* Verhindert volle Breite auf Desktop */
    padding: 0.6rem 1.2rem !important;
}

@media (max-width: 768px) {
    .controls-container { flex-direction: column; align-items: stretch; }
    .settings-group { flex-direction: column; align-items: stretch; }
    .actions-group { flex-direction: column; }
}
/* --- Metadaten Tool UI Fix --- */
.tool-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-light);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-card-border-light);
  margin: 1.5rem 0;
}

body.dark .tool-controls-bar {
  background: var(--color-sidebar-bg-dark);
  border-color: var(--color-card-border-dark);
}

.settings-left, .inline-setting, .range-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.compact-select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--color-card-border-light);
}

/* Bildvorschau-Karten */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.file-card {
  position: relative;
  border: 1px solid var(--color-card-border-light);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.file-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
/* Dateianzeige unter dem Vorschaubild */
.file-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
}

body.dark .file-info {
  background: rgba(255,255,255,0.03);
}

.file-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Kürzt lange Dateinamen mit ... ab */
  color: var(--color-text-light);
}

.file-meta {
  font-size: 0.7rem;
  color: var(--color-meta);
}

/* Der kleine rote X-Button an jeder Karte */
.remove-file {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.2s;
  z-index: 10;
}

.remove-file:hover {
  transform: scale(1.1);
  background: #dc2626;
}

/* Spinner-Overlay während der Bereinigung */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

body.dark .loader-overlay {
  background: rgba(15, 23, 42, 0.8);
}
/* =========================================
   FIX: VPN & SERVICE BADGES (single.html)
   ========================================= */

.service-card {
    position: relative; /* Wichtig für die Positionierung der Badges */
    padding-top: 3.5rem !important; /* Erzeugt oben Platz, damit der Badge nichts verdeckt */
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem; /* Kleiner, damit lange Texte passen */
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    max-width: 150px; /* Begrenzt die Breite */
    white-space: normal; /* Erlaubt Zeilenumbruch bei langen Wörtern */
    line-height: 1.1;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Spezifische Farben für die Badges aus single.html */
.badge-top { background-color: #ef4444 !important; color: white !important; }
.badge-value { background-color: #10b981 !important; color: white !important; }
.badge-privacy { background-color: #4f46e5 !important; color: white !important; }
/* --- FIX: Zentrierter Textblock unter den VPN-Karten --- */
.content-layout-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert die inneren Boxen horizontal */
  width: 100%;
  padding: 0 1.5rem;
  margin-top: 4rem;
}

.text-card-section {
  background: #ffffff;
  padding: 3.5rem; /* Großzügiger Innenabstand für Lesbarkeit */
  border-radius: 16px;
  border: 1px solid var(--color-card-border-light);
  max-width: 1140px; /* Passt sich der Breite von 3 Karten-Spalten an */
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Dark Mode Anpassung für die Text-Karte */
body.dark .text-card-section {
  background: var(--color-sidebar-bg-dark);
  border-color: var(--color-card-border-dark);
  box-shadow: none;
}

.disclosure-box {
  max-width: 1140px;
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

/* Korrektur für Überschriften innerhalb des Textblocks */
.text-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
/* --- FINALES STYLING: Text-Karte (single.html) --- */
.text-card-section {
    background: #ffffff;
    padding: 4rem; /* Großzügiger Innenabstand für Profi-Look */
    border-radius: 20px;
    border: 1px solid var(--color-card-border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    line-height: 1.7; /* Bessere Lesbarkeit des Textes */
    color: var(--color-text-light);
}

/* Dark Mode Anpassung */
body.dark .text-card-section {
    background: var(--color-sidebar-bg-dark);
    border-color: var(--color-card-border-dark);
    box-shadow: none;
    color: #e2e8f0;
}

/* Formatierung der Inhalte innerhalb der Textbox */
.text-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-heading-light);
    line-height: 1.2;
}

body.dark .text-content h2 {
    color: #ffffff;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.text-content strong {
    color: var(--color-primary); /* Hebt wichtige Begriffe wie 'VPN Test' hervor */
}

/* Responsivität: Weniger Padding auf Mobilgeräten */
@media (max-width: 768px) {
    .text-card-section {
        padding: 2rem;
    }
    .text-content h2 {
        font-size: 1.75rem;
    }
}
/* --- FINALES STYLING: Text-Karte (single.html) --- */
.text-card-section {
    background: #ffffff;
    padding: 4rem; /* Großzügiger Innenabstand für Profi-Look */
    border-radius: 20px;
    border: 1px solid var(--color-card-border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    line-height: 1.7; /* Bessere Lesbarkeit des Textes */
    color: var(--color-text-light);
}

/* Dark Mode Anpassung */
body.dark .text-card-section {
    background: var(--color-sidebar-bg-dark);
    border-color: var(--color-card-border-dark);
    box-shadow: none;
    color: #e2e8f0;
}

/* Formatierung der Inhalte innerhalb der Textbox */
.text-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-heading-light);
    line-height: 1.2;
}

body.dark .text-content h2 {
    color: #ffffff;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.text-content strong {
    color: var(--color-primary); /* Hebt wichtige Begriffe wie 'VPN Test' hervor */
}

/* Responsivität: Weniger Padding auf Mobilgeräten */
@media (max-width: 768px) {
    .text-card-section {
        padding: 2rem;
    }
    .text-content h2 {
        font-size: 1.75rem;
    }
}
/* --- Styling für die Überschriften auf der Empfehlungsseite --- */
.section-title {
  max-width: 1400px; /* Gleiche Breite wie die Karten-Grids */
  margin: 3.5rem auto 2rem; /* Zentriert & Abstände oben/unten */
  padding: 0 1.5rem 1rem; /* Seitenabstand & Platz für die Linie */
  
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  
  display: flex;
  align-items: center;
  gap: 0.75rem;
  
  /* Die gewünschte Trennlinie */
  border-bottom: 2px solid var(--color-card-border-light);
  width: 100%;
  box-sizing: border-box;
}

/* Dark Mode Anpassung für die Trennlinie */
body.dark .section-title {
  border-bottom-color: var(--color-card-border-dark);
}

/* Icon-Größe in der Überschrift */
.section-title i {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Sicherstellen, dass der Wrapper die Zentrierung unterstützt */
.vpn-section-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: 2.5rem; /* Oder die Größe, die du bevorzugst */
}
