/* ============================================================
   BARSCH Gaming Clan - Unterwasser / Fisch-Design
   ============================================================ */

:root {
  /* BARSCH-Farbwelt: Grün / Gold / Schwarz / Braun-Grau */
  --green: #6e8b3d;          /* Hauptfarbe */
  --green-dark: #4f6529;
  --green-soft: #8aa858;

  --gold: #d6a63a;           /* Akzent */
  --gold-soft: #eac66f;

  --red: #8b1e1e;

  /* Dunkle Basis: Schwarz + Braun-/Grautöne */
  --black: #14140f;
  --brown-dark: #23201a;
  --brown: #2e2a22;
  --brown-soft: #3a352b;
  --graybrown: #6b6459;

  /* Text */
  --text: #f4f1ea;
  --muted: #cbc4b6;

  --border: rgba(214, 166, 58, 0.28);
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  /* Dunkler Verlauf: oben Grün-Schimmer, unten Schwarz/Braun */
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(110, 139, 61, 0.28), transparent 60%),
    linear-gradient(180deg, var(--brown-dark) 0%, var(--brown) 40%, var(--black) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Hintergrund: Blasen
   ============================================================ */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(234, 198, 111, 0.5), rgba(110, 139, 61, 0.12));
  box-shadow: inset 0 0 6px rgba(234, 198, 111, 0.3);
  animation: rise linear infinite;
  opacity: 0.5;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  50%  { transform: translateY(-55vh) translateX(20px); }
  100% { transform: translateY(-110vh) translateX(-10px); opacity: 0; }
}

/* ============================================================
   Hintergrund: schwimmende Fische
   ============================================================ */
.fish-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.swim-fish {
  position: absolute;
  left: 0;
  font-size: 32px;
  opacity: 0.35;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Emoji-Fische zeigen von Natur aus nach LINKS.
   swim-left  = schwimmt nach links  -> nicht spiegeln (Kopf voran nach links)
   swim-right = schwimmt nach rechts -> spiegeln, damit Kopf nach rechts zeigt */
@keyframes swim-left {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-20vw); }
}
@keyframes swim-right {
  from { transform: translateX(-20vw) scaleX(-1); }
  to   { transform: translateX(100vw) scaleX(-1); }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Hauptpunkte (Ueber uns, Regelwerk) */
.nav-top {
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-top:hover,
.nav-top[aria-current="page"] {
  color: var(--gold);
  background: rgba(110, 139, 61, 0.15);
}

/* Kleiner Pfeil-Button fuer das Dropdown */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 32px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.dropdown-toggle:hover {
  color: var(--gold);
  background: rgba(110, 139, 61, 0.15);
}

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-item.is-open .caret {
  transform: rotate(180deg);
}

/* Das eigentliche Dropdown-Panel */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: rgba(20, 20, 15, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}

/* Oeffnen per Hover (Desktop) oder per Klick (Klasse is-open) */
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.dropdown a:hover {
  color: var(--gold);
  background: rgba(110, 139, 61, 0.15);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sprachumschalter */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--gold);
  color: var(--black);
}

/* Discord-Button (rechts neben dem Sprachumschalter) */
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid #5865f2;
  transition: background 0.2s, border-color 0.2s, transform 0.15s ease;
}

.discord-btn:hover {
  background: #4752c4;
  border-color: #4752c4;
  transform: translateY(-1px);
}

.discord-icon {
  display: block;
  flex: 0 0 auto;
}

/* Discord-Button auf schmalen Screens: nur Icon, Text ausblenden */
@media (max-width: 560px) {
  .discord-btn span {
    display: none;
  }
  .discord-btn {
    padding: 8px 10px;
  }
}

/* Mobile Menü-Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 160px;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.kicker,
.section-kicker {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.hero-logo {
  display: block;
  width: clamp(120px, 22vw, 200px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Wellen-Trenner unten am Hero */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background:
    radial-gradient(60px 90px at 30px 90px, transparent 60px, rgba(110, 139, 61, 0.45) 61px) repeat-x;
  background-size: 120px 90px;
  opacity: 0.6;
  animation: waveMove 6s linear infinite;
}

@keyframes waveMove {
  from { background-position-x: 0; }
  to   { background-position-x: 120px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--text);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ============================================================
   Sektionen
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.section-alt {
  background: rgba(35, 32, 26, 0.55);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 22px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.section-text {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--muted);
}

/* ============================================================
   Karten
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(46, 42, 34, 0.55);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  box-shadow: 0 14px 40px var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-top-color: var(--gold);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--green-soft);
}

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

/* ============================================================
   Statistiken
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  background: rgba(46, 42, 34, 0.5);
  border: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Beitreten
   ============================================================ */
.join {
  text-align: center;
}

.join .section-text {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Kontaktformular
   ============================================================ */
.contact-form {
  max-width: 560px;
  margin-top: 30px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 15, 0.55);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--gold-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 30px 0;
  text-align: center;
  background: rgba(20, 20, 15, 0.9);
  border-top: 1px solid var(--border);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

/* ============================================================
   Impressum / Rechtliche Seite
   ============================================================ */
.page-main {
  position: relative;
  z-index: 1;
}

.legal-section {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 90px 24px;
}

/* Breitere Variante fuer Seiten mit eingebettetem Dokument (Regelwerk) */
.legal-section.legal-wide {
  max-width: 1240px;
}

.legal-section .title {
  margin: 6px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
}

.legal-section .lead {
  margin: 0 0 30px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
}

.legal-card {
  margin: 0 0 18px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(46, 42, 34, 0.55);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  box-shadow: 0 12px 34px var(--shadow);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--green-soft);
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--gold);
  font-weight: 700;
}

.legal-card a:hover {
  text-decoration: underline;
}

.note {
  margin-top: 24px;
  color: var(--graybrown);
  font-size: 14px;
  font-style: italic;
}

/* Eingebettetes Dokument (PDF) im Website-Look */
.doc-panel {
  margin-top: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(46, 42, 34, 0.55);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  box-shadow: 0 14px 40px var(--shadow);
}

.doc-panel iframe {
  display: block;
  width: 100%;
  height: 88vh;
  min-height: 640px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

/* Footer-Variante mit Links (Impressum-Seite) */
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner > div {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ============================================================
   Reveal-Animation beim Scrollen
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 20, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    display: none;
  }

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

  .nav-item {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }

  .nav-top {
    flex: 1;
    padding: 14px 10px;
    border-radius: 0;
  }

  /* Pfeil-Button rechts neben dem Hauptpunkt */
  .nav-item.has-dropdown {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .dropdown-toggle {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 0;
  }

  /* Dropdown auf Mobil: normaler Fluss statt schwebendes Panel */
  .dropdown {
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }

  /* Auf Mobil NICHT per Hover oeffnen - nur per Klick (is-open) */
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown:focus-within .dropdown {
    display: none;
  }

  .nav-item.is-open .dropdown {
    display: flex;
  }

  .dropdown a {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 80px 20px 120px; }
  .doc-panel iframe { height: 70vh; min-height: 420px; }
}

/* Reduzierte Bewegung respektieren.
   Die schwimmenden Fische bleiben als Kern des Designs erhalten,
   nur langsamer; aufdringlichere Effekte werden gestoppt. */
@media (prefers-reduced-motion: reduce) {
  .bubble, .hero-logo, .wave { animation: none !important; }
  .swim-fish { animation-duration: 40s !important; }
  html { scroll-behavior: auto; }
}
