/* ===== 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; }
.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-ip { background: #1f9e5c; }
.btn-ip.copied { background: #167a45; }
.btn-icon { flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--nav-h) - 3px);
  min-height: calc(100svh - var(--nav-h) - 3px);
  padding: 64px 0 120px;
}
.hero-scene {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges; background: var(--bg-2);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
[data-theme="light"] .hero-shade {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 45%, rgba(15, 45, 61, 0.12) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-content { width: 100%; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 16px;
  font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent-2); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 2px solid var(--line-2);
  backdrop-filter: blur(6px);
}
.hero-title { font-size: 0; line-height: 0; }
.hero-logo {
  display: block; width: min(640px, 88%); height: auto; margin: 0 auto 26px;
  filter: drop-shadow(0 12px 40px var(--glow));
  animation: float 5s ease-in-out infinite;
}
.hero-subtitle {
  max-width: 640px; text-wrap: balance; margin: 0 auto 38px; font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; line-height: 1.55; color: var(--ink);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .hero-subtitle { text-shadow: 0 1px 14px rgba(255, 255, 255, 0.7); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 18px;
  transform: translateX(-50%); text-decoration: none; color: var(--ink);
  font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1.2px; text-transform: uppercase;
  transition: color 0.2s;
}
.hero-scroll .ico { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }
.hero-scroll:hover { color: var(--accent-2); }

/* Start-Einblendung: nur mit JavaScript, sonst ist alles gleich sichtbar */
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) * 130ms + 120ms); }
[data-intro="1"] { --i: 0; } [data-intro="2"] { --i: 1; } [data-intro="3"] { --i: 2; } [data-intro="4"] { --i: 3; }

/* ===== LAUFBAND ===== */
.marquee {
  position: relative; overflow: hidden; padding: 16px 0; background: var(--accent-deep);
  border-top: 3px solid rgba(255, 255, 255, 0.25); border-bottom: 3px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; white-space: nowrap; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3); }
.marquee i { width: 10px; height: 10px; background: #fff; transform: rotate(45deg); opacity: 0.65; flex-shrink: 0; }

/* ===== ABSCHNITTE ===== */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-2); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.section-head { display: flex; align-items: flex-start; gap: 26px; margin-bottom: 52px; }
.section-no {
  font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 0.85; letter-spacing: 2px;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 38%, var(--line-2)); flex-shrink: 0;
}
.section-title { overflow-wrap: anywhere; word-spacing: -0.2em; font-family: var(--font-heading); font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: 0.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.section-lead { max-width: 560px; font-size: 1.08rem; color: var(--ink-2); }

/* Sanftes Lichtfeld unter dem Mauszeiger auf Karten */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%);
}
.spot:hover::before { opacity: 1; }

.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; font-family: var(--font-heading); font-size: 0.82rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface-2); border: 2px solid var(--line-2);
}
.tag-flag { color: #fff; background: var(--accent-deep); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.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: 10px; margin: 20px 0 24px; }
.check-list li { position: relative; padding-left: 26px; font-weight: 600; font-size: 0.97rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; background: var(--accent); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.3); }

