/*
Theme Name: StellaHub
Theme URI: https://stellahub.eu
Description: Custom WordPress Theme für StellaHub Minecraft Server
Version: 1.1.0
Author: StellaHub Team
Author URI: https://stellahub.eu
Text Domain: stellahub
*/

/* ============================================================
   SPICKZETTEL - Bevor du eine neue Seite baust, lies das hier!
   ============================================================
   Dieses Theme hat 5 wiederverwendbare "Bausteine". Für eine neue
   Seite brauchst du (fast) nie neues CSS - kombiniere einfach diese
   Klassen im Editor:

   1) BOX     - eingerahmter Abschnitt mit Überschrift/Text
                Klassen: page-header, info-box, content-section,
                content-box, feature-box, section, faq-item, ...
                -> Willst du einen neuen Namen? Einfach eine der
                   bestehenden Klassen wiederverwenden, NICHT neu
                   erfinden (siehe Abschnitt "1. BOX-FAMILIE" unten).

   2) AKZENT-BOX - wie Box, aber mit farbigem Rand links (Hinweis,
                Warnung, Info-Kasten). Klassen: highlight-box,
                notice-box, section.warning/.danger/.success

   3) GRID    - Container, der seine Kinder automatisch in Spalten
                anordnet. Klassen: info-cards, info-grid, rank-grid,
                team-grid, contact-grid, plugin-list, ways-grid

   4) KARTE   - eine einzelne "Kachel" innerhalb eines Grids, hebt
                sich beim Hover leicht an. Klassen: card, info-card,
                rank-card, team-card, contact-card, way-card, ...

   5) BUTTON  - btn (gefüllt), btn-outline/btn-secondary (Rahmen
                only), copy-btn (mit Icon+Text)

   Neue Seite bauen = Baustein-Klassen mischen, fertig. Nur wenn du
   wirklich etwas komplett Neues brauchst (wie z.B. die Bewerbungs-
   Schritte oder das Regelwerk-Ampelsystem unten), schreibst du eine
   neue, spezifische Klasse UND trägst sie hier oben in die Liste ein.
   ============================================================ */

:root {
  --primary: #00d4ff;
  --primary-hover: #00b8e6;
  --primary-dark: #0099cc;
  --bg-dark: #0a0e27;
  --bg-light: #1a1f3a;
  --bg-card: #232940;
  --text: #f5f5f5;
  --text-secondary: #b8c5d6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Barrierefreiheit: sichtbarer Fokus-Rahmen für Tastaturnutzung */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.stellahub-header {
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
  border-bottom: 2px solid var(--primary);
}

.stellahub-header img {
  max-width: 120px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.stellahub-header img:hover {
  transform: scale(1.05);
}

.stellahub-nav {
  background: var(--bg-light);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border-bottom: 1px solid var(--primary);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Mobile-Menü-Button. Auf Desktop unsichtbar (siehe @media unten),
   auf Mobile per Flexbox statt Float positioniert - sonst rutscht
   das Hamburger-Icon optisch aus dem klickbaren Bereich heraus. */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 15px 20px;
  font-size: 1.2em;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: bold;
  transition: background 0.3s ease;
}

.menu-toggle:hover {
  background: var(--primary-hover);
}

.menu-toggle::after {
  content: '☰';
  font-size: 1.5em;
  line-height: 1;
}

.menu-toggle.active::after {
  content: '✕';
}

.stellahub-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 20px;
  margin: 0;
}

.stellahub-nav li {
  display: inline-block;
}

.stellahub-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: block;
  border: 2px solid transparent;
  font-size: 0.95em;
}

.stellahub-nav a:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Aktive Seite im Menü hervorheben - current-menu-item/current_page_item
   werden von WordPress automatisch gesetzt, kein PHP dafür nötig. */
