/* Battle for Noalea – website styles. Fonts are self-hosted (no requests to Google). */

@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --nacht: #0f0d0c;
  --stein: #1a1714;
  --rand: #3a3128;
  --text: #ece3d4;
  --text-leise: #b3a690;
  --gold: #d9b26f;
  --gold-hell: #f0d39a;
  --titel: "Cinzel", Georgia, "Times New Roman", serif;
  --fliess: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--fliess);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titel); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
strong { color: var(--gold-hell); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 16px 120px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bild, .hero__bild img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 55%;
  z-index: -2;
}
.hero__bild img { animation: atmen 40s ease-in-out infinite alternate; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(15,13,12,.45) 0%, rgba(15,13,12,0) 100%),
    linear-gradient(to bottom, rgba(15,13,12,.4) 0%, rgba(15,13,12,0) 28%, rgba(15,13,12,0) 62%, var(--nacht) 100%);
}
@keyframes atmen { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero__inhalt { max-width: 900px; animation: auftauchen 1.4s ease-out both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.kicker {
  font-family: var(--titel);
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 2.4vw, .95rem);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 10vw, 6.2rem);
  letter-spacing: .04em;
  color: #fbf3e4;
  text-shadow: 0 2px 24px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6);
}
.badge {
  display: inline-block;
  margin: 2.4rem 0 0;
  padding: .7rem 1.8rem;
  border: 1px solid var(--gold);
  background: rgba(15,13,12,.55);
  backdrop-filter: blur(4px);
  font-family: var(--titel);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: clamp(.85rem, 2.8vw, 1.05rem);
  color: var(--gold-hell);
  box-shadow: 0 0 0 4px rgba(217,178,111,.12), 0 8px 30px rgba(0,0,0,.5);
}
.weiter {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: .8;
  animation: wippen 2.4s ease-in-out infinite;
}
.weiter:hover, .weiter:focus-visible { opacity: 1; }
@keyframes wippen { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- Sections ---------- */
.abschnitt {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 16px;
}
.abschnitt--breit { max-width: 1080px; }
.abschnitt h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--gold-hell);
  text-align: center;
  margin-bottom: 1.6rem;
}
.abschnitt h2::after {
  content: "";
  display: block;
  width: 72px; height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.einleitung { text-align: center; color: var(--text-leise); margin-bottom: 2rem; }

.merkmale {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) { .merkmale { grid-template-columns: 1fr; } }
.merkmale li {
  background: linear-gradient(180deg, var(--stein), rgba(26,23,20,.6));
  border: 1px solid var(--rand);
  border-top: 2px solid var(--gold);
  padding: 28px 28px 12px;
}
.merkmale h3 { font-size: 1.25rem; color: var(--gold-hell); margin-bottom: .8rem; letter-spacing: .03em; }
.merkmale p { font-size: 1.08rem; color: var(--text-leise); }

.galerie {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.galerie__gross { grid-row: span 2; }
.galerie a { display: block; border: 1px solid var(--rand); overflow: hidden; background: #000; }
.galerie img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.galerie a:hover img, .galerie a:focus-visible img { transform: scale(1.03); }
.galerie a:hover, .galerie a:focus-visible { border-color: var(--gold); }
.galerie span { display: block; margin-top: .6rem; font-size: 1rem; color: var(--text-leise); font-style: italic; }
@media (max-width: 700px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie__gross { grid-row: auto; }
}

.lupe {
  padding: 0; border: 1px solid var(--gold); background: #000;
  max-width: min(96vw, 1920px); max-height: 94vh;
}
.lupe::backdrop { background: rgba(0,0,0,.85); }
.lupe img { display: block; max-width: 100%; max-height: 94vh; width: auto; height: auto; }
.lupe__zu {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px;
  border: 1px solid var(--gold); background: rgba(15,13,12,.8);
  color: var(--gold-hell); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

.fraktionen {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fraktionen li { text-align: center; }
.fraktionen img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1;
  background: #000;
  border: 1px solid var(--rand);
  transition: transform .3s ease, border-color .3s ease;
}
.fraktionen li:hover img { transform: translateY(-4px); border-color: var(--gold); }
.fraktionen span {
  display: block;
  margin-top: .8rem;
  font-family: var(--titel);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text);
}

.abschluss { text-align: center; padding-bottom: 96px; }
.abschluss p { color: var(--text-leise); }

.fuss {
  border-top: 1px solid var(--rand);
  padding: 24px 16px 32px;
  text-align: center;
  font-size: .95rem;
  color: var(--text-leise);
}
.fuss p { margin: 0; }
.fuss a { color: var(--text-leise); }
.fuss a:hover, .fuss a:focus-visible { color: var(--gold); }

/* ---------- Legal pages ---------- */
.rechtliches { min-height: calc(100svh - 90px); }
.rechtliches h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--gold-hell); }
.rechtliches h2 { font-size: 1.15rem; text-align: left; margin: 2.2rem 0 .8rem; color: var(--gold); }
.rechtliches h2::after { display: none; }
.rechtliches a { color: var(--gold); }
.rechtliches .leise { color: var(--text-leise); margin-top: .4rem; }
.zurueck { font-family: var(--titel); font-weight: 600; letter-spacing: .06em; margin-bottom: 2rem; }
.zurueck a { text-decoration: none; }

@media (max-width: 700px) {
  .fraktionen { grid-template-columns: repeat(2, 1fr); }
  .abschnitt { padding: 56px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bild img, .hero__inhalt, .weiter { animation: none; }
}
