/* ==========================================================================
   Hansestadt Roleplay | FiveM – Website
   Farben aus Logo/Banner: Petrol-Dunkel + Türkis
   ========================================================================== */

:root {
  --bg: #011015;
  --bg-alt: #03181e;
  --surface: rgba(9, 78, 82, 0.16);
  --surface-hover: rgba(9, 78, 82, 0.28);
  --line: rgba(24, 223, 207, 0.16);
  --line-strong: rgba(24, 223, 207, 0.4);

  --accent: #18dfcf;
  --accent-deep: #16d0cd;
  --on-accent: #012228;

  --text: #e8f7f6;
  --muted: #8fb2b2;

  --radius: 18px;
  --header-h: 68px;
  --container: 1120px;

  /* Poppins ist die Markenschrift (Banner). Fuer Nutzung als Webfont:
     woff2-Dateien unter /fonts ablegen und per @font-face einbinden. */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% 8%, rgba(24, 223, 207, 0.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-style: italic; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.accent { color: var(--accent); }
.text-link { color: var(--accent); border-bottom: 1px solid rgba(24, 223, 207, 0.4); transition: border-color 0.2s; }
.text-link:hover { border-color: var(--accent); }
.lead { max-width: 60ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 20px; font-size: 0.92rem; }
.nav-login svg { width: 16px; height: 16px; }
.nav-login:hover svg { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 8px 28px -8px rgba(24, 223, 207, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(24, 223, 207, 0.75); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(1, 16, 21, 0.82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand em { font-style: italic; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: var(--header-h); overflow: hidden; }

.hero-visual {
  width: min(100%, 1400px);
  margin-inline: auto;
  aspect-ratio: 5 / 2;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 55%, transparent 100%),
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 55%, transparent 100%),
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: clamp(-150px, -9vw, -50px);
  padding-bottom: clamp(64px, 9vw, 120px);
  text-align: center;
}
.hero-content .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Ueber uns */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid h2 { margin-bottom: 20px; }
.about-grid p:not(.eyebrow) { color: var(--muted); }
.about-grid p + p { margin-top: 14px; }
.about-grid strong { color: var(--text); font-weight: 600; }

.check-list { display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.check-list strong { display: block; font-weight: 600; }
.check-list span:not(.check) { color: var(--muted); font-size: 0.94rem; }
.facts { display: grid; gap: 12px; }
.facts li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.facts li:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.facts strong { display: block; font-weight: 600; }
.facts span:not(.fact-icon) { color: var(--muted); font-size: 0.94rem; }
.fact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 223, 207, 0.2), rgba(24, 223, 207, 0.05));
}
.fact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-icon b { font-size: 0.95rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(24, 223, 207, 0.14);
}
.check svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -22px rgba(24, 223, 207, 0.45);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24, 223, 207, 0.2), rgba(24, 223, 207, 0.05));
  border: 1px solid var(--line);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Einstieg */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding: 8px 0 0; }
.steps li + li::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -14px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}
.step-no {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* CTA */
.cta-section { padding-top: 0; }
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(40px, 7vw, 72px) 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(24, 223, 207, 0.18), transparent 70%),
    var(--surface);
}
.cta p { max-width: 46ch; margin-bottom: 10px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-note {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.65;
}
.footer-note strong { color: var(--text); font-weight: 600; }
.hero-note { margin-top: 4px; color: var(--muted); font-size: 0.86rem; }

/* ---------- Einblenden ---------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

.card-grid [data-reveal]:nth-child(3n + 2),
.steps [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.card-grid [data-reveal]:nth-child(3n),
.steps [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(1, 16, 21, 0.96);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.btn) { padding: 12px 8px; }
  .site-nav .btn { margin-top: 8px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li + li::before { display: none; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 0.95rem; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-note { text-align: center; }
}
