:root {
  --dark-bg1: #07090f;
  --dark-bg2: #101522;
  --dark-card: rgba(255, 255, 255, 0.075);
  --dark-card-strong: rgba(255, 255, 255, 0.11);
  --dark-border: rgba(255, 255, 255, 0.14);

  --light-bg1: #f5f8ff;
  --light-bg2: #ffffff;
  --light-card: rgba(255, 255, 255, 0.78);
  --light-card-strong: rgba(255, 255, 255, 0.92);
  --light-border: rgba(15, 23, 42, 0.10);

  --text-dark: #f8fafc;
  --text-dark-muted: rgba(248, 250, 252, 0.72);

  --text-light: #101828;
  --text-light-muted: rgba(16, 24, 40, 0.68);

  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-3: #22c55e;
  --danger: #fb7185;

  --shadow-dark: 0 26px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.16);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --topbar-height: 72px;
}

/* Reset / Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -2;
}

body::before {
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 68%);
}

body::after {
  right: -190px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 70%);
}

[data-theme="dark"] body {
  color: var(--text-dark);
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.16), transparent 35%),
    radial-gradient(circle at 90% 22%, rgba(99, 102, 241, 0.18), transparent 32%),
    linear-gradient(180deg, var(--dark-bg2) 0%, var(--dark-bg1) 58%, #05060a 100%);
}

[data-theme="light"] body {
  color: var(--text-light);
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.20), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.14), transparent 35%),
    linear-gradient(180deg, var(--light-bg1) 0%, var(--light-bg2) 70%);
}

a {
  color: inherit;
}

p {
  line-height: 1.6;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  min-height: var(--topbar-height);
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .topbar {
  background: rgba(10, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.topbar a,
.topbar button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.topbar a i,
.topbar button i {
  font-size: 1.05rem;
  opacity: 0.92;
}

[data-theme="dark"] .topbar a:hover,
[data-theme="dark"] .topbar button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.10);
  transform: translateY(-1px);
}

[data-theme="light"] .topbar a:hover,
[data-theme="light"] .topbar button:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.055);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.toggle-btn {
  width: 44px;
  padding: 0 !important;
}

/* Hero / Content */
.content {
  position: relative;
  width: min(960px, calc(100% - 32px));
  margin: 62px auto 34px;
  padding: 58px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.content::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.24), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(99, 102, 241, 0.24), transparent 34%),
    radial-gradient(circle at 50% 115%, rgba(34, 197, 94, 0.12), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .content {
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.055));
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-dark);
}

[data-theme="light"] .content {
  background: linear-gradient(180deg, var(--light-card-strong), rgba(255,255,255,0.68));
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-soft);
}

.content h1 {
  max-width: 780px;
  margin: 0 auto 16px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.content h1::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
}

.content p {
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 1.05rem;
}

[data-theme="dark"] .content p {
  color: var(--text-dark-muted);
}

[data-theme="light"] .content p {
  color: var(--text-light-muted);
}

.content strong {
  color: inherit;
}

.content em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.34);
}

/* Buttons */
.btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  position: relative;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb 48%, #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.46);
}

.btn-secondary {
  color: inherit;
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .btn-secondary {
  background: rgba(15, 23, 42, 0.055);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.btn-secondary:hover {
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: transform 0.6s ease;
}

.glow:hover::before {
  transform: translateX(120%);
}

/* Info-Boxen */
.info-boxes {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 72px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-box {
  position: relative;
  min-height: 190px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.info-box > * {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .info-box {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
}

[data-theme="light"] .info-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.info-box:hover {
  transform: translateY(-6px);
}

[data-theme="dark"] .info-box:hover {
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow: 0 24px 62px rgba(0,0,0,0.38), 0 0 32px rgba(56,189,248,0.08);
}

[data-theme="light"] .info-box:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.info-box i {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56,189,248,0.90), rgba(99,102,241,0.90));
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.20);
}

.info-box p {
  margin: 0;
  font-size: 0.98rem;
}

[data-theme="dark"] .info-box p {
  color: var(--text-dark-muted);
}

[data-theme="light"] .info-box p {
  color: var(--text-light-muted);
}

.info-box strong {
  color: inherit;
}

/* Features */
.features {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  padding: 0;
  text-align: center;
}

.features h2 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.features h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  position: relative;
  min-height: 230px;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.075), transparent);
  pointer-events: none;
}

