/* ============================================================
   john-dk · Portfolio — Fullscreen Animated Slider
   ============================================================ */

:root {
  --bg: #06070d;
  --fg: #f4f6ff;
  --muted: #9aa3c0;
  --accent: #6e8bff;
  --accent-2: #b16bff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --field-bg: rgba(255, 255, 255, 0.05);
  --veil: 0; /* light-mode overlay opacity on slide backgrounds */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.9s;
}

/* ---- Farbpaletten (Accent) ---- */
body[data-palette="indigo"] { --accent: #6e8bff; --accent-2: #b16bff; }
body[data-palette="emerald"] { --accent: #19c39c; --accent-2: #4fd1c5; }
body[data-palette="rose"] { --accent: #ff5d8f; --accent-2: #ff9e6d; }

/* ---- Light Mode ---- */
body[data-mode="light"] {
  --bg: #eef1fb;
  --fg: #0c1024;
  --muted: #4a5070;
  --glass: rgba(12, 16, 36, 0.05);
  --glass-brd: rgba(12, 16, 36, 0.12);
  --field-bg: rgba(255, 255, 255, 0.7);
  --veil: 0.72;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-height: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Sora", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===================== Navigation (zweistufig) ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s,
    box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-brd);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.6);
}

.nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 4rem);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  color: var(--accent);
}

.nav__name {
  font-size: 1.1rem;
}

.accent {
  color: var(--accent);
}

/* Wortmarke „johndk" — passt sich per currentColor an Hell/Dunkel an */
.brand-logo {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: currentColor;
}
.brand-logo__accent {
  color: var(--accent);
  font-weight: 400;
}
.footer .brand-logo { font-size: 1.5rem; }

/* Webseiten-Menü */
.nav__site {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav__site a {
  position: relative;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.8rem;
  border-radius: 100px;
  opacity: 0.72;
  transition: opacity 0.3s, background 0.3s;
}

.nav__site a:hover,
.nav__site a.is-active {
  opacity: 1;
  background: var(--glass);
}

/* Slider-Menü (zweite Zeile) */
.slider-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 clamp(1.2rem, 4vw, 4rem) 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.4s var(--ease), max-height 0.4s var(--ease);
}
.slider-nav::-webkit-scrollbar { display: none; }

/* zweite Zeile ausblenden, sobald man scrollt */
.nav.is-scrolled .slider-nav {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.slider-nav__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.4rem;
  white-space: nowrap;
}

.slider-nav__link {
  background: none;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s, background 0.3s;
}

.slider-nav__link:hover { opacity: 1; }
.slider-nav__link.is-active {
  opacity: 1;
  background: var(--glass);
}

/* Burger (mobil) */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__site {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-brd);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__site a { font-size: 1.1rem; width: 100%; }
  body.menu-open .nav__site { transform: translateX(0); }
}

/* Skip-Link & Scroll-Hinweis */
.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

.scroll-hint {
  position: absolute;
  bottom: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ===================== Slider shell ===================== */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease),
    visibility 0s linear var(--speed);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--speed) var(--ease);
  z-index: 2;
}

/* ---- Animated gradient backgrounds (Ken-Burns + drift) ---- */
.slide__bg {
  position: absolute;
  inset: -10%;
  background-size: 200% 200%;
  transform: scale(1.15);
  transition: transform 1.4s var(--ease);
  animation: drift 18s ease-in-out infinite alternate;
  filter: saturate(1.1);
}

.slide.is-active .slide__bg {
  transform: scale(1);
}

