:root { color-scheme: light dark; }
:root { --skills-parallax-y: 0px; }
body{
  margin:0;
  /* min-height:100vh; */
  display:grid;
  place-items:center;
  background:#0b0b0f;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 24px; /* etwas Luft am Rand */
  box-sizing: border-box;
  background-position: center calc(var(--skills-parallax-y) * -1);
  transition: background-position 0.12s linear;
}

/* Hauptmenü */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 24px;
  box-sizing: border-box;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: min(820px, calc(100vw - 48px));
  margin: 0 auto;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.main-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

/* Cookie-Hinweis (unten fixiert) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  padding: 1rem 24px max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: rgba(11, 11, 15, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.4);
}
.cookie-banner__inner {
  max-width: min(820px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.cookie-banner__btn {
  flex: 0 0 auto;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #3b82f6;
  transition: background 0.2s;
}
.cookie-banner__btn:hover {
  background: #2563eb;
}
.cookie-banner__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
body.cookie-banner-visible {
  padding-bottom: max(7.5rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
}
figure{
  margin:0;
  width: 100%;
}
img{
  width:100%;
  height:auto;
  max-height: 80vh;       /* begrenzt die Höhe (damit es nicht zu groß wirkt) */
  object-fit: contain;    /* sorgt dafür, dass nichts abgeschnitten wird */
  display:block;
  border-radius:16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  background: rgba(255,255,255,0.03); /* dezenter Rahmen-Hintergrund bei contain */
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(820px, calc(100vw - 48px));
  width: 100%;
  box-sizing: border-box;
  padding-top: 3.5rem; /* Platz unter dem fixen Menü */
}
.content-neuigkeiten {
  padding-top: 2rem;
  align-items: flex-start;
}
.content-neuigkeiten h1 {
  margin-bottom: 0.5rem;
}
.content-neuigkeiten .markdown-content {
  margin-top: 0;
}
.skills-animate-demo {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.25rem 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(3px);
}
.skills-animate-demo__title {
  margin: 0 0 0.35rem 0;
  text-align: left;
  font-size: 1.1rem;
  color: #fff;
}
.skills-animate-demo__subtitle {
  margin: 0 0 0.8rem 0;
  color: #fff;
}
.skills-progress {
  margin-bottom: 1rem;
}
.skills-current-work-text {
  color: #fff;
}
.skills-progress__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #fff;
}
.skills-progress__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.skills-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(110deg, #3b82f6 0%, #22c55e 35%, #86efac 50%, #22c55e 65%, #3b82f6 100%);
  background-size: 220% 100%;
  transition: width 550ms ease;
  animation: skillsProgressShimmer 4.2s linear infinite;
}
@keyframes skillsProgressShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}
.skills-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.skills-tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.skills-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.skills-tab.active {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(147, 197, 253, 0.75);
}
.skills-tab-panel {
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.skills-tab-panel.active {
  opacity: 1;
  transform: translateY(0);
}
#unbar-stunden-input {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 0.6rem;
  width: 160px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  margin: 0.35rem 0 0.4rem;
}
.value-pulse {
  animation: valuePulse 460ms ease;
}
.markdown-content ul li,
.markdown-content ol li {
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.markdown-content ul li:hover,
.markdown-content ol li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes valuePulse {
  0% { text-shadow: 0 0 0 rgba(147, 197, 253, 0); transform: scale(1); }
  40% { text-shadow: 0 0 16px rgba(147, 197, 253, 0.85); transform: scale(1.04); }
  100% { text-shadow: 0 0 0 rgba(147, 197, 253, 0); transform: scale(1); }
}
.content h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* Hervorgehobener Hinweis (z. B. Wiederbeginn) */
.announce-back-on {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.25rem 0;
  padding: 0.95rem 1.1rem 0.95rem 1.2rem;
  border-left: 5px solid #3b82f6;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(59, 130, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.03) 100%
  );
  color: #f8fafc;
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: left;
  box-shadow:
    0 10px 32px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
figcaption{
  margin-top:12px;
  font-size:14px;
  opacity:.75;
  text-align:center;
}
.marquee-wrap {
  width: 100%;
  margin-top: 1rem;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}
.marquee {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}
.marquee-text {
  padding: 0 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.last-updated {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Gerenderter Markdown-Inhalt (Neuigkeiten) */
.markdown-content {
  width: 100%;
  color: #fff;
  line-height: 1.6;
  text-align:left;
  margin: 0;
  padding: 0; 
}
.markdown-content h1 { font-size: 1.5rem; margin: 1.25rem 0 0.75rem; color: #fff; }
.markdown-content h2 { font-size: 1.25rem; margin: 1.25rem 0 0.5rem; color: #fff; }
.markdown-content h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.markdown-content p { margin: 0.75rem 0; font-size: 19px;}
.markdown-content ul, .markdown-content ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.markdown-content li { margin: 0.25rem 0; }
.markdown-content a { color: #7eb8ff; text-decoration: none; }
.markdown-content a:hover { text-decoration: underline; }
.markdown-content code { background: rgba(255,255,255,0.1); padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em; }
.markdown-content pre { background: rgba(255,255,255,0.06); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.markdown-content pre code { background: none; padding: 0; }
.markdown-content blockquote { border-left: 4px solid rgba(255,255,255,0.3); margin: 1rem 0; padding-left: 1rem; opacity: 0.9; }
/* Kleine Logos/Zeichen neben Text (globales img ist display:block + width:100%) */
.markdown-content img.md-inline-icon {
  display: inline-block;
  width: 50px;
  height: auto;
  max-height: none;
  vertical-align: middle;
  box-shadow: none;
  border-radius: 6px;
  background: transparent;
}
.markdown-content img.md-inline-icon2 {
  display: inline-block;
  width: auto;
  height: 50px;
  margin-left: 10px;
  margin-right: 10px;
  max-height: none;
  vertical-align: middle;
  box-shadow: none;
  border-radius: 6px;
  background: transparent;
}
.markdown-content .neuigkeiten-arek-block p { margin: 0.75rem 0 0 0; }
.markdown-content .neuigkeiten-arek-block p:first-child { margin-top: 0; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Auf kleinen Screens: kompakter, aber Laufschrift bleibt aktiv */
@media (max-width: 640px) {
  body {
    padding: 12px;
    min-height: auto;
    display: block;
  }

  img {
    max-height: 62vh;
  }

  .content h1 {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    margin: 0 0 0.5rem 0;
  }
}
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
 }