.feature > * {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .feature {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 48px rgba(0,0,0,0.23);
}

[data-theme="light"] .feature {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.feature:hover {
  transform: translateY(-6px);
}

[data-theme="dark"] .feature:hover {
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 24px 64px rgba(0,0,0,0.38), 0 0 34px rgba(99,102,241,0.08);
}

[data-theme="light"] .feature:hover {
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.feature i {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56,189,248,0.90), rgba(99,102,241,0.95));
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.20);
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
}

[data-theme="dark"] .feature p {
  color: var(--text-dark-muted);
}

[data-theme="light"] .feature p {
  color: var(--text-light-muted);
}

/* Footer */
footer {
  width: 100%;
  min-height: 62px;
  margin-top: auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.92rem;
  transition: background 0.35s ease, border-color 0.35s ease;
}

[data-theme="dark"] footer {
  color: rgba(248, 250, 252, 0.72);
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255,255,255,0.09);
}

[data-theme="light"] footer {
  color: rgba(16, 24, 40, 0.62);
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15,23,42,0.08);
}

/* Animationen */
.fade-in {
  animation: fadeIn 0.7s ease both;
}

.fade-in-up {
  animation: fadeInUp 0.75s ease both;
}

.info-boxes.fade-in-up {
  animation-delay: 0.08s;
}

