:root {
  --background: #0b0c0e;
  --background-light: #111317;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(255, 255, 255, 0.23);
  --text: #f5f6f7;
  --text-muted: #a5a9b0;
  --dark-text: #101114;
  --accent: #d8ff3e;
  --accent-hover: #e3ff76;
  --accent-soft: rgba(216, 255, 62, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 34px;
  --container: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 25px);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 255, 62, 0.04), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-heading {
  width: min(700px, 100%);
  margin-bottom: 55px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--text);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(216, 255, 62, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Gewerke Grid Layout (2 oben, 2 unten) */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
}

@media (max-width: 768px) {
  .trades-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Trade Card Styles */
.trade-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.trade-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  filter: grayscale(30%) brightness(0.7);
}

.trade-card:hover .card-bg {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.85);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 14, 0.4) 0%,
    rgba(11, 12, 14, 0.85) 75%,
    rgba(11, 12, 14, 0.98) 100%
  );
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-bottom h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.card-bottom p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 80%;
}

/* Kapazität UNTEN RECHTS auf der Karte */
.capacity-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  background: rgba(17, 19, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.capacity-badge .count {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.capacity-badge .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.status-indicator.available::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.status-indicator.limited::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffb703;
  box-shadow: 0 0 8px #ffb703;
}

/* PowerPoint Blur Style Pop-Up Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(11, 12, 14, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.trade-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.92);
  width: min(850px, calc(100% - 40px));
  max-height: 90vh;
  overflow-y: auto;
  z-index: 999;
  background: var(--background-light);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
}

.trade-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.3);
  opacity: 0.5;
  z-index: 0;
}

.modal-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 19, 23, 0.92) 0%, rgba(11, 12, 14, 0.98) 100%);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--dark-text);
  transform: rotate(90deg);
}

/* Kapazität OBEN RECHTS im Popup */
.modal-capacity-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  background: rgba(216, 255, 62, 0.12);
  border: 1px solid rgba(216, 255, 62, 0.3);
  border-radius: var(--radius-small);
  padding: 10px 18px;
  text-align: right;
  backdrop-filter: blur(10px);
}

.modal-capacity-badge .count {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.modal-capacity-badge .label {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-body {
  position: relative;
  z-index: 5;
  margin-top: 20px;
}

.modal-body h3 {
  font-size: 1.8rem;
  margin-top: 15px;
  margin-bottom: 20px;
  font-weight: 700;
}

.detail-list {
  list-style: none;
  margin-bottom: 30px;
}

.detail-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.detail-list strong {
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.detail-box {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-small);
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.cta-button {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--dark-text);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-small);
  transition: all 0.25s ease;
  text-align: center;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(216, 255, 62, 0.25);
}

/* Responsive Anpassung für Mobile */
@media (max-width: 640px) {
  .trade-modal {
    padding: 24px 20px;
    width: calc(100% - 24px);
    border-radius: var(--radius-medium);
  }

  .modal-capacity-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-body h3 {
    font-size: 1.4rem;
  }
}

/* 1. ABSTAND DER SEKTION VOM HEADER VERKLEINERN */
.section {
  position: relative;
  padding: 40px 0 120px 0; /* Oben von 120px auf 40px reduziert */
}

/* 2. ZURÜCK-LINK KOMPAKT DIREKT ÜBER DER ÜBERSCHRIFT */
.back-to-home-link {
  display: inline-block;
  margin-top: 40px;           /* Vorher 40px - schiebt den Link direkt nach oben */
  margin-left: 20px;          /* Bündig mit dem Container-Rand */
  margin-bottom: 15px;     /* Kompakter Abstand zur Überschrift */

  /* Graues Blur/Badge-Design */
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  
  /* Typografie */
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  
  /* Blur-Effekt */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  transition: all 0.25s ease;
}

/* Hover-Effekt */
.back-to-home-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* =================================================== */
/* BURGER-MENÜ & MOBILE NAVIGATION (NEON-DESIGN)       */
/* =================================================== */

@media (max-width: 768px) {
  /* Burger Icon Button Styling */
  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--accent, #d8ff3e); /* Neon-Gelb/Grün */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(216, 255, 62, 0.4); /* Neon-Glow */
  }

  /* Transformation des Burger-Icons zum 'X' bei geöffnetem Menü */
  .burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Navigations-Overlay */
  .site-header .navigation {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important; /* Standardmäßig aus dem Bild geschoben */
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.95) !important; /* Dunkler Hintergrund */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-left: 1px solid rgba(216, 255, 62, 0.2) !important; /* Subtiler Neon-Rand */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    padding: 80px 25px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
  }

  /* Wenn das Menü aktiv/geöffnet ist */
  .site-header .navigation.active {
    right: 0 !important;
  }

  /* Links im Mobile-Menü */
  .site-header .navigation a {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    width: 100%;
    padding: 8px 0;
    transition: color 0.2s ease;
  }

  .site-header .navigation a:hover,
  .site-header .navigation a:active {
    color: var(--accent, #d8ff3e) !important;
    text-shadow: 0 0 10px rgba(216, 255, 62, 0.6) !important;
  }

  /* Mobile Dropdown Anpassung */
  .dropdown-mega-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    padding: 10px !important;
    margin-top: 10px;
  }
}
/* =================================================== */
/* MOBILE POPUP ANPASSUNG (ÜBERSCHRIFT UNTER KREUZ)    */
/* =================================================== */

@media (max-width: 640px) {
  .trade-modal {
    padding: 20px 16px;
    width: calc(100% - 24px);
    border-radius: var(--radius-medium);
  }

  /* Kreuz oben links positionieren */
  .modal-close {
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  /* Kapazitäts-Badge oben rechts positionieren */
  .modal-capacity-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    margin: 0;
    padding: 6px 12px;
  }

  .modal-capacity-badge .count {
    font-size: 1.1rem;
  }

  .modal-capacity-badge .label {
    font-size: 0.65rem;
  }

  /* Inhaltsbereich weit genug nach unten schieben */
  .modal-body {
    margin-top: 60px; /* Erzeugt genug Abstand unterhalb von Kreuz & Badge */
  }

  /* Überschrift nutzt jetzt die volle Breite unter dem Kreuz */
  .modal-body h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 16px;
    padding-right: 0; /* Volle Breite verfügbar */
    word-break: break-word; /* Verhindert Überlappungen bei langen Wörtern */
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-box {
    padding: 12px 16px;
  }
}