/* ===== PROJEKTE ===== */
.project {
  background: var(--surface); border: 3px solid var(--line); box-shadow: var(--soft);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.project:hover { border-color: var(--accent); transform: translateY(-4px); }
.project h3 { font-family: var(--font-heading); font-size: 1.7rem; letter-spacing: 0.5px; word-spacing: -0.22em; margin-bottom: 6px; }
.project p { color: var(--ink-2); }

.project-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 0; margin-bottom: 26px; overflow: hidden; }
.project-body { padding: 40px 38px; }
.project-claim { margin-bottom: 14px; font-size: 1.15rem; font-weight: 700; color: var(--ink) !important; }
.project-visual {
  position: relative; display: grid; place-items: center; padding: 38px 28px; border-left: 3px solid var(--line);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 40%, var(--glow), transparent 70%), var(--bg-2);
}
.hud { min-width: 0; max-width: 100%; width: min(340px, 100%); padding: 20px 20px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 3px solid var(--line-2); box-shadow: var(--hard); animation: float 6s ease-in-out infinite; }
.hud-row { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.hud-label { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.hud-bounty { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.3rem; color: var(--amber); }
.hud-bounty .ico { width: 20px; height: 20px; }
.hud-amulet { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1rem; color: var(--violet); text-transform: uppercase; }
.hud-amulet .ico { width: 18px; height: 20px; }
.hud-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }

.hearts, .mini-hearts { display: inline-flex; gap: 6px; }
.heart { width: 30px; height: 27px; color: var(--red); fill: currentColor; animation: beat 1.6s ease-in-out infinite; }
.hearts .heart:nth-child(2), .mini-hearts .heart:nth-child(2) { animation-delay: 0.15s; }
.hearts .heart:nth-child(3), .mini-hearts .heart:nth-child(3) { animation-delay: 0.3s; }
.heart-last { animation: heart-break 5s ease-in-out infinite !important; }

.live-dot { display: inline-block; width: 9px; height: 9px; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: ping 2s infinite; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-side { padding: 32px 32px 30px; }
.project-side h3 { font-size: 1.45rem; }
.project-side p { margin: 10px 0 18px; }

/* ===== FEATURES (Kacheln) ===== */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; padding: 24px 24px 26px; grid-column: span 2;
  background: var(--surface); border: 3px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.tile-wide { grid-column: span 4; }
.tile-tall { grid-row: span 2; }
.tile h3 { word-spacing: -0.2em; font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: 0.4px; margin: 18px 0 8px; }
.tile p { font-size: 0.95rem; color: var(--ink-2); }
.tile code { padding: 1px 7px; font-size: 0.85em; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.tile-visual {
  display: flex; align-items: center; justify-content: center; flex: 1; min-height: 150px; padding: 16px;
  background: var(--bg-2); border: 2px solid var(--line); overflow: hidden;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 20px 20px;
}
.tile-tall .tile-visual { min-height: 280px; }

.mini-hearts .heart { width: 34px; height: 31px; }
.mini-bounty { display: inline-flex; align-items: center; gap: 8px; margin-left: 26px; padding: 8px 14px; font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.6px; text-transform: uppercase; color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); border: 2px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.mini-bounty .ico { width: 18px; height: 18px; }
.mini-bounty b { font-size: 1.15rem; }

.board { list-style: none; width: 100%; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: 28px 96px 1fr; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; }
.board .rank { display: grid; place-items: center; width: 26px; height: 26px; 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: 12px; background: var(--surface-2); border: 2px solid var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); transition: width 1.3s var(--ease); }
.tile.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; }

.lock-demo { display: grid; justify-items: center; gap: 14px; }
.lock { width: 46px; height: 50px; color: var(--amber); fill: currentColor; animation: lock-shake 4s ease-in-out infinite; }
.lock-bar { width: 140px; height: 12px; background: var(--surface-2); border: 2px solid var(--line-2); }
.lock-bar i { display: block; height: 100%; background: var(--amber); animation: lock-drain 4s linear infinite; }

.status-demo { display: grid; gap: 14px; justify-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; font-family: var(--font-heading); font-size: 1.05rem; 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: 26px; }
.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.2rem; color: var(--ink); }