.features.fade-in-up {
  animation-delay: 0.14s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar::-webkit-scrollbar {
    display: none;
  }

  .content {
    margin-top: 42px;
    padding: 46px 28px;
  }

  .info-boxes,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .info-box,
  .feature {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 64px;
  }

  body::before,
  body::after {
    width: 360px;
    height: 360px;
  }

  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 22px;
  }

  .topbar a,
  .topbar button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .content {
    width: calc(100% - 20px);
    margin-top: 34px;
    padding: 38px 20px;
    border-radius: 24px;
  }

  .content p {
    font-size: 0.98rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .info-boxes,
  .features {
    width: calc(100% - 20px);
  }

  .info-boxes {
    margin-bottom: 56px;
  }

  .features {
    margin-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Ergänzungen für neue index.php-Struktur */

.brand-link {
  margin-right: auto;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

.brand-link i {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-badge {
  width: fit-content;
  margin: 0 auto 22px;
  padding: 9px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .hero-badge {
  color: rgba(248, 250, 252, 0.88);
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.08);
}

[data-theme="light"] .hero-badge {
  color: #0f172a;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.hero-badge i {
  color: var(--accent);
}

.welcome-box {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 12px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

[data-theme="dark"] .welcome-box {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

[data-theme="light"] .welcome-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.welcome-box i {
  color: var(--accent);
  font-size: 1.25rem;
}

.hero-mini-stats {
  max-width: 520px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-mini-stats div {
  padding: 14px 12px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

[data-theme="dark"] .hero-mini-stats div {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

[data-theme="light"] .hero-mini-stats div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-mini-stats strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.hero-mini-stats span {
  font-size: 0.82rem;
}

[data-theme="dark"] .hero-mini-stats span {
  color: var(--text-dark-muted);
}

[data-theme="light"] .hero-mini-stats span {
  color: var(--text-light-muted);
}

.info-box h2 {
  margin: 0 0 12px;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .topbar {
    justify-content: flex-start;
  }

  .brand-link {
    margin-right: 0;
  }

  .main-nav {
    flex: 0 0 auto;
  }
}

@media (max-width: 620px) {
  .brand-link span,
  .main-nav a span {
    display: none;
  }

  .main-nav {
    gap: 4px;
  }

  .hero-mini-stats {
    grid-template-columns: 1fr;
  }

  .welcome-box {
    border-radius: 20px;
  }
}

/* ===== Login & Register Box ===== */
.form-box {
  margin: 100px auto 80px; /* Abstand wegen Topbar + Footer */
  padding: 2rem 2.5rem;
  max-width: 420px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-align: center;
}

.form-box h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

/* Fehlermeldungen */
.errors {
  background: rgba(200, 0, 0, 0.2);
  border: 1px solid rgba(200, 0, 0, 0.4);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #ffdddd;
}

.errors ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

/* Formular */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group i {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  opacity: 0.7;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.7rem 0.7rem 2.2rem; /* Platz für Icon */
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, background 0.3s;
}

.form-group input:focus {
  border: 1px solid rgba(0, 120, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* Login-Button */
.login-form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Link darunter */
.link {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.register-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.register-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}


/* ===== Dashboard Layout ===== */
.container.dashboard {
  display: flex;
  gap: 2rem;
  padding: 100px 2rem 70px; /* Platz für Topbar + Footer */
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  flex: 0 0 260px;
  border-radius: 1rem;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  padding: 1.5rem;
  height: fit-content;
}

.sidebar h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sidebar .list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .list li {
  margin-bottom: 0.8rem;
}

.sidebar .list a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  transition: background 0.3s, color 0.3s;
}

.sidebar .list a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--link-hover);
}

.sidebar .list a.active {
  background: rgba(0,120,255,0.25);
  border: 1px solid rgba(0,120,255,0.6);
  color: #fff;
  font-weight: bold;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Blog Styles ===== */
.blog-container {
  padding: 100px 2rem 70px; /* Platz für Topbar + Footer */
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-header h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.blog-post, .blog-new {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.blog-post h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.blog-post p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.blog-post small {
  font-size: 0.85rem;
  opacity: 0.7;
}

.blog-actions {
  margin-top: 0.8rem;
}

.blog-actions .btn {
  margin-right: 0.6rem;
}


/* ---------- Settings Page Styles ---------- */
.settings-overview p {
  font-size: 1.1rem;
  margin: 0.3em 0;
}

.album-list, .access-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.album-list li, .access-list li {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-list li:last-child,
.access-list li:last-child {
  border-bottom: none;
}

.album-list li::before {
  content: "\f07b"; /* FontAwesome Ordner Icon */
  font-family: "Font Awesome 6 Pro";
  margin-right: 8px;
  color: #ffcc66;
}

.access-list li::before {
  content: "\f201"; /* FontAwesome Chart Line Icon */
  font-family: "Font Awesome 6 Pro";
  margin-right: 8px;
  color: #66ccff;
}

.admin-box h2 {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.admin-box p strong {
  color: #ffffff;
}

/* Container für Settings-Dashboard */
.container {
  max-width: 900px;   /* Begrenzung, damit es nicht über die ganze Breite geht */
  margin: 0 auto;     /* zentriert den Container horizontal */
  padding: 20px;
}

/* Erste Box (Übersicht) weiter nach unten schieben */
.settings-overview {
  margin-top: 80px;  /* Abstand von der Topbar */
}

/* Einheitlicher Look für die Admin-Boxen */
.admin-box {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Album-Liste */
.album-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.album-list li {
  display: flex;
  justify-content: space-between; /* Name links, Anzahl rechts */
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.album-list li::before {
  content: "\f07b"; /* FontAwesome folder */
  font-family: "Font Awesome 6 Pro";
  margin-right: 8px;
  color: #f0c14b;
}

/* Access-Logs */
.access-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.access-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

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

/* SETTINGS.PHP SPEZIELL */

/* Dark Mode */
[data-theme="dark"] .settings-page {
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
  color: #f9f9f9;
}

[data-theme="dark"] .settings-page .admin-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: #f9f9f9;
}

/* Light Mode */
[data-theme="light"] .settings-page {
  background: linear-gradient(to bottom, #f2f6fa, #ffffff);
  color: #111;
}

[data-theme="light"] .settings-page .admin-box {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  color: #111;
}

/* ER INDEX */

.features {
  text-align: center;
  padding: 40px 20px;
}

.features h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
  color: var(--text-color);
}

.feature-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
 
.feature {
  background: rgba(255, 255, 255, 0.07);
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature i {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.copy-btn, .delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.2em;
  margin-left: 5px;
}

.copy-btn:hover {
  color: #4cafef; /* Blau fürs Kopieren */
}
.delete-btn:hover {
  color: #e74c3c; /* Rot fürs Löschen */
}