[data-theme="aurora"] .slide__bg {
  background-image: radial-gradient(
      circle at 20% 30%,
      #1b2a6b 0%,
      transparent 55%
    ),
    radial-gradient(circle at 80% 70%, #5e2a8c 0%, transparent 55%),
    linear-gradient(135deg, #060814, #0b1030);
}
[data-theme="ember"] .slide__bg {
  background-image: radial-gradient(
      circle at 75% 25%,
      #8c2d2d 0%,
      transparent 55%
    ),
    radial-gradient(circle at 20% 80%, #b15a1f 0%, transparent 55%),
    linear-gradient(135deg, #140806, #2a1108);
}
[data-theme="ocean"] .slide__bg {
  background-image: radial-gradient(
      circle at 70% 30%,
      #0e5e7a 0%,
      transparent 55%
    ),
    radial-gradient(circle at 25% 75%, #1f9d8c 0%, transparent 55%),
    linear-gradient(135deg, #04101a, #06222b);
}
[data-theme="violet"] .slide__bg {
  background-image: radial-gradient(
      circle at 30% 25%,
      #4a2a8c 0%,
      transparent 55%
    ),
    radial-gradient(circle at 80% 75%, #b1407f 0%, transparent 55%),
    linear-gradient(135deg, #0c061a, #1c0a2e);
}

/* light-mode veil: lightens the dark gradients so dark text stays readable */
.slide__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: var(--bg);
  opacity: var(--veil);
  transition: opacity 0.5s var(--ease);
}

/* film-grain noise overlay */
.slide__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===================== Slide content ===================== */
.slide__content {
  position: relative;
  z-index: 3;
  width: min(900px, 88vw);
  text-align: center;
  padding-top: 3rem;
}

.slide__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.slide__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.slide__title .line {
  display: block;
}

.accent-grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide__lead {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
}

.slide__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(110, 139, 255, 0.6);
}

.btn--primary:hover {
  box-shadow: 0 16px 40px -8px rgba(177, 107, 255, 0.7);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-brd);
  color: var(--fg);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---- Pills ---- */
.pills {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pills li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
}

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.card {
  text-align: left;
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
}

.card__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ===================== Entrance animations ===================== */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
}

.slide.is-active [data-anim] {
  animation: rise 1s var(--ease) forwards;
}

.slide.is-active [data-anim]:nth-child(1) { animation-delay: 0.15s; }
.slide.is-active [data-anim]:nth-child(2) { animation-delay: 0.3s; }
.slide.is-active [data-anim]:nth-child(3) { animation-delay: 0.45s; }
.slide.is-active [data-anim]:nth-child(4) { animation-delay: 0.6s; }
.slide.is-active [data-anim]:nth-child(5) { animation-delay: 0.75s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ===================== Controls ===================== */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--fg);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.slider__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slider__arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__arrow--prev {
  left: clamp(1rem, 3vw, 2.5rem);
}
.slider__arrow--prev:hover {
  transform: translateY(-50%) translateX(-4px);
}
.slider__arrow--next {
  right: clamp(1rem, 3vw, 2.5rem);
}
.slider__arrow--next:hover {
  transform: translateY(-50%) translateX(4px);
}

@media (max-width: 640px) {
  .slider__arrow {
    width: 46px;
    height: 46px;
  }
}

/* dots */
.slider__dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.7rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, width 0.4s var(--ease);
}

.dot.is-active {
  width: 32px;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}

/* counter */
.slider__counter {
  position: absolute;
  bottom: 2.1rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 20;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.slider__counter-current {
  color: var(--fg);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .slider__counter {
    display: none;
  }
}

/* progress bar (autoplay) */
.slider__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.08);
}

.slider__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}

.slider__progress-bar.run {
  animation: fill var(--autoplay, 7s) linear forwards;
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

/* ===================== Nav tools: palette + mode toggle ===================== */
.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.palette {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
}

.palette__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--p);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.palette__dot:hover {
  transform: scale(1.15);
}

body[data-palette="indigo"] .palette__dot[data-palette="indigo"],
body[data-palette="emerald"] .palette__dot[data-palette="emerald"],
body[data-palette="rose"] .palette__dot[data-palette="rose"] {
  border-color: var(--fg);
  transform: scale(1.1);
}

.mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  color: var(--fg);
  cursor: pointer;
}

.mode-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  grid-area: 1 / 1;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

body[data-mode="dark"] .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
body[data-mode="dark"] .icon-moon { opacity: 1; }
body[data-mode="light"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
body[data-mode="light"] .icon-sun { opacity: 1; }

@media (max-width: 540px) {
  .palette { display: none; }
}

/* ===================== Über mich: Skills + Timeline ===================== */
.slide__content--wide {
  width: min(1040px, 90vw);
}

.slide__title--sm {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 2rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  text-align: left;
}

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; gap: 1.8rem; }
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: "JetBrains Mono", monospace;
}

.bar {
  height: 8px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  transition: width 1.1s var(--ease);
}

.slide.is-active .bar__fill {
  width: var(--val);
  transition-delay: 0.5s;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--glass-brd);
}

.timeline__item {
  position: relative;
  padding-bottom: 1.3rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--glass);
}

.timeline__year {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
}

.timeline__item h3 {
  font-size: 1.05rem;
  margin: 0.15rem 0 0.25rem;
}

.timeline__item p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ===================== Projekt-Galerie ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.project {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--glass-brd);
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--g);
  background-size: 140% 140%;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: saturate(1.1);
}

.project:hover { transform: translateY(-6px); }
.project:hover::before { transform: scale(1.12); filter: saturate(1.4); }

.project__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 70%);
}

