/* ===== Bewerbung / Application Requirements Page ===== */

.bewerbung-page {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 140px;
  box-sizing: border-box;
}

/* --- Page Header --- */
.bewerbung-header {
  text-align: center;
  margin-bottom: 60px;
}

.bewerbung-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bewerbung-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Topic Section --- */
.bewerbung-topic {
  margin-bottom: 50px;
  width: 100%;
  box-sizing: border-box;
}

/* --- Universal Requirements Box --- */
.bewerbung-universal {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(229,231,235,0.15);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.bewerbung-universal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #3B82F6, #e5e7eb);
  border-radius: 20px 20px 0 0;
}

.universal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.universal-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e5e7eb, #94a3b8);
  box-shadow: 0 6px 18px rgba(229,231,235,0.15);
}

.universal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.universal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.universal-subtitle strong {
  color: #e5e7eb;
}

.universal-list {
  margin: 0;
  padding: 0 0 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 2.1;
}

.universal-list li {
  padding-left: 4px;
}

.universal-list li::marker {
  color: rgba(229,231,235,0.4);
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(229,231,235,0.1);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.topic-header::-webkit-details-marker {
  display: none;
}

.topic-header::marker {
  display: none;
  content: "";
}

.topic-header > div:not(.topic-icon) {
  flex: 1;
  min-width: 0;
}

.topic-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  flex-grow: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  margin-left: auto;
}

.collapsible-topic[open] > .topic-header .topic-chevron {
  transform: rotate(180deg);
}

.collapsible-topic:not([open]) > .topic-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.topic-content {
  overflow: hidden;
}

.topic-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  align-self: center;
}

.topic-icon i {
  width: 1em;
  height: 1em;
  line-height: 1;
  flex-shrink: 0;
  flex-grow: 0;
}

