@import url('fonts/fonts.css');

:root {
  --g:    #6ab52e;
  --gd:   #4d9018;
  --gdk:  #1e3d08;
  --gp2:  #c4e6a4;
  --o:    #f0a030;
  --od:   #b87820;
  --gold: #c8a84a;
  --v:    #a070e8;
  --vh:   #c8a0ff;
  --tx:   #e4eeda;
  --txs:  #6a8860;
  --txd:  #5e7a50;
  --bdr:  #243820;
  --bhi:  #526844;
  --red:  #cc3c3c;
  --pan:  rgba(9,13,8,.97);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--tx);
  background: #050a03;
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bdr); border-radius: 2px; }

/* ── Canvas ─────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── App Shell ──────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
#header {
  flex-shrink: 0;
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(5,10,3,.98) 0%, rgba(5,10,3,.82) 100%);
  border-bottom: 1px solid var(--bdr);
  backdrop-filter: blur(24px);
}

#main-logo {
  height: clamp(48px, 8vw, 90px);
  width: auto;
  user-select: none;
  transition: filter .3s;
}

#main-logo:hover text {
  filter: brightness(1.25);
}

/* ── Content Area ───────────────────────────────────── */
#content-area {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--bdr);
}

.col:last-child { border-bottom: none; }

.sec-label {
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--txs);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ── Software Cards ─────────────────────────────────── */
.cards-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  background: rgba(9,18,7,.78);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 16px 20px;
  width: 280px;
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(106,181,46,.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--bhi);
  box-shadow: 0 10px 50px rgba(0,0,0,.65), 0 0 24px rgba(106,181,46,.06);
  transform: translateY(-3px);
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.slive {
  background: var(--g);
  box-shadow: 0 0 6px rgba(106,181,46,.5);
  animation: dotPulse 2s ease-in-out infinite;
}
.ssoon {
  background: var(--o);
  box-shadow: 0 0 6px rgba(240,160,48,.4);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.pc-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--tx);
  flex: 1;
}

.pc-badge {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(106,181,46,.13);
  color: var(--g);
  border: 1px solid rgba(106,181,46,.24);
}

.pc-badge-o {
  background: rgba(240,160,48,.13);
  color: var(--o);
  border-color: rgba(240,160,48,.24);
}

.pc-desc {
  font-size: 12px;
  color: var(--txs);
  line-height: 1.7;
}

.pc-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pc-tag {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(36,56,32,.5);
  color: var(--txd);
  border: 1px solid var(--bdr);
}

/* ── Personen ───────────────────────────────────────── */
.person-grid {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.person-card {
  background: rgba(9,18,7,.78);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 24px 18px;
  width: 190px;
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(106,181,46,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.person-card:hover {
  border-color: var(--bhi);
  transform: translateY(-3px);
  box-shadow: 0 10px 50px rgba(0,0,0,.65), 0 0 20px rgba(106,181,46,.05);
}

.avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bdr);
  box-shadow: 0 0 20px rgba(0,0,0,.5);
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}

.person-card:hover .avatar-wrap {
  border-color: var(--gd);
  box-shadow: 0 0 24px rgba(106,181,46,.18);
}

.avatar-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.person-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);
  text-align: center;
}

.person-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.role-tag {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(36,56,32,.5);
  color: var(--txd);
  border: 1px solid var(--bdr);
}

.role-chef {
  background: rgba(106,181,46,.12);
  color: var(--g);
  border-color: rgba(106,181,46,.28);
}

.role-praktikant {
  background: rgba(240,160,48,.13);
  color: var(--o);
  border-color: rgba(240,160,48,.28);
}

.person-contact {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--txd);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .15s;
  max-width: 100%;
  overflow-wrap: break-word;
  text-align: center;
}

.person-contact:hover { color: var(--g); }

