/* AMC – Apex Mercenary Cartel – schlicht, fotolastig: Schwarz, Weiß und Lila (wie die AMC-Team-Rollen im Discord) */
:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --text: #f1f1f3;
  --muted: #a3a3ad;
  --line: #26262d;
  --purple: #7b4dff;
  --pink: #e05ad2;
  --head: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1;
}
h1,
h2 {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
h3 {
  font-size: 1rem;
  font-weight: 700;
}
p {
  margin: 0 0 1rem;
}
.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 32px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--text);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}
/* Discord noch nicht freigegeben */
.is-soon {
  cursor: default;
  opacity: 0.55;
}
.btn.is-soon:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--head);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* "AMC" als kleines Abzeichen in Kennzeichen-Lila (bis es ein neues Kennzeichen-Foto gibt) */
.brand-mark {
  display: inline-block;
  padding: 0.12em 0.45em 0.08em;
  border: 2px solid #fff;
  border-radius: 4px;
  background: linear-gradient(135deg, #4b2bd6, var(--purple) 45%, var(--pink));
  color: #fff;
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}
.hero-tag .brand-mark {
  margin-right: 0.5rem;
  font-size: 0.85rem;
  vertical-align: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:not(.btn):hover {
  color: var(--text);
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

/* ---------- Banner: echtes Foto ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(11, 11, 13, 1) 0%, rgba(11, 11, 13, 0.55) 35%, rgba(11, 11, 13, 0) 65%),
    linear-gradient(90deg, rgba(11, 11, 13, 0.75) 0%, rgba(11, 11, 13, 0) 55%),
    var(--hero-image, url('assets/amg-side.webp')) 62% center / cover no-repeat,
    var(--bg);
}
.hero-inner {
  position: relative;
  padding: 0 0 4.5rem;
}
.hero-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 7rem);
  margin-bottom: 0.4rem;
}
.hero-line {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 1.8rem;
}
.hero-line::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 4px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- Abschnitte ---------- */
.section {
  padding: 5.5rem 0;
}
.section-dark {
  background: var(--bg-2);
}
.section-note {
  color: var(--muted);
  max-width: 640px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text p {
  color: #cfcfd6;
  font-size: 1.05rem;
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.about-text .about-quote {
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--purple);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  /* auto-fit: wenige Bilder füllen die ganze Breite */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 6px;
}
.gallery-item {
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  background: var(--bg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}
.lightbox {
  max-width: min(1200px, 94vw);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.lightbox img {
  max-height: 82vh;
  margin: 0 auto;
}
.lightbox-caption {
  text-align: center;
  color: var(--muted);
  margin-top: 0.6rem;
  font-size: 0.9rem;
}
.lightbox-btn {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-close {
  top: 16px;
  right: 16px;
}
.lightbox-prev {
  left: 16px;
  top: 50%;
}
.lightbox-next {
  right: 16px;
  top: 50%;
}

/* ---------- Beitreten ---------- */
.join {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}
.steps {
  margin: 0;
  padding: 0 0 0 1.4rem;
  font-size: 1.05rem;
}
.steps li {
  padding: 0.55rem 0 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  color: #cfcfd6;
}
.steps li::marker {
  font-family: var(--head);
  color: var(--purple);
}
.steps strong {
  color: var(--text);
}
.join-box {
  padding: 2rem;
  border-left: 4px solid var(--purple);
  background: var(--bg-2);
}
.join-box p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Regeln ---------- */
.rulebook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.rulebook h3 {
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}
.rulebook h3 small {
  float: right;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.rules {
  margin: 0;
  padding: 0 0 0 1.6rem;
}
.rules li {
  padding: 0.7rem 0 0.7rem 0.3rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.rules li::marker {
  color: var(--purple);
  font-weight: 700;
}
.rules strong {
  color: var(--text);
}

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}
details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

/* ---------- Fußzeile ---------- */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a,
.footer-inner > a {
  color: var(--muted);
}
.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #6f6f78;
}

/* ---------- Handy / Tablet ---------- */
@media (max-width: 900px) {
  .about,
  .join,
  .rulebook {
    grid-template-columns: 1fr;
  }
  .about {
    gap: 2rem;
  }
}
@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.btn) {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
  }
  .hero {
    min-height: 78vh;
  }
  /* Hochformat: Ausschnitt mit Member + Front der G-Klasse statt nur der Tür */
  .hero-bg {
    background:
      linear-gradient(0deg, rgba(11, 11, 13, 1) 0%, rgba(11, 11, 13, 0.85) 38%, rgba(11, 11, 13, 0) 68%),
      var(--hero-image, url('assets/amg-side.webp')) 24% top / auto 72% no-repeat,
      var(--bg);
  }
  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .section {
    padding: 4rem 0;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}
/* Kleine Handys: in der Kopfzeile nur das AMC-Abzeichen */
@media (max-width: 400px) {
  .site-header .brand-name {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
