/* ===========================
   AnchorCore – projekte.css
   =========================== */

/* ---- Page Hero ---- */
.projekte-hero {
  position: relative;
  padding: calc(68px + 72px) 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.projekte-hero .hero-glow {
  width: 500px;
  height: 400px;
  top: 0;
}
.projekte-hero-content {
  position: relative;
  z-index: 1;
}
.projekte-hero-content .section-label { margin-bottom: 12px; }
.projekte-hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.projekte-hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ---- Active nav ---- */
.nav-active {
  color: var(--gold) !important;
}

/* ---- Profile Grid ---- */
.profil-section {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,.04));
  pointer-events: none;
}
.profile-card:hover {
  border-color: rgba(201,168,76,.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,.5);
}

.profile-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-icon svg { width: 28px; height: 28px; }

.discord-icon  { background: rgba(88,101,242,.15);  color: #5865F2; border: 1px solid rgba(88,101,242,.2); }
.github-icon   { background: rgba(240,246,252,.06);  color: #f0f0f0; border: 1px solid rgba(255,255,255,.1); }
.indeed-icon   { background: rgba(0,121,203,.15);    color: #0079CB; border: 1px solid rgba(0,121,203,.2); }

.profile-card:hover .discord-icon { background: rgba(88,101,242,.25); }
.profile-card:hover .github-icon  { background: rgba(240,246,252,.12); }
.profile-card:hover .indeed-icon  { background: rgba(0,121,203,.25); }

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.profile-platform {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-handle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-action {
  font-size: .8rem;
  color: var(--gold);
  margin-top: 2px;
  transition: letter-spacing var(--transition);
}
.profile-card:hover .profile-action { letter-spacing: .5px; }

/* ---- Projects Section ---- */
.projekte-grid-section { background: var(--bg); }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-tab {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-h);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-tab:hover {
  border-color: rgba(201,168,76,.3);
  color: var(--text);
}
.filter-tab.active {
  background: var(--gold-bg);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* Projects Grid */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.projekt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.projekt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.projekt-card:hover {
  border-color: rgba(201,168,76,.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.projekt-card:hover::before { opacity: 1; }

/* "More" placeholder card */
.projekt-card-more {
  border-style: dashed;
  border-color: var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.projekt-card-more:hover {
  border-color: rgba(201,168,76,.3);
  border-style: solid;
}
.mehr-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mehr-icon {
  font-size: 2rem;
  color: var(--text-sub);
  line-height: 1;
  width: 48px;
  height: 48px;
  border: 1px dashed var(--border-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.mehr-content h3 { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.mehr-content p { font-size: .85rem; color: var(--text-sub); line-height: 1.6; }

/* Card internals */
.projekt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.projekt-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-bg);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.projekt-icon svg { width: 20px; height: 20px; }

.projekt-status {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-done { background: rgba(34,197,94,.1);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.status-wip  { background: rgba(251,191,36,.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.status-idea { background: rgba(139,92,246,.1);  color: #a78bfa; border: 1px solid rgba(139,92,246,.2); }

.projekt-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.projekt-card p  { font-size: .87rem; color: var(--text-muted); line-height: 1.7; flex-grow: 1; }

.projekt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 4px;
  color: var(--gold-dim);
  letter-spacing: .3px;
}

.projekt-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.projekt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border-h);
  border-radius: 6px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.projekt-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
}
.projekt-link-live {
  color: var(--gold-dim);
  border-color: rgba(201,168,76,.2);
}
.projekt-link-live:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-bg);
}

/* Hidden via filter */
.projekt-card.hidden {
  display: none;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .profile-grid  { grid-template-columns: 1fr; }
  .projekte-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .projekte-grid { grid-template-columns: 1fr; }
  .profile-card  { padding: 20px 18px; }
  .filter-tabs   { justify-content: flex-start; }
}
