/* craft.eder-cloud.de - Managed by Ansible (files/minecraft00/web/styles.css)
   Farben aus der Welt selbst: Schnee als Seite, Obsidian als Schrift, Glowstone
   als Akzent, Himmel/Gras/Erde fuer die Landschaft. Inventar-Slots fuer die Mods. */

@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/pixelify-sans-400-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/ibm-plex-sans-400-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-normal.woff2") format("woff2"); }

:root {
  --snow: #eef2f7;
  --snow-2: #e3e9f1;
  --slot: #dfe6ee;
  --slot-light: #ffffff;
  --slot-dark: #a6b0bc;
  --obsidian: #15131c;
  --obsidian-2: #241f30;
  --stone: #5f6b78;
  --glow: #f6c453;
  --glow-dark: #b8862a;
  --grass: #5fa33a;
  --grass-dark: #3f7a25;
  --sky: #79a8f5;
  --sky-light: #c6dbff;
  --dirt: #7a5235;
  --stone-block: #8a8f95;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--obsidian);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, iframe { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Kopfzeile ------------------------------------------------------------ */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: #fff;
}
.top .brand { font-family: var(--display); font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cube { width: 18px; height: 18px; background: linear-gradient(180deg, var(--grass) 0 38%, var(--dirt) 38% 100%); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), inset 3px 3px 0 rgba(255,255,255,.18); flex: none; }

/* --- Hero: die Karte ist die Buehne ------------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 900px); overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 62%, var(--grass) 62% 70%, var(--dirt) 70% 82%, var(--stone-block) 82% 100%);
  color: #fff; isolation: isolate;
}
.hero-map { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Als Hintergrund wird die Karte um 80px nach oben und unten ueberzogen, damit
   BlueMaps eigene Leisten (Menue, Kompass, Koordinaten) ausserhalb des Heros liegen. */
.hero-map iframe { position: absolute; top: -80px; left: 0; width: 100%; height: calc(100% + 160px); border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero.map-ready .hero-map iframe { opacity: 1; }
.hero.map-live .hero-map iframe { pointer-events: auto; top: 0; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,19,28,.88) 0%, rgba(21,19,28,.66) 42%, rgba(21,19,28,.18) 75%, rgba(21,19,28,0) 100%),
              linear-gradient(0deg, rgba(21,19,28,.9) 0%, rgba(21,19,28,.55) 38%, rgba(21,19,28,0) 62%);
  transition: opacity .5s ease;
}
.hero.map-live .hero-shade { opacity: 0; }
.hero.map-live .hero-copy { opacity: 0; pointer-events: none; transform: translateY(12px); }
.hero-copy {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter) 72px; min-height: inherit;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  transition: opacity .4s ease, transform .4s ease;
}
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); margin: 0; }
.hero h1 {
  font-size: clamp(40px, 8.4vw, 112px); word-break: break-word;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.hero h1 .tld { color: var(--glow); }
.lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 38em; color: rgba(255,255,255,.88); margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--mono); font-size: 14px; padding: 8px 12px;
  background: rgba(21,19,28,.55); border: 1px solid rgba(255,255,255,.14);
}
.dot { width: 10px; height: 10px; background: var(--stone); flex: none; }
.status.online .dot { background: var(--grass); animation: pulse 2s ease-in-out infinite; }
.status.offline .dot { background: #d9534f; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(95,163,58,.6); } 60% { box-shadow: 0 0 0 7px rgba(95,163,58,0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Minecraft-Knopf: flacher Block mit dunkler Unterkante */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 0; text-decoration: none;
  font-family: var(--display); font-size: 19px; line-height: 1; color: var(--obsidian);
  background: var(--glow); box-shadow: 0 4px 0 var(--glow-dark);
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.btn:hover { background: #ffd36a; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--glow-dark); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.quiet { background: var(--slot); color: var(--obsidian); box-shadow: 0 4px 0 var(--slot-dark); }
.btn.quiet:hover { background: #eaf0f6; }
.btn .ok { display: none; }
.btn.copied .ok { display: inline; }
.btn.copied .label { display: none; }
.map-exit {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3; display: none;
}
.hero.map-live .map-exit { display: inline-flex; }

/* --- Abschnitte --------------------------------------------------------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 4px solid var(--snow-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(34px, 5vw, 60px); }
.sec-head p { margin: 0; color: var(--stone); font-size: 18px; }
h3.group { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin: 36px 0 14px; display: flex; align-items: center; gap: 12px; }
h3.group::after { content: ""; flex: 1; height: 2px; background: var(--snow-2); }

/* Inventar-Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.slot {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding: 14px; background: var(--slot);
  border-top: 3px solid var(--slot-light); border-left: 3px solid var(--slot-light);
  border-right: 3px solid var(--slot-dark); border-bottom: 3px solid var(--slot-dark);
  transition: transform .12s ease;
}
.slot::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background .12s ease; pointer-events: none; }
.slot:hover { transform: translateY(-2px); }
.slot:hover::after { background: rgba(255,255,255,.35); }
.slot .icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--display); font-size: 28px; color: #fff; background: var(--obsidian-2);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), inset 4px 4px 0 rgba(255,255,255,.08);
}
.slot.players .icon { background: var(--grass-dark); }
.slot.admin .icon { background: var(--dirt); }
.slot.performance .icon, .slot.core .icon { background: var(--stone-block); }
.slot h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot h4 a { text-decoration: none; }
.slot h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.slot p { margin: 0; font-size: 15px; color: #3a4350; }
.slot .detail { margin-top: 6px; font-size: 13px; color: var(--stone); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  font-family: var(--mono); font-size: 13px; padding: 7px 10px; background: var(--slot);
  border-top: 2px solid var(--slot-light); border-left: 2px solid var(--slot-light);
  border-right: 2px solid var(--slot-dark); border-bottom: 2px solid var(--slot-dark);
}
.chip span { color: var(--stone); }

/* Einstieg: echte Reihenfolge, deshalb nummeriert */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 22px 0; border-top: 2px solid var(--snow-2);
}
.step::before {
  content: counter(step); font-family: var(--display); font-size: 40px; line-height: 1; color: var(--glow-dark);
  width: 64px; height: 64px; display: grid; place-items: center; background: var(--obsidian);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.4), inset 4px 4px 0 rgba(255,255,255,.08);
}
.step h3 { font-family: var(--body); font-weight: 600; font-size: 21px; margin: 6px 0 6px; }
.step p { color: #3a4350; }
.step .addr { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
code, .code {
  font-family: var(--mono); font-size: .95em; background: var(--snow-2); padding: 3px 7px; color: var(--obsidian);
}
.minilist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; font-size: 15px; }
.minilist li { padding-left: 14px; position: relative; }
.minilist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--grass); }
.minilist a { text-decoration: none; font-weight: 600; }
.minilist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note { font-size: 15px; color: var(--stone); }