/* ── Board ──────────────────────────────────────────── */
.board-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.board-note {
  background: linear-gradient(135deg, rgba(77,144,24,.25) 0%, rgba(50,100,15,.25) 100%);
  border: 1px solid rgba(106,181,46,.35);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(106,181,46,.25), 0 4px 12px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.board-note::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(106,181,46,.03) 0px,
      rgba(106,181,46,.03) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events: none;
}

.board-note-meta {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--txd);
  letter-spacing: .08em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.board-note-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--g);
  margin-bottom: 4px;
  letter-spacing: .05em;
  position: relative;
  z-index: 1;
}

.board-note-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--tx);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.board-note-latest {
  border-color: rgba(255,140,0,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,140,0,.2),
    0 0 14px rgba(255,120,0,.45),
    0 4px 18px rgba(255,100,0,.25);
}

/* ── Animation Strip ─────────────────────────────────── */
#anim-strip {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--bdr);
  background: rgba(5,10,3,.92);
  backdrop-filter: blur(16px);
}

.anim-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--g);
  flex-shrink: 0;
  animation: boxPulse 1.8s ease-in-out infinite;
}

.anim-box:nth-child(2) { animation-delay: .2s; }
.anim-box:nth-child(3) { animation-delay: .4s; }
.anim-box:nth-child(5) { animation-delay: .4s; }
.anim-box:nth-child(6) { animation-delay: .2s; }

@keyframes boxPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}

#terminal-msg {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--g);
  letter-spacing: .02em;
  white-space: nowrap;
  user-select: none;
}

/* ── Footer ─────────────────────────────────────────── */
#footer {
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(5,10,3,.98);
  border-top: 1px solid var(--bdr);
}

.footer-copy {
  font-size: 10px;
  color: var(--txd);
  letter-spacing: .05em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--txd);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .04em;
  padding: 0;
  text-decoration: none;
  transition: color .15s;
}

.footer-btn:hover { color: var(--txs); }

.footer-sep {
  color: var(--bdr);
  font-size: 12px;
  user-select: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .col {
    padding: 18px 14px;
    justify-content: flex-start;
  }

  #header { padding: 14px 16px 12px; }
}

@media (max-width: 560px) {
  html, body { font-size: 12px; }

  #header { padding: 12px 12px 10px; }

  .col { padding: 16px 12px; gap: 12px; }

  .sec-label { font-size: 12px; margin-bottom: 4px; }

  .cards-grid { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }

  .project-card { width: 100%; padding: 14px 16px; }

  .pc-name { font-size: 15px; }

  .person-grid { gap: 10px; width: 100%; }

  .person-card {
    width: calc(33.333% - 8px);
    min-width: 0;
    padding: 14px 8px;
    gap: 8px;
    border-radius: 12px;
  }

  .avatar-wrap { width: 56px; height: 56px; border-width: 1.5px; }

  .person-name { font-size: 12px; line-height: 1.25; }

  .role-tag { font-size: 8px; padding: 2px 6px; letter-spacing: .08em; }

  .board-container { max-width: 100%; }

  .board-note { padding: 10px 12px; }

  .board-note-title { font-size: 12px; }

  .board-note-text { font-size: 10.5px; }

  #anim-strip {
    height: auto;
    min-height: 44px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .anim-box { width: 8px; height: 8px; }

  #terminal-msg {
    font-size: 11px;
    white-space: normal;
    text-align: center;
    flex: 1 1 100%;
    order: 10;
  }

  #footer {
    height: auto;
    min-height: 36px;
    padding: 8px 12px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
  }

  .footer-copy { font-size: 9px; }

  .footer-btn { font-size: 9px; }
}

@media (max-width: 380px) {
  .person-card { padding: 12px 6px; }

  .avatar-wrap { width: 48px; height: 48px; }

  .person-name { font-size: 11px; }

  .role-tag { font-size: 7.5px; padding: 1px 5px; }

  .pc-name { font-size: 14px; }

  .project-card { padding: 12px 14px; }
}
