/* Minecraft-Bereich (mc.polarwolke.de): durchgehend Pixel-Optik in Pastellfarben mit Create-Note.
   Alles in Pixelschrift, Rahmen mit Pixel-Ecken (rahmen.png als 9-Teile-Bild), Animationen als Einzelbilder in Schritten
   (zahnraeder.png: 24 Bilder zu je 62x40; band.png: Förderband). Wird nach /shared/polarwolke.css geladen.
   Alle Grafiken sind selbst erzeugt; Schrift: Pixelify Sans, SIL Open Font License (Lizenz liegt daneben). */

@font-face { font-family: "Pixelify Sans"; src: url(PixelifySans.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
    color-scheme: light;
    --tinte: #3d3147;
    --bg: #fbf4e4; --surface: #fffdf7; --text: #3d3147; --muted: #6f6379; --line: #3d3147;
    --accent: #3d3147; --accent-soft: #ffe9b8; --ok: #3d3147; --err: #3d3147;
    --minze: #bfe8b6; --butter: #ffe3a3; --himmel: #bfe6f2; --flieder: #dcc9f5; --rosa: #f8c8cf;
    --radius: 0; --shadow: none;
    --pixel: "Pixelify Sans", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

html { image-rendering: pixelated; }
body { background: var(--bg); font-family: var(--pixel); font-size: 19px; line-height: 1.55; }
button, input, code { font-family: var(--pixel); }
h1, h2, .brand, .btn, .nav li a, .tile .label { text-transform: uppercase; letter-spacing: .05em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); color: var(--tinte); text-shadow: 4px 4px 0 #fffdf7; }
h2 { font-size: 1.6rem; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { background: var(--butter); }
code { color: inherit; font-size: 1em; font-weight: 700; }
:focus-visible { outline: 4px solid var(--tinte); outline-offset: 4px; border-radius: 0; }
::selection { background: var(--rosa); color: var(--tinte); }

/* Pixel-Rahmen: Ecken um einen Pixel abgestuft, harter Schatten nach rechts unten */
.card, .tile, .list, .addr, .search, .chips li, .btn {
    border: 4px solid transparent; border-radius: 0; box-shadow: none; background-clip: padding-box;
    border-image: url(rahmen.png) 2 3 3 2 / 8px 12px 12px 8px / 0 4px 4px 0 stretch;
}

/* Kopfzeile in Minze, darunter läuft ein Förderband */
.nav { position: relative; background: var(--minze); border-bottom: 0; padding-bottom: 16px; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: url(band.png) 0 0 / 32px 16px repeat-x; animation: band 1.2s steps(8) infinite; }
@keyframes band { to { background-position-x: 32px; } }
.nav .brand, .nav li a { color: var(--tinte); font-size: 1.15rem; }
.nav .brand:hover { background: none; }
.brand img { width: 32px; height: 32px; }
.nav li a { border-radius: 0; padding: 4px 10px; border: 4px solid transparent; background-clip: padding-box; }
.nav li a:hover { background-color: var(--butter); border-image: url(rahmen-flach.png) 2 3 3 2 / 8px 12px 12px 8px stretch; }
.nav li a[aria-current="page"] { background-color: var(--tinte); color: var(--surface); border-image: url(rahmen-flach.png) 2 3 3 2 / 8px 12px 12px 8px stretch; }

/* Titelband über die ganze Breite; rechts greifen zwei Zahnräder ineinander und drehen sich in Einzelbildern */
.wrap { width: 100%; margin-top: 0; padding-top: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; box-shadow: none; }
.hero {
    --s: 5; position: relative; max-width: none; margin-bottom: 40px; padding: clamp(40px, 7vw, 76px) 340px clamp(40px, 6vw, 64px) 0; color: var(--tinte);
    background: var(--minze); box-shadow: 0 0 0 100vmax var(--minze); clip-path: inset(0 -100vmax);
}
.hero .lead { color: var(--tinte); font-size: 1.25rem; }
.hero::before {
    content: ""; position: absolute; right: 0; top: 50%; width: calc(62px * var(--s)); height: calc(40px * var(--s)); margin-top: calc(-20px * var(--s));
    background: url(zahnraeder.png) 0 0 / calc(1488px * var(--s)) 100% no-repeat; animation: zahn 3.6s steps(24) infinite; pointer-events: none;
}
@keyframes zahn { to { background-position-x: calc(-1488px * var(--s)); } }
@media (max-width: 760px) {
    .hero { --s: 2; padding-right: 0; padding-bottom: 112px; }
    .hero::before { top: auto; bottom: 16px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero::before, .nav::after { animation: none; } }

/* Flächen */
.card, .list, .addr, .search { background-color: var(--surface); }
.card p { color: var(--muted); }
.grid { gap: 24px; }
.tile { color: var(--tinte); }
.tile:nth-child(3n+1) { background-color: var(--himmel); } .tile:nth-child(3n+2) { background-color: var(--flieder); } .tile:nth-child(3n) { background-color: var(--butter); }
.tile .label { color: var(--tinte); font-size: .95rem; font-weight: 400; }
.tile .value { font-size: 1.9rem; }
.online, .offline { color: var(--tinte); }
.online::before, .offline::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 4px solid var(--tinte); background: #9be08a; }
.offline::before { background: #f29a94; }

.addr { margin-bottom: 28px; }
.addr code { font-size: 1.6rem; color: var(--text); }
.search { color: var(--text); margin-bottom: 24px; }
.search::placeholder { color: var(--muted); }
.list { overflow: visible; }
.list li + li { border-top: 4px solid var(--line); }
.list a { padding-left: 46px; background: url(pfeil.png) 18px 50% / 14px 14px no-repeat; }
.list a:hover { background-color: var(--rosa); color: var(--tinte); }
.chips { gap: 14px; }
.chips li { padding: 4px 12px; background-color: var(--surface); font-size: 1rem; }
.chips li:nth-child(4n+1) { background-color: var(--himmel); } .chips li:nth-child(4n+2) { background-color: var(--butter); } .chips li:nth-child(4n+3) { background-color: var(--flieder); } .chips li:nth-child(4n) { background-color: var(--rosa); }
.steps li + li { margin-top: 8px; }
.note { border-radius: 0; }

/* Knöpfe: beim Drücken rutscht der Knopf auf seinen Schatten */
.btn { background-color: var(--butter); color: var(--tinte); font-size: 1.05rem; padding: 8px 16px; }
.btn:hover { filter: none; background-color: #ffd98a; transform: translate(-2px, -2px); }
.btn:active { transform: translate(4px, 4px); border-image-source: url(rahmen-flach.png); }
.btn.ghost { background-color: var(--surface); color: var(--text); }
.btn.ghost:hover { background-color: var(--rosa); }

footer { border-top: 0; color: var(--muted); text-shadow: none; }
footer a { color: var(--text); }
