/* Schriftarten werden ueber assets/css/fonts.css self-hosted eingebunden (siehe <link> in jeder HTML-Datei) */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #050b14;
  font-family: 'Orbitron', sans-serif;
  color: #e0f7fa;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(5, 11, 20, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 0.5px solid #123143;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topbar-brand img { height: 28px; width: auto; }
.topbar-brand span { color: #e0f7fa; font-size: 14px; letter-spacing: 1px; }
.topbar-brand span .accent { color: #20bbe6; }

.burger {
  cursor: pointer;
  padding: 10px;
}
.burger div {
  width: 26px;
  height: 2px;
  background: #e0f7fa;
  margin-bottom: 7px;
}
.burger div:last-child { margin-bottom: 0; }

.overlay {
  position: fixed;
  inset: 0;
  background: #050b14;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}
.overlay a {
  color: #e0f7fa;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 500;
}
.overlay a:hover { color: #20bbe6; }
.overlay .close-btn {
  position: absolute;
  top: 32px;
  right: 40px;
  color: #e0f7fa;
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Page header ---------- */
.page-header {
  padding: 70px 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-label {
  color: #53bec6;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.page-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  color: #f2fbfd;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.page-title .accent { color: #20bbe6; }
.page-intro {
  color: #b7ccd3;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 640px;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-tag {
  border: 0.5px solid #123143;
  color: #9fb4bc;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  background: #0a1620;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-tag:hover { border-color: #20bbe6; color: #e0f7fa; }
.filter-tag.active {
  border-color: #20bbe6;
  color: #20bbe6;
}

/* ---------- Card list ---------- */
.card-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: #0a1620;
  border: 0.5px solid #123143;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: #20bbe6; }
.card.foundational {
  border-color: #20bbe6;
  background: #0a1a24;
}
.card-badge {
  position: absolute;
  top: -1px;
  right: 18px;
  background: #20bbe6;
  color: #050b14;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}
.card-date {
  color: #5b7a8a;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.card-title {
  color: #f2fbfd;
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.4;
}
.card-desc {
  color: #b7ccd3;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  flex-grow: 1;
  margin: 0 0 16px;
}
.card-desc code {
  background: #0e2130;
  border: 0.5px solid #123143;
  color: #53bec6;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 4px;
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.card-tag {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #53bec6;
  border: 0.5px solid #1c4a5e;
  border-radius: 4px;
  padding: 3px 8px;
}
.card-link {
  align-self: flex-start;
  color: #20bbe6;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 0.5px solid #20bbe6;
  padding-bottom: 2px;
}
.card-link:hover { color: #f2fbfd; border-color: #f2fbfd; }

.card-link-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.card-link-disabled {
  color: #3d5560;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 0.5px solid #1c3846;
  padding-bottom: 2px;
}

/* ---------- Tool description modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 16, 0.8);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 30px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  position: relative;
  background: #0a1620;
  border: 0.5px solid #20bbe6;
  border-radius: 12px;
  padding: 34px 36px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #5b7a8a;
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover { color: #e0f7fa; }
.modal-label {
  color: #53bec6;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.modal-title {
  color: #f2fbfd;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 18px;
}
.modal-why-label {
  color: #53bec6;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 22px 0 10px;
}
.modal-text {
  color: #b7ccd3;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
}
.modal-official {
  display: inline-flex;
  margin-top: 26px;
  color: #20bbe6;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  border: 0.5px solid #20bbe6;
  border-radius: 6px;
  padding: 10px 18px;
}
.modal-official:hover { background: #20bbe6; color: #050b14; }

/* ---------- Legal modal (Impressum/Datenschutz) ---------- */
.legal-box {
  max-width: 620px;
  text-align: left;
}
.legal-section-title {
  color: #53bec6;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  margin: 22px 0 8px;
}
.legal-section-title:first-of-type { margin-top: 0; }
.legal-text {
  color: #b7ccd3;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0 0 4px;
}

/* ---------- Directory tree (Downloads) ---------- */
.tree-wrap {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 40px;
}
.tree-root {
  background: #0a1620;
  border: 0.5px solid #123143;
  border-radius: 10px;
  padding: 20px 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
.tree-node { user-select: none; }
.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: default;
}
.tree-row.folder { cursor: pointer; }
.tree-row.folder:hover { background: #0e2130; }
.tree-icon {
  width: 14px;
  flex-shrink: 0;
  color: #20bbe6;
}
.tree-name-folder { color: #e0f7fa; }
.tree-name-file { color: #9fb4bc; }
.tree-name-file:hover { color: #20bbe6; }
.tree-meta {
  margin-left: auto;
  color: #5b7a8a;
  font-size: 11px;
}
.tree-children {
  margin-left: 22px;
  border-left: 0.5px solid #123143;
  padding-left: 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.tree-children.open { max-height: 2000px; }
.tree-caret {
  display: inline-block;
  transition: transform 0.2s ease;
  color: #5b7a8a;
  font-size: 10px;
  width: 10px;
}
.tree-row.open .tree-caret { transform: rotate(90deg); }

/* ---------- Footer (shared) ---------- */
.footer {
  width: 100%;
  background: #030710;
  border-top: 0.5px solid #123143;
  box-sizing: border-box;
  padding: 50px 40px 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand span { color: #e0f7fa; font-size: 14px; letter-spacing: 1px; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { color: #53bec6; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 4px; }
.footer-col a { color: #9fb4bc; font-size: 13px; text-decoration: none; letter-spacing: 0.3px; }
.footer-col a:hover { color: #20bbe6; }
.footer-col a.disabled { color: #3d5560; cursor: default; pointer-events: none; }
.footer-col a.disabled .tag {
  font-size: 9px; color: #3d5560; border: 0.5px solid #1c3846;
  border-radius: 4px; padding: 1px 6px; margin-left: 8px; letter-spacing: 0.5px;
}
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid #123143;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span { color: #5b7a8a; font-size: 12px; letter-spacing: 0.3px; }

/* ---------- Tutorial article template (reused by every tutorials/*.html page) ---------- */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px 100px;
}
.article-back {
  color: #53bec6;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.article-back:hover { color: #20bbe6; }
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #7c93a0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.lead {
  color: #d4e5ea;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.box {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
.box-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.box-prereq { background: #0a1620; border: 0.5px solid #123143; color: #b7ccd3; }
.box-prereq .box-title { color: #53bec6; }
.box-warning { background: #1a1408; border: 0.5px solid #4a3a10; color: #e8d9b5; }
.box-warning .box-title { color: #e6b93f; }
.box-note { background: #0a1620; border: 0.5px solid #123143; color: #b7ccd3; }
.box-note .box-title { color: #20bbe6; }
.box ul { margin: 6px 0 0; padding-left: 20px; }
.box li { margin-bottom: 4px; }

.step { margin: 44px 0 22px; }
.step-num {
  color: #20bbe6;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.step h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #f2fbfd;
  margin: 0 0 14px;
}
.step p, .step ul {
  color: #c3dde3;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0 0 14px;
}
.step p code, .step li code, .box code {
  background: #0e2130;
  border: 0.5px solid #123143;
  color: #53bec6;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
}

pre {
  position: relative;
  background: #0a1620;
  border: 0.5px solid #123143;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
}
pre code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d4e5ea;
  background: none;
  border: none;
  padding: 0;
}
.comment { color: #5b7a8a; }
.cmd { color: #20bbe6; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0e2130;
  border: 0.5px solid #123143;
  color: #7c93a0;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { border-color: #20bbe6; color: #e0f7fa; }
.copy-btn.copied { border-color: #4bbf7a; color: #4bbf7a; }

.conclusion {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 0.5px solid #123143;
}
.conclusion h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #f2fbfd;
  margin: 0 0 12px;
}
.conclusion p {
  color: #c3dde3;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.85;
}
