/* =========================================================
   Tokens
========================================================= */
:root {
  --bg:          #ECE8DE;   /* warm paper, not pure cream */
  --bg-alt:      #E1DCCC;
  --surface:     #FBF9F4;
  --ink:         #1B2E2A;   /* deep pine-ink, primary text */
  --ink-soft:    #4C5E58;
  --line:        #C9C2AC;
  --brass:       #B3792A;   /* accent: brass / dial, not terracotta */
  --brass-deep:  #8F5E1E;
  --pine:        #2F5C50;   /* secondary accent, muted teal-green */
  --live:        #3D7A5C;
  --inactive:    #8A8377;   /* neutral/grey status */

  --font-display: "Space Grotesk", ui-sans-serif, sans-serif;
  --font-body:    "Source Serif 4", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --maxw-inner: 1200px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: "// "; color: var(--line); }
.eyebrow--center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}


/* =========================================================
   Topbar
========================================================= */
.topbar__logo-svg {
  height: 25px; 
  width: auto;
  fill: var(--ink);
  display: block;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(236, 232, 222, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; 
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0; 
  text-decoration: none;
}
.topbar__nav { display: flex; align-items: center; gap: 1.75rem; }
.topbar__nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink) !important;
}



/* =========================================================
    Status Panel - inkl. Scroll-Trigger-Kollaps
========================================================= */
.sticky-panel-wrapper {
  position: sticky; 
  height: 0;
  top: 70px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  padding-right: 6vw;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Checkbox verstecken */
.toggle-input { display: none; }

.statuspanel__bar { cursor: pointer; }

.statuspanel {
  order:2;
  align-self: flex-start;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  pointer-events: auto;
  margin-top: 1rem;
  
  animation: panel-collapse linear forwards;
  animation-timeline: --hero-exit;
  animation-range: entry 100% exit 0%;
 }
 @keyframes panel-collapse {
  from { width: 320px; border-radius: var(--radius); }
  to { width: 140px; border-radius: 50px; }
}

.statuspanel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  cursor: pointer; 

  animation: bar-collapse linear forwards;
  animation-timeline: --hero-exit;
  animation-range: entry 100% exit 0%;
}
@keyframes bar-collapse {
  to { border-bottom-color: transparent; }
}

.statuspanel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(61,122,92,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Status states — switch by changing data-status on .statuspanel, no CSS edits needed */
.statuspanel[data-status="inactive"] .statuspanel__dot {
  background: var(--inactive);
  box-shadow: 0 0 0 3px rgba(138,131,119,0.18);
  animation: none;
}
.statuspanel__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.statuspanel__body { 
  padding: 0.2rem 1rem; 
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  max-height: 500px;
  opacity: 1;

  animation: body-collapse linear forwards;
  animation-timeline: --hero-exit;
  animation-range: entry 100% exit 0%;
}
@keyframes body-collapse {
  from { max-height: 500px; opacity: 1; padding: 0.2rem 1rem 1rem 1rem; }
  to { max-height: 0; opacity: 0; padding: 0; }
}

.statuspanel__line {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--line);
}
.statuspanel__line:last-child { border-bottom: none;}
.statuspanel__key { 
  color: var(--ink-soft); 
  align-self: flex-start;
}
.statuspanel__val { 
  color: var(--ink); 
  font-weight: 500; 
  text-align: right; 
  align-self: flex-end;
}
.statuspanel__val--status { color: var(--live); }
.statuspanel[data-status="inactive"] .statuspanel__val--status { color: var(--inactive); }
.statuspanel[data-status="inactive"] .statuspanel__line--live-only { display: none; }


.hero__sentinel {
  view-timeline-name: --hero-exit;
  view-timeline-axis: block;
}

/* =========================================================
   Klick-Status überschreibt die Scroll-Animation via :has()
========================================================= */

.statuspanel:has(#toggle-panel:checked) {
  animation: none !important;
  width: 320px !important;
  border-radius: var(--radius) !important;
  transition: width 0.3s ease, border-radius 0.3s ease;
}

