/* ==========================================================================
   SNEPI STUDIO - Official Stylesheet (Clean Dark Theme - like tvw.snepi.de)
   ========================================================================== */

:root {
  /* Farben & Hintergründe aus beispiel.html */
  --bg: #090d12;
  --panel: #0e141c;
  --panel-card: #0b1118;
  --line: #293340;
  --line-light: #3b4654;
  --text: #e2e8f0;
  --muted: #98a6b8;
  --accent: #a7b5c7;

  /* Minecraft & Akzentfarben */
  --mc-green: #4ade80;
  --mc-green-glow: rgba(74, 222, 128, 0.15);
  --mc-blue: #38bdf8;
  --mc-blue-glow: rgba(56, 189, 248, 0.15);

  /* Typografie & Maße */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --wrap-max: 1100px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --transition: 0.18s ease;
}

/* ==========================================================================
   Basis-Layout & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font-sans);
  background-image: radial-gradient(ellipse at 72% 12%, #18212c 0%, transparent 38%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--wrap-max), calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 13, 18, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-weight: 950;
  letter-spacing: 3px;
  font-size: 23px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

nav a:not(.brand) {
  color: #b7c1d0;
  font-size: 14px;
  transition: color var(--transition);
}

nav a:hover, nav a.active {
  color: #fff;
}

/* ==========================================================================
   Hero-Bereich
   ========================================================================== */
.hero {
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  padding: 45px 0;
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 0.98;
  margin: 16px 0 14px;
  letter-spacing: -2px;
  font-weight: 1000;
  color: #fff;
}

.hero h1 span {
  color: var(--accent);
}

.sub {
  color: var(--muted);
  max-width: 480px;
  margin: 0;
  font-size: 15px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #667487;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: filter var(--transition), border-color var(--transition);
  font-size: 14px;
}

.btn.primary {
  background: #dce3eb;
  color: #10151b;
  border-color: #dce3eb;
}

.btn:hover {
  filter: brightness(1.08);
  border-color: var(--accent);
}

.hero-art {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-artwork {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
}

/* ==========================================================================
   Abschnitte & Typografie
   ========================================================================== */
section {
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  margin: 4px 0 2px;
  font-weight: 850;
  color: #fff;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================================
   Two vs. Wald Übersicht & Facts
   ========================================================================== */
.overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
}

.overview h3 {
  font-size: 27px;
  margin: 5px 0 10px;
  color: #fff;
}

.overview p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 18px;
}

.facts {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: grid;
  gap: 15px;
}

.fact b {
  display: block;
  color: #fff;
}

.fact span {
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   Team Karten (Clean Minimalist Cards - 4 Mitglieder)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.team-card {
  border: 1px solid var(--line-light);
  background: var(--panel-card);
  padding: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.team-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #080d13;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.team-meta {
  min-width: 0;
}

.team-name {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 15px;
  color: #fff;
  margin-bottom: 2px;
}

.team-role {
  font-size: 12px;
  color: var(--mc-blue);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.team-bio {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.team-card .btn {
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
}

/* ==========================================================================
   Minecraft Server Component (Direkt aus beispiel.html)
   ========================================================================== */
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.download {
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel-card);
  border-radius: var(--radius-sm);
}

.download p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.download h3 {
  margin: 0 0 3px;
  font-size: 17px;
  color: #fff;
}

.download.download-mc {
  background: linear-gradient(165deg, #101723 0%, var(--panel-card) 100%);
  border: 1px solid #36485d;
  position: relative;
  align-items: flex-start;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.download.download-mc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mc-green) 0%, var(--mc-blue) 65%, transparent 100%);
}

.download.download-mc:hover {
  border-color: #516b8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(74, 222, 128, 0.08);
}

.mc-icon-wrap {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.14), transparent 70%);
  border-radius: var(--radius-md);
}

.mc-icon-wrap svg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.download.download-mc:hover .mc-icon-wrap svg {
  transform: translateY(-2px) scale(1.05);
}

.mc-content {
  flex: 1;
  min-width: 0;
}

.mc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mc-green);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.mc-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mc-green);
}

.mc-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--mc-green);
  animation: mc-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes mc-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.mc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mc-actions .btn {
  margin-left: 0;
  padding: 7px 14px;
  font-size: 13px;
}

.mc-ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #060a0f;
  border: 1px solid #2a3747;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.mc-ip-copy:hover {
  border-color: var(--mc-green);
  background: #0a131c;
}

.mc-ip-copy:active {
  transform: scale(0.98);
}

.mc-ip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #172230;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  transition: all var(--transition);
}

.mc-ip-copy:hover .mc-ip-tag {
  background: #1f3044;
  color: #cbd5e1;
}

.mc-ip-copy.copied {
  border-color: var(--mc-green);
}

.mc-ip-copy.copied .mc-ip-tag {
  background: var(--mc-green-glow);
  color: var(--mc-green);
}

/* ==========================================================================
   Member Profile Pages (Linktree Style)
   ========================================================================== */
.profile-page-clean {
  min-height: calc(100vh - 100px);
  padding: 40px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-box {
  width: min(480px, 100%);
  background: var(--panel-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  text-align: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--line-light);
  background: #080d13;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-header h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -1px;
}

.profile-header .member-role-clean {
  font-size: 14px;
  color: var(--mc-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.profile-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f1620 0%, #080d13 100%);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.link-item:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #151e2e 0%, #0f1620 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.link-item .link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-item .link-left span:first-child {
  font-size: 20px;
}

.link-item .link-tag {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.link-item:hover .link-tag {
  color: var(--accent);
}

.link-item.copied {
  border-color: var(--mc-green);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, #080d13 100%);
}

.link-item.copied .link-tag {
  color: var(--mc-green);
}

/* Custom minimal footer for profile pages */
.profile-page-clean + footer {
  padding: 20px 0;
  text-align: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
}

/* Smaller header button for profile pages */
.profile-header-nav .btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  nav {
    gap: 14px;
  }
  nav a:not(.brand) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 20px;
  }
  .hero-art {
    height: 160px;
  }
  .hero-artwork {
    width: 140px;
    height: 140px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .facts {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .downloads {
    grid-template-columns: 1fr;
  }
  .download {
    flex-wrap: wrap;
  }
  .download .btn {
    margin-left: 0;
  }
  .wrap {
    width: min(100% - 28px, var(--wrap-max));
  }
  .profile-box {
    padding: 28px 20px;
  }
  .profile-avatar-large {
    width: 90px;
    height: 90px;
  }
  .profile-header h1 {
    font-size: 24px;
  }
  .link-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}
