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

/* -----DEBUG ANSICHT -----*/
/*
* {
  outline: 1px solid red;
}
*/

:root {
  --layout-max-width: 1320px;
  --content-width: 1200px;
  --content-padding: 24px;
  --accent: #00e0ff;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family:
    "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;

  color: rgba(255, 255, 255, 0.88);
  background: #020617;
  line-height: 1.7;
  margin: 0;
  font-variant-ligatures: none;
  font-feature-settings:
    "liga" 0,
    "calt" 0;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: auto !important;
}

.section-inner {
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: var(--content-width);
  padding: 0 var(--content-padding);
  margin: 0 auto;
}

.contact-inner,
.projects-inner,
.skills-inner {
  width: 100%;
  max-width: var(--content-width);
  padding: 0 var(--content-padding);
  margin: 0 auto;
}

pre {
  background: #0f172a;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
}

code {
  color: #7dd3fc;
  font-family: "Fira Code", monospace;
  font-variant-ligatures: contextual;
  font-feature-settings:
    "liga" 1,
    "calt" 1;
}

.site-header.scrolled {
  height: 64px;
}

.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(8, 15, 30, 0.9);
  transition: height 0.25s ease;
}

.header-inner {
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.locked {
  overflow: hidden;
}

.boot-success {
  color: #00ff88 !important;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #0b1220, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
}

#boot.boot-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#boot pre {
  max-width: 640px;
  width: 90%;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.cursor {
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hide {
  animation: fade 0.6s forwards;
}

@keyframes fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.top {
  display: flex;
  gap: 30px;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid rgba(30, 58, 95, 0.6);
}

.top,
.header-inner {
  position: relative;
  z-index: 1500;
}

.logo {
  height: 40px;
}

.window {
  max-width: 100%;
  margin: 30px auto;
  padding: 32px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(11, 16, 32, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(63, 169, 245, 0.08);
  opacity: 1;
  transform: none;
  transition: all 0.6s ease;
}

.window.footer {
  max-width: 100%;
}

.card {
  background: rgba(11, 16, 32, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.text-narrow {
  max-width: 65ch;
}

.profile {
  display: flex;
  gap: 30px;
}

@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.profile img {
  width: 140px;
}

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

.skill {
  display: flex;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.25s ease;
  opacity: 0.8;
  transition: 0.3s;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.skill:hover {
  opacity: 1;
  transform: translateY(-6px);
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.6));
}

.skill img {
  width: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.skill-wrapper {
  max-width: 1000px;
  margin: 140px auto 100px auto;
  padding: 0 24px;
}

.skill-description {
  max-width: 820px;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 50px;
}

.skill-wrapper h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.skill-content {
  width: 100%;
}

.skill-content h1 {
  font-size: 34px;
  margin-bottom: 20px;
}

.skill-hint {
  color: #7dd3fc;
  cursor: default;
  position: relative;
}

.skill-hint::after {
  content: "↗";
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.6;
}

.skill:hover .icon {
  color: #e5fefe;
  filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.7));
  opacity: 1;
}

.skill .icon path {
  fill: white;
}

.skill:active {
  transform: translateY(-2px);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: 3px;
  border-radius: 8px;
  transition: 0.2s;
  padding: 14px 16px;
  background: rgba(11, 16, 32, 0.4);
  align-self: flex-start;
  pointer-events: auto;
}

#heatmap div:hover {
  transform: scale(1.4);
  box-shadow: 0 0 6px #7dd3fc;
}

#heatmap div.current {
  outline: 1px solid rgba(125, 211, 252, 0.35);
  outline-offset: -1px;
}

#heatmap div {
  width: 10px;
  height: 10px;
  background: rgba(125, 211, 252, 0.15);
  border-radius: 2px;
  position: relative;
  pointer-events: auto;
}

nav a {
  color: #7dd3fc;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #3fa9f5;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

input,
textarea {
  background: #0b1020;
  border: 1px solid #1e3a5f;
  color: #e5fefe;
  padding: 12px;
  border-radius: 8px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.2);
}