.stellahub-nav a.active,
.stellahub-nav .current-menu-item a,
.stellahub-nav .current_page_item a {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.stellahub-main {
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================================================
   HERO (nur Startseite)
   ============================================================ */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
  border-radius: 20px;
  margin-bottom: 40px;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.hero h1 {
  font-size: 2.2em;
  color: var(--primary);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero .subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.hero .server-status {
  display: inline-block;
  background: var(--bg-dark);
  padding: 20px 25px;
  border-radius: 12px;
  margin: 20px 0;
  border: 2px solid var(--primary);
  width: 100%;
  max-width: 500px;
}

.hero .server-ip {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary);
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.ip-copy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* ============================================================
   BADGE-FAMILIE - kleine, gefüllte Pillen für Status/Nummern
   Klassen: status-badge, rank-number, recommended
   ============================================================ */
.status-badge,
.rank-number,
.recommended {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9em;
}

/* Textlabel ohne Hintergrund (z.B. Team-Rollen-Badge) */
.rank-badge {
  display: inline-block;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 8px;
}


/* ============================================================
   ICON-FAMILIE - große, freistehende Emoji-Icons über Karten
   Klassen: card-icon, lumaa-icon, way-icon, .contact-card .icon
   ============================================================ */
.card-icon,
.lumaa-icon,
.way-icon,
.contact-card .icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}


/* ============================================================
   1. BOX-FAMILIE - eingerahmter Abschnitt mit Überschrift/Text
   Alle diese Klassen sehen identisch aus, tragen aber je nach
   Seite einen eigenen, sprechenden Namen. Für eine NEUE Seite:
   nimm eine bestehende Klasse (z.B. "info-box"), keine neue
   erfinden!
   ============================================================ */
.page-header,
.info-box,
.content-section,
.content-box,
.feature-box,
.resources-box,
.regelwerk-box,
.impressum-box,
.faq-item,
.steps-section,
.template-section,
.ways-section,
.section {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
}

/* page-header ist die einzige Box mit Sonderbehandlung: zentriert,
   heller Verlaufshintergrund, größere Überschrift - wie ein Mini-Hero */
.page-header {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.page-header h1 {
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.page-header p {
  color: var(--text-secondary);
}


/* ============================================================
   2. AKZENT-BOX-FAMILIE - wie Box, aber mit farbigem Rand links
   für Hinweise/Warnungen statt normalem Fließtext.
   ============================================================ */

/* Cyan = normaler Hinweis/Tipp */
.highlight-box,
.timeline-item {
  background: rgba(0, 212, 255, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Orange = Achtung/Wichtig */
.notice-box,
.section.warning {
  background: rgba(255, 170, 0, 0.08);
  border-left: 4px solid #ffaa00;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Rot = Verbot/Fehler */
.section.danger {
  background: rgba(255, 68, 68, 0.06);
  border-left: 4px solid #ff4444;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Grün = Erfolg/Abschluss */
.section.success {
  background: rgba(0, 255, 136, 0.06);
  border-left: 4px solid #00ff88;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* section.warning/.danger/.success überschreiben die normale Box
   von oben (volle Umrandung) mit dem farbigen Akzent-Stil */
.section.warning,
.section.danger,
.section.success {
  border: none;
}

.notice-icon {
  font-size: 1.2em;
  margin-right: 5px;
}


/* ============================================================
   CTA-BOX-FAMILIE - zentrierter Aufruf am Seitenende, wie ein
   kleiner Hero. Klassen: cta-box, contact-cta
   ============================================================ */
.cta-box,
.contact-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
  border: 2px solid var(--primary);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
}


/* ============================================================
   3. GRID-FAMILIE - ordnet Kind-Elemente automatisch in Spalten
   an (wird responsive automatisch weniger Spalten auf Mobile).
   ============================================================ */
.info-cards,
.info-grid,
.rank-grid,
.team-grid,
.contact-grid,
.plugin-list,
.info-row,
.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 30px 0;
}


/* ============================================================
   4. KARTEN-FAMILIE - einzelne Kachel innerhalb eines Grids
   ============================================================ */
.card,
.info-card,
.rank-card,
.team-card,
.contact-card,
.example-box,
.plugin-item,
.way-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.card:hover,
.info-card:hover,
.rank-card:hover,
.team-card:hover,
.contact-card:hover,
.example-box:hover,
.plugin-item:hover,
.way-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.card h3,
.info-card h3,
.rank-card h3,
.team-card h3,
.contact-card h3,
.example-box h4,
.plugin-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.2em;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95em;
}


/* ============================================================
   GALERIE (Startseite "Eindrücke")
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

h2 {
  color: var(--primary);
  text-align: center;
  margin: 35px 0 25px 0;
  font-size: 2em;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}


/* ============================================================
   5. BUTTON-FAMILIE
   ============================================================
   WICHTIG: Der WordPress-Gutenberg-Button-Block verschachtelt den
   eigentlichen Link automatisch in einen zusätzlichen
   <div class="wp-block-button KLASSE">. Landet die Klasse (z.B.
   "btn") auf diesem äußeren Div, bekommt NUR der Wrapper Hintergrund
   /Padding - klickbar ist aber nur der innere <a>. Das gibt einen
   Bereich, der farbig aussieht, aber nicht klickbar ist!
   Deshalb: Basis-Optik unten normal definieren (falls die Klasse mal
   direkt an einem <a>/<button> hängt), UND zusätzlich eine
   .wp-block-button.KLASSE-Regel, die die Optik auf den inneren Link
   verschiebt (für den Editor-Button-Block-Fall). */

.btn,
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 8px;
  border: 2px solid var(--primary);
  font-size: 1em;
}

.btn:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 8px;
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.copy-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.copy-btn.copied {
  background: #00ff88;
  color: var(--bg-dark);
}

/* --- Gutenberg-Button-Block-Fix (siehe Erklärung oben) --- */
.wp-block-button.btn,
.wp-block-button.btn-primary,
.wp-block-button.btn-secondary,
.wp-block-button.btn-outline,
.wp-block-button.copy-btn {
  background: transparent;
  padding: 0;
  border: none;
  margin: 8px;
}

.wp-block-button.btn .wp-block-button__link,
.wp-block-button.btn-primary .wp-block-button__link {
  display: inline-block;
  background: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  font-size: 1em;
}

.wp-block-button.btn .wp-block-button__link:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.wp-block-button.btn-secondary .wp-block-button__link,
.wp-block-button.btn-outline .wp-block-button__link {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.wp-block-button.btn-secondary .wp-block-button__link:hover,
.wp-block-button.btn-outline .wp-block-button__link:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.wp-block-button.copy-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.wp-block-button.copy-btn .wp-block-button__link:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.wp-block-button.copy-btn .wp-block-button__link.copied {
  background: #00ff88;
  color: var(--bg-dark);
}


/* ============================================================
   EINZELSTÜCKE - Kleinteile, die nur an genau einer Stelle
   vorkommen und deshalb keine eigene "Familie" brauchen.
   ============================================================ */

/* Team-Karten: Rolle, Kurzbeschreibung, Aufgabenliste */
.team-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 10px;
  font-style: italic;
}

.description {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 12px;
}

.tasks h4 {
  color: var(--primary);
  font-size: 0.95em;
  margin-bottom: 6px;
}

.tasks ul {
  color: var(--text-secondary);
  font-size: 0.88em;
  padding-left: 18px;
}

/* Ränge-Seite: "Wie bekomme ich einen Rang?" */
.info-section {
  background: rgba(0, 212, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin: 12px 0;
}

.info-label {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 5px;
}

.info-content {
  color: var(--text-secondary);
}

/* Bewerbung: 4 nummerierte Ablaufschritte */
.step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.step-content p {
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Bewerbung: Vorlagen-Textblock */
.template-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.template-text {
  background: var(--bg-dark) !important;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Kleine Inline-Icons vor Listeneinträgen (Bewerbung, Team) */
.ic,
.apply-list .icon {
  margin-right: 6px;
}

.apply-list li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Team-Seite: Bewerbungs-Aufruf am Ende (2-spaltig + CTA-Zeile) */
.apply-section {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
}

.apply-section-header {
  text-align: center;
  margin-bottom: 25px;
}

.apply-body {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.apply-col {
  flex: 1;
  min-width: 250px;
}

.apply-divider {
  border: none;
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  margin: 25px 0;
}

.apply-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.apply-cta-text {
  flex: 1;
  min-width: 250px;
}

.apply-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Plugins/Ränge/FAQ: "wird noch befüllt"-Platzhalter */
.placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--text-secondary);
  border-radius: 10px;
  padding: 15px;
  color: var(--text-secondary);
  font-size: 0.9em;
  margin: 10px 0;
}

.link-placeholder {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 0.85em;
}


/* ============================================================
   FOOTER
   ============================================================ */
.stellahub-footer {
  background: var(--bg-light);
  text-align: center;
  padding: 25px 15px;
  border-top: 2px solid var(--primary);
  margin-top: 50px;
  font-size: 0.9em;
}

.stellahub-footer .footer-legal,
.stellahub-footer .footer-links {
  margin-top: 12px;
}

.stellahub-footer .footer-links {
  color: var(--text-secondary);
}

.stellahub-footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.stellahub-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}


/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .stellahub-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .stellahub-nav ul.active {
    display: flex;
  }

  .stellahub-nav li {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--bg-dark);
  }

  .stellahub-nav a {
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 0;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  .hero .subtitle {
    font-size: 1em;
  }

  .hero .server-ip {
    font-size: 1.1em;
  }

  .ip-copy-container {
    flex-direction: column;
    gap: 12px;
  }

  .copy-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .btn,
  .btn-primary {
    display: block;
    margin: 10px auto;
    max-width: 280px;
  }

  .info-cards,
  .info-grid,
  .rank-grid,
  .team-grid,
  .contact-grid,
  .plugin-list {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  .stellahub-header img {
    max-width: 100px;
  }

  .hero {
    padding: 25px 15px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  .card {
    padding: 20px;
  }
}
