/* VibeUnit – Minecraft Theme */
:root {
  --sky-top: #4a90d9;
  --sky-bottom: #87ceeb;
  --grass: #5d9e3e;
  --grass-dark: #4a7c32;
  --dirt: #8b5a2b;
  --stone: #7a7a7a;
  --diamond: #4ee4e4;
  --creeper: #50a050;
  --creeper-dark: #3d7a3d;
  --gold: #ffcc00;
  --text: #2d2d2d;
  --text-light: #f0f0f0;
  --panel: #3c3c3c;
  --panel-border: #1a1a1a;
  --shadow: 4px 4px 0 #1a1a1a;
  --pixel: "Press Start 2P", monospace;
  --body: "VT323", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--sky-bottom);
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Sky background */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, var(--grass) 55%, var(--grass-dark) 100%);
}

.clouds {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 0;
  box-shadow:
    24px 0 0 #fff,
    48px 0 0 #fff,
    12px -16px 0 #fff,
    36px -16px 0 #fff;
  opacity: 0.85;
  animation: drift linear infinite;
}

.c1 { width: 48px; height: 16px; top: 12%; left: -120px; animation-duration: 45s; }
.c2 { width: 64px; height: 20px; top: 22%; left: -160px; animation-duration: 60s; animation-delay: -20s; transform: scale(0.8); }
.c3 { width: 40px; height: 14px; top: 8%; left: -100px; animation-duration: 38s; animation-delay: -10s; }

@keyframes drift {
  to { transform: translateX(calc(100vw + 200px)); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 4px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Logo näher heranzoomen (weniger Rand um das Motiv) */
.logo-zoom {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--logo-scale, 1.75));
  transform-origin: center center;
}

.logo-zoom--nav {
  width: 40px;
  height: 40px;
  --logo-scale: 1.65;
}

.logo-zoom--hero {
  width: 110px;
  height: 110px;
  --logo-scale: 1.85;
  margin: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
  animation: logo-float 4s ease-in-out infinite;
}

.logo-zoom--footer {
  width: 56px;
  height: 56px;
  --logo-scale: 1.65;
}

.logo-zoom--guide {
  width: 80px;
  height: 80px;
  --logo-scale: 1.65;
  flex-shrink: 0;
}

.logo-text-only {
  font-family: var(--pixel);
  font-size: 0.65rem;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}

.logo-img {
  filter: drop-shadow(2px 2px 0 #000);
}

.logo-text {
  line-height: 1.2;
}

.hero-logo {
  display: block;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(0,0,0,0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--panel-border);
  border: 2px solid #555;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--text-light);
}

/* Hero */
.hero {
  padding: 3rem 0 0;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
  padding-bottom: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  width: auto;
  margin-bottom: 1.25rem;
}

.badge {
  display: block;
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--diamond);
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--diamond);
  margin: 0.75rem 0 0;
  text-shadow: 1px 1px 0 #000;
  text-align: left;
}

.hero h1 {
  font-family: var(--pixel);
  font-size: clamp(0.85rem, 3.5vw, 1.4rem);
  color: #fff;
  text-shadow: 3px 3px 0 #000, 5px 5px 0 rgba(0,0,0,0.3);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.5rem;
  color: #1a1a1a;
  max-width: 32ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  font-family: var(--pixel);
  font-size: 0.5rem;
  padding: 0.9rem 1.2rem;
  border: 3px solid var(--panel-border);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--panel-border);
}

.btn-primary {
  background: var(--grass);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.btn-primary:hover {
  background: var(--grass-dark);
}

.btn-secondary {
  background: var(--stone);
  color: #fff;
}

.btn-secondary:hover {
  background: #666;
}

.btn-large {
  font-size: 0.55rem;
  padding: 1rem 1.5rem;
}

.copy-hint {
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--gold);
  margin-top: 0.75rem;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero visual – blocks & VB */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.grass-column {
  display: flex;
  flex-direction: column;
  filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.4));
}

.block {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(0,0,0,0.35);
  image-rendering: pixelated;
}

.grass-top {
  background:
    linear-gradient(180deg, #6bb84a 50%, var(--grass) 50%);
  background-size: 16px 16px;
}

.dirt {
  background: var(--dirt);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.08) 8px,
    rgba(0,0,0,0.08) 16px
  );
}

.stone {
  background: var(--stone);
  background-image:
    radial-gradient(circle at 20% 30%, #999 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, #666 2px, transparent 2px);
}

.diamond {
  background: linear-gradient(135deg, #2bb8b8, var(--diamond), #7fffff);
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.vb-block {
  flex-shrink: 0;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.4));
  animation: bob 3s ease-in-out infinite;
}

.vb-block img {
  display: block;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ground-strip {
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--dirt) 0,
    var(--dirt) 32px,
    #6d4520 32px,
    #6d4520 64px
  );
  border-top: 4px solid #5a3a18;
}

/* Sections */
.section {
  padding: 4rem 0;
  background: rgba(30, 30, 30, 0.92);
  color: var(--text-light);
  border-top: 4px solid var(--panel-border);
  border-bottom: 4px solid var(--panel-border);
}

.section:nth-child(even) {
  background: rgba(45, 45, 45, 0.95);
}

.section-title {
  font-family: var(--pixel);
  font-size: clamp(0.6rem, 2.5vw, 0.85rem);
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}