button {
  background: linear-gradient(135deg, #3fa9f5, #7dd3fc);
  color: #0b1020;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tab {
  background: rgba(19, 32, 64, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #7dd3fc;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s;
}

.tab:hover {
  background: rgba(63, 169, 245, 0.15);
}

.tab.active {
  background: rgba(63, 169, 245, 0.25);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
  color: #e5fefe;
}

.tab-content {
  display: none;
  animation: fadeTab 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subnav {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.25s;
}

.nav-indicator {
  position: absolute;
  bottom: -12px;
  /* mehr Abstand */

  height: 4px;
  border-radius: 6px;
  height: 3px;
  filter: blur(0.3px);

  background: linear-gradient(
    90deg,
    transparent,
    #3b82f6,
    #00f0ff,
    #3b82f6,
    transparent
  );

  box-shadow:
    0 0 10px rgba(59, 130, 246, 0.9),
    0 0 25px rgba(0, 240, 255, 0.6),
    0 0 40px rgba(0, 240, 255, 0.3);

  transition:
    transform 0.3s ease,
    width 0.3s ease;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item:hover .icon path {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.6));
}

.legend {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 15px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
}

.legend .low {
  background: #132040;
}

.legend .mid {
  background: #1e3a5f;
}

.legend .high {
  background: #7dd3fc;
}

.muted.tiny {
  font-size: 0.75rem;
  opacity: 0.5;
}

.muted {
  opacity: 0.7;
  font-size: 0.95rem;
  max-width: 640px;
}

.legal-page {
  max-width: 900px;
  margin: 140px auto;
  padding: 60px;

  background: #0b1020;
  /* kein rgba */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  margin-top: 40px;
  font-size: 1rem;
  opacity: 0.9;
}

/* =========================
   CODE.FLOW – FINAL
========================= */

#codeflow {
  overflow: hidden;
}

.codeflow-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .codeflow-text-grid {
    grid-template-columns: 1fr;
  }
}

.codeflow-text-row {
  display: -webkit-flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 24px;
}

/* Layout */
.codeflow-layout {
  display: grid;
  gap: 48px;
}

/* Text */
.codeflow-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.codeflow-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  /* gleichmäßiger Abstand */
  margin-top: 40px;
  text-align: center;
}

.codeflow-stats > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.codeflow-stats strong {
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.codeflow-stats div strong {
  font-size: 1.4rem;
  color: #7dd3fc;
  text-shadow:
    0 0 8px rgba(59, 130, 246, 0.6),
    0 0 14px rgba(0, 240, 255, 0.4);
}

.codeflow-stats > div:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
}

.codeflow-stats div span {
  font-size: 12px;
  opacity: 0.75;
}

.codeflow-stats span {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.codeflow-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  margin-bottom: 14px;
}

.codeflow-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.codeflow-legend .lvl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.codeflow-legend .lvl::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.lvl.low::before {
  background: #132040;
}

.lvl.mid::before {
  background: #1e3a5f;
}

.lvl.high::before {
  background: #7dd3fc;
}

/* Layout darf NICHT breiter werden als Container */
.codeflow-layout {
  max-width: 100%;
}

.codeflow-legend button {
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #7dd3fc;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.codeflow-legend button.active {
  background: rgba(125, 211, 252, 0.15);
}

/* Visual */
.codeflow-visual {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.codeflow-visual h4 {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 12px;
}

/* ===============================
   HEATMAP CONTAINER
================================ */

.heatmap-cell {
  width: 15px;
  height: 15px;
  border-radius: 3px;

  background: rgba(255, 255, 255, 0.05);

  transition: background 0.2s ease;
}

#codeflow-heatmap:hover {
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-color: rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 40px rgba(125, 211, 252, 0.08);
}

/* Heatmap immer eigene Zeile */
.codeflow-heatmap-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#codeflow-heatmap.revealed {
  opacity: 1;
  width: 100%;
}

.codeflow-description-right {
  text-align: left;
  margin-right: 20px;
}

.codeflow-description-left {
  text-align: left;
  padding-right: 20px;
}

.codeflow-claim {
  text-align: left;
  margin-right: 20px;
}

/* GitHub-like cells */
.codeflow-day {
  height: 10px;
  width: 10px;
  border-radius: 3px;
}

