/* K4: Notizen Luca/Max zu K3 (2026-11-29) */

/* ---------- Tech-Band: Icons dauerhaft in Markenfarbe ---------- */
.tech { color: #a3a3a3; }
.tech--react svg { fill: #61DAFB; }
.tech--expo svg { fill: #FFFFFF; }
.tech--swift svg { fill: #F05138; }
.tech--nextdotjs svg { fill: #FFFFFF; }
.tech--fastapi svg { fill: #05998B; }
.tech--postgresql svg { fill: #5A86F0; }      /* #4169E1 leicht aufgehellt für Schwarz */
.tech--tailwindcss svg { fill: #38BDF8; }
.tech--stripe svg { fill: #7A73FF; }
.tech--leaflet svg { fill: #3DB52A; }
.tech--docker svg { fill: #2496ED; }
.tech--hetzner svg { fill: #E5163A; }
.tech--wordpress svg { fill: #3A9BD0; }       /* #21759B auf Schwarz zu dunkel */

/* ---------- Referenzen: immer farbig ---------- */
.cg__name { color: #e5e5e5; }
.cg__media img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cg__card:hover .cg__media img, .cg__card:focus-visible .cg__media img { transform: scale(1.03); }

/* ---------- Bento: Systemadministration ---------- */
.mb__card--sys { justify-content: center; min-height: 0; }
.mb__sys {
  position: absolute; z-index: 2; top: 50%; right: 34px; transform: translateY(-50%);
  width: 56%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.mb__sysitem {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: start;
  padding: 14px 16px; background: #121212; border: 1px solid #1e1e1e; border-radius: 10px;
}
.mb__sysitem svg { grid-row: 1 / 3; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mb__systitle { color: var(--text); font-size: 14.5px; font-weight: 550; letter-spacing: -.01em; }
.mb__systext { color: #9a9a9a; font-size: 13px; line-height: 1.45; }

/* ---------- Werkstatt (Aufbau wie alte Seite, dunkel) ---------- */
.werk { margin-top: 120px; }
.werk .werk__head { display: block; text-align: center; max-width: 640px; margin: 0 auto 44px; }
.werk__eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.werk .werk__title { font-size: 44px; letter-spacing: -.045em; line-height: 1.05; margin-bottom: 14px; }
.werk__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.werk__card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
  background: linear-gradient(180deg, rgba(59, 130, 246, .07), transparent 140px), #0e0e0e;
  border: 1px solid #1e1e1e; border-radius: 18px;
  transition: border-color .25s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.werk__card:hover { border-color: #2c2c2c; transform: translateY(-3px); }
.werk__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .02em; border: 1px solid;
}
.werk__badge svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.werk__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.werk__badge--dev { color: #f5b547; background: rgba(245, 181, 71, .08); border-color: rgba(245, 181, 71, .28); }
.werk__badge--test { color: #f59e6b; background: rgba(245, 158, 107, .08); border-color: rgba(245, 158, 107, .28); }
.werk__badge--live { color: #4ade80; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .28); }
.werk__badge--lock { color: #b69cff; background: rgba(160, 130, 255, .08); border-color: rgba(160, 130, 255, .3); }
.werk__badge--dev .werk__dot, .werk__badge--live .werk__dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); animation: werkPulse 2.4s ease-in-out infinite; }
@keyframes werkPulse { 50% { opacity: .35; } }

.werk__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 14px; overflow: hidden;
  border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, #1a2233, #101216 70%); border: 1px solid #1c1c1c;
}
.werk__media > img { width: 100%; height: 100%; object-fit: cover; }
.werk__card--tall .werk__media { aspect-ratio: 4 / 5; }
.werk__veil {
  position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; color: #d4d4d4; background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.werk__veil svg, .werk__more svg, .werk__ort svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.werk__phone { --iw: 40%; }
.werk__card:hover .werk__phone { transform: translateY(-6px); }
.werk__phone { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

.werk__name { color: var(--text); font-size: 20px; font-weight: 550; letter-spacing: -.025em; line-height: 1.2; }
.werk__art { color: var(--accent); font-size: 13.5px; line-height: 1.45; }
.werk__ort { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.werk__text { color: #a3a3a3; font-size: 14px; line-height: 1.55; margin-top: 6px; }
.werk__foot { margin-top: 10px; }
.werk__client { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.werk__client img { height: 26px; width: auto; border-radius: 4px; }
.werk__more { display: inline-flex; align-items: center; gap: 7px; color: #cfcfcf; font-size: 13.5px; font-weight: 550; }

/* Unter Verschluss: abstrakte Geräte-Platzhalter */
.werk__secret { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(90% 70% at 50% 40%, #16203a, #0b0d14 75%); }
.werk__secret--spiel { background: radial-gradient(90% 70% at 50% 40%, #241a3a, #0c0b14 75%); }
.werk__screen { position: relative; width: 70%; height: 74%; border-radius: 14px; overflow: hidden;
  background: #0a0c12; border: 1px solid #262a36; box-shadow: 0 0 40px -10px rgba(91, 155, 255, .35); }
.werk__log { padding: 3px 10px; border-radius: 999px; border: 1px solid #262a36; background: #0d0f15; color: #7d8496; font-size: 10.5px; }
.werk__head-ghost { position: absolute; left: 50%; top: 16%; width: 46%; aspect-ratio: 1 / 1.25; transform: translateX(-50%);
  border-radius: 50% 50% 42% 42%; background: radial-gradient(closest-side, rgba(91, 155, 255, .75), rgba(59, 130, 246, .15) 70%, transparent);
  filter: blur(10px); }
.werk__bars { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.werk__bars i { width: 4px; border-radius: 2px; background: #5b9bff; animation: werkBar 1.2s ease-in-out infinite; }
.werk__bars i:nth-child(1) { height: 30%; animation-delay: -.2s; } .werk__bars i:nth-child(2) { height: 70%; animation-delay: -.5s; }
.werk__bars i:nth-child(3) { height: 45%; animation-delay: -.1s; } .werk__bars i:nth-child(4) { height: 100%; animation-delay: -.7s; }
.werk__bars i:nth-child(5) { height: 55%; animation-delay: -.3s; } .werk__bars i:nth-child(6) { height: 80%; animation-delay: -.9s; }
.werk__bars i:nth-child(7) { height: 35%; animation-delay: -.4s; }
@keyframes werkBar { 50% { transform: scaleY(.35); } }
.werk__bars i { transform-origin: bottom; }
.werk__blocks { position: absolute; inset: 18% 14% 30%; filter: blur(5px); }
.werk__blocks i { position: absolute; bottom: 0; width: 18%; border-radius: 4px; }
.werk__blocks i:nth-child(1) { left: 6%; height: 50%; background: #3fb6c9; }
.werk__blocks i:nth-child(2) { left: 30%; height: 85%; background: #8b5cf6; }
.werk__blocks i:nth-child(3) { left: 54%; height: 62%; background: #34d399; }
.werk__blocks i:nth-child(4) { left: 76%; height: 40%; background: #a78bfa; }
.werk__stick { position: absolute; left: 10%; bottom: 8%; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #5bc0ff 0 9px, rgba(255, 255, 255, .06) 10px); border: 1px solid #2d3140; }
.werk__secret--sealed .werk__screen { background: repeating-linear-gradient(-45deg, #0c0e14 0 9px, #1c2030 9px 11px); display: grid; place-items: center; }
.werk__lockring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #9aa6c4;
  background: rgba(12, 14, 20, .85); border: 1px solid #2d3140; }
.werk__lockring svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  .werk__bars i, .werk__badge .werk__dot { animation: none; }
  .werk__card, .werk__phone, .cg__media img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mb__sys { width: 52%; right: 24px; }
  .mb__systext { display: none; }
}
@media (max-width: 1023px) {
  .werk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mb__card--sys { min-height: 0; }
  .mb__sys { position: static; transform: none; width: auto; grid-template-columns: 1fr; margin-top: 14px; }
  .mb__systext { display: block; }
  .werk { margin-top: 88px; }
  .werk .werk__title { font-size: 32px; }
  .werk__grid { grid-template-columns: 1fr; }
  .werk__card--tall .werk__media { aspect-ratio: 16 / 12; }
  .werk__phone { --iw: 30%; }
  .werk__card--tall .werk__media:has(.werk__phone) { aspect-ratio: 4 / 5; }
  .werk__media:has(.werk__phone) .werk__phone { --iw: 40%; }
}

/* Reihen gleich hoch wie auf der alten Seite */
.werk__grid { align-items: stretch; }

/* ---------- K4b: Bento-Handy aufrecht, mobil weiter sichtbar ---------- */
.mb__phone .iphone { transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); }
@media (max-width: 767px) {
  .mb__card--big { min-height: 540px; }
  .mb__phone { bottom: -110px; }
}

/* ---------- K4b: Direkter Draht (ersetzt Scroll Reveal) ---------- */
.section--draht { padding-top: 200px; }
.draht { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.draht__eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.draht .h2 { margin-bottom: 28px; }
.draht__lead { font-size: 17px; line-height: 1.6; color: #b5b5b5; max-width: 34em; }
.draht__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.draht__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.draht__list svg { flex: none; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.chat { position: relative; margin: 0; padding: 0 0 22px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #121722, #0d0f14 55%); border: 1px solid #1f2430;
  box-shadow: 0 40px 80px -40px rgba(37, 99, 235, .35); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #1c212c; background: rgba(255, 255, 255, .02); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.chat__who { display: flex; flex-direction: column; line-height: 1.25; }
.chat__name { color: var(--text); font-weight: 550; font-size: 15px; }
.chat__status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.chat__on { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.chat__log { list-style: none; margin: 0; padding: 22px 20px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 440px; }
.chat__msg { max-width: 80%; display: flex; flex-direction: column; gap: 4px; }
.chat__msg p { margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.chat__msg--in { align-self: flex-start; }
.chat__msg--in p { background: #1b1f29; color: #e5e5e5; border-bottom-left-radius: 5px; }
.chat__msg--out { align-self: flex-end; align-items: flex-end; }
.chat__msg--out p { background: var(--accent-btn); color: #fff; border-bottom-right-radius: 5px; }
.chat__time { font-size: 10.5px; color: #6b7080; padding: 0 4px; }
.chat__file { display: flex; align-items: center; gap: 8px; margin: -2px -4px 8px; padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .14); font-size: 11.5px; }
.chat__file::before { content: "PDF"; padding: 3px 5px; border-radius: 4px; background: #fff; color: #1d4ed8; font-size: 9.5px; font-weight: 700; }
.chat__cap { position: absolute; right: 16px; bottom: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #4b5060; }
.chat__typing { display: none; align-self: flex-end; gap: 4px; padding: 13px 14px; border-radius: 16px; border-bottom-right-radius: 5px; background: #1b2a4a; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #8ab6ff; animation: chatDot 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 50% { transform: translateY(-3px); opacity: .4; } }
.chat.is-live .chat__msg { display: none; }
.chat.is-live .chat__msg.is-in { display: flex; animation: chatIn .38s cubic-bezier(.2, .8, .2, 1) both; }
.chat.is-live .chat__typing.is-on { display: flex; animation: chatIn .25s ease-out both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (max-width: 1023px) { .draht { grid-template-columns: 1fr; gap: 48px; } .chat { max-width: 520px; } }
@media (max-width: 767px) { .section--draht { padding-top: 120px; } .chat__log { min-height: 470px; } .chat__msg { max-width: 88%; } }

/* ---------- K4c: Demo-Modus im Story-Handy ---------- */
.demo { position: absolute; inset: 0; display: block; overflow: hidden; background: #000; }
.demo .demo__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: translate3d(100%, 0, 0); transition: transform .62s cubic-bezier(.32, .72, 0, 1), filter .62s ease;
  backface-visibility: hidden;
}
.demo[data-demo-dir="v"] .demo__shot { transform: translate3d(0, 100%, 0); }
.demo .demo__shot.is-cur { transform: none; z-index: 2; box-shadow: -18px 0 30px -12px rgba(0, 0, 0, .5); }
.demo .demo__shot.is-prev { transform: translate3d(-28%, 0, 0); filter: brightness(.5); z-index: 1; }
.demo[data-demo-dir="v"] .demo__shot.is-prev { transform: translate3d(0, -100%, 0); filter: none; }
.demo .demo__shot.no-t { transition: none; }

/* ---------- K4c: kürzere Story (vorher 500vh = 80vh Scroll pro Projekt, jetzt 45vh) ---------- */
.journey.is-pinned .story { height: 325vh; }

/* ---------- K4d: Menü-Button passt in die runde Navi-Pille (Max, 2026-11-29) ---------- */
.burger { border-radius: 12px; transition: border-radius .4s ease, width .4s ease, height .4s ease, background-color .2s; }
.nav.is-pill .burger { width: 42px; height: 42px; border-radius: 50%; background: #1a1a1a; border-color: #2c2c2c; }
.nav.is-pill .burger__bar { left: 12px; right: 12px; }
.nav.is-pill .burger__bar:nth-of-type(2) { top: 16px; }
.nav.is-pill .burger__bar:nth-of-type(3) { top: 24px; }
@media (max-width: 1100px) { .nav.is-pill .nav__inner { padding-right: 7px; } }
