@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg-dark: #0f172a;
  --surface-glass: rgba(15, 23, 42, 0.82);
  --surface-card: rgba(30, 41, 59, 0.75);
  --surface-card-hover: rgba(30, 41, 59, 0.95);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --gold-accent: #f59e0b;
  --gold-bg: rgba(245, 158, 11, 0.12);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.88)), 
                    url(https://toplist.2ix.de/skins/TopList.2ix.de/images/milky-way-starry-sky-night-sky-star-956999.jpeg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #93c5fd;
}

/* Header & Navigation */
header {
  padding: 0;
}

#logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 160%;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

#headbanner {
  width: 100%;
  text-align: right;
}

#ads {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
}

.navbar {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bg-light, .bg-dark {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(12px);
}

.nav-link.link {
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link.link:hover {
  color: #fff !important;
  background: var(--primary);
}

#usermenu a {
  padding: 6px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* Main Container (Glassmorphism) */
.wrap {
  border: 1px solid var(--border-subtle);
  border-top: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  margin-top: 0;
  margin-bottom: 40px;
  width: 85%;
  max-width: 1320px;
}

main {
  margin-top: 24px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 16px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Fluid video/img */
.video-fluid,
.site-image-container video:not(.video-fluid) {
  max-width: 100%;
}
.img-fluid,
.site-image-container img:not(.img-fluid) {
  height: auto;
}
@supports (--custom:property) {
  .site-image-container {
    position: relative;
    display: block;
    max-width: var(--site-image-aspect-base);
    border-radius: 8px;
    overflow: hidden;
  }
  .site-image-container::before {
    content: "";
    display: block;
    padding-bottom: calc(100% / (var(--site-image-aspect-ratio)));
  }
  .site-image-container img,
  .site-image-container video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
  }
}

/* Toplisten-Einträge (Rankbox & Lower Rankbox) */
.rankbox, .lower_rankbox {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  color: var(--text-main);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rankbox:hover, .lower_rankbox:hover {
  background: var(--surface-card-hover);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.lower_rankbox:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.lower_rankbox p {
  margin: 10px 0;
  color: var(--text-muted);
}

/* Premium Einträge */
.premium {
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(30, 41, 59, 0.85));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}

.premium:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.22);
}

/* Platzierungs-Badge */
p.rank {
  margin-bottom: 0;
}

.lower_rankbox .rank, .rank {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
}

.rank span {
  display: inline-block;
  min-width: 48px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 8px 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
}

.premium .rank span {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
}

/* Vorschaubilder / Screenshots */
.rankshot {
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  filter: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rankshot:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Titlebars */
.titlebar .badge, .titlebar2 .badge {
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
}

.titlebar {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.titlebar2 {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.titlebar, .titlebar a, .titlebar2 a {
  color: #fff;
}

.titlebar a:hover, .titlebar2 a:hover {
  color: #93c5fd;
}

.smallish {
  background: rgba(15, 23, 42, 0.5);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
}
.smallish img {
  width: 100%;
  border-radius: 6px;
}

.tablecat {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sidebar & Menüs */
ul, ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.list1, ul.list2, ul.category_menu {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.list1 li a, .list2 li a, ul.category_menu li a {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.list1 li:last-child a, .list2 li:last-child a, ul.category_menu li:last-child a {
  border-bottom: 0;
}

.list1 li a:hover, .list2 li a:hover, ul.category_menu li a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  padding-left: 20px;
}

.sidelist {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 16px;
}

.sidelist li {
  text-align: center;
  margin-bottom: 16px;
}
.sidelist li:last-child {
  margin-bottom: 0;
}

/* Pagination */
.pagination {
  margin-top: 30px;
  gap: 6px;
}

.page-link {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Footer */
#foot {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  width: 85%;
  max-width: 1320px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin: 40px auto 0 auto;
  padding: 40px 24px 30px 24px;
  color: var(--text-muted);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

#foot h1, #foot h2, #foot h3, #foot h4 {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

#foot .nav {
  display: block;
}

/* Formulare & Validierung */
input.error {
  border: 1px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.g-recaptcha ~ .invalid-feedback,
.form-check ~ .invalid-feedback,
.custom-control ~ .invalid-feedback {
  display: block;
  color: #f87171;
}

/* Payment Providers */
.payment-provider {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.payment-provider::before {
  position: absolute;
  right: -12px;
  top: -12px;
  background: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  content: "";
  z-index: 998;
  opacity: 0;
}

.payment-provider.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.payment-provider.selected::after {
  position: absolute;
  right: -10px;
  top: -10px;
  color: #fff;
  text-align: center;
  line-height: 22px;
  font-size: 13px;
  font-weight: bold;
  background: #10b981;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: "✓";
  z-index: 999;
}

/* Responsive Anpassungen */
@media only screen and (max-width: 768px) {
  .wrap, #foot {
    width: 95%;
  }
  .rankshot {
    display: none;
  }
  .titlebar, .tablecat, .rankbox, .lower_rankbox {
    text-align: center;
  }
  .sidebar {
    margin-top: 40px;
  }
  .rank {
    display: none;
  }
}

/* Breadcrumb-Leiste modernisieren */
.breadcrumb {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.breadcrumb-item,
.breadcrumb-item.active {
  color: var(--text-main) !important;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #60a5fa !important;
  font-weight: 600;
}

.breadcrumb-item a:hover {
  color: #93c5fd !important;
  text-decoration: underline;
}

/* Falls Trennzeichen wie ">>" als ::before oder Text genutzt werden */
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted) !important;
}