/* ===== MythosNetwork – Website ===== */
/* Schriften: MinecraftFive für Überschriften, Knöpfe und Zahlen, Inter für alles andere. Beide liegen auf unserem Server
   (keine Google-Fonts: Sie würden die IP-Adresse der Besucher an Google senden). Standard ist das dunkle Design. */

@font-face {
  font-family: 'MinecraftFive';
  src: url('fonts/minecraft-five-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --nav-h: 68px;

  --bg: #070b12;
  --bg-2: #0a111b;
  --surface: #0f1827;
  --surface-2: #15223a;
  --line: #1c2b44;
  --line-2: #2b4266;
  --ink: #e8f0fa;
  --ink-2: #a8bdd3;
  --ink-3: #7189a4;
  --accent: #2f9bff;
  --accent-2: #6cbcff;
  --accent-btn: #2a8cf0;
  --accent-deep: #1a66c2;
  --glow: rgba(47, 155, 255, 0.3);
  --green: #34c77b;
  --red: #ef4444;
  --red-deep: #b42318;
  --amber: #f5b301;
  --violet: #b08cff;
  --discord: #5865f2;
  --discord-deep: #4752c4;

  --nav-bg: rgba(7, 11, 18, 0.8);
  --hard: 0 5px 0 rgba(0, 0, 0, 0.5);
  --soft: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --grid-line: rgba(47, 155, 255, 0.05);

  --font-heading: 'MinecraftFive', monospace;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #c8eefb;
  --bg-2: #d7f3ff;
  --surface: #ffffff;
  --surface-2: #eaf8ff;
  --line: #8ecde8;
  --line-2: #5cb8d9;
  --ink: #0f2d3d;
  --ink-2: #2e5468;
  --ink-3: #3d6c81;
  --accent: #1d86f0;
  --accent-2: #0068e6;
  --accent-btn: #1c86ee;
  --accent-deep: #1565c0;
  --glow: rgba(29, 134, 240, 0.28);
  --green: #1f9e5c;
  --red: #d63a30;
  --amber: #d99a00;
  --violet: #7a4fe0;

  --nav-bg: rgba(200, 238, 251, 0.85);
  --hard: 0 5px 0 rgba(15, 45, 61, 0.28);
  --soft: 0 18px 40px -22px rgba(15, 45, 61, 0.45);
  --grid-line: rgba(29, 134, 240, 0.07);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 16px;
  background: var(--accent-deep); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--line);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo links right";
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 32px;
  max-width: 1800px;
  margin: 0 auto;
}

.nav-logo {
  grid-area: logo; justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: 1px;
}
.nav-logo-text { white-space: nowrap; position: relative; top: -2px; }   /* die Pixel-Schrift sitzt in ihrer Zeile tief: so steht sie mittig zum M */
.nav-icon { width: 28px; height: 34px; object-fit: contain; flex-shrink: 0; }