.title-deco {
  color: var(--grass);
  margin-right: 0.5rem;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: var(--panel);
  border: 3px solid var(--panel-border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s;
}

.info-card:hover {
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid var(--panel-border);
}

.status-online { background: var(--grass); }
.version { background: var(--stone); }
.mode { background: var(--dirt); }
.world { background: linear-gradient(135deg, var(--diamond), #2aa); }

.info-card h3 {
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Features */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin-inline: auto;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--panel);
  border: 3px solid var(--panel-border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.feature-num {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--diamond);
  flex-shrink: 0;
}

.feature-item h3 {
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Join steps */
.steps {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 2rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 2px dashed #555;
  font-size: 1.3rem;
}

.step-num {
  font-family: var(--pixel);
  font-size: 0.55rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grass);
  border: 2px solid var(--panel-border);
  flex-shrink: 0;
}

.steps code {
  font-family: var(--pixel);
  font-size: 0.5rem;
  background: #1a1a1a;
  color: var(--diamond);
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--diamond);
}

.join-cta {
  text-align: center;
}

/* Bauanleitungen */
.section-intro {
  text-align: center;
  font-size: 1.3rem;
  max-width: 55ch;
  margin: -1rem auto 1.5rem;
  opacity: 0.9;
}

.block-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.block-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blk {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.5);
  vertical-align: middle;
}

.blk.oak { background: #b8860b; }
.blk.cobble { background: var(--stone); }
.blk.glass { background: #a8d8f0; }
.blk.door { background: #6b4423; }
.blk.torch { background: #ffaa00; }
.blk.gold { background: var(--gold); }
.blk.diamond { background: var(--diamond); }
.blk.air { background: transparent; border-style: dashed; border-color: #666; }

.guides-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin-inline: auto;
}

.guide-card {
  background: var(--panel);
  border: 3px solid var(--panel-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-card.guide-featured {
  border-color: var(--gold);
  box-shadow: 4px 4px 0 #000, 0 0 0 1px var(--gold);
}

.guide-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.guide-header:hover {
  background: rgba(255,255,255,0.05);
}

.guide-header h3 {
  flex: 1;
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--gold);
}

.guide-tag {
  font-family: var(--pixel);
  font-size: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 2px solid;
  flex-shrink: 0;
}

.guide-tag.easy {
  color: var(--grass);
  border-color: var(--grass);
  background: rgba(93, 158, 62, 0.2);
}

.guide-tag.medium {
  color: #ffaa44;
  border-color: #ffaa44;
  background: rgba(255, 170, 68, 0.15);
}

.guide-tag.vb {
  color: var(--diamond);
  border-color: var(--diamond);
  background: rgba(78, 228, 228, 0.15);
}

.guide-chevron {
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--text-light);
  border-bottom: 3px solid var(--text-light);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.guide-header[aria-expanded="true"] .guide-chevron {
  transform: rotate(-135deg);
}

.guide-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 2px dashed #555;
}

.guide-body[hidden] {
  display: none;
}

.guide-desc {
  font-size: 1.2rem;
  margin: 1rem 0;
  opacity: 0.92;
}

.guide-mats {
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #2a2a2a;
  border: 2px solid #444;
  font-size: 1.15rem;
}

.guide-mats li::before {
  content: "▸ ";
  color: var(--grass);
}

.layers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.layer-block h4 {
  font-family: var(--pixel);
  font-size: 0.4rem;
  color: var(--diamond);
  margin-bottom: 0.5rem;
}

.blueprint {
  display: grid;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  background: #1a1a1a;
  border: 3px solid var(--panel-border);
  overflow-x: auto;
}

.blueprint.cols-5 { grid-template-columns: repeat(5, 1fr); }
.blueprint.cols-7 { grid-template-columns: repeat(7, 1fr); }
.blueprint.cols-9 { grid-template-columns: repeat(9, 1fr); }
.blueprint.cols-11 { grid-template-columns: repeat(11, 1fr); }

.blueprint .cell {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0,0,0,0.35);
  image-rendering: pixelated;
}

.cell.oak { background: #b8860b; }
.cell.cobble { background: var(--stone); }
.cell.glass { background: #a8d8f0; }
.cell.door { background: #6b4423; }
.cell.torch { background: #ffaa00; box-shadow: 0 0 4px #ff6600; }
.cell.air { background: #111; opacity: 0.4; }
.cell.farmland { background: #5c4033; border-color: #3d2817; }
.cell.water { background: #3366cc; }
.cell.wheat { background: #c4a035; }
.cell.stone { background: #6a6a6a; }
.cell.bed { background: #cc3333; }
.cell.gold { background: var(--gold); }
.cell.diamond { background: var(--diamond); }
.cell.bg { background: #2d2d2d; }

.vb-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #2a2a2a;
  border: 2px solid var(--gold);
}

.vb-preview .logo-zoom img {
  filter: drop-shadow(2px 2px 0 #000);
}

.vb-preview p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.guide-steps {
  margin-left: 1.25rem;
  font-size: 1.15rem;
}

.guide-steps li {
  margin-bottom: 0.4rem;
}

.guide-steps li::marker {
  color: var(--grass);
}

/* Footer */
.footer {
  background: #1a1a1a;
  border-top: 4px solid var(--panel-border);
  padding: 2rem 0;
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  filter: drop-shadow(2px 2px 0 #000);
}

.footer-brand {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--gold);
  margin-bottom: 0;
}

.footer-note,
.footer-copy {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.35rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 4px solid var(--panel-border);
    padding: 0.5rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-brand {
    align-self: flex-start;
    margin-inline: 0;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    padding-top: 1rem;
  }

  .blueprint .cell {
    width: 18px;
    height: 18px;
  }

  .vb-preview {
    flex-direction: column;
    text-align: center;
  }

  .block {
    width: 48px;
    height: 48px;
  }

  .vb-block img {
    width: 48px;
    height: 48px;
  }
}