.heatmap-cell:hover {
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

/* GitHub-exakte Skala (angepasst ans Dark Theme) */
.codeflow-day.level-0 {
  background: rgba(125, 211, 252, 0.08);
}

.codeflow-day.level-1 {
  background: rgba(0, 180, 255, 0.35);
}

.codeflow-day.level-2 {
  background: rgba(0, 200, 255, 0.55);
}

.codeflow-day.level-3 {
  background: rgba(0, 220, 255, 0.75);
}

.codeflow-day.level-4 {
  background: #00eaff;
}

.heatmap-cell:not(.level-1):not(.level-2):not(.level-3):not(.level-4) {
  background: rgba(125, 211, 252, 0.15);
}

.codeflow-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.75rem;
  margin-top: 10px;
  letter-spacing: 0.08em;
}

.codeflow-day:hover {
  transform: scale(1.4);
  background: #00f0ff;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  z-index: 3;
  outline: 1px solid rgba(125, 211, 252, 0.7);
}

/* Tooltip */
#codeflow-tooltip {
  position: fixed;
  pointer-events: none;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.95);
  color: #e5fefe;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 9999;
}

.codeflow-tech {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.codeflow-tech a {
  font-size: 0.9rem;
  color: #7dd3fc;
  text-decoration: none;
  opacity: 0.75;
}

.codeflow-tech a:hover {
  color: #7dd3fc;
  transform: translateY(-2px);
  opacity: 1;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
}

#codeflow .window {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Optional */
.emphasis {
  font-style: italic;
  opacity: 0.85;
}

.small-title {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* STATS */
.flow-stats {
  display: flex;
  gap: 32px;
  margin-top: 10px;
}

.flow-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-stats strong {
  font-size: 1.4rem;
  color: #7dd3fc;
}

.flow-stats span {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* KLEINTEXTE */

.right {
  text-align: right;
}

.portrait-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

/* PROFILBILD */
.portrait-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 25px rgba(63, 169, 245, 0.15);
}

.portrait-image {
  position: relative;
}

.portrait-image::before {
  content: "";
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.15);
}

/* VITA */
.vita-intro {
  max-width: 640px;
  margin-bottom: 60px;
}

.vita-timeline {
  border-left: 1px solid rgba(125, 211, 252, 0.2);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 80px;
}

.vita-item {
  position: relative;
}

.vita-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.4);
}

.vita-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 10px;
}

.vita-role {
  color: #7dd3fc;
}

.vita-principles ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.vita-principles li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 10px;
}

.vita-principles li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #7dd3fc;
}

.capabilities {
  margin-top: 120px;
}

.matrix {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}

.matrix-domain {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  text-transform: uppercase;
}

.matrix-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.matrix-items span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.matrix-items em {
  font-style: normal;
  font-size: 0.75rem;
  margin-left: 6px;
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.portrait-vita ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portrait-vita li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* TEXT RECHTS */
.portrait-about p {
  margin-bottom: 12px;
  opacity: 0.85;
}

.timeline {
  margin-top: 20px;
  border-left: 1px solid rgba(125, 211, 252, 0.2);
  padding-left: 16px;
}

.timeline .entry {
  margin-bottom: 14px;
}

.timeline .year {
  font-size: 0.75rem;
  color: #7dd3fc;
  text-transform: uppercase;
  opacity: 0.8;
}

.values {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.values li::before {
  content: "–";
  margin-right: 6px;
  color: #7dd3fc;
}

.portrait-cta {
  display: inline-block;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(125, 211, 252, 0.15);
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.portrait-cta a {
  background: rgba(125, 211, 252, 0.08);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.2);
  text-decoration: none;
}

.portrait-cta a:hover {
  text-decoration: underline;
}

.portrait-cta.secondary {
  margin-top: 40px;
}

.cta-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #7dd3fc;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.4px;
}

.cta-outline:hover {
  border-color: rgba(125, 211, 252, 0.6);
  color: #ffffff;
}

.cta-text {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.75;
}

.cta-link {
  display: inline-block;
  color: #7dd3fc;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.cta-link:hover {
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.5);
}

