/* Minecraft-Bereich (mc.polarwolke.de): moderner Pixel-Look - flache, kräftige Farben, dicke Rahmen, harte Schatten,
   Pixelschrift nur für Überschriften und Bedienelemente; Zahnräder und Messinggelb als Create-Note.
   Wird nach /shared/polarwolke.css geladen. Zahnräder 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: #16120f;                             /* Rahmen, Schatten und Schrift auf farbigen Flächen */
    --bg: #fff6e0; --surface: #ffffff; --text: #16120f; --muted: #5d554b; --line: var(--tinte);
    --accent: #16120f; --accent-soft: #ffe58a; --ok: #1f7a2e; --err: #c22b1f;
    --gras: #6fdc5a; --messing: #ffc93c; --tuerkis: #4fe0d2; --flieder: #c79bf2;
    --radius: 0; --shadow: 6px 6px 0 var(--tinte);
    --pixel: "Pixelify Sans", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; --bg: #17130f; --surface: #26201a; --text: #fff6e0; --muted: #c9bfae; --line: #000; --accent: #ffc93c; --accent-soft: #4a3c12; --ok: #6fdc5a; --err: #ff7b6e; --shadow: 6px 6px 0 #000; }
}

body { background: var(--bg); }
h1, h2, .brand, .btn, .nav li a, .tile .label, .tile .value, .addr code, .chips li { font-family: var(--pixel); text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 6vw, 3.8rem); color: var(--tinte); }
h2 { font-size: 1.6rem; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--messing); color: var(--tinte); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 0; }
code { color: inherit; font-weight: 700; }

/* Kopfzeile: flaches Grasgrün mit schwarzer Kante */
.nav { background: var(--gras); border-bottom: 4px solid var(--tinte); }
.nav .brand, .nav li a { color: var(--tinte); font-size: 1.15rem; }
.nav .brand:hover { background: none; }
.nav li a { border-radius: 0; padding: 8px 12px; }
.nav li a:hover { background: var(--messing); color: var(--tinte); }
.nav li a[aria-current="page"] { background: var(--tinte); color: #fff6e0; }

/* Inhalt ohne Kasten; der Titelbereich ist ein grünes Band über die ganze Breite mit zwei ineinandergreifenden Zahnrädern */
.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 {
    position: relative; max-width: none; margin-bottom: 40px; padding: clamp(40px, 8vw, 84px) 270px clamp(36px, 6vw, 64px) 0; color: var(--tinte);
    background: var(--gras); box-shadow: 0 0 0 100vmax var(--gras); clip-path: inset(0 -100vmax);
}
.hero .lead { color: var(--tinte); }
.hero::before, .hero::after { content: ""; position: absolute; top: 50%; background: center / contain no-repeat; pointer-events: none; }
.hero::before { right: 0; width: 156px; height: 156px; margin-top: -78px; background-image: url(zahnrad-gross.svg); animation: dreh 24s linear infinite; }
.hero::after { right: 132px; width: 113px; height: 113px; margin-top: -56px; background-image: url(zahnrad-klein.svg); animation: dreh 16s linear infinite reverse; }
@keyframes dreh { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
    .hero { padding-right: 0; padding-bottom: 96px; }
    .hero::before { top: auto; bottom: 12px; right: 0; width: 78px; height: 78px; margin: 0; }
    .hero::after { top: auto; bottom: 23px; right: 66px; width: 56px; height: 56px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

/* Flächen: weiß, dicker Rahmen, harter Schatten */
.card, .tile, .list, .addr, .search { background: var(--surface); border: 3px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.grid { gap: 22px; }
.tile { color: var(--tinte); }
.tile:nth-child(3n+1) { background: var(--tuerkis); } .tile:nth-child(3n+2) { background: var(--flieder); } .tile:nth-child(3n) { background: var(--messing); }
.tile .label { color: var(--tinte); font-size: .95rem; }
.tile .value { font-size: 1.9rem; }
.online, .offline { color: var(--tinte); }
.online::before, .offline::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .35em; border: 3px solid var(--tinte); background: #2fd04a; }
.offline::before { background: #ff5a4d; }

.addr { margin-bottom: 26px; }
.addr code { font-size: 1.6rem; color: var(--text); }
.search { color: var(--text); }
.list li + li { border-top: 3px solid var(--line); }
.list a:hover { background: var(--messing); color: var(--tinte); }
.chips li { padding: 6px 12px; background: var(--surface); border: 3px solid var(--line); border-radius: 0; box-shadow: 3px 3px 0 var(--line); }
.chips { gap: 12px; }
.note { border-radius: 0; }

/* Knöpfe: Messinggelb, beim Drücken rutscht der Knopf in seinen Schatten */
.btn { border: 3px solid var(--line); border-radius: 0; background: var(--messing); color: var(--tinte); font-size: 1.05rem; box-shadow: 4px 4px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.btn:hover { filter: none; background: var(--messing); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); }
.btn.ghost:hover { background: var(--messing); color: var(--tinte); }

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