/* ==========================================================================
   SUBS.CSS - PORTAL LOOK MIT GEWERKE-FACHBILDERN
   ========================================================================== */
:root {
  --background: #090a0d;
  --background-light: #12141c;
  --surface: #10121a;
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(0, 240, 255, 0.4);
  --text: #f0f3f6;
  --text-muted: #a0a7b5;
  --dark-text: #050b10;
  
  --accent: #00f0ff;
  --accent-soft: rgba(0, 240, 255, 0.12);
  
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 26px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: 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: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px; content: ""; pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

/* ZURÜCK BUTTON */
.back-to-home-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 35px; margin-bottom: 25px;
  padding: 8px 18px; background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; transition: all 0.25s ease;
}

.back-to-home-link:hover {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}

/* HEADER */
.section { padding-bottom: 80px; }

.section-heading {
  width: min(700px, 100%);
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.badge {
  display: inline-block; padding: 4px 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3); border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}

/* GRID */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.trade-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.trade-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* BILDER-HINTERGRUND & DARK OVERLAY FOR TEXT READABILITY */
.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: brightness(0.45) contrast(1.1);
}

.trade-card:hover .card-bg {
  transform: scale(1.06);
  filter: brightness(0.55) contrast(1.15);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 10, 13, 0.45) 0%,
    rgba(9, 10, 13, 0.85) 65%,
    rgba(9, 10, 13, 0.98) 100%
  );
  z-index: 1;
}

.card-top, .card-middle, .card-bottom {
  position: relative;
  z-index: 2;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator.available { color: var(--accent); }
.status-indicator.available::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background-color: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.status-indicator.limited { color: #ffb703; }
.status-indicator.limited::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background-color: #ffb703; box-shadow: 0 0 8px #ffb703;
}

.card-middle h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 4px;
}

.card-middle p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.capacity-info { display: flex; align-items: baseline; gap: 6px; }
.capacity-info .count { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.capacity-info .label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.action-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s ease;
}

.trade-card:hover .action-link { color: var(--accent); }

/* MODAL POPUP */
.modal-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(9, 10, 13, 0.82); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.trade-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: min(650px, calc(100% - 32px));
  max-height: 88vh; overflow-y: auto; z-index: 999;
  background: var(--background-light); border: 1px solid var(--border-hover);
  border-radius: var(--radius-large); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}

.trade-modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent); color: var(--dark-text); }

.modal-body h3 { font-size: 1.6rem; margin-top: 10px; margin-bottom: 20px; font-weight: 800; }
.detail-list { list-style: none; margin-bottom: 24px; }
.detail-list li { position: relative; padding-left: 20px; margin-bottom: 10px; color: #d1d5db; }
.detail-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.detail-box { background: var(--surface); border: 1px solid var(--border); padding: 14px 18px; border-radius: var(--radius-small); }
.detail-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.detail-val { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.trade-modal .cta-button {
  display: flex;                  /* Stellt sicher, dass er sich über die volle Breite dehnt */
  width: 100%;                    /* Geht von ganz links bis ganz rechts */
  justify-content: center;        /* Zentriert den Text und den Pfeil */
  align-items: center;
  box-sizing: border-box;         /* Verhindert Overflow durch Padding */
  
  margin-top: 24px;               /* Abstand nach oben zu den Boxen */
  padding: 16px 24px;             /* Angenehmer Klick-Bereich */
  
  background-color: #00f0ff;       /* Dein Cyan-Farbton */
  color: #050b10;                 /* Dunkler Text für guten Kontrast */
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.trade-modal .cta-button:hover {
  background-color: #70f7ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .trades-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
.btn-sub-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--accent, #00f0ff);
  color: #050b10;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 10px;
  border: 1px solid var(--accent, #00f0ff);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-sub-contact:hover {
  background-color: #70f7ff;
  border-color: #70f7ff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-sub-contact:active {
  transform: translateY(0);
}
/* ZWINGT DEN BUTTON AUF DIE VOLLE BREITE DES MODALS */
.trade-modal a.cta-button,
.trade-modal .cta-button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  
  margin-top: 24px;
  padding: 16px 20px;
  
  background-color: #00f0ff;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}

.trade-modal a.cta-button:hover,
.trade-modal .cta-button:hover {
  background-color: #70f7ff;
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
}