/* ═══════════════════════════════════════════════════
   MMNet Abschlussarbeiten — Main Stylesheet
   Design: Technical Academic · Monospace + Clean Sans
   ═══════════════════════════════════════════════════ */

:root {
  --bg:          #0d0f14;
  --bg-2:        #141720;
  --bg-3:        #1c2030;
  --border:      #252b3b;
  --border-2:    #2e3650;
  --text:        #d4daf0;
  --text-dim:    #7a8aac;
  --text-dimmer: #4a5570;
  --accent:      #4e7fff;
  --accent-2:    #7eb8ff;
  --accent-glow: rgba(78,127,255,0.15);
  --red:         #ff4e6a;
  --green:       #3de09a;
  --yellow:      #f5c842;
  --font-mono:   'IBM Plex Mono', monospace;
  --font-sans:   'IBM Plex Sans', system-ui, sans-serif;
  --font-disp:   'Space Grotesk', var(--font-sans);
  --radius:      4px;
  --radius-lg:   8px;
  --max-w:       1200px;
  --header-h:    64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  text-decoration: none;
}
.brand-link:hover { color: var(--text); }

.brand-tag {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.brand-meta {
  display: none;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  gap: 6px;
  align-items: center;
}
@media (min-width: 900px) {
  .brand-meta { display: flex; }
}
.dot { color: var(--text-dimmer); }

/* Nav */
.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  letter-spacing: .03em;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--text);
  background: var(--bg-3);
}
.nav-item.active .nav-link { color: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-2);
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.header-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  opacity: 0.4;
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .nav-list.open { display: flex; }
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  z-index: 2;
}

.hero-eyebrow { margin-bottom: 20px; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  background: var(--accent-glow);
  border: 1px solid rgba(78,127,255,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--accent-2); }

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Decorative grid */
.hero-grid-deco {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .15s, color .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #3a6de0;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  background: var(--bg-2);
  color: #fff;
  border-color: var(--accent);
}

/* ─── CARDS SECTION ──────────────────────────────── */
.cards-section, .downloads-section, .contact-strip {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, background .2s, transform .15s;
}
.card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-2px);
  color: var(--text);
}
.card-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(78,127,255,0.2);
  border-radius: var(--radius);
  color: var(--accent-2);
  margin-bottom: 4px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.card-desc { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ─── DOWNLOADS ──────────────────────────────────── */
.download-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color .2s;
}
.download-item:hover { border-color: var(--border-2); }

.dl-icon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-2);
  background: var(--accent-glow);
  border: 1px solid rgba(78,127,255,0.2);
  border-radius: var(--radius);
  padding: 4px 6px;
  letter-spacing: .08em;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.dl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl-info strong { color: var(--text); font-size: 15px; }
.dl-info span { font-size: 13px; color: var(--text-dim); }

.dl-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  border: 1px solid rgba(78,127,255,0.3);
  padding: 6px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dl-btn:hover { background: var(--accent-glow); color: #fff; }

/* ─── CONTACT STRIP ──────────────────────────────── */
.contact-strip { padding: 40px 24px; }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.contact-label { font-size: 12px; font-family: var(--font-mono); color: var(--text-dimmer); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; }
.contact-name { font-size: 20px; font-weight: 600; color: #fff; }

/* ─── PAGE LAYOUTS ───────────────────────────────── */
.main { flex: 1; }

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
}

.page-content--full { grid-column: 1 / -1; }

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 12px;
}
.sidebar-nav nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav nav ul li a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  border-left: 2px solid transparent;
}
.sidebar-nav nav ul li a:hover {
  color: var(--text);
  background: var(--bg-2);
  border-left-color: var(--accent);
}

/* Page header */
.page-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.page-title {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 36px;
}
.page-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

/* Prose */
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 10px;
}
.prose p { margin-bottom: 16px; color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; color: var(--text-dim); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(126,184,255,0.3); }
.prose a:hover { color: #fff; border-bottom-color: var(--accent-2); }
.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius);
  color: var(--accent-2);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

/* List cards */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.list-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color .2s, transform .15s;
}
.list-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.list-card-title { font-size: 16px; font-weight: 600; color: #fff; }
.list-card-desc { font-size: 14px; color: var(--text-dim); }
.list-card-arrow {
  position: absolute;
  top: 24px;
  right: 20px;
  color: var(--text-dimmer);
  font-size: 18px;
  transition: color .15s, transform .15s;
}
.list-card:hover .list-card-arrow { color: var(--accent-2); transform: translate(2px,-2px); }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 24px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-dimmer);
  margin-bottom: 12px;
}
.footer-col p { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.footer-link { font-size: 13px; color: var(--accent-2); font-family: var(--font-mono); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent-2); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dimmer);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 48px 20px; }
  .cards-section, .downloads-section { padding: 48px 20px; }
  .download-item { flex-wrap: wrap; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── LANGUAGE SWITCHER ──────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border-2);
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dimmer);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  padding: 4px 10px;
  border-radius: var(--radius);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.footer-lang-active {
  font-size: 14px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 13px;
}
@media (max-width: 680px) {
  .lang-switcher { margin-left: 0; padding-left: 0; border-left: none; }
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Hero: always animate, fill-mode: both guarantees final state is kept */
.hero-eyebrow { animation: fadeUp .5s ease both; }
.hero-title   { animation: fadeUp .5s .1s ease both; }
.hero-sub     { animation: fadeUp .5s .2s ease both; }
.hero-actions { animation: fadeUp .5s .3s ease both; }

/* Cards & download items: pure CSS staggered entrance, no JS needed */
.card-grid .card,
.download-list .download-item {
  animation: fadeUp .45s ease both;
}
.card-grid .card:nth-child(1) { animation-delay: .05s; }
.card-grid .card:nth-child(2) { animation-delay: .12s; }
.card-grid .card:nth-child(3) { animation-delay: .19s; }
.card-grid .card:nth-child(4) { animation-delay: .26s; }
.download-list .download-item:nth-child(1) { animation-delay: .08s; }
.download-list .download-item:nth-child(2) { animation-delay: .16s; }
.download-list .download-item:nth-child(3) { animation-delay: .24s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