/* HERO */
.portrait-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.portrait-hero img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  gap: 40px;
  /* vorher 24px */
  margin-bottom: 50px;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 25px rgba(63, 169, 245, 0.15);
}

.portrait-summary {
  max-width: 540px;
}

.portrait-summary h1 {
  margin-bottom: 14px;
}

.portrait-hero img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 25px rgba(63, 169, 245, 0.25),
    0 0 60px rgba(0, 240, 255, 0.08);
}

.portrait-summary h3 {
  margin: 0;
}

.portrait-summary p {
  max-width: 420px;
}

/* CONTENT */
.portrait-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .portrait-content {
    grid-template-columns: 1fr;
  }
}

.portrait-block p {
  margin-bottom: 14px;
  opacity: 0.85;
}

.portrait-block {
  padding: 18px 0;
}

.portrait-block h4 {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #7dd3fc;
  margin-bottom: 16px;
}

/* LISTEN */
.clean-list {
  list-style: none;
  position: relative;
  padding-left: 14px;
  margin-bottom: 16px;
}

.clean-list li {
  margin-bottom: 6px;
}

/* TIMELINE */
.timeline.compact p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.timeline span {
  color: #7dd3fc;
  margin-right: 6px;
}

/* portrait.bmp sauber zentrieren */
#profile .portrait-inner {
  margin: 0 auto;
}

#profile .window {
  position: relative;
}

#profile .window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(
    circle at top right,
    rgba(0, 240, 255, 0.05),
    transparent 60%
  );
}

.highlighted span {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.4);
}

.portrait-content {
  align-items: start;
}

