
: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 "portal" (Galerie-Raster im Stil von amateurporno.net) ================= */
:root {
  --accent: #f26e3f;
  --accent-strong: #ff8a5c;
  --accent-hover: #ffb08f;
  --cream: #fcfabf;
  --text: #e6e6e6;
  --muted: #a8a8a8;
  --line: #2c2c2c;
  --bg: #0b0b0b;
  --panel: #1c1c1c;
  --card: #0f0f0f;
  --card-2: #161616;
  --head: "Exo", "Exo 2", "Trebuchet MS", "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--bg); color: var(--text); font-family: var(--body); }
.wrap { max-width: 1320px; }

/* Partner-Banner ganz oben */
.partner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 12px 0; }
.partner a { display: block; line-height: 0; }
.partner img { width: 200px; max-width: 42vw; height: auto; border-radius: 6px; }
.partner a:hover img { filter: brightness(1.15); }

/* Kopfbereich */
.site-logo { padding: 22px 0 4px; }
main > h1, h2, h3 { font-family: var(--head); font-weight: 400; }
main > h1 { color: var(--cream); font-size: 2rem; line-height: 1.25; margin: 12px auto 6px; max-width: 1000px; }
.intro.lead { background: none; border: 0; padding: 0; margin: 0 auto 14px; max-width: 1000px; text-align: center; }
.intro.lead p { margin: 0; color: var(--muted); font-size: 1.3rem; line-height: 1.4; }
.intro.lead strong { font-weight: 700; }
.ad { background: transparent; border: 0; padding: 0; margin: 14px auto; max-width: 780px; }
.ad-label { text-align: center; color: #6f6f6f; }
.ad img { border-radius: 6px; }

/* Raster mit Vorschaubildern */
.board { background: var(--panel); border-radius: 15px 15px 0 0; padding: 24px; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.6); }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #1a1a1a, #101010); }
.thumb:not(:has(img)) { background: url("img/vorschau-platzhalter.png") center / cover no-repeat, #111; }
.thumb a { display: block; width: 100%; height: 100%; }
.card .thumb img.banner, .thumb img {
  display: block; width: 100% !important; max-width: none !important; height: 100% !important;
  object-fit: cover; margin: 0; border: 0; transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.04); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 34px; height: 34px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(0,0,0,.72); color: #fff; font: 700 .95rem/1 var(--head);
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(2px);
}
.top1 .badge, .top2 .badge, .top3 .badge { background: var(--accent); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: 0 3px 10px rgba(242,110,63,.5); }
.top1 .badge { background: linear-gradient(135deg, #ffcf5a, #f26e3f); color: #1a0d05; }
.card-body { padding: 14px 18px 18px; text-align: center; }
.card-title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.sitetitle { color: var(--cream); font-weight: 600; text-decoration: none; }
.sitetitle:hover, .sitetitle:focus { color: var(--accent-strong); }
.new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .62rem/1.5 var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.card .description { margin: 0; color: #fff; font-size: .95rem; line-height: 1.55; }
.cards > .ad { grid-column: 1 / -1; margin: 0 auto; }

/* Seitennavigation */
.pagination { margin: 26px 0 4px; }
.pagination a, .pagination strong { border-radius: 999px; min-width: 44px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-family: var(--head); }
.pagination a:hover { border-color: var(--accent); color: #fff; }
.pagination strong { background: var(--accent); border-color: var(--accent); color: #fff; }

/* SEO-Text zentriert wie bisher */
.seotext { background: var(--panel); border: 0; border-radius: 0 0 15px 15px; padding: 10px 28px 26px; margin: 0 0 18px; text-align: center; color: #ccc; }
.board + .ad + .seotext, .board + .seotext { border-radius: 15px; }
.seotext h2 { color: var(--cream); font-size: 1.6rem; margin-top: 1.2em; }
.seotext h3 { color: #fff; font-size: 1.25rem; margin-top: 1.6em; }
.seotext p { color: #ccc; max-width: 980px; margin-left: auto; margin-right: auto; }
.seotext ul { list-style: none; padding: 0; margin: 15px auto; max-width: 900px; }
.seotext li { color: #ccc; font-weight: 700; margin: 6px 0; }
.seotext li::before { content: "❤ "; color: var(--accent); }
.seotext a { color: var(--accent-strong); }

/* Footer */
.site-footer { background: #111; border-top: 3px dotted rgba(255,255,255,.75); color: #ccc; margin-top: 0; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-strong); }

/* Formulare (Eintragen, Mitglieder) */
.intro:not(.lead), .form-card { background: var(--panel); border: 0; border-radius: 12px; }
.form-row { border-bottom-color: var(--line); }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=url], .form-row input[type=password], .form-row textarea { background: #0c0c0c; border: 1px solid #333; border-radius: 6px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(242,110,63,.25); }
.form-row.rules { background: var(--card-2); }
.btn { background: var(--accent); color: #fff; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--accent-strong); }
.btn.secondary { background: transparent; border: 1px solid #444; color: var(--text); }
.form-card h2, .intro:not(.lead) h2 { color: var(--cream); }
.form-row .error, .message, .updatemessage, .updateerrormessage, main > .updatemessage, main > .message { color: var(--accent-strong); }
.stats li { background: var(--card); border-color: var(--line); }
.stats strong { color: var(--cream); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 640px) {
  main > h1 { font-size: 1.45rem; }
  .intro.lead p { font-size: 1.05rem; }
  .board { padding: 14px; border-radius: 12px 12px 0 0; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .seotext { padding: 6px 18px 20px; }
  .seotext h2 { font-size: 1.3rem; }
  .seotext h3 { font-size: 1.1rem; }
}

/* Fehlerseite 404 */
.notfound .intro { text-align: center; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 8px; }
.notfound .btn { display: inline-block; text-decoration: none; }
.notfound .actions a.btn, .notfound .actions a.btn:hover { color: #fff; }
.notfound .actions a.btn.secondary { color: var(--text); }
