/* ==========================================================================
   SUBS.CSS - PORTAL LOOK MIT GEWERKE-FACHBILDERN
   ========================================================================== */
:root {
  --background: #0b0c0e;
  --background-light: #111317;
  --surface: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(216, 255, 62, 0.4);
  --text: #f5f6f7;
  --text-muted: #a5a9b0;
  --dark-text: #101114;
  --accent: #d8ff3e;
  --accent-soft: rgba(216, 255, 62, 0.13);
  --accent-hover: #e3ff76;
  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 34px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  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 { 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;
  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: 100%;
  margin-bottom: 40px;
}

.section-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-heading h1 span {
  display: block;
}

.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(216, 255, 62, 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(216, 255, 62, 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 .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); }

/* 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);
  color: var(--dark-text);
  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);
  box-shadow: 0 4px 14px rgba(216, 255, 62, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-sub-contact:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 255, 62, 0.4);
}

.btn-sub-contact:active {
  transform: translateY(0);
}

.site-brand-bar {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 12, 14, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.site-brand-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--container));
  min-height: 72px;
  align-items: center;
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 255, 62, 0.4);
  border-radius: 12px;
  background: var(--accent);
  color: var(--dark-text);
  font-size: 1.15rem;
  font-weight: 900;
}

.site-brand-name {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.site-brand-name small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subs-main {
  padding-top: 105px;
}

.subs-main .back-to-home-link {
  min-height: 44px;
  margin: 0 0 24px;
  padding: 0 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
}

.subs-main .back-to-home-link:hover,
.subs-main .back-to-home-link:focus-visible {
  background: var(--accent);
  color: var(--dark-text);
}

.subs-main .section {
  padding-top: 0;
}

.subs-main .section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.subs-main .section-heading p {
  max-width: 700px;
  font-size: 1.05rem;
}

.modal-overlay {
  z-index: 1001;
}

.trade-modal {
  z-index: 1002;
}

@media (max-width: 768px) {
  .site-brand-inner {
    width: calc(100% - 36px);
  }

  .site-brand {
    gap: 8px;
  }

  .site-brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-brand-name {
    font-size: 0.82rem;
  }

  .subs-main {
    padding-top: 96px;
  }
}