.portrait-hero {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* TOPBAR */
.topbar {
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(8, 15, 30, 0.9);
  z-index: 100;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-logo {
  height: 42px;
  /* feste Höhe */
  width: auto;
  /* Breite automatisch */
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Name */
.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* Claim kleiner & dezenter */
.brand-claim {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 12px;
}

/* Beta Badge */
.beta-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.3);
  opacity: 0.7;
  color: #7dd3fc;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  height: fit-content;
}

/* Hover Effekt */
.beta-badge:hover {
  background: rgba(0, 180, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
  cursor: pointer;
}

pre {
  white-space: pre;
  overflow-x: auto;
}

@media (max-width: 600px) {
  pre {
    font-size: 0.7rem;
    padding: 14px;
  }
}

main {
  padding-top: 80px;
}

/* NAV */
.main-nav {
  position: relative;
  display: flex;
  color: rgba(200, 220, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}

.main-nav a:hover {
  color: #ffffff;
}

/* Aktiver Punkt (dezent) */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #7dd3fc;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0, 240, 255, 0.8),
    0 0 12px rgba(0, 240, 255, 0.4);
}

.main-nav a.active {
  color: #ffffff;

  text-shadow:
    0 0 6px rgba(59, 130, 246, 0.8),
    0 0 14px rgba(0, 240, 255, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 90px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.4px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 14px;
}

h4 {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 8px;
}

p {
  max-width: 65ch;
  margin-bottom: 14px;
  opacity: 0.9;
}

.muted {
  opacity: 0.65;
}

p,
li {
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 6px;
}

.small,
.muted {
  letter-spacing: 0.1px;
}

.small,
.tiny {
  font-size: 0.8rem;
  opacity: 0.6;
}

pre {
  background: linear-gradient(
    to bottom,
    rgba(8, 15, 30, 0.95),
    rgba(8, 15, 30, 0.85)
  );

  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 8px;

  padding: 18px 20px;
  margin: 24px 0;

  overflow-x: auto;
}

code {
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  line-height: 1.6;

  color: #e5fefe;

  font-variant-ligatures: contextual;
  font-feature-settings:
    "liga" 1,
    "calt" 1;
}

pre::before {
  content: "● ● ●";
  display: block;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
  letter-spacing: 6px;
}

.projects-grid {
  padding: 16px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .skills-grid {
    gap: 16px;
  }
}

/* CARD */
.skill-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 220px;
  padding: 20px;
  transform: translateY(30px);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;

  background: rgba(10, 18, 36, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:nth-child(1) {
  transition-delay: 0.1s;
}
.project-card:nth-child(2) {
  transition-delay: 0.2s;
}
.project-card:nth-child(3) {
  transition-delay: 0.3s;
}
.project-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* HEADER */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.project-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

/* BADGES */
.badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.badge.dev {
  background: rgba(63, 169, 245, 0.2);
  color: #7dd3fc;
}

/* TEXT */
.project-desc {
  opacity: 0.85;
  max-width: 52ch;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.project-meta li {
  margin-bottom: 6px;
}

/* ACTIONS */
.project-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.project-actions a {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: none;
  font-size: 0.75rem;
  text-decoration: none;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.project-actions a:hover {
  background: rgba(125, 211, 252, 0.12);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
  transform: translateY(-2px);
}

.project-actions .btn-primary {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.5);
}

.btn-primary,
.btn-secondary {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #e5fefe;
}

.btn-secondary {
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #7dd3fc;
  background: transparent;
}

.project-actions .btn-secondary {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.project-actions .btn-secondary:hover {
  background: rgba(125, 211, 252, 0.08);
  border-color: #7dd3fc;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.35);
}

.tech-row {
  display: flex;
  gap: 12px;
  margin: 12px 0 24px;
}

.repo-card {
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  background: rgba(11, 16, 32, 0.6);
}

.repo-card strong {
  display: block;
  margin-bottom: 6px;
}

.repo-meta {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 6px 0 10px;
}

.repo-card a {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.85rem;
}

.badge.live {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge.archived {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.tech-row img {
  width: 22px;
  height: 22px;
  opacity: 0.65;
  filter: grayscale(100%);
}

.tech-row img:hover {
  opacity: 1;
  filter: none;
}

.project-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 12px 0 16px;
  opacity: 0.85;
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.badge.released {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* ===============================
   CONTACT FORM FIX
================================ */

.contact-window {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FIELDSETS */
.contact-form fieldset {
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

.contact-form legend {
  padding: 0 8px;
  font-size: 0.8rem;
  opacity: 0.7;
  pointer-events: none;
}

/* CHECKBOXES */
.contact-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.contact-form input[type="checkbox"] {
  accent-color: #7dd3fc;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(5, 15, 30, 0.6);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  color: #cfefff;
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  opacity: 0.5;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.3);
}

/* BUTTON */
.contact-form button {
  align-self: flex-start;
}

.contact-form select {
  width: 100%;
  background: rgba(8, 15, 30, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  color: #e5fefe;
  font-family: inherit;
}

.contact-success {
  display: none;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 0;
  }

  25%,
  75% {
    opacity: 1;
  }
}

/* CONTACT */

.contact-intro {
  max-width: 60ch;
  margin-bottom: 32px;
  opacity: 0.85;
}

/* OPTIONS */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.options label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  cursor: pointer;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* INPUTS */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(8, 15, 30, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  color: #e5fefe;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.privacy-row input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.privacy-row a {
  color: #7dd3fc;
  text-decoration: none;
}

.privacy-row a:hover {
  text-decoration: underline;
}

.hero-lead {
  margin: 18px 0 18px 0;
  font-size: 1.1rem;
  max-width: 60ch;
}

.hero-lead span {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.4);
}

.hero-sub {
  opacity: 0.75;
  max-width: 65ch;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 60px;
  margin-bottom: 20px;
}

.service-grid div {
  opacity: 0.85;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.service-grid div::before {
  content: "—";
  position: absolute;
  opacity: 0.6;
  left: 0;
  color: #7dd3fc;
}

.role-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .role-meta {
    align-items: center;
  }
}

.role-tag {
  color: #7dd3fc;
}

.portrait-inner {
  position: relative;
}

.portrait-inner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, #7dd3fc, transparent);
  opacity: 0.4;
}

.role-separator {
  width: 20px;
  height: 1px;
  background: rgba(125, 211, 252, 0.3);
}

/* FOCUS */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7dd3fc;
}

.contact-inner {
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 10;
  /* 🔥 WICHTIG */
}

.chip {
  background: rgba(8, 15, 30, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #e5fefe;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 10;
  /* 🔥 über allen Overlays */
  pointer-events: auto;
}

.chip:hover {
  border-color: #7dd3fc;
}

/* 🔥 ACTIVE = gefüllt */
.chip.active {
  background: rgba(63, 169, 245, 0.35);
  color: #e5fefe;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
  border-color: #7dd3fc;
}

.chip:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.6);
  outline-offset: 2px;
}

.service-chips .chip {
  pointer-events: auto !important;
  position: relative;
  z-index: 1001;
}

.window-border {
  pointer-events: none !important;
}

.g-recaptcha {
  margin-top: 20px;
}

/* FOOTER */
.footer {
  width: 100%;
  margin-top: 32px;
}

.footer-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;

  text-align: center;
}

/* BRAND */
.footer-brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.55;
}

/* ICON NAV */
.footer-icons {
  font-size: 1.4rem;
  margin: 0 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.footer-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.25);
  transition: all 0.2s ease;
}

.footer-icons svg {
  width: 18px;
  height: 18px;
  fill: #7dd3fc;
}

.footer-icons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px currentColor;
}

/* LEGAL */
.footer-legal {
  font-size: 16px;
  opacity: 0.5;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

/* META */
.footer-meta {
  font-size: 16px;
  opacity: 0.6;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* FOOTER SOCIAL ICONS */
.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.2);

  font-size: 0.95rem;
  color: #cfe9ff;

  transition: all 0.2s ease;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: #7dd3fc;
  transition: fill 0.25s ease;
}

/* 🔥 Hover Glow */
.footer-socials a:hover {
  background: rgba(125, 211, 252, 0.12);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
  transform: translateY(-1px);
}

.footer-socials a:hover svg {
  fill: #ffffff;
}

/* Tastatur-Zugänglichkeit */
.footer-socials a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(125, 211, 252, 0.8),
    0 0 20px rgba(125, 211, 252, 0.6);
}

.footer-socials a[href^="mailto"] {
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.35);
  }
}