.topic-icon.netting {
  background: linear-gradient(135deg, #e5e7eb, #9333EA);
  box-shadow: 0 6px 18px rgba(147,51,234,0.25);
}

.topic-icon.craft {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 6px 18px rgba(16,185,129,0.25);
}

.topic-icon.space {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 6px 18px rgba(59,130,246,0.25);
}

.topic-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.topic-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* --- Accordion Items --- */
.bewerbung-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bewerbung-item {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(63,63,70,0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.bewerbung-item:hover {
  border-color: rgba(229,231,235,0.2);
}

.bewerbung-item[open] {
  border-color: rgba(229,231,235,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 20px rgba(229,231,235,0.03);
}

.bewerbung-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
  min-height: 64px;
  box-sizing: border-box;
  width: 100%;
}

.bewerbung-item summary::-webkit-details-marker {
  display: none;
}

.bewerbung-item summary::marker {
  display: none;
  content: "";
}

.bewerbung-item summary:hover {
  background: rgba(229,231,235,0.03);
}

.bewerbung-item summary .role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  background: rgba(229,231,235,0.08);
  border: 1px solid rgba(229,231,235,0.1);
}

.bewerbung-item summary .role-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bewerbung-item summary .chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.bewerbung-item[open] summary .chevron {
  transform: rotate(180deg);
}

.bewerbung-item .role-content {
  padding: 0 22px 22px;
  border-top: 1px solid rgba(63,63,70,0.2);
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bewerbung-item .role-content-inner {
  padding: 0 0 22px;
}

.bewerbung-item .role-content ul {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bewerbung-item .role-content ul li {
  padding-left: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bewerbung-item .role-content p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Role icon color variants --- */
.role-icon.manager    { background: linear-gradient(135deg, #9333EA, #7E22CE); border-color: rgba(147,51,234,0.3); }
.role-icon.admin      { background: linear-gradient(135deg, #EF4444, #DC2626); border-color: rgba(239,68,68,0.3); }
.role-icon.developer  { background: linear-gradient(135deg, #3B82F6, #2563EB); border-color: rgba(59,130,246,0.3); }
.role-icon.builder    { background: linear-gradient(135deg, #F59E0B, #D97706); border-color: rgba(245,158,11,0.3); }
.role-icon.moderator  { background: linear-gradient(135deg, #10B981, #059669); border-color: rgba(16,185,129,0.3); }
.role-icon.helper     { background: linear-gradient(135deg, #06B6D4, #0891B2); border-color: rgba(6,182,212,0.3); }
.role-icon.media      { background: linear-gradient(135deg, #EC4899, #DB2777); border-color: rgba(236,72,153,0.3); }
.role-icon.supporter  { background: linear-gradient(135deg, #8B5CF6, #7C3AED); border-color: rgba(139,92,246,0.3); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .bewerbung-page {
    padding: 30px 12px 100px;
  }

  .bewerbung-header {
    margin-bottom: 40px;
  }

  .bewerbung-header h2 {
    font-size: 1.5rem;
  }

  .bewerbung-header p {
    font-size: 0.92rem;
  }

  .bewerbung-universal {
    padding: 20px 16px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  .universal-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .universal-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .universal-title {
    font-size: 1.1rem;
  }

  .universal-subtitle {
    font-size: 0.82rem;
  }

  .universal-list {
    font-size: 0.9rem;
    padding-left: 18px;
    line-height: 1.9;
  }

  .topic-header {
    gap: 10px;
  }

  .topic-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .topic-title {
    font-size: 1.1rem;
  }

  .topic-subtitle {
    font-size: 0.8rem;
  }

  .bewerbung-item summary {
    padding: 16px 14px;
    gap: 10px;
    min-height: 56px;
  }

  .bewerbung-item summary .role-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .bewerbung-item summary .role-name {
    font-size: 0.95rem;
  }

  .bewerbung-item .role-content {
    padding: 0 14px 18px;
  }

  .bewerbung-item .role-content ul {
    font-size: 0.88rem;
    line-height: 1.85;
    padding-left: 16px;
  }

  .bewerbung-cta {
    padding: 28px 16px;
    border-radius: 16px;
  }

  .bewerbung-cta h3 {
    font-size: 1.25rem;
  }

  .bewerbung-cta p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .bewerbung-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .bewerbung-page {
    padding: 20px 10px 80px;
  }

  .bewerbung-header h2 {
    font-size: 1.3rem;
  }

  .bewerbung-universal {
    padding: 16px 12px;
  }

  .universal-title {
    font-size: 1rem;
  }

  .topic-title {
    font-size: 1rem;
  }

  .bewerbung-item summary {
    padding: 14px 12px;
    min-height: 50px;
  }

  .bewerbung-item summary .role-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 7px;
  }

  .bewerbung-item summary .role-name {
    font-size: 0.9rem;
  }

  .bewerbung-item .role-content {
    padding: 0 12px 18px;
  }

  .bewerbung-item .role-content ul {
    font-size: 0.85rem;
    padding-left: 14px;
  }

  .cta-btn {
    max-width: 100%;
    font-size: 0.88rem;
  }
}

/* ===== Bewerbung Status Badges ===== */
.role-status-badge {
  margin-left: auto;
  margin-right: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  flex-shrink: 0;
}
.role-status-badge.status-open {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.role-status-badge.status-closed {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.bewerbung-item.role-closed {
  opacity: 0.55;
}

/* --- CTA Section (Bottom) --- */
.bewerbung-cta {
  text-align: center;
  margin-top: 20px;
  padding: 40px 24px;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(229,231,235,0.12);
  border-radius: 20px;
}

.bewerbung-cta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.bewerbung-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 28px;
}

.bewerbung-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.cta-btn.netting {
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(147,51,234,0.08));
  border-color: rgba(147,51,234,0.35);
}
.cta-btn.netting:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(147,51,234,0.15));
  border-color: rgba(147,51,234,0.55);
}

.cta-btn.craft {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.08));
  border-color: rgba(16,185,129,0.35);
}
.cta-btn.craft:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(16,185,129,0.15));
  border-color: rgba(16,185,129,0.55);
}

.cta-btn.space {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.08));
  border-color: rgba(59,130,246,0.35);
}
.cta-btn.space:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(59,130,246,0.15));
  border-color: rgba(59,130,246,0.55);
}