/* Karte */
.map-card { position: relative; background: var(--obsidian); color: #fff; padding: 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.map-card h3 { font-size: 30px; margin-bottom: 10px; }
.map-card p { color: rgba(255,255,255,.8); }
.map-preview { aspect-ratio: 16 / 10; background: linear-gradient(180deg, var(--sky) 0 55%, var(--grass) 55% 68%, var(--dirt) 68% 100%); box-shadow: inset -6px -6px 0 rgba(0,0,0,.35), inset 6px 6px 0 rgba(255,255,255,.12); display: grid; place-items: center; }
.map-preview a { font-family: var(--display); font-size: 22px; color: #fff; text-decoration: none; background: rgba(21,19,28,.6); padding: 10px 16px; }
.map-preview a:hover { background: rgba(21,19,28,.85); }

/* Regeln + Technik */
.rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rules li { background: var(--slot); padding: 18px; border-top: 3px solid var(--slot-light); border-left: 3px solid var(--slot-light); border-right: 3px solid var(--slot-dark); border-bottom: 3px solid var(--slot-dark); }
.rules strong { display: block; font-size: 18px; margin-bottom: 4px; }
.rules p { margin: 0; font-size: 15px; color: #3a4350; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.facts div { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-top: 2px solid var(--snow-2); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* Fuss */
footer { background: var(--obsidian); color: rgba(255,255,255,.8); padding: 40px 0 48px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer small { display: block; width: 100%; color: rgba(255,255,255,.5); font-size: 13px; margin-top: 10px; }

/* Rechtstexte */
.legal { max-width: 760px; padding-top: 120px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 24px; }
.legal h2 { font-family: var(--body); font-weight: 600; font-size: 20px; margin: 32px 0 8px; }
.legal-top { position: static; color: var(--obsidian); }

/* Einstiegsanimation */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: .08s; } .rise:nth-child(3) { animation-delay: .16s; } .rise:nth-child(4) { animation-delay: .24s; } .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .map-card { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .hero-map { display: none; }
  .hero-copy { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .status.online .dot { animation: none; }
  .hero-map iframe, .hero-shade, .hero-copy, .slot, .btn { transition: none; }
}