.statuspanel:has(#toggle-panel:checked) .statuspanel__body {
  animation: none !important;
  max-height: 500px !important;
  opacity: 1 !important;
  padding: 0.2rem 1rem 1rem 1rem !important;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.statuspanel:has(#toggle-panel:checked) .statuspanel__bar {
  animation: none !important;
  border-bottom-color: var(--line) !important;
}
/* =========================================================
   Hero
========================================================= */
.hero {
  padding: 5rem 6vw 4.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner {gap: 2.25rem;display:flex; flex-direction:row;}
.hero_content {
  order:1;
}

.hero__headline {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 600;
}
.hero__headline-accent { color: var(--brass-deep); }

.hero__subline {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--surface);
}
.btn--primary:hover { background: var(--pine); transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface); transform: translateY(-1px); }

/* =========================================================
   About
========================================================= */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__inner {max-width: var(--maxw-inner); margin: 0 auto; padding: 4.5rem 6vw; }
.about__text { font-size: 1.2rem; color: var(--ink); }

/* =========================================================
   Tech-Labor & Projekte
========================================================= */
.lab { max-width: var(--maxw); margin: 0 auto; padding: 5rem 6vw; }
.lab__intro {
  max-width: 56ch; margin: 0 auto 3rem; text-align: center; color: var(--ink-soft);
}
.lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.labcard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.labcard:hover,
.labcard:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brass);
}
.labcard__status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  background: var(--bg-alt);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.3rem;
}
.labcard__title {
  font-size: 1.05rem;
  margin: 0;
}
.labcard__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pine);
  margin: 0;
}
.labcard__meta code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  color: var(--brass-deep);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
}
.labcard__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.labcard__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
}
 


/* =========================================================
   Skills
========================================================= */
.skills { max-width: var(--maxw); margin: 0 auto; padding: 5rem 6vw; }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skillcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.skillcard__title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.skillcard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.skillcard__list li { font-size: 0.95rem; color: var(--ink-soft); }
.skillcard__list code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-alt);
  color: var(--brass-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

/* =========================================================
   Timeline / Changelog
========================================================= */
.timeline { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5rem 6vw;}
.timeline__intro {
  max-width: 56ch; margin: 0 auto 3rem; text-align: center; color: var(--ink-soft);
}

.changelog {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  border-left: 2px solid var(--line);
}
.changelog__entry {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.changelog__entry::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: 0.35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brass);
}
.changelog__entry:last-child { 
  padding-bottom: 0; 
  anchor-name: --last-item;
  margin-bottom: 2rem;
}

#changelog__cv {
  position: absolute;
  margin: 2rem auto;

}
.changelog__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}
.changelog__version { color: var(--brass-deep); font-weight: 600; font-size: 0.85rem; }
.changelog__date { color: var(--ink-soft); font-size: 0.78rem; }
.changelog__content h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.changelog__role { font-family: var(--font-mono); font-size: 0.82rem; color: var(--pine); margin: 0 0 0.6rem; }
.changelog__note { margin: 0; color: var(--ink-soft); }
.changelog__note em { color: var(--ink); font-style: normal; border-bottom: 1px solid var(--brass); }

/* =========================================================
   Value grid
========================================================= */
.value { max-width: var(--maxw); margin: 0 auto; padding: 5rem 6vw; }
.value__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.value__item { text-align: left; }
.value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--brass-deep);
  margin-bottom: 0.9rem;
}
.value__item h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.value__item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   Terms
========================================================= */
.terms { background: var(--ink); color: var(--bg); }
.terms__inner { max-width: var(--maxw-inner); margin: 0 auto; padding: 4.5rem 6vw; }
.terms .eyebrow { color: var(--brass); }
.terms .eyebrow::before { color: rgba(236,232,222,0.35); }
.terms__text { font-size: 1.15rem; color: rgba(236,232,222,0.9); }

/* =========================================================
   Contact
========================================================= */
.contact { padding: 6rem 6vw; text-align: center; }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__headline { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 0.75rem; }
.contact__sub { color: var(--ink-soft); margin-bottom: 2.25rem; }
.contact__details { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.contact__refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.contact__refs dt { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.contact__refs dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }

/* =========================================================
   Footer
========================================================= */
.footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 768px) {
  .topbar__nav { gap: 1rem; }
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .hero { 
    padding: 3.5rem 6vw 3rem; 
  }
    .about__inner, .skills, .value, .timeline, .contact { padding-left: 6vw; padding-right: 6vw; }
  
  .hero_inner{display:flex; flex-direction:column;}

  .sticky-panel-wrapper {
    display: none;
  }

  .hero-content {
    order: 1; /* Auf Desktop nach links wandern */
    flex: 1; /* Nimmt den verbleibenden Platz ein */
  }
}


