/* Geteilte Seite: links stehendes Bild, rechts das Verzeichnis. Schwarz, Papierweiß, Violett; Linien statt Kästen, Schreibmaschinenschrift für Zahlen */
:root {
  --schwarz: #0a0a0a; --kohle: #141414; --strich: #333333; --strich-2: #555555;
  --papier: #f2f0ea; --grau: #a8a6a0; --fern: #76746f;
  --lila: #9d7bff; --lila-tief: #6a48d6;
  --gross: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --tipp: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --links: 40vw;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--papier); font: 17px/1.6 var(--gross); background: var(--schwarz); }
img { max-width: 100%; height: auto; }
a { color: var(--lila); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--gross); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Linke Tafel: steht fest, Bild über die ganze Höhe */
.tafel { position: fixed; left: 0; top: 0; bottom: 0; width: var(--links); overflow: hidden; background: #000; border-right: 1px solid var(--papier); display: flex; flex-direction: column; justify-content: space-between; }
.tafel-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.tafel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .93) 84%); }
.tafel-oben, .tafel-unten { position: relative; z-index: 2; padding: 26px 30px; }
.tafel-oben { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.site-logo img { display: block; max-height: 40px; width: auto; }
.site-logo a { display: inline-block; text-decoration: none; font: 700 1.3rem/1.1 var(--gross); letter-spacing: -.03em; color: #fff; }
.marke { margin: 0; padding: 6px 9px 5px; font: 700 .78rem/1 var(--tipp); color: var(--schwarz); background: var(--papier); }
.kennung { margin: 0 0 14px; font: 500 .74rem/1.3 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--lila); }
.tafel h1 { margin: 0 0 24px; font-size: clamp(1.9rem, 3.5vw, 3.5rem); color: #fff; text-wrap: balance; }
.tafel-knopf { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Rechte Spalte */
.inhalt { margin-left: var(--links); min-height: 100vh; }
.inhalt > main, .site-footer { padding-left: clamp(22px, 4vw, 60px); padding-right: clamp(22px, 4vw, 60px); }
.inhalt > main > * { max-width: 820px; }

/* Laufband */
.lauf { overflow: hidden; border-bottom: 1px solid var(--papier); background: var(--papier); color: var(--schwarz); }
.lauf p { margin: 0; display: flex; width: max-content; animation: lauf 38s linear infinite; }
.lauf span { padding: 11px 0 10px; font: 700 .82rem/1 var(--tipp); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.lauf span::after { content: "✕"; margin: 0 26px; color: var(--lila-tief); }
@keyframes lauf { to { transform: translateX(-50%); } }

/* Einleitung */
.intro { margin: 56px 0 10px; }
.intro h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 2.6vw, 2.5rem); color: #fff; }
.intro p { margin: 0 0 12px; font-size: 1.12rem; color: #dddad2; }
.intro p:last-child { margin-bottom: 0; }

/* Werbeplätze */
.ad { position: relative; margin: 38px 0; padding: 30px 12px 12px; max-width: 790px; text-align: center; overflow: hidden; line-height: 0; border-top: 1px solid var(--strich); border-bottom: 1px solid var(--strich); }
.ad-label { position: absolute; top: 10px; left: 0; font: 500 .66rem/1.2 var(--tipp); letter-spacing: .14em; text-transform: uppercase; color: var(--fern); }
.ad a { display: inline-block; max-width: 100%; line-height: 0; }
.ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ad iframe, .ad > div, .ad > ins, .ad video { max-width: 100% !important; margin-left: auto; margin-right: auto; }
.ad > *:not(.ad-label) { max-width: 100%; }
.ad > :not(a):not(.ad-label) { line-height: normal; }

/* Verzeichnis: Zeilen mit Linien, keine Kästen */
.verzeichnis { margin: 60px 0; scroll-margin-top: 10px; max-width: none !important; }
.verzeichnis-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; padding-bottom: 16px; border-bottom: 3px solid var(--papier); }
.verzeichnis-titel { margin: 0; font: 700 clamp(2.4rem, 5vw, 4.4rem)/.9 var(--gross); letter-spacing: -.05em; color: #fff; }
.verzeichnis-titel small { display: block; margin-top: 12px; font: 500 .74rem/1 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--lila); }
.zeile { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; gap: 0 22px; align-items: start; padding: 22px 14px 22px 0; border-bottom: 1px solid var(--strich); transition: background .15s, padding .15s; }
.zeile:hover { background: var(--kohle); padding-left: 14px; padding-right: 0; }
.nr { margin: 0; font: 400 2.5rem/1 var(--tipp); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--grau); }
.nr::before { content: "Nº"; display: block; margin-bottom: 6px; font: 500 .64rem/1 var(--tipp); letter-spacing: .1em; color: var(--fern); -webkit-text-stroke: 0; }
.zeile-titel { margin: 0 0 6px; font: 700 1.4rem/1.2 var(--gross); letter-spacing: -.025em; }
.sitetitle { color: #fff; text-decoration: none; }
.sitetitle:hover { color: var(--lila); }
.sitetitle::after { content: " ↗"; font: 400 .8em/1 var(--tipp); color: var(--fern); }
.zeile-titel > :not(a), .newsite { margin-left: 10px; padding: 3px 6px 2px; font: 700 .62rem/1 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--schwarz); background: var(--lila); vertical-align: middle; }
.banner { display: block; margin: 10px 0 8px; max-width: 100%; height: auto; }
.zeile-in a:has(> .banner) { display: inline-block; max-width: 100%; line-height: 0; }
.description { margin: 0; color: var(--grau); font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.werte { margin: 4px 0 0; display: grid; gap: 4px; justify-items: end; text-align: right; font: 500 .8rem/1.3 var(--tipp); color: var(--grau); }
.werte b { color: #fff; font-size: 1.15rem; font-weight: 700; }
.werte small { margin-top: 4px; color: var(--fern); font-size: .68rem; }

/* Platz 1 bis 3 */
.zeile.top1 { padding-top: 30px; padding-bottom: 30px; border-bottom: 3px solid var(--lila); }
.zeile.top1 .nr { font-size: 4.6rem; color: var(--lila); -webkit-text-stroke: 0; }
.zeile.top1 .zeile-titel { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 10px; }
.zeile.top1 .description { font-size: 1.05rem; color: #dddad2; }
.zeile.top2 .nr, .zeile.top3 .nr { color: var(--papier); -webkit-text-stroke: 0; }

/* Seitenwahl */
.pagination { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0; }
.pagination:empty { display: none; }
.verzeichnis-kopf .pagination { margin: 0; }
.pagination a, .pagination strong { display: inline-block; min-width: 44px; padding: 12px 10px 11px; margin-left: -1px; text-align: center; text-decoration: none; border: 1px solid var(--strich-2); color: var(--papier); font: 500 .9rem/1.1 var(--tipp); }
.pagination a:hover { background: var(--papier); color: var(--schwarz); border-color: var(--papier); position: relative; }
.pagination strong { background: var(--lila); border-color: var(--lila); color: var(--schwarz); position: relative; }

/* Bildkacheln */
.kacheln { max-width: none !important; margin: 60px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--papier); border: 1px solid var(--papier); }
.kacheln figure { position: relative; margin: 0; background: #000; overflow: hidden; }
.kacheln img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .3s; }
.kacheln figure:hover img { filter: none; }
.kacheln figcaption { padding: 10px 12px 9px; font: 500 .72rem/1 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--papier); border-top: 1px solid var(--papier); background: var(--schwarz); }
.kacheln figcaption b { margin-right: 8px; color: var(--lila); }

/* SEO-Text */
.seotext { margin: 60px 0; color: #dddad2; }
.seotext h2 { margin: 54px 0 18px; padding-top: 18px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: #fff; border-top: 3px solid var(--papier); }
.seotext h2:first-child { margin-top: 0; }
.seotext h3 { margin: 30px 0 8px; font: 700 1.15rem/1.3 var(--gross); letter-spacing: -.015em; color: #fff; }
.seotext h3::before { content: "→ "; font-family: var(--tipp); font-weight: 400; color: var(--lila); }
.seotext p { margin: 0 0 14px; }
.seotext ul, .seotext ol { margin: 0 0 14px; padding-left: 0; list-style: none; }
.seotext li { margin: 0; padding: 10px 0 10px 28px; border-top: 1px solid var(--strich); position: relative; }
.seotext li::before { content: "✕"; position: absolute; left: 2px; top: 11px; font: 400 .8rem/1.6 var(--tipp); color: var(--lila); }
.seotext strong { color: #fff; }
.seotext a, .intro a { color: var(--lila); text-decoration: underline; text-underline-offset: 3px; }

/* Statistik */
.stats { margin: 50px 0 60px; }
.stats-title { margin: 0; padding: 12px 0; font: 500 .74rem/1 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--lila); border-top: 3px solid var(--papier); }
.stats ul { list-style: none; margin: 0; padding: 0; font: 400 .84rem/1.4 var(--tipp); color: var(--grau); }
.stats li { padding: 8px 0; border-top: 1px solid var(--strich); }
.stats strong { color: #fff; }

/* Fuß */
.site-footer { padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--papier); font: 400 .82rem/1.5 var(--tipp); color: var(--grau); }
.site-footer p { margin: 0 0 10px; max-width: 820px; }
.site-footer a { color: var(--papier); }
.license, .license a { font-size: .76rem; color: var(--fern); }
.tl-hinweis { margin: 0 0 14px !important; padding: 12px 0; border-top: 1px solid var(--strich); border-bottom: 1px solid var(--strich); color: #dddad2; font: 400 .9rem/1.5 var(--gross); }

/* Unterseiten (Eintragen, Fehlerseite): einspaltig mit Balken */
.balken { border-bottom: 1px solid var(--papier); }
.balken-in, .blatt { width: min(860px, 100% - 44px); margin: 0 auto; }
.balken-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
body > .site-footer { padding-left: 0; padding-right: 0; }
main.blatt > .kennung { margin: 44px 0 10px; }
main.blatt > h1 { margin: 0 0 30px; font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; }
.leer { margin: 50px 0 0; font: 400 clamp(6rem, 24vw, 13rem)/.9 var(--tipp); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 2px var(--lila); }
main.notfound h1 { margin-top: 10px; }
.notfound .intro { margin-top: 0; }
.form-card { margin: 0; padding: 26px 0; border-top: 1px solid var(--strich); }
.form-card h2 { margin: 0 0 14px; font: 500 .76rem/1 var(--tipp); letter-spacing: .1em; text-transform: uppercase; color: var(--lila); }
.rules-text { color: #dddad2; }
.rules-text ul, .rules-text ol { margin: 0; padding-left: 1.25em; }
.rules-text li { margin: 4px 0; }
.rules-text li::marker { color: var(--lila); }
.form-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 16px; align-items: start; margin-bottom: 14px; }
.form-row > label, .form-row > .label { padding-top: 13px; font: 500 .78rem/1.3 var(--tipp); letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
.form-row .error { grid-column: 2; color: #ff9d7a; font-size: .9rem; }
.form-row .error:empty { display: none; }
.form-row.rules label { display: flex; gap: 10px; align-items: center; padding-top: 10px; text-transform: none; font: 400 .95rem/1.4 var(--gross); }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea { width: 100%; padding: 12px 0; font: 16px/1.4 var(--gross); color: #fff; background: transparent; border: 0; border-bottom: 1px solid var(--strich-2); border-radius: 0; }
textarea { padding: 12px; border: 1px solid var(--strich-2); }
input:focus, textarea:focus { outline: none; border-color: var(--lila); box-shadow: 0 2px 0 var(--lila); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lila); }
.captcha img { vertical-align: middle; margin-right: 10px; background: #fff; }
.captcha input { max-width: 160px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.btn, .form-actions input { display: inline-block; padding: 15px 20px 14px; cursor: pointer; text-decoration: none; font: 700 .8rem/1 var(--tipp); letter-spacing: .08em; text-transform: uppercase; color: var(--schwarz); background: var(--lila); border: 1px solid var(--lila); border-radius: 0; transition: background .15s, color .15s; }
.btn:hover, .form-actions input:hover { color: var(--schwarz); background: var(--papier); border-color: var(--papier); }
.btn.secondary { color: var(--papier); background: rgba(0, 0, 0, .35); border-color: var(--papier); }
.btn.secondary:hover { color: var(--schwarz); background: var(--papier); }
.intro a.btn { color: var(--schwarz); text-decoration: none; }
.intro a.btn.secondary { color: var(--papier); }
.intro a.btn.secondary:hover { color: var(--schwarz); }
.message, .updatemessage { color: var(--lila); font-weight: 700; }
.message:empty { display: none; }
.stats-table { width: 100%; border-collapse: collapse; font: 400 .84rem/1.4 var(--tipp); }
.stats-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--strich); color: var(--grau); }
.stats-table td:nth-child(even) { color: #fff; text-align: right; }
.codebox { overflow-x: auto; }
.codebox textarea { min-height: 110px; font: .82rem/1.5 var(--tipp); }
.codebox img { max-width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }

/* Schmaler Bildschirm: Tafel wandert nach oben */
@media (max-width: 980px) {
  :root { --links: 0px; }
  .tafel { position: relative; width: auto; height: 86vh; min-height: 540px; max-height: 820px; border-right: 0; border-bottom: 1px solid var(--papier); }
  .tafel-oben, .tafel-unten { padding: 20px 22px; }
  .tafel h1 { font-size: clamp(1.9rem, 7.4vw, 3.4rem); }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-logo img { max-height: 32px; }
  .intro { margin-top: 40px; }
  .zeile { grid-template-columns: 54px minmax(0, 1fr); gap: 0 12px; padding: 18px 0; }
  .zeile:hover { padding-left: 0; background: none; }
  .nr { font-size: 1.6rem; }
  .zeile.top1 .nr { font-size: 2.4rem; }
  .zeile-titel { font-size: 1.2rem; }
  .werte { grid-column: 2; grid-auto-flow: column; justify-content: start; justify-items: start; align-items: baseline; gap: 14px; margin-top: 10px; text-align: left; }
  .werte b { font-size: 1rem; }
  .werte small { margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .error { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .lauf p { animation: none; } }
