
:root {
  --accent: #e0244f;
  --accent-strong: #ff3b6b;
  --accent-hover: #f7b2c3;
  --text: #f3e6ea;
  --muted: #a58a94;
  --line: #3a1424;
  --bg: #070306;
  --card: #140810;
  --card-2: #1e0b17;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }


.site-header { background: var(--accent); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { color: #fff; font-weight: bold; font-size: 1.15rem; text-decoration: none; }
.logo:hover { color: #fff; text-decoration: underline; }
.mainnav { display: flex; gap: 16px; flex-wrap: wrap; }
.mainnav a { color: #fff; text-decoration: none; padding: 6px 0; }
.mainnav a:hover { text-decoration: underline; color: #fff; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 28px 0 12px; color: var(--accent); }
.intro { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 20px; margin-bottom: 20px; }
.intro h2 { font-size: 1.2rem; }


.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0; }
.pagination:empty { display: none; }
.pagination a, .pagination strong {
  display: inline-block; min-width: 40px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card); text-decoration: none;
}
.pagination strong { background: #990000; border-color: #b30000; color: #fff; }


.toplist { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.toplist th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: normal; padding: 0 12px; text-align: left; }
.toplist th.rank, .toplist th.hits { text-align: center; }
.toplist th.rank { font-size: .8rem; font-weight: normal; color: var(--muted); }
.toplist td { background: var(--card); padding: 12px; vertical-align: top; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toplist td:first-child { border-left: 3px solid var(--accent-strong); border-radius: 6px 0 0 6px; }
.toplist td:last-child { border-right: 1px solid var(--line); border-radius: 0 6px 6px 0; }
.toplist .rank { width: 56px; text-align: center; font-size: 1.35rem; font-weight: bold; color: var(--accent); vertical-align: middle; }
.toplist .hits { width: 72px; text-align: center; vertical-align: middle; font-weight: bold; }
.toplist .hits small { display: block; font-weight: normal; color: var(--muted); font-size: .8rem; }
.sitetitle { font-weight: bold; font-size: 1.05rem; }
.new { color: var(--accent-strong); font-weight: bold; font-size: .8rem; text-transform: uppercase; margin-left: 6px; }
.banner { display: block; margin: 8px 0 4px; border: 0; }
.description { margin: 6px 0 0; color: var(--text); font-size: .95rem; overflow-wrap: anywhere; }


.stats ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: .85rem; color: var(--muted); }
.stats strong { color: var(--text); }


.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 16px 0 32px; text-align: center; font-size: .9rem; color: var(--muted); }
.license a { font-size: inherit; }


@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .toplist, .toplist tbody, .toplist tr, .toplist td { display: block; width: 100%; }
  .toplist .list-head { display: none; }
  .toplist tr.entry {
    display: grid; grid-template-columns: 48px 1fr 1fr; margin-bottom: 10px;
    background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent-strong); border-radius: 6px;
  }
  .toplist td, .toplist td:first-child, .toplist td:last-child { border: 0; border-radius: 0; background: transparent; padding: 10px; }
  .toplist .rank { width: auto; grid-row: span 2; }
  .toplist .site { grid-column: 2 / 4; padding-left: 0; }
  .toplist td.hits { width: auto; grid-column: auto; border-top: 1px solid var(--line); font-size: .9rem; padding: 6px; }
  .toplist .hits::before { content: attr(data-label) " "; font-weight: normal; color: var(--muted); }
  .toplist .hits small { display: inline; margin-left: 4px; }
}


.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 20px 20px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.form-row label, .form-row .label { font-weight: bold; padding-top: 8px; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=url], .form-row input[type=password], .form-row textarea {
  width: 100%; padding: 9px 10px; font: inherit; border: 1px solid var(--line); border-radius: 4px; background: #1f1616; color: var(--text);
}
.form-row textarea { min-height: 90px; }
.form-row .error { grid-column: 2; color: var(--accent-strong); font-size: .9rem; }
.form-row .error:empty { display: none; }
.form-row.rules { background: var(--card-2); padding: 12px; border-radius: 4px; border: 0; }
.form-row.rules input { width: auto; margin-right: 8px; }
.form-actions { padding-top: 16px; display: flex; gap: 10px; }
.btn { background: #990000; color: #fff; border: 0; border-radius: 4px; padding: 10px 22px; font: inherit; cursor: pointer; }
.btn:hover { background: var(--accent-strong); }
.btn.secondary { background: var(--card-2); color: var(--text); }
.message, .updatemessage, .updateerrormessage { color: var(--accent-strong); font-weight: bold; }
.rules-text { font-size: .95rem; }
.captcha img { display: block; margin-bottom: 6px; }
.codebox textarea { width: 100%; min-height: 100px; font-family: monospace; font-size: .85rem; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stats-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row .error { grid-column: 1; }
  .form-row label, .form-row .label { padding-top: 0; }
}

.seotext { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 20px 12px; margin: 24px 0; }
.seotext h2 { font-size: 1.3rem; color: var(--accent); }
.seotext h3 { font-size: 1.05rem; margin-top: 1.4em; }

.ad {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px 12px; margin: 20px 0; text-align: center;
}
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; text-align: left; }
.ad a { display: block; }
.ad img { display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: 4px; }

.site-logo { text-align: center; padding: 28px 0 8px; }
.site-logo img { display: inline-block; max-width: 100%; max-height: 160px; width: auto; height: auto; }
main > h1 { text-align: center; margin-top: 12px; }

/* Dunkler Hintergrund: Elemente direkt auf dem Hintergrund aufhellen */
main > h1 { color: #ffffff; }
.toplist th, .toplist th.rank { color: #d8c8c8; }
.site-footer { color: #b8a8a8; border-top-color: #3a2a2a; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ff9900; }
main > .updatemessage, main > .message { color: #ff8080; }

.btn:hover { background: #b30000; }
.stats strong { color: #ffffff; }
.toplist td:first-child { border-left-color: #b30000; }






/* ================= Design "dessous" (Schwarz, Karmesin & Spitze) ================= */
body {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(214,32,78,.22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2248%22 height=%2248%22 viewBox=%220 0 48 48%22%3E%3Cg fill=%22none%22 stroke=%22%23ff3b6b%22 stroke-opacity=%22.07%22 stroke-width=%221%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2214%22/%3E%3Ccircle cx=%220%22 cy=%220%22 r=%2214%22/%3E%3Ccircle cx=%2248%22 cy=%220%22 r=%2214%22/%3E%3Ccircle cx=%220%22 cy=%2248%22 r=%2214%22/%3E%3Ccircle cx=%2248%22 cy=%2248%22 r=%2214%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%226%22/%3E%3C/g%3E%3Cg fill=%22%23ff3b6b%22 fill-opacity=%22.09%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%221.6%22/%3E%3Ccircle cx=%2224%22 cy=%220%22 r=%221.2%22/%3E%3Ccircle cx=%220%22 cy=%2224%22 r=%221.2%22/%3E%3Ccircle cx=%2248%22 cy=%2224%22 r=%221.2%22/%3E%3Ccircle cx=%2224%22 cy=%2248%22 r=%221.2%22/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
  background-size: auto, 48px 48px, auto;
  background-attachment: fixed;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, .sitetitle { font-family: Georgia, "Times New Roman", serif; }

/* Kussmund über der Hauptüberschrift, Ornament darunter */
main > h1 { color: #fff; font-weight: normal; font-style: italic; font-size: 2.1rem; }
main > h1::before {
  content: ""; display: block; width: 56px; height: 34px; margin: 0 auto 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 60%22%3E%3Cdefs%3E%3ClinearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23ff4f7b%22/%3E%3Cstop offset=%221%22 stop-color=%22%23a3123a%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d=%22M4 30 C18 10 36 6 50 18 C64 6 82 10 96 30 C80 33 64 35 50 33 C36 35 20 33 4 30 Z%22 fill=%22url(%23g)%22/%3E%3Cpath d=%22M4 31 C24 35 76 35 96 31 C84 50 64 58 50 58 C36 58 16 50 4 31 Z%22 fill=%22url(%23g)%22/%3E%3Cpath d=%22M8 31 C26 34 74 34 92 31%22 stroke=%22%235c0a20%22 stroke-width=%222%22 fill=%22none%22/%3E%3Cpath d=%22M30 44 C38 49 46 50 52 49%22 stroke=%22%23ffffff%22 stroke-opacity=%22.35%22 stroke-width=%222.5%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255,59,107,.45));
}
main > h1::after {
  content: ""; display: block; width: 160px; height: 14px; margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2214%22 viewBox=%220 0 160 14%22%3E%3Cpath d=%22M0 7 H58%22 stroke=%22%23d6204e%22 stroke-opacity=%22.6%22/%3E%3Cpath d=%22M102 7 H160%22 stroke=%22%23d6204e%22 stroke-opacity=%22.6%22/%3E%3Cpath d=%22M80 13 C70 6 66 3 66 1.5 C66 0 68 -0.5 70 0.5 C73 2 76 4 80 6 C84 4 87 2 90 0.5 C92 -0.5 94 0 94 1.5 C94 3 90 6 80 13 Z%22 fill=%22%23ff3b6b%22/%3E%3Ccircle cx=%2262%22 cy=%227%22 r=%222%22 fill=%22%23d6204e%22/%3E%3Ccircle cx=%2298%22 cy=%227%22 r=%222%22 fill=%22%23d6204e%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Boxen mit Spitzenbordüre oben */
.intro, .seotext, .ad, .form-card {
  position: relative; border-radius: 4px 4px 12px 12px; border: 1px solid var(--line); border-top: 0;
  background: linear-gradient(180deg, #1a0912, #110609);
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
  margin-top: 26px;
}
.intro::before, .seotext::before, .ad::before, .form-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2210%22 viewBox=%220 0 24 10%22%3E%3Cpath d=%22M0 0 H24 V2 Q18 12 12 2 Q6 12 0 2 Z%22 fill=%22%23d6204e%22/%3E%3Ccircle cx=%226%22 cy=%224%22 r=%221.3%22 fill=%22%23140810%22/%3E%3Ccircle cx=%2218%22 cy=%224%22 r=%221.3%22 fill=%22%23140810%22/%3E%3C/svg%3E") repeat-x; background-size: 24px 10px;
}
.intro h2, .seotext h2 { color: #fff; font-style: italic; font-weight: normal; font-size: 1.45rem; }
.seotext h2::after {
  content: ""; display: block; width: 160px; height: 14px; margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2214%22 viewBox=%220 0 160 14%22%3E%3Cpath d=%22M0 7 H58%22 stroke=%22%23d6204e%22 stroke-opacity=%22.6%22/%3E%3Cpath d=%22M102 7 H160%22 stroke=%22%23d6204e%22 stroke-opacity=%22.6%22/%3E%3Cpath d=%22M80 13 C70 6 66 3 66 1.5 C66 0 68 -0.5 70 0.5 C73 2 76 4 80 6 C84 4 87 2 90 0.5 C92 -0.5 94 0 94 1.5 C94 3 90 6 80 13 Z%22 fill=%22%23ff3b6b%22/%3E%3Ccircle cx=%2262%22 cy=%227%22 r=%222%22 fill=%22%23d6204e%22/%3E%3Ccircle cx=%2298%22 cy=%227%22 r=%222%22 fill=%22%23d6204e%22/%3E%3C/svg%3E") left center / contain no-repeat;
}
.seotext h3 { color: var(--accent-hover); }
.ad-label { color: var(--accent-hover); letter-spacing: .14em; }
.stats li { border-radius: 999px; background: var(--card); }

/* Liste: Herzen als Rang-Plaketten */
.toplist { border-spacing: 0 10px; }
.toplist th { color: var(--accent-hover); letter-spacing: .1em; }
.toplist td { background: var(--card); border-color: var(--line); }
.toplist td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.toplist td:last-child { border-radius: 0 12px 12px 0; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 42px; padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 90%22%3E%3Cpath d=%22M50 86 C21 65 4 49 4 28 C4 13 15 4 28 4 C38 4 46 10 50 18 C54 10 62 4 72 4 C85 4 96 13 96 28 C96 49 79 65 50 86 Z%22 fill=%22%231e0b15%22 stroke=%22%237a1a36%22 stroke-width=%224%22/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--accent-hover); font-family: Georgia, serif; font-weight: bold; font-size: 1rem;
}
.top1 .badge, .top2 .badge, .top3 .badge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 90%22%3E%3Cdefs%3E%3ClinearGradient id=%22h%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23ff4f7b%22/%3E%3Cstop offset=%221%22 stop-color=%22%23b0143f%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d=%22M50 88 C20 66 2 50 2 28 C2 12 14 2 28 2 C38 2 46 8 50 16 C54 8 62 2 72 2 C86 2 98 12 98 28 C98 50 80 66 50 88 Z%22 fill=%22url(%23h)%22/%3E%3C/svg%3E"); color: #fff;
  filter: drop-shadow(0 0 8px rgba(255,59,107,.55));
}
.toplist tr.top1 td, .toplist tr.top2 td, .toplist tr.top3 td { border-color: rgba(255,59,107,.45); }
.toplist tr.top1 td:first-child, .toplist tr.top2 td:first-child, .toplist tr.top3 td:first-child { border-left: 3px solid var(--accent-strong); }
.toplist tr.entry:hover td { background: var(--card-2); }
.sitetitle { color: #fff; font-style: italic; font-size: 1.15rem; text-decoration: none; }
.sitetitle:hover { color: var(--accent-hover); }
.new { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: .65rem; letter-spacing: .06em; }
.new::before { content: "♥ "; }
.toplist .hits { color: #fff; }

/* Seitennavigation */
.pagination a, .pagination strong { border-radius: 999px; background: var(--card); border-color: var(--line); color: var(--text); }
.pagination a:hover { border-color: var(--accent-strong); color: #fff; }
.pagination strong { background: linear-gradient(135deg, #ff3b6b, #a3123a); border-color: transparent; color: #fff; }

/* Formular & Buttons */
.btn { background: linear-gradient(135deg, #ff3b6b, #a3123a); color: #fff; border-radius: 999px; font-weight: bold; }
.btn:hover { background: linear-gradient(135deg, #ff5a84, #c0174a); }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=url], .form-row input[type=password], .form-row textarea { background: #0c0407; border-radius: 8px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 2px rgba(255,59,107,.25); }

/* Statistik & Footer */
.stats strong { color: var(--accent-hover); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer a { color: var(--accent-hover); }
.site-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  main > h1 { font-size: 1.6rem; }
  .toplist tr.entry { border-radius: 12px; border-left: 1px solid var(--line); background: var(--card); grid-template-columns: 56px 1fr 1fr; }
  .toplist tr.entry td { background: transparent; }
  .toplist tr.top1, .toplist tr.top2, .toplist tr.top3 { border-left: 3px solid var(--accent-strong); border-color: rgba(255,59,107,.45); }
  .badge { width: 38px; height: 35px; font-size: .9rem; }
  .toplist .site { padding-left: 4px; }
}

/* Hits: aktueller Wert hervorgehoben, Gesamtwert dezent */
.toplist .hits { white-space: nowrap; }
.toplist .hit-now {
  display: inline-block; min-width: 2.2em; padding: 3px 8px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--accent-strong); font-size: 1.05rem; font-weight: 800; line-height: 1.2;
}
.toplist .hits small.hit-total {
  display: block; margin-top: 4px; font-size: .75rem; font-weight: normal; color: var(--muted); letter-spacing: .02em;
}
@media (max-width: 640px) {
  .toplist .hit-now { padding: 1px 6px; font-size: .95rem; }
  .toplist .hits small.hit-total { display: inline; margin: 0 0 0 4px; }
}