.project__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.project__body h3 {
  font-size: 1.2rem;
  color: #fff;
}

.project__body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.project__stack span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ===================== Kontaktformular ===================== */
.contact-form {
  width: min(560px, 90vw);
  margin: 0 auto;
  text-align: left;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field > span {
  display: block;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--field-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.contact-form__footer {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.form-status.show { opacity: 1; transform: translateY(0); }
.form-status.ok { color: #4fd1c5; }
.form-status.error { color: #ff7a90; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   Scroll-Seite (unter dem Slider)
   ============================================================ */
.page { position: relative; background: var(--bg); z-index: 5; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--alt { background: color-mix(in srgb, var(--fg) 4%, transparent); }

/* ---- Unterseiten-Hero ---- */
.subhero {
  position: relative;
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  z-index: -1;
  background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 55%);
  filter: blur(10px);
}
.subhero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1rem;
}
.subhero p { max-width: 640px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; color: var(--muted); line-height: 1.6; }
.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* Preis-/Detailkarten auf Unterseiten */
.tier {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.6rem;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.tier:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tier__name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.3rem; }
.tier__price { font-family: "JetBrains Mono", monospace; color: var(--accent); margin-bottom: 1rem; }
.tier ul { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.4rem; }
.tier li { font-size: 0.92rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

/* ---- System-Status (aus dem Control Center) ---- */
.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.status__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.status__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28d17c;
  box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(40, 209, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 209, 124, 0); }
}
.status__name { font-weight: 600; font-size: 0.98rem; }
.status__state {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #28d17c;
}
.status__meta { display: flex; flex-direction: column; gap: 0.1rem; }

/* ---- Leistungs-Detailkarten (Unterseite) ---- */
.svc {
  padding: 1.7rem 1.5rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.svc:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.svc__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.svc h3 { font-size: 1.12rem; margin-bottom: 0.8rem; }
.svc ul { list-style: none; display: grid; gap: 0.45rem; }
.svc li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.45;
}
.svc li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}
.tier--featured { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 20px 60px -30px color-mix(in srgb, var(--accent) 80%, transparent); }
.tier__badge {
  align-self: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section__head { max-width: 720px; margin-bottom: 2.8rem; }
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section__lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}
.section__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}

/* ---- Grids ---- */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---- Leistungs-Karten ---- */
.feature {
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 50px -28px color-mix(in srgb, var(--accent) 70%, transparent);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.feature h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.95rem; font-weight: 300; color: var(--muted); line-height: 1.55; }

/* ---- Kennzahlen ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

/* ---- Skills-Block ---- */
.skills-block { align-items: start; gap: 2.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; align-content: flex-start; }
.chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.chips span:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---- Referenz-Karten ---- */
.ref {
  position: relative;
  display: block;
  padding: 1.8rem;
  min-height: 180px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--glass-brd);
  transition: transform 0.4s var(--ease);
}
.ref::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--g);
  background-size: 160% 160%;
  transition: transform 0.6s var(--ease);
}
.ref::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 65%);
}
.ref:hover { transform: translateY(-6px); }
.ref:hover::before { transform: scale(1.12); }
.ref__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.4rem;
}
.ref__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ref__arrow { font-size: 1.3rem; transition: transform 0.3s var(--ease); }
.ref:hover .ref__arrow { transform: translate(3px, -3px); }
.ref h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.ref p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); font-weight: 300; }

/* ---- Prozess-Schritte ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.step {
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.step__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.15rem; margin: 0.6rem 0 0.4rem; }
.step p { font-size: 0.93rem; color: var(--muted); font-weight: 300; line-height: 1.5; }

/* ---- Kontakt-Sektion ---- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: start;
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact__list { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact__list span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__list a { color: var(--fg); text-decoration: none; font-size: 1.05rem; }
.contact__list a:hover { text-decoration: underline; }

.contact-form--card {
  width: 100%;
  margin: 0;
  padding: 1.8rem;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.contact-form--card .btn { width: 100%; justify-content: center; }

/* ---- Marquee ---- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--glass-brd);
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Footer ---- */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--glass-brd);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__tag {
  margin-top: 0.9rem;
  max-width: 320px;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}
.footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.footer__col a { color: var(--fg); opacity: 0.78; text-decoration: none; font-size: 0.93rem; }
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--glass-brd);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__bottom a { color: var(--accent); text-decoration: none; }

/* ============================================================
   Scroll-Reveal (neue Generation: gestaffelt + Blur-Fade)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Skill-Bars im Scroll-Bereich füllen, sobald sichtbar */
.bar.in-view .bar__fill { width: var(--val); transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
