
: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 "amateur" (Privat & echt: Polaroid, Klebeband, Kamera-Sucher) ================= */
:root {
  --accent: #ff7a45;
  --accent-strong: #ff9a62;
  --accent-hover: #ffc2a0;
  --pink: #ff3d6e;
  --text: #efe7e2;
  --muted: #9c918b;
  --line: #2b2523;
  --bg: #0a0909;
  --card: #141211;
  --card-2: #1c1918;
  --hand: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Neue", cursive;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --vf: rgba(255,122,69,.75);
}
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0%22/%3E%3C/filter%3E%3Crect width=%22160%22 height=%22160%22 filter=%22url(%23n)%22 opacity=%22.35%22/%3E%3C/svg%3E"),
    radial-gradient(900px 480px at 50% -120px, rgba(255,122,69,.13), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(255,61,110,.07), transparent 70%),
    var(--bg);
  background-size: 160px 160px, auto, auto, auto;
  background-attachment: fixed;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Logo als Polaroid mit Klebestreifen */
.site-logo {
  position: relative; width: fit-content; max-width: calc(100% - 24px);
  margin: 40px auto 6px; padding: 12px 12px 34px;
  background: linear-gradient(180deg, #221e1c, #191615);
  border: 1px solid #332c29; border-radius: 3px;
  box-shadow: 0 18px 30px rgba(0,0,0,.65), 0 2px 0 rgba(255,255,255,.04) inset;
  transform: rotate(-1.6deg);
}
.site-logo img { display: block; border-radius: 1px; }
.site-logo::before, .site-logo::after {
  content: ""; position: absolute; top: -11px; width: 74px; height: 24px;
  background: linear-gradient(180deg, rgba(235,215,180,.30), rgba(235,215,180,.20));
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.site-logo::before { left: -16px; transform: rotate(-32deg); }
.site-logo::after { right: -16px; transform: rotate(28deg); }

/* Hauptüberschrift mit Aufnahme-Anzeige und Textmarker */
main > h1 {
  width: fit-content; max-width: 100%; margin: 30px auto 14px; padding: 0 6px;
  color: #fff; font-weight: 800; letter-spacing: -.01em; font-size: 2.1rem;
  background: linear-gradient(180deg, transparent 60%, rgba(255,122,69,.38) 60% 90%, transparent 90%);
}
main > h1::before {
  content: "REC"; display: block; width: fit-content; margin: 0 auto 10px; padding: 2px 10px 2px 24px;
  font: bold .78rem/1.4 var(--mono); letter-spacing: .2em; color: #ff5a6e;
  border: 1px solid rgba(255,90,110,.45); border-radius: 3px;
  background: radial-gradient(circle at 12px 50%, #ff3355 0 4px, transparent 5px);
  animation: ama-rec 1.4s steps(1) infinite;
}
@keyframes ama-rec { 50% { background-image: none; } }
@media (prefers-reduced-motion: reduce) { main > h1::before { animation: none; } }

/* Boxen mit Kamera-Sucher-Ecken */
.intro, .seotext, .ad, .form-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0,0,0,.5);
  padding: 14px 26px 18px; margin: 24px 0;
}
.ad { padding: 12px 22px 20px; }
.intro::before, .seotext::before, .ad::before, .form-card::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    linear-gradient(var(--vf), var(--vf)) left top / 18px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left top / 2px 18px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right top / 18px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right top / 2px 18px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right bottom / 2px 18px no-repeat;
}
.intro > *, .seotext > *, .ad > *, .form-card > * { position: relative; }
.intro h2, .seotext h2, .form-card h2 {
  font-family: var(--hand); font-weight: bold; color: var(--accent-strong); font-size: 1.45rem;
  transform: rotate(-1deg); transform-origin: left;
}
.intro h2::before, .seotext h2::before {
  content: ""; display: inline-block; width: 30px; height: 19px; margin-right: 10px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 40%22 fill=%22none%22 stroke=%22%23ff7a45%22 stroke-width=%223%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%228%22 width=%2240%22 height=%2226%22 rx=%225%22/%3E%3Cpath d=%22M43 17 L60 8 V34 L43 25 Z%22/%3E%3Ccircle cx=%2212%22 cy=%2215%22 r=%222.5%22 fill=%22%23ff3355%22 stroke=%22none%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.seotext h3 { color: var(--accent-hover); font-size: 1.05rem; }
.intro a, .seotext a { color: var(--accent-strong); }
.ad-label { font-family: var(--mono); color: var(--muted); letter-spacing: .2em; }

/* Topliste: Filmstreifen-Kante und Aufkleber als Rang */
.toplist { border-spacing: 0 10px; }
.toplist th, .toplist th.rank { color: var(--muted); font-family: var(--mono); letter-spacing: .14em; font-size: .72rem; }
.toplist td { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toplist td:first-child {
  border-left: 1px solid var(--line); border-radius: 4px 0 0 4px; padding-left: 22px;
  background:
    repeating-linear-gradient(180deg, #2c2624 0 7px, transparent 7px 13px) 7px 6px / 7px calc(100% - 12px) no-repeat,
    var(--card);
}
.toplist td:last-child { border-right: 1px solid var(--line); border-radius: 0 4px 4px 0; }
.toplist .rank { width: 76px; }
.badge {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 38px; padding: 0 6px; border-radius: 6px;
  background: #24201e; border: 1px dashed #4a403c; color: #fff;
  font: 800 1.05rem/1 "Segoe UI", Roboto, Arial, sans-serif;
  transform: rotate(-4deg); box-shadow: 0 3px 6px rgba(0,0,0,.45);
}
.toplist tr.entry:nth-child(even) .badge { transform: rotate(3deg); }
.top1 .badge, .top2 .badge, .top3 .badge {
  border: 0; color: #fff; background: linear-gradient(135deg, #ff9a62, #ff3d6e);
  box-shadow: 0 4px 12px rgba(255,61,110,.4);
}
.top1 .badge::after {
  content: ""; position: absolute; top: -9px; right: -10px; width: 20px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 22%22%3E%3Cpath d=%22M12 21 C5 15.5 1 12 1 7 C1 3.5 3.6 1 6.7 1 C9 1 10.9 2.4 12 4.3 C13.1 2.4 15 1 17.3 1 C20.4 1 23 3.5 23 7 C23 12 19 15.5 12 21Z%22 fill=%22%23ff3d6e%22/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(14deg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.toplist tr.top1 td, .toplist tr.top2 td, .toplist tr.top3 td { border-color: rgba(255,122,69,.38); }
.toplist tr.top1 td:first-child, .toplist tr.top2 td:first-child, .toplist tr.top3 td:first-child {
  background:
    repeating-linear-gradient(180deg, rgba(255,122,69,.55) 0 7px, transparent 7px 13px) 7px 6px / 7px calc(100% - 12px) no-repeat,
    var(--card);
}
.toplist tr.entry:hover td { background-color: var(--card-2); }
.toplist tr.entry:hover td:first-child { background-color: var(--card-2); }
.sitetitle { color: #fff; font-size: 1.1rem; text-decoration: none; }
.sitetitle:hover, .sitetitle:focus { color: var(--accent-strong); }
.new {
  display: inline-block; background: var(--pink); color: #fff; padding: 1px 8px; border-radius: 3px;
  font-size: .65rem; letter-spacing: .08em; transform: rotate(-3deg);
}
.description { color: #d6ccc6; }
.toplist .hits { color: #fff; white-space: nowrap; }
.toplist .hit-now {
  display: inline-block; min-width: 2.4em; padding: 3px 7px; border-radius: 3px;
  background: #0d0c0b; border: 1px solid #3a322f;
  color: var(--accent-strong); font: bold 1.02rem/1.2 var(--mono);
}
.toplist .hits small.hit-total { display: block; margin-top: 4px; font: .72rem var(--mono); color: var(--muted); }

/* Seitennavigation */
.pagination a, .pagination strong { border-radius: 4px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-family: var(--mono); }
.pagination a:hover { border-color: var(--accent); color: #fff; }
.pagination strong { background: linear-gradient(135deg, #ff9a62, #ff3d6e); border-color: transparent; color: #fff; }

/* Formulare & Buttons */
.btn { background: linear-gradient(135deg, #ff8a50, #ff3d6e); color: #fff; border-radius: 4px; font-weight: bold; }
.btn:hover { background: linear-gradient(135deg, #ffa070, #ff5a84); }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.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: #0c0b0a; border: 1px solid #332c29; border-radius: 4px;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,122,69,.22); }
.form-row.rules { background: var(--card-2); }
.form-row .error, .message, .updatemessage, .updateerrormessage, main > .updatemessage, main > .message { color: #ff7a8e; }

/* Statistik & Footer */
.stats li { border-radius: 4px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.stats strong { color: var(--accent-strong); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { color: var(--accent-hover); }
.site-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .site-logo { margin-top: 30px; padding: 9px 9px 26px; }
  .site-logo::before, .site-logo::after { width: 56px; height: 20px; }
  main > h1 { font-size: 1.5rem; }
  .intro, .seotext, .ad, .form-card { padding: 12px 20px 16px; }
  .toplist tr.entry {
    grid-template-columns: 64px 1fr 1fr; border-radius: 4px; border: 1px solid var(--line);
    background:
      repeating-linear-gradient(180deg, #2c2624 0 7px, transparent 7px 13px) 6px 6px / 6px calc(100% - 12px) no-repeat,
      var(--card);
  }
  .toplist tr.top1, .toplist tr.top2, .toplist tr.top3 {
    border-color: rgba(255,122,69,.38);
    background:
      repeating-linear-gradient(180deg, rgba(255,122,69,.55) 0 7px, transparent 7px 13px) 6px 6px / 6px calc(100% - 12px) no-repeat,
      var(--card);
  }
  .toplist tr.entry td, .toplist tr.entry td:first-child, .toplist tr.entry:hover td, .toplist tr.entry:hover td:first-child { background: transparent; }
  .toplist td:first-child { padding-left: 18px; }
  .toplist .rank { width: auto; }
  .badge { min-width: 36px; height: 33px; font-size: .95rem; }
  .toplist .site { padding-left: 4px; }
  .toplist .hit-now { padding: 1px 6px; font-size: .95rem; }
  .toplist .hits small.hit-total { display: inline; margin: 0 0 0 4px; }
}

/* 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); }
