/* ==========================================================================
   mods.eknirb — Modrinth-Inspired Dark Blue & Turquoise Theme
   DSGVO-konform, 100% lokale Schriften (Inter & JetBrains Mono)
   ========================================================================== */

@import url('fonts.css');

:root {
  --bg-canvas: #09090b;
  --bg-surface: #121214;
  --bg-surface-elevated: #1c1c1f;
  --bg-card: #151518;
  --bg-card-hover: #222226;
  --bg-glass: rgba(9, 9, 11, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(20, 184, 166, 0.35);
  --border-accent-strong: #14b8a6;

  --accent-cyan: #14b8a6;
  --accent-teal: #0d9488;
  --accent-light: #2dd4bf;
  --accent-glow: rgba(20, 184, 166, 0.22);
  --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(45, 212, 191, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #22d3ee;

  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-border: rgba(255, 255, 255, 0.1);

  --badge-fabric: #d97706;
  --badge-fabric-bg: rgba(217, 119, 6, 0.15);
  --badge-forge: #3b82f6;
  --badge-neoforge: #f97316;
  --badge-quilt: #a855f7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.25);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20, 184, 166, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(20, 184, 166, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-glow);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-logo:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: #141416;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover .brand-icon {
  border-color: rgba(45, 212, 191, 0.6);
  background: #18181c;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.35);
  transform: translateY(-1px);
}

.brand-logo:hover .brand-icon svg {
  transform: scale(1.08);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.brand-title {
  color: #fff;
  font-weight: 800;
}

.brand-domain {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */

.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.search-box-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), var(--shadow-md);
  background: var(--bg-surface);
}

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

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* ==========================================================================
   Main Content Layout & Filters
   ========================================================================== */

.main-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  flex: 1;
}

.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.filter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-medium);
}

.filter-pill.active {
  background: var(--accent-cyan);
  color: #09090b;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

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

.sort-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Mod Cards Grid & List
   ========================================================================== */

.mods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mod-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.mod-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mod-card:hover::before {
  opacity: 1;
}

.mod-icon-wrapper {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.mod-header-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.mod-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.mod-card:hover .mod-title {
  color: var(--accent-light);
}

.mod-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mod-author span {
  color: var(--text-secondary);
}

.mod-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--text-secondary);
  border: 1px solid var(--badge-border);
}

.badge-loader {
  background: var(--badge-fabric-bg);
  color: var(--badge-fabric);
  border-color: rgba(217, 119, 6, 0.3);
}

.badge-version {
  font-family: var(--font-mono);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(20, 184, 166, 0.25);
}

.badge-cat {
  background: rgba(255, 255, 255, 0.05);
}

.mod-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  min-width: 170px;
}

.mod-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mod-stat svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mod-stat strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #09090b;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.55);
  color: #09090b;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--text-secondary);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Mod Detail Page
   ========================================================================== */

.mod-hero-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.mod-hero-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mod-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.mod-hero-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mod-hero-icon {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.mod-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-hero-title-area h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.mod-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.mod-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mod Detail Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent-cyan);
}

.tab-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

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

/* Tab: Beschreibung */
.description-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.description-card h2, .description-card h3, .description-card h4 {
  color: #fff;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.description-card h2 { font-size: 1.6rem; }
.description-card h3 { font-size: 1.25rem; }

.description-card p {
  margin-bottom: 1rem;
}

.description-card ul, .description-card ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.description-card li {
  margin-bottom: 0.4rem;
}

.description-card strong {
  color: #fff;
}

.description-card code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-light);
  border: 1px solid var(--border-subtle);
}

/* Tab: Versions Table */
.versions-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.versions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.versions-table th {
  background: var(--bg-surface-elevated);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.versions-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.versions-table tr:last-child td {
  border-bottom: none;
}

.versions-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.version-name-cell strong {
  color: #fff;
  font-size: 1.05rem;
}

.version-changelog {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Tab: Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  group: true;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-wrapper {
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  position: relative;
}

.gallery-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb-wrapper img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 36px;
  height: 36px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.gallery-caption {
  padding: 0.85rem 1rem;
}

.gallery-caption h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-caption p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 10, 18, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--border-medium);
}

.lightbox-title {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

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

.file-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(20, 184, 166, 0.05);
}

.file-dropzone svg {
  width: 44px;
  height: 44px;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Footer & Legal Info
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-left p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Diskreter Admin Link */
.footer-admin-link {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  opacity: 0.5;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.footer-admin-link:hover {
  opacity: 1;
  color: var(--accent-cyan) !important;
}

/* ==========================================================================
   Legal Pages (Impressum & Datenschutz)
   ========================================================================== */

.legal-container {
  max-width: 860px;
  margin: 2rem auto 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  line-height: 1.7;
}

.legal-container h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.legal-container h2 {
  font-size: 1.4rem;
  color: #fff;
  margin: 2rem 0 0.8rem;
}

.legal-container h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.legal-container p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  color: var(--text-primary);
}

.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .mod-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mod-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .mod-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .filter-groups {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .sort-select-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .lightbox-modal {
    padding: 1rem;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
  }
}

/* ==========================================================================
   Header Navigation Enhancements & Dropdown
   ========================================================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ==========================================================================
   Mod-Wunsch / Request Page Styles (Separater Tab-Modus)
   ========================================================================== */

/* ==========================================================================
   Formular-Statusmeldungen (Erfolg / Fehler)
   ========================================================================== */

.status-msg {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.status-msg.success {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
}

.status-msg.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Button innerhalb der Statusmeldung */
.status-msg .btn {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
}