.nav-menu { display: contents; }
.nav-center { grid-area: links; position: relative; }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-links a {
  display: block; padding: 10px 14px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-indicator {
  position: absolute; left: 0; bottom: 2px; height: 3px; width: 0; background: var(--accent);
  box-shadow: 0 0 12px var(--glow); transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s; opacity: 0; pointer-events: none;
}
.nav-indicator.on { opacity: 1; }

.nav-account { grid-area: right; justify-self: end; display: flex; align-items: center; gap: 14px; margin-right: 58px; }
.nav-tools { grid-area: right; justify-self: end; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 9px;
  background: transparent; border: 3px solid var(--line); cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 3px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.theme-toggle {
  position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border: 3px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.12s;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 3px 0 rgba(0, 0, 0, 0.25);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12); }
.theme-icon { position: absolute; display: flex; transition: opacity 0.35s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.theme-icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
.theme-icon-moon { opacity: 1; transform: none; }
[data-theme="light"] .theme-icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }

/* ===== KNÖPFE ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px;
  font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.3; letter-spacing: 0.8px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--accent-btn); cursor: pointer; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.28); border-top-color: rgba(255, 255, 255, 0.5); border-left-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22), var(--hard);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
  translate: var(--tx, 0) var(--ty, 0);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, border-color 0.15s, translate 0.25s var(--ease);
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-20deg); transition: left 0.6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn:hover { transform: translateY(2px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 0 rgba(0, 0, 0, 0.5); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25), 0 0 0 transparent; }
.btn-sm { padding: 8px 18px; font-size: 0.92rem; }
.btn-lg { padding: 15px 34px; font-size: 1.2rem; }
.btn-primary:hover { background: var(--accent); }
.btn-discord { background: var(--discord); border-bottom-color: var(--discord-deep); }
.btn-discord:hover { background: #6b75f5; }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-2); border-top-color: var(--line-2); border-left-color: var(--line-2); text-shadow: none; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14), var(--hard); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-journey { gap: 10px; color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-color: var(--accent); border-top-color: var(--accent); border-left-color: var(--accent); text-shadow: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent), 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-journey:hover { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-color: var(--accent); }
.btn-journey .journey-arrow { flex-shrink: 0; color: var(--accent); animation: bob 1.6s ease-in-out infinite; }
[data-theme="light"] .btn-journey { background: rgba(255, 255, 255, 0.62); color: #0b1d33; }
.btn-ip { background: #1f9e5c; }
.btn-ip.copied { background: #167a45; }
.btn-icon { flex-shrink: 0; }

/* ===== 3D-REISE (Startseite) ===== */
/* Aufbau von hinten nach vorn: Farbverlauf (#bg) < Riesenwörter < Leinwand (#world) < Vignette/Blitz < Schilder < Inhalt (main) < Hotbar.
   Ohne JavaScript, ohne WebGL oder bei "weniger Bewegung" bleibt es eine normale Seite (Klasse w3 fehlt).
   Die Oberfläche ist dem Spiel nachgebaut: Menü-Fenster mit Kante, Slots, Herzen der Mod, Hotbar mit Erfahrungsleiste. */
html { background: var(--bg); }
body.home { background: transparent; }

.world-bg, .giants, .world, .ptags, .world-vignette, .world-flash { display: none; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html.w3 .world-bg, html.w3 .giants, html.w3 .world, html.w3 .ptags, html.w3 .world-vignette, html.w3 .world-flash { display: block; }
.world-bg { z-index: 0; overflow: hidden; background: linear-gradient(180deg, var(--w-bg0, #02030b) 0%, var(--w-bgm, #091433) 52%, var(--w-bg1, #17295a) 100%); }
.giants { z-index: 1; overflow: hidden; }
.world { z-index: 2; }
.world-vignette { z-index: 3; opacity: 0; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 38%, rgba(3, 4, 14, 0.72) 100%); }
.world-flash { z-index: 3; opacity: 0; background: #fff; }
.ptags { z-index: 3; overflow: hidden; }
html.w3 main { position: relative; z-index: 4; }
html.w3 .footer { position: relative; z-index: 5; }

/* Mond (dunkel, mit Kratern) bzw. Sonne (hell), wie im Spiel eckig */
.world-moon, .world-sun { position: absolute; display: block; opacity: 0; transform: translate(-50%, -50%); aspect-ratio: 1; image-rendering: pixelated; }
.world-moon { width: clamp(56px, 9vmin, 108px); background: var(--moon-img, none) center / 100% 100% no-repeat, #e8eef8; box-shadow: 0 0 90px 36px rgba(160, 185, 255, 0.16); }
.world-sun { width: clamp(70px, 11vmin, 130px); background: radial-gradient(circle at 50% 50%, #fffbe0 0 38%, #fff3b0 38% 100%); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.5), 0 0 0 7px rgba(255, 244, 180, 0.28), 0 0 130px 60px rgba(255, 224, 120, 0.4); }

/* Riesenwörter hinter den 3D-Figuren */
.giant { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; will-change: transform, opacity; }
.giant span {
  display: block; font-family: var(--font-heading); font-size: var(--giant-fs, min(24vw, 62vh)); line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap; user-select: none;
  color: color-mix(in srgb, var(--w-acc, #6cbcff) 14%, transparent);
  -webkit-text-stroke: 3px color-mix(in srgb, var(--w-acc, #6cbcff) 48%, transparent);
}

/* Kapitel: hohe Abschnitte, in denen die Karten festgepinnt stehen, während die Welt dahinter läuft */
.ch { position: relative; }
.slide { display: flex; align-items: center; padding: 56px clamp(18px, 5.5vw, 96px); }
.slide-center { justify-content: center; }
html.w3 .slide { height: 90vh; padding-top: 0; padding-bottom: 0; }
html.w3 .ch-hero { height: calc(var(--n, 2) * 112.5vh); }
html.w3 .slide-hero { height: calc(100vh - var(--nav-h) - 3px); height: calc(100svh - var(--nav-h) - 3px); align-items: flex-end; justify-content: center; padding-bottom: clamp(70px, 12vh, 120px); }
@media (min-width: 1100px) and (min-height: 800px) { html.w3 .slide-hero { padding-bottom: 170px; } html.w3 .hero-scroll { display: none; } }
html.w3 .ch-pinned { height: var(--len, 300vh); }
.pin { display: flex; align-items: center; padding: 40px clamp(18px, 4.5vw, 84px); }
html.w3 .pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h) - 3px); padding-top: 0; padding-bottom: 0; }
.pin-left { justify-content: flex-start; }
.pin-right { justify-content: flex-end; }
.pin-center { justify-content: center; }
.group { display: grid; gap: 14px; width: min(620px, 100%); }
.group-wide { width: min(980px, 100%); }
html:not(.w3) .ch:nth-of-type(odd) { background: var(--bg-2); }
html:not(.w3) .ch { padding: 24px 0; }
html:not(.w3) .slide { justify-content: center; }
html:not(.w3) .pin { justify-content: center; }
html:not(.w3) .slide-hero { min-height: 60vh; align-items: center; padding-top: 60px; padding-bottom: 60px; }

/* Start */
.hero-copy { width: 100%; max-width: 940px; text-align: center; }
.hero-logo-wrap { position: relative; width: min(640px, 88%); margin: 0 auto 26px; }
.hero-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 40px var(--glow)); animation: float 5s ease-in-out infinite; }
.hero-logo-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: float 5s ease-in-out infinite;
  -webkit-mask: url(images/logo-hero.png) center / contain no-repeat; mask: url(images/logo-hero.png) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  mix-blend-mode: soft-light; animation: float 5s ease-in-out infinite, logo-shine 5.5s ease-in-out 1.8s infinite; }
@keyframes logo-shine { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
html.w3 .hero-logo-wrap { position: absolute; top: clamp(14px, 4.5vh, 54px); left: 50%; margin: 0; width: min(560px, 78vw); translate: -50% 0; }
@media (max-height: 760px) { html.w3 .hero-logo-wrap { width: min(440px, 70vw); } }
.hero-subtitle {
  max-width: 640px; margin: 0 auto 30px; text-wrap: balance; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.5; color: var(--ink);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .hero-subtitle { color: #10243a; text-shadow: 0 1px 16px rgba(255, 255, 255, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 14px; transform: translateX(-50%);
  text-decoration: none; color: var(--ink-2); font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; transition: color 0.2s;
}
.hero-scroll:hover { color: var(--ink); }
.mouse { position: relative; width: 16px; height: 26px; border: 3px solid currentColor; flex-shrink: 0; }
.mouse i { position: absolute; left: 50%; top: 3px; width: 3px; height: 5px; margin-left: -1.5px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
html:not(.w3) .hero-scroll { display: none; }
.slide-hero { position: relative; }
html.js [data-intro] { opacity: 0; transform: translateY(22px); }
html.js.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 160ms); }
[data-intro="1"] { --i: 0; } [data-intro="2"] { --i: 1; } [data-intro="3"] { --i: 2; } [data-intro="4"] { --i: 3; }
.portal-hint { position: absolute; left: 0; right: 0; bottom: 16vh; font-family: var(--font-heading); font-size: clamp(2rem, 6vw, 4.2rem); letter-spacing: 2px; text-align: center; color: #fff; text-shadow: 0 0 40px #d36bff, 3px 3px 0 rgba(60, 10, 90, 0.8); pointer-events: none; }
html:not(.w3) .portal-hint { display: none; }

/* ===== KARTEN: wie früher (helle bzw. dunkle Fläche, Rahmen, Akzentkante), nur mit Weichzeichner über der Welt ===== */
.gui {
  position: relative; display: block; padding: 24px 26px 22px; text-decoration: none; color: var(--ink); line-height: 1.6;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 3px solid var(--line-2); box-shadow: var(--soft);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.gui::before { content: ''; position: absolute; left: -3px; top: -3px; width: 72px; height: 5px; background: var(--w-acc, var(--accent)); box-shadow: 0 0 16px var(--w-acc, var(--accent)); }
.gui:hover { border-color: var(--w-acc, var(--accent)); }
a.gui:hover { transform: translateY(-3px); }
.gui p { font-size: 0.95rem; color: var(--ink-2); }
.gui p + p, .gui p + .pill-list, .gui p + .check-list, .gui p + .status-demo, .gui p + .key-demo, .gui p + .btn, .gui .check-list + .btn, .gui p + .chips { margin-top: 12px; }
.gui h2 { margin-bottom: 8px; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.1; letter-spacing: 0.4px; word-spacing: -0.12em; overflow-wrap: break-word; color: var(--ink); }
.gui h3 { margin-bottom: 6px; font-family: var(--font-heading); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.18; letter-spacing: 0.3px; word-spacing: -0.12em; overflow-wrap: break-word; color: var(--ink); }
.gui .gui-claim { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.gui code { padding: 1px 7px; font-size: 0.88em; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.gui-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-heading); font-size: 0.84rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--w-acc, var(--accent-2)) !important; }
.gui-tag img { width: 16px; height: 16px; image-rendering: pixelated; }
.gui-no { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; font-size: 0.95rem; letter-spacing: 0.5px; color: #fff; background: var(--w-acc, var(--accent)); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.gui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gui-wide { grid-column: 1 / -1; }
.gui-mini { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px 14px; }
.gui-mini h3 { font-size: clamp(0.7rem, 0.8vw, 0.82rem); letter-spacing: 0; word-spacing: -0.2em; overflow-wrap: normal; hyphens: none; }
.gui-mini p { font-size: 0.86rem; line-height: 1.45; }
.gui-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.gui-cta > div:first-child { flex: 1 1 260px; }
.gui-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gui-lead { font-size: 1rem !important; }

.slot { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; background: var(--bg-2); border: 2px solid var(--line-2); }
.slot img { width: 28px; height: 28px; image-rendering: pixelated; }
.gui-step { font-family: var(--font-heading); font-size: 1.4rem; color: var(--w-acc, var(--accent)); }
.head-q { display: grid; place-items: center; width: 28px; height: 28px; font-family: var(--font-heading); font-size: 1.1rem; color: #fff; background: #111; box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 #3f3f3f; }

/* Herzen aus den Texturen der Mod (11x11, im Spiel 9x9 gezeichnet) */
.mc-heart { display: inline-block; width: 22px; height: 22px; background: url(images/mc/heart.png) center / 100% 100% no-repeat; image-rendering: pixelated; vertical-align: middle; }
.mc-heart.lost { background-image: url(images/mc/heart-empty.png); }
.mc-heart.big { width: 33px; height: 33px; }
.px { image-rendering: pixelated; }

.chips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.chips a { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; height: 100%; padding: 10px; text-decoration: none; color: var(--ink); background: var(--surface-2); border: 2px solid var(--line-2); transition: border-color 0.2s, transform 0.2s; }
.chips a:hover { border-color: var(--w-acc, var(--accent)); transform: translateY(-2px); }
.chips b { display: block; font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.2px; line-height: 1.2; overflow-wrap: break-word; }
@media (max-width: 560px) { .chips a { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; } .chips b { font-size: 0.8rem; letter-spacing: 0; } }
.chips span span { display: block; font-size: 0.8rem; color: var(--ink-3); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill-list li { word-spacing: -0.2em; padding: 3px 12px; font-family: var(--font-heading); font-size: 0.82rem; letter-spacing: 0.5px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.check-list { list-style: none; display: grid; gap: 9px; margin: 14px 0 16px; }
.check-list li { position: relative; padding-left: 26px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; background: var(--w-acc, var(--accent)); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.3); }
.live-dot { display: inline-block; width: 9px; height: 9px; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: ping 2s infinite; }
.status-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 14px; background: var(--bg-2); border: 2px solid var(--line); }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 15px; font-family: var(--font-heading); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border: 2px solid var(--green); }
.status-demo dl { display: flex; gap: 22px; }
.status-demo dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.status-demo dd { font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink); }
.key-demo { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; background: var(--bg-2); border: 2px solid var(--line); }
.key-demo code { display: block; padding: 5px 10px; font-size: 0.84rem; overflow-wrap: anywhere; }
.bind { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 0.78rem; font-weight: 700; color: var(--green); }
.bind .ico { width: 14px; height: 11px; }

/* Bestenliste */
.board { list-style: none; display: grid; gap: 11px; }
.board li { display: grid; grid-template-columns: 28px 118px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.board .rank { display: grid; place-items: center; width: 28px; height: 28px; font-family: var(--font-heading); font-size: 0.9rem; color: var(--ink-2); background: var(--surface-2); border: 2px solid var(--line-2); }
.board .r1 { color: #2a1b00; background: linear-gradient(120deg, #ffd866, #e9a21b); border-color: #ffe9a8; }
.board .r2 { color: #1d2730; background: linear-gradient(120deg, #e5ebef, #98a7b3); border-color: #f2f6f8; }
.board .r3 { color: #2a1305; background: linear-gradient(120deg, #f2a46c, #b5622a); border-color: #ffd0b0; }
.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { position: relative; height: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--w-acc, var(--accent)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); transition: width 1.3s var(--ease); }
.group.in-view .bar i { width: var(--w); }
.board li:nth-child(2) .bar i { transition-delay: 0.1s; } .board li:nth-child(3) .bar i { transition-delay: 0.2s; }
.board li:nth-child(4) .bar i { transition-delay: 0.3s; } .board li:nth-child(5) .bar i { transition-delay: 0.4s; }

.contact-card { display: flex; align-items: flex-start; gap: 18px; padding: 24px; }
.contact-discord:hover { border-color: var(--discord); }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; color: var(--accent-2); transition: transform 0.3s var(--ease); }
.contact-discord .contact-icon { color: var(--discord); }
.contact-card:hover .contact-icon { transform: rotate(-6deg) scale(1.08); }
.contact-card p { margin-bottom: 12px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--accent-2); overflow-wrap: anywhere; }
.contact-link .ico { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform 0.25s var(--ease); }
.contact-card:hover .contact-link .ico { transform: rotate(-90deg) translateY(4px); }

/* Alle Karten einer Gruppe erscheinen in einem Zug */
html.js .group .gui { opacity: 0; transform: translateY(26px); }
html.js .group.is-in .gui { opacity: 1; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.3s; transition-delay: calc(var(--k, 0) * 55ms); }
html.js .group.is-in a.gui:hover { transform: translateY(-3px); transition-delay: 0ms; }

/* ===== SCHILDER IN DER WELT (wie die Namensschilder im Spiel) ===== */
.ptag { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; white-space: nowrap; font-family: var(--font-heading); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.ptag-player { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ptag-name { display: flex; align-items: center; gap: 8px; padding: 2px 9px 3px 5px; font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.2px; background: rgba(0, 0, 0, 0.36); }
.ptag-name img { width: 50px; height: 18px; image-rendering: pixelated; }
.ptag-hearts { display: flex; }
.ptag-hearts .mc-heart { width: 18px; height: 18px; background-size: 22px 22px; background-position: center; transition: filter 0.2s; }
.ptag-rank { display: flex; align-items: center; gap: 8px; padding: 2px 9px 3px 4px; font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; background: rgba(0, 0, 0, 0.36); }
.ptag-rank b { font-family: var(--font-heading); font-weight: normal; }
.ptag-rank b { display: grid; place-items: center; width: 22px; height: 22px; color: #2a1b00; font-size: 0.95rem; text-shadow: none; }
.ptag-rank.r1 b { background: linear-gradient(120deg, #ffe27a, #e9a21b); }
.ptag-rank.r2 b { background: linear-gradient(120deg, #eef2f5, #98a7b3); }
.ptag-rank.r3 b { background: linear-gradient(120deg, #f6b07c, #b5622a); }
.ptag-online, .ptag-file, .ptag-run { padding: 3px 10px 4px; font-size: 0.9rem; background: rgba(0, 0, 0, 0.5); }
.ptag-online { color: #7dff9b; } .ptag-file { color: #8af0ff; } .ptag-run { color: #7dff9b; text-transform: uppercase; }
.ptag-toast { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; background: #1d1d1d; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px #7a7a7a; text-shadow: none; }
.ptag-toast img { width: 32px; height: 32px; image-rendering: pixelated; }
.ptag-toast b { display: block; font-size: 0.9rem; font-weight: normal; color: #ffff55; text-shadow: 2px 2px 0 #3f3f00; }
.ptag-toast em { display: block; font-style: normal; font-size: 0.9rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.ptag-island { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 18px 10px; text-shadow: none; color: var(--ink); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 3px solid var(--w-acc, var(--accent)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 4px 0 rgba(0, 0, 0, 0.35); }
.ptag-island b { font-family: var(--font-heading); font-weight: normal; font-size: 1.08rem; letter-spacing: 1px; text-transform: uppercase; }
.ptag-island em { font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.4px; color: var(--ink-3); }
.ptag-island::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 12px; margin-left: -6px; background: var(--surface); border-right: 3px solid var(--w-acc, var(--accent)); border-bottom: 3px solid var(--w-acc, var(--accent)); transform: rotate(45deg); }
body.isl-hover, body.isl-hover main { cursor: pointer; }
.ptag-toast-amulet b { color: #ff9bff; text-shadow: 2px 2px 0 #3f003f; }

/* ===== DREI HERZEN der Mod unten in der Mitte (nur auf großen Bildschirmen) ===== */
.hud { display: none; position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); }
html.w3 .hud { display: block; }
.hud-hearts { display: flex; gap: 3px; }
.hud-hearts .mc-heart { width: 34px; height: 34px; background-size: 100% 100%; animation: beat 2.4s ease-in-out infinite; }
.hud-hearts .mc-heart:nth-child(2) { animation-delay: 0.2s; } .hud-hearts .mc-heart:nth-child(3) { animation-delay: 0.4s; }

/* ===== FUSSZEILE ===== */
.footer { padding: 52px 0 30px; background: var(--bg-2); border-top: 3px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 28px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-size: clamp(0.95rem, 5.4vw, 1.35rem); letter-spacing: 1px; color: var(--ink); }
.footer-icon { width: 24px; height: 29px; object-fit: contain; }
.footer-brand span { position: relative; top: -2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom { padding-top: 26px; text-align: center; border-top: 2px solid var(--line); }
.footer-bottom p { font-size: 0.85rem; color: var(--ink-3); }
.footer-bottom .footer-note { max-width: 760px; margin: 8px auto 0; font-size: 0.78rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-bottom: 14px; }
.footer-legal a { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent-2); }
.footer-bottom-flat { border-top: 0; padding-top: 0; }

/* ===== ANGEMELDETER NUTZER ===== */
.nav-user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-user-skin { width: 34px; height: 34px; flex-shrink: 0; image-rendering: pixelated; border: 3px solid var(--line-2); background: var(--surface); }
.nav-user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nav-user-mc { font-weight: 700; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.nav-user-email { max-width: 180px; font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logout-form { display: inline-flex; }
.nav-settings, .nav-logout {
  padding: 7px 14px; font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.5px; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s, box-shadow 0.12s;
}
.nav-settings { color: var(--ink); background: var(--surface); border: 3px solid var(--line-2); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 3px 0 rgba(0, 0, 0, 0.3); }
.nav-settings:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 2px 0 rgba(0, 0, 0, 0.3); }
.nav-logout { color: #fff; background: var(--red); border: 3px solid rgba(255, 255, 255, 0.2); border-bottom-color: var(--red-deep); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 3px 0 rgba(0, 0, 0, 0.4); }
.nav-logout:hover { background: #f25c5c; transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.4); }

/* ===== FORTSCHRITT, EINBLENDEN ===== */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width 0.1s; }

html.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(0.98); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s; transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .contact-card[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0ms; transition-duration: 0.7s, 0.3s, 0.3s; }

/* ===== ANIMATIONEN ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } 48% { transform: scale(1); } }
@keyframes heart-break {
  0%, 40% { transform: scale(1); color: var(--red); opacity: 1; }
  50% { transform: scale(1.18) rotate(-6deg); color: var(--red); }
  58% { transform: scale(0.9) rotate(6deg); color: #6b7a8c; opacity: 1; }
  70%, 82% { transform: scale(0.85); color: #3a4758; opacity: 0.5; }
  94% { transform: scale(1.2); color: var(--red); opacity: 1; }
  100% { transform: scale(1); color: var(--red); opacity: 1; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--green); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes lock-drain { 0% { width: 100%; } 100% { width: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@keyframes lock-shake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-8deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-5deg); } 96% { transform: rotate(3deg); } }

/* ===== RECHTLICHES (Datenschutz, Cookies) ===== */
.legal { padding: 64px 0 80px; }
.legal-inner { max-width: 840px; margin: 0 auto; }
.legal h1 { margin: 0 0 6px; font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: 0.5px; color: var(--ink); }
.legal-stand { margin: 0 0 32px; font-size: 0.9rem; color: var(--ink-3); }
.legal h2 { margin: 36px 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.legal p, .legal li { line-height: 1.75; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-2); font-weight: 600; }
.legal address { margin: 0 0 14px; padding: 16px 18px; font-style: normal; line-height: 1.7; color: var(--ink); background: var(--surface); border: 3px solid var(--line); }
.legal code { padding: 1px 6px; font-size: 0.88em; background: var(--surface); border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.legal td:first-child code { white-space: nowrap; }
.legal td:first-child { min-width: 168px; }
.legal-links { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--line); }
.legal-table-wrap { margin: 0 0 16px; overflow-x: auto; }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); color: var(--ink-2); }
.legal th { font-weight: 700; color: var(--ink); background: var(--surface); }

/* Am Handy erscheint jede Tabellenzeile als eigene Karte, statt seitlich zu scrollen. */
@media (max-width: 640px) {
  .legal { padding: 40px 0 56px; }
  .legal-table-wrap { overflow: visible; }
  .legal table { min-width: 0; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { margin: 0 0 14px; background: var(--surface); border: 3px solid var(--line); }
  .legal td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .legal td:last-child { border-bottom: 0; }
  .legal td:first-child { min-width: 0; }
  .legal td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); }
}

/* ===== SCHMALE BILDSCHIRME ===== */
@media (min-width: 1280px) and (max-width: 1599px) {
  .nav-user-meta { display: none; }
}

@media (max-width: 1279px) {
  .nav-bar { display: flex; gap: 12px; padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-tools { margin-left: auto; }
  .nav-logo { flex-shrink: 1; }
  .nav-logo-text { overflow: hidden; text-overflow: ellipsis; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 12px 16px 22px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); border-bottom: 3px solid var(--line); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  }
  .nav-menu.open { display: flex; animation: drop 0.25s var(--ease); }
  .nav-center { position: static; }
  .nav-links { flex-direction: column; gap: 2px; margin-bottom: 14px; }
  .nav-links a { padding: 14px 12px; font-size: 1.08rem; border-bottom: 2px solid var(--line); }
  .nav-indicator { display: none; }
  .nav-account { flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-right: 0; }
  .nav-user-meta { display: flex; }
  .nav-account > .btn { flex: 1; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Die Hotbar braucht Platz: nur bei großen Fenstern */
@media (max-width: 1099px), (max-height: 799px) { .hud, html.w3 .hud { display: none; } }
@media (min-width: 861px) {
  .group { width: min(620px, 48vw); }
  .group-wide { width: min(980px, 100%); }
}
@media (max-height: 820px) and (min-width: 861px) {
  .gui { padding: 14px 18px 12px; }
  .gui-mini { padding: 10px 14px 8px; }
  .gui p { font-size: 0.86rem; line-height: 1.45; }
  .gui-mini p { font-size: 0.8rem; }
  .group { gap: 10px; } .gui-grid { gap: 10px; }
  .gui h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
  .check-list { gap: 5px; margin: 8px 0 10px; }
}

@media (max-width: 1100px) {
  .chips { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Am Handy steht die Welt oben, die Karten unten und lassen sich seitlich durchwischen */
  html.w3 .pin { align-items: flex-end; justify-content: center; padding: 0 0 12px; }
  .group { width: 100%; display: flex; gap: 10px; padding: 0 14px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .group::-webkit-scrollbar { display: none; }
  .group-wide { width: 100%; }
  .group .gui-grid { display: contents; }
  .group > .gui, .group .gui-grid > .gui { flex: 0 0 88%; scroll-snap-align: center; align-self: flex-end; }
  .gui { padding: 14px 16px 12px; }
  .gui h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .gui h3 { font-size: 1.05rem; }
  .gui p { font-size: 0.86rem; line-height: 1.45; }
  .gui .gui-claim { font-size: 0.98rem; }
  .gui-mini { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .slot { width: 46px; height: 46px; } .slot img { width: 28px; height: 28px; }
  .chips { grid-template-columns: 1fr; }
  .slide { padding-left: 14px; padding-right: 14px; }
  html.w3 .slide { align-items: flex-end; height: 92vh; padding-bottom: 4.5vh; }
  html.w3 .slide-hero { padding-bottom: 8vh; }
  .hero-subtitle { margin-bottom: 20px; }
  .world-moon { right: 8%; top: 12%; }
  .board li { grid-template-columns: 26px 86px minmax(0, 1fr); }
  .contact-card { padding: 14px 16px; gap: 14px; }
  .contact-icon { width: 34px; height: 34px; }
  .portal-hint { bottom: 24vh; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 330px; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 13px 18px; font-size: 1.05rem; }
  .gui-actions .btn { width: 100%; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-scroll { display: none; }
  .ptag-name { font-size: 0.8rem; padding: 1px 6px 2px 4px; gap: 5px; } .ptag-name img { width: 38px; height: 14px; }
  .ptag-hearts .mc-heart { width: 14px; height: 14px; background-size: 17px 17px; }
  .ptag-toast { padding: 5px 10px 5px 6px; } .ptag-toast img { width: 24px; height: 24px; } .ptag-toast b, .ptag-toast em { font-size: 0.74rem; }
}

@media (max-width: 520px) { .nav-logo { font-size: 0.95rem; } }
@media (max-width: 420px) {
  .nav-bar { gap: 6px; padding: 0 10px; }
  .nav-logo { gap: 8px; font-size: 0.85rem; letter-spacing: 0.3px; }
  .nav-icon { width: 24px; height: 29px; }
  .nav-tools { gap: 6px; }
  .theme-toggle, .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 349px) { .nav-logo-text { display: none; } }

@media (hover: none) { .spot::before { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal], html.js [data-intro], html.js .group .gui { opacity: 1; transform: none; }
  .bar i { width: var(--w); }
}

/* Kreisförmiger Übergang beim Wechsel zwischen dunkel und hell (wo der Browser es kann) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0%)); animation: vt-reveal 0.6s var(--ease) forwards; }
@keyframes vt-reveal { to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0%)); } }