.term { width: 100%; background: #060a11; border: 2px solid var(--line-2); box-shadow: var(--hard); text-align: left; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #0d1626; border-bottom: 2px solid var(--line); }
.term-bar i { width: 9px; height: 9px; background: var(--line-2); }
.term-bar i:first-child { background: #ef4444; } .term-bar i:nth-child(2) { background: #f5b301; } .term-bar i:nth-child(3) { background: #34c77b; }
.term-bar span { margin-left: 8px; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); }
.term-body { min-height: 118px; padding: 12px 14px; font-family: 'Consolas', 'Menlo', 'Courier New', monospace; font-size: 0.82rem; line-height: 1.7; color: #9fe6b4; white-space: pre-wrap; }
.term-body .cmd { color: var(--accent-2); }
.term-body .caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: #9fe6b4; animation: blink 1s steps(1) infinite; }

.key-demo { display: flex; align-items: center; gap: 16px; }
.ico-key { width: 54px; height: 27px; color: var(--amber); animation: float 4s ease-in-out infinite; }
.key-demo code { display: block; padding: 6px 12px; font-size: 0.85rem; color: var(--ink); background: var(--surface-2); border: 2px solid var(--line-2); }
.bind { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--green); }
.bind .ico { width: 14px; height: 11px; }

/* ===== ABLAUF ===== */
.flow { list-style: none; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; counter-reset: flow; }
.flow::before { content: ''; position: absolute; left: 28px; right: 28px; top: 27px; height: 4px; background: var(--line); }
.flow::after { content: ''; position: absolute; left: 28px; top: 27px; height: 4px; width: 0; background: var(--accent); box-shadow: 0 0 14px var(--glow); transition: width 1.4s var(--ease) 0.2s; }
.flow.in-view::after { width: calc(100% - 56px); }
.flow-step { position: relative; display: grid; gap: 22px; align-content: start; padding-top: 0; }
.flow-no {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; font-family: var(--font-heading); font-size: 1.8rem; color: #fff; background: var(--accent-btn);
  border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: rgba(255, 255, 255, 0.55); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), var(--hard); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.flow-step h3 { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 0.4px; margin-bottom: 8px; }
.flow-step p { max-width: 440px; color: var(--ink-2); }

/* ===== LIZENZ-BAND ===== */
.band {
  padding: 84px 0; color: #fff; background:
    linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.05) 40% 41%, transparent 41%) 0 0 / 34px 34px,
    linear-gradient(120deg, var(--accent-deep), #0f3f86);
  border-top: 3px solid rgba(255, 255, 255, 0.25); border-bottom: 3px solid rgba(0, 0, 0, 0.35);
}
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: 0.4px; margin-bottom: 10px; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3); }
.band-text { max-width: 520px; font-size: 1.05rem; opacity: 0.92; }
.band-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.band .btn-primary { background: #fff; color: #0f3f86; text-shadow: none; border-color: #fff; box-shadow: inset 0 -5px 0 rgba(15, 63, 134, 0.22), 0 5px 0 rgba(0, 0, 0, 0.4); }
.band .btn-primary:hover { background: #eaf4ff; }
.band .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ===== KONTAKT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 22px; padding: 32px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 3px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-discord:hover { border-color: var(--discord); }
.contact-icon { width: 44px; height: 44px; 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 h3 { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 0.4px; margin-bottom: 6px; }
.contact-card p { color: var(--ink-2); margin-bottom: 14px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; 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); }

/* ===== 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-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(30px); 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 .project[data-reveal].is-in:hover, html.js .tile[data-reveal].is-in:hover, html.js .contact-card[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0ms; transition-duration: 0.7s, 0.3s, 0.3s; }
html.js .section-no { transition: -webkit-text-stroke-color 0.6s; }

/* ===== 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 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; } }

@media (max-width: 960px) {
  .project-main { grid-template-columns: 1fr; }
  .project-visual { border-left: 0; border-top: 3px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-row: auto; }
  .tile-tall .tile-visual { min-height: 220px; }
}

@media (max-width: 720px) {
  .project-main > *, .project-grid > *, .bento > *, .contact-grid > * { min-width: 0; }
  .project h3 { font-size: 1.3rem; overflow-wrap: anywhere; }
  .project-visual { padding: 26px 14px; }
  .hud { padding: 16px 14px 12px; }
  .hud-bounty { font-size: 1.1rem; }
  .tile-visual { flex-wrap: wrap; gap: 14px; }
  .mini-bounty { margin-left: 0; }
  .mini-hearts .heart { width: 28px; height: 25px; }
  .heart { width: 26px; height: 23px; }
  .tile h3, .contact-card h3, .flow-step h3 { overflow-wrap: anywhere; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; gap: 6px; margin-bottom: 36px; }
  .section-no { font-size: 3rem; }
  .project-body { padding: 28px 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-wide { grid-column: span 1; }
  .flow { grid-template-columns: 1fr; gap: 34px; }
  .flow::before, .flow::after { left: 27px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .flow::after { height: 0; width: 4px; transition: height 1.4s var(--ease) 0.2s; }
  .flow.in-view::after { width: 4px; height: calc(100% - 28px); }
  .flow-step { grid-template-columns: 56px 1fr; align-items: start; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 110px; }
  .hero-logo { width: 94%; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 16px; }
  .hero-actions .btn { width: 100%; max-width: 330px; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 18px; font-size: 1.05rem; }
  .band-actions .btn { width: 100%; }
  .contact-card { padding: 24px 20px; flex-direction: column; gap: 14px; }
  .board li { grid-template-columns: 26px 86px 1fr; }
}

@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] { opacity: 1; transform: none; }
  .bar i { width: var(--w); }
  .flow::after { width: calc(100% - 56px); }
}

/* 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%)); } }
