/* ===========================
   Darkmode-First Baseline
   =========================== */
:root {
  --bg-gradient: linear-gradient(
    118deg,
    #7C0000 0%,
    #000000 31.51%,
    #000000 60.86%,
    #282828 62.56%,
    #040018 64.54%,
    #190089 96.38%
  );
  --accent: #BB00FF;
  --accent-hover: rgba(187, 0, 255, 0.2);
  --sidebar-bg: rgba(0, 0, 0, 0.7);
  --text: #e0e0e0;
  --text-light: #ffffff;
}

/* ===================================
   Grund-Layout & Sticky-Footer
   =================================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-gradient) no-repeat fixed;
  background-size: cover;
  color: var(--text);
  font-family: system-ui, sans-serif;
  overflow: auto;
}

/* Basis-Footer (sichtbar auf allen Seiten) */
footer {
  margin-top: auto;
  padding: 12px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  font-size: 0.85em;
  box-sizing: border-box;
}

/* Links in Content und Footer */
.content a:link,
.content a:visited,
footer a:link,
footer a:visited {
  color: var(--text-light);
  text-decoration: underline;
}
.content a:hover,
footer a:hover {
  color: var(--accent);
}
.glass-input {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin: 0.25rem 0 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--text-light);
  box-sizing: border-box;
}
.glass-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}
.glass-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Einheitliche Link-Farben (visited = link) */
a:link,
a:visited {
  color: var(--text-light);
}
a:hover,
a:active {
  color: var(--accent);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  html, body {
    flex-direction: column;
  }
  .content {
    padding: 12px;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  ul, ol {
    padding-left: 1.25rem;
    overflow-wrap: anywhere;
  }
  .project-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .project-item {
    padding: 0.75rem;
  }
  .glass-button {
    padding: 0.5rem;
  }
}