/* SOCIAL COLOR ACCENTS (subtle) */

/* GitHub */
.footer-socials a[href*="github"]:hover {
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.6),
    0 0 24px rgba(148, 163, 184, 0.35),
    0 12px 32px rgba(71, 85, 105, 0.35);
}

/* LinkedIn */
.footer-socials a[href*="linkedin"]:hover {
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.6),
    0 0 24px rgba(14, 165, 233, 0.45),
    0 12px 32px rgba(2, 132, 199, 0.35);
}

/* Mail */
.footer-socials a[href^="mailto"]:hover {
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.6),
    0 0 24px rgba(34, 197, 94, 0.45),
    0 12px 32px rgba(22, 163, 74, 0.35);
}

.back-to-top {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* etwas mehr Gewicht */
.back-to-top:hover {
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.7),
    0 0 28px rgba(125, 211, 252, 0.55),
    0 14px 36px rgba(63, 169, 245, 0.45);
}

.terminal {
  position: relative;
  width: 100%;
  max-width: 900px;

  padding: 32px;
  border-radius: 14px;

  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.85),
    rgba(10, 16, 30, 0.95)
  );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(0, 170, 255, 0.25);

  box-shadow:
    0 0 40px rgba(0, 170, 255, 0.12),
    inset 0 0 60px rgba(0, 0, 0, 0.6);

  overflow: hidden;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.15;
}

.terminal-wrapper {
  display: flex;
  justify-content: center;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

/* =========================
   SKILL NAVIGATION
========================= */

.skill-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 170, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.skill-next-prev {
  display: flex;
  gap: 30px;
}

.skill-btn {
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #9ecfff;
  border: 1px solid rgba(0, 170, 255, 0.3);
  background: rgba(0, 20, 40, 0.4);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.skill-btn:hover {
  background: rgba(0, 170, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal pre {
  margin: 0;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.65;
  color: #cce7ff;
  position: relative;
  z-index: 1;
}

.keyword {
  color: #00bfff;
}

.string {
  color: #6ee7b7;
}

.comment {
  color: #64748b;
}

.function {
  color: #38bdf8;
}

/* TERMINAL EXIT */
.footer-terminal {
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-terminal .prompt {
  color: #7dd3fc;
}

.footer-terminal .command {
  color: #e5fefe;
}

.footer-terminal .cursor {
  width: 8px;
  height: 1em;
  background: #7dd3fc;
  animation: blink 1.2s infinite;
}

/* LOADER */
.loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.98),
    rgba(5, 10, 20, 0.98)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* Rendering Fixes */
  transform: translateZ(0);
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.loading-text {
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #cfefff;

  white-space: pre;
  user-select: none;
  text-align: left;

  opacity: 0;
  animation: loaderFadeIn 0.8s ease forwards;
}

@keyframes loaderFadeIn {
  to {
    opacity: 1;
  }
}

.loading-screen.hide {
  animation: loaderFadeOut 0.8s ease forwards;
}

@keyframes loaderFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loading-screen,
.loading-screen * {
  letter-spacing: 0.04em;
  white-space: pre;
}

.loading-screen {
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.loading-text {
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transform: none;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  section {
    padding: 0;
  }

  .window {
    padding: 28px;
  }
}

/* === Skills Icons Fix === */
#skills svg {
  width: 150px;
  height: 150px;
  fill: #e5fefe;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

#skills .skill:hover svg {
  filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.7));
}

/* ===============================
   DESKTOP
================================ */

@media (min-width: 1440px) {
  .header-inner {
    max-width: 1400px;
  }

  .window {
    max-width: 1300px;
  }

  .grid {
    grid-template-columns: repeat(5, 1fr);
  }

  pre {
    font-size: 0.9rem;
  }

  .portrait-hero img {
    width: 150px;
    height: 150px;
  }
}

/* ===============================
   LAPTOP
================================ */

@media (min-width: 1024px) {
  .header-inner {
    max-width: 1200px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portrait-content {
    grid-template-columns: 1fr 1fr;
  }

  pre {
    font-size: 0.85rem;
  }
}

/* ===============================
   TABLET
================================ */

@media (min-width: 600px) and (max-width: 1023px) {
  .header-inner {
    padding: 0 24px;
  }

  .main-nav {
    gap: 24px;
  }

  .portrait-content {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  pre {
    font-size: 0.8rem;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 599px) {
  .site-header {
    height: 70px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-claim {
    display: none;
    /* zu viel auf Mobile */
  }

  .beta-badge {
    font-size: 0.5rem;
    padding: 2px 5px;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.8rem;
  }

  main {
    padding-top: 80px;
  }

  .window {
    padding: 20px;
  }

  pre {
    font-size: 0.75rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portrait-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .codeflow-text-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CODE.FLOW – FINAL LAYOUT
================================ */

#codeflow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Text oben */
.codeflow-textblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Heatmap mittig */
.codeflow-heatmap-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* Heatmap selbst */
#codeflow-heatmap {
  display: grid;
  grid-auto-flow: column;

  /* 52 Wochen */
  grid-auto-columns: 1fr;
  grid-template-rows: repeat(7, 1fr);

  gap: 4px;

  width: 100%;
  aspect-ratio: 52 / 7;

  padding: 20px;

  box-sizing: border-box;

  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 16px;
}

/* Legende */
.codeflow-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  margin-top: 24px;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.codeflow-source {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* === HARD FAILSAFE === */
html,
body {
  opacity: 1 !important;
  visibility: visible !important;
  overflow: auto !important;
}

.file-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fira Code", monospace;
  letter-spacing: 1px;
}

.file-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.file-path {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ===========================
   GAMES SYSTEM STYLE
   =========================== */

.games-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.game-module {
  border: 1px solid var(--border);
  background: var(--window-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
}

.game-module:hover {
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.08);
  transform: translateY(-3px);
}

/* Header wie file-title */
.game-header {
  padding: 14px 20px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.game-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 10px 0;
}

.game-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  display: flex;
  gap: 10px;
}

.game-actions {
  margin-top: 16px;
}

.game-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.game-status {
  font-size: 0.75rem;
  opacity: 0.6;
}

.game-body {
  padding: 25px;
}

.game-body h3 {
  margin-bottom: 10px;
}

.game-body p {
  opacity: 0.7;
  margin-bottom: 20px;
}

/* Progress */
.game-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.game-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.game-progress {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.2s ease;
}

.progress-label {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ===========================
   GAME RUNTIME STATUS
   =========================== */

.game-runtime-status {
  margin-top: 14px;
  margin-bottom: 20px;
  /* ← Abstand zum Button */
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  opacity: 0.6;
}

.game-body .cta-outline {
  margin-top: 10px;
}

.runtime-text::before {
  content: "[ ";
}

.runtime-text::after {
  content: " ]";
}

.runtime-ready {
  color: var(--accent);
  opacity: 1;
}

.game-module[data-status="released"] .runtime-ready {
  color: #00ff88;
}

/* ===========================
   GAMES FADE ANIMATION
   =========================== */

.games-system-grid {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.games-system-grid.fade-out {
  opacity: 0;
  transform: translateY(5px);
}

.games-system-grid.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.game-module[data-status="released"] .game-progress {
  background: #00ff88;
}

.game-module[data-status="prototype"] .game-progress {
  background: #ffaa00;
}

/* ===========================
   GAMES FILTER BAR
   =========================== */

.games-filter-bar {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
}

.filter-label {
  opacity: 0.6;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: inherit;
  padding: 6px 14px;
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: rgba(0, 224, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.cn-cookie {
  position: fixed;
  bottom: -200px;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #0b1020, #0f172a);
  border-top: 1px solid rgba(0, 191, 255, 0.4);
  box-shadow: 0 -10px 40px rgba(0, 191, 255, 0.1);
  padding: 24px;
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cn-cookie.show {
  bottom: 0;
}

.cn-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 14px;
}

.cn-cookie-text strong {
  color: #00bfff;
  letter-spacing: 1px;
}

.cn-cookie-text a {
  color: #00bfff;
  text-decoration: none;
}

.cn-cookie-text a:hover {
  text-decoration: underline;
}

.cn-cookie-buttons {
  display: flex;
  gap: 14px;
}

.cn-btn {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cn-btn.primary {
  background: #00bfff;
  color: #0b1020;
  border: none;
}

.cn-btn.primary:hover {
  box-shadow: 0 0 15px #00bfff;
}

.cn-btn.secondary {
  background: transparent;
  border: 1px solid #00bfff;
  color: #00bfff;
}

.cn-btn.secondary:hover {
  background: rgba(0, 191, 255, 0.1);
}

#tech-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent;
}

/* ===== GLOBAL RESPONSIVE FIX ===== */

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  min-width: 0;
}

.container,
.section-inner,
.window {
  width: 100%;
}

/* =========================
   RESPONSIVE SYSTEM – CN
========================= */

/* Tablet */
@media (max-width: 1024px) {
  .portrait-layout,
  .codeflow-text-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 1100px) {
  /* GLOBAL SPACING */
  .section-inner {
    padding: 0px 16px;
  }

  /* HERO */
  .portrait-hero {
    flex-direction: column;
    text-align: center;
  }

  .portrait-hero img {
    width: 140px;
    height: 140px;
  }

  /* PROFILE IMAGE FIX */
  .profile img {
    width: 120px;
  }

  /* TEXT */
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* NAV */
  .main-nav {
    overflow-x: auto;
    gap: 12px;
  }

  /* CODEFLOW */
  .codeflow-stats {
    flex-direction: column;
    gap: 20px;
  }

  /* GRID FIX */
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BURGER MENU – CN STYLE
========================= */

.burger {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 3000;
}

.burger span {
  width: 26px;
  height: 2px;
  background: #7dd3fc;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(125, 211, 252, 0.6);
  display: block;
}

.burger::before {
  content: "";
  position: absolute;
  inset: -10px;
}

/* Animation */
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1100px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    pointer-events: none;
    background: rgba(5, 15, 30, 0.95);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 100px 30px;
    gap: 24px;

    transition: right 0.4s ease;

    border-left: 1px solid rgba(125, 211, 252, 0.2);
  }

  .main-nav.active {
    right: 0;
    pointer-events: auto;
  }
}

/* =========================
   SCROLL ANIMATIONS
========================= */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
