/* Girls Wallpapers – Blau/Silber-Design */
:root {
  --blue: #2f8fd8;
  --blue-dark: #0d3d66;
  --gold: #ffc531;
  --text: #fff;
  --shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 8px rgba(0,30,60,.6);
  font-family: Verdana, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: #2e2f31; }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  /* Hauptbild unter dem Kopf, darunter nahtlos verlängert – scrollt mit, kein schwarzer Balken */
  background:
    url(main.jpg) center 200px / 1400px 850px no-repeat,
    url(main-fill.jpg) center 1050px / 1400px 12px repeat-y,
    #2e2f31;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Kopf ---------- */
.top {
  position: relative; height: 200px;
  background: #2a2b2e url(top.jpg) center top / 1400px 200px no-repeat;
}
.letters {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: min(1060px, 100% - 20px); height: 34px;
  display: flex; justify-content: space-between; align-items: center; padding: 0 18px;
  font-weight: bold; font-size: 15px;
}
.letters a, .letters span { flex: 1; text-align: center; line-height: 34px; border-radius: 6px; color: #111; }
.letters span { color: #bbb; }
.letters a:hover, .letters a.active { background: var(--blue); color: #fff; }
.top-inner {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 100% - 20px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tools { display: flex; gap: 10px; align-items: center; }
.tools a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #dfe7ee 38%, #9fb0bf 100%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), inset 0 2px 2px rgba(255,255,255,.9), 0 1px 3px rgba(0,0,0,.45);
  color: #1f6fb6; transition: transform .15s, color .15s;
}
.tools a:hover { transform: translateY(-1px) scale(1.08); color: #0b4f8f; }
.tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input {
  width: 200px; padding: 7px 12px; border-radius: 16px; border: 1px solid #8ab;
  background: rgba(255,255,255,.85); font: inherit; font-size: 13px; color: #111;
}
.search input:focus { outline: 2px solid var(--blue); background: #fff; }

/* ---------- Inhalt ---------- */
.content { width: min(1160px, 100% - 24px); margin: 0 auto; padding: 18px 0 40px; }
h1 { font-size: 24px; margin: 6px 0 18px; text-shadow: var(--shadow); text-align: center; }
h1 small { font-size: 13px; font-weight: normal; opacity: .85; margin-left: 6px; }
.crumbs { font-size: 13px; text-shadow: var(--shadow); text-align: center; opacity: .9; }
.crumbs a:hover { text-decoration: underline; }
.empty { text-align: center; font-size: 16px; text-shadow: var(--shadow); padding: 40px 0; }
.empty a { text-decoration: underline; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.topbig { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.grid.topbig .name { font-size: 15px; }
.grid.top { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.grid li { min-width: 0; text-align: center; }
.grid a { display: block; position: relative; }
.grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 3px 10px rgba(0,0,0,.45); transition: transform .15s, border-color .15s;
}
.grid a:hover img, .grid a:focus-visible img { transform: translateY(-3px) scale(1.03); border-color: #fff; }
.grid .name { display: block; margin-top: 6px; font-size: 13px; font-weight: bold;
  text-shadow: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid .num { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.65);
  font-size: 11px; padding: 2px 7px; border-radius: 10px; }

/* ---------- Sterne ---------- */
.stars { display: inline-flex; flex-direction: column; align-items: center; margin: 6px 0 0; gap: 1px; }
.stars .bar {
  display: inline-flex; font-size: 19px; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold) var(--pct), rgba(255,255,255,.45) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.6));
}
.stars i { font-style: normal; }
.stars button {
  all: unset; cursor: pointer; color: transparent; padding: 0 1px; font-size: 19px;
}
.stars:not(.done) .bar:hover button { color: var(--gold); }
.stars:not(.done) .bar button:hover ~ button { color: rgba(255,255,255,.5); }
.stars button:focus-visible { outline: 1px dotted #fff; }
.stars .count { font-size: 10px; text-shadow: var(--shadow); opacity: .9; }
.stars.just .count { color: var(--gold); }
.stars.busy { opacity: .5; pointer-events: none; }

/* ---------- Panels (Info, Upload) ---------- */
.panel {
  max-width: 720px; margin: 0 auto; padding: 22px 28px; border-radius: 10px;
  background: rgba(5,30,55,.82); box-shadow: 0 6px 30px rgba(0,0,0,.4); line-height: 1.55; font-size: 14px;
}
.panel h1 { text-align: left; }
.panel h2 { font-size: 17px; margin: 26px 0 8px; }
.panel h3 { font-size: 14px; margin: 14px 0 2px; }
.panel a { color: #9fd3ff; }
.panel a:hover { text-decoration: underline; }
.panel label { display: block; margin: 12px 0; font-size: 13px; }
.panel input[type=text], .panel input[type=password], .panel select, .panel input[type=file] {
  display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border-radius: 6px; border: 1px solid #579; }
.panel button { padding: 9px 22px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
.panel button:hover { background: #42a2ec; }
.panel .small { font-size: 12px; font-weight: normal; float: right; }
.hint { font-size: 12px; opacity: .8; }
.news { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; margin: 0; }
.news dt { opacity: .75; } .news dd { margin: 0; }
.msg { max-width: 720px; margin: 0 auto 10px; padding: 8px 14px; border-radius: 6px; font-size: 13px; }
.msg.ok { background: #1d6b32; } .msg.err { background: #8a1f1f; }
code { background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px; }

.foot { text-align: center; font-size: 11px; padding: 16px; color: #aac; background: rgba(0,0,0,.6); }
.foot a:hover { color: #fff; text-decoration: underline; }

/* ---------- Bildansicht ---------- */
body.viewer { background: #000; overflow: hidden; }
.viewer .vbar {
  position: fixed; inset: 0 0 auto 0; height: 54px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px;
  background: linear-gradient(#1b2836, #0b1118); border-bottom: 1px solid #2a4a68;
}
.viewer .vbar .stars { flex-direction: row; gap: 8px; margin: 0; }
.viewer .btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,.08); font-size: 14px; white-space: nowrap; }
.viewer .btn:hover { background: var(--blue); }
.viewer .nav { display: flex; align-items: center; gap: 8px; }
.viewer .nav .btn { font-size: 22px; padding: 0 14px; line-height: 34px; }
.viewer .pos { font-size: 13px; min-width: 62px; text-align: center; }
.stage { margin: 0; position: fixed; inset: 54px 0 0 0; display: grid; place-items: center; }
.stage img { max-width: 100vw; max-height: calc(100vh - 54px); width: auto; height: auto; object-fit: contain; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 760px) {
  body { background: linear-gradient(#123f68, #2f8fd8 40%, #1d5f96); }
  .top { height: auto; background: linear-gradient(#e9eef3, #9fb2c4); padding: 8px 10px 10px; }
  .letters { position: static; transform: none; width: 100%; height: auto; padding: 0;
    flex-wrap: wrap; justify-content: center; }
  .letters a, .letters span { flex: 0 0 calc(100% / 13); line-height: 30px; }
  .top-inner { position: static; transform: none; width: 100%; margin-top: 8px; }
  .search { flex: 1; } .search input { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; }
  .grid.topbig { grid-template-columns: repeat(2, 1fr); }
  .viewer .btn span, .viewer .vbar .stars .count { display: none; }
  .viewer .vbar { padding: 0 6px; gap: 4px; }
  .viewer .nav .btn { padding: 0 10px; }
  .stars .bar, .stars button { font-size: 22px; }
}
