/* Tecbuster v4.0 custom styles (optional) */
/* All visuals are text-free; text lives in HTML layers. */
:root {
  --tb-bg-main: #0d0f12;
  --tb-bg-card: #161a1f;
  --tb-bg-soft: #12151a;
  --tb-text-primary: #e6e8eb;
  --tb-text-emphasis: #cfd6dd;
  --tb-text-secondary: #a0a7b0;
  --tb-accent-primary: #d4a24c;
  --tb-accent-secondary: #5f8fa3;
  --tb-border: rgba(255, 255, 255, 0.06);
}

/* ================================
   Hero cinematic behavior (live-safe)
================================ */
#home {
  --hero-phase-duration: 17s;
  --hero-sub-delay: 0.6s;
}

#home > img.object-cover.hero-bg-layer {
  transform-origin: center center;
  will-change: transform;
  animation: heroCinematicZoom 20s ease-in-out infinite alternate;
}

#home > img.object-cover.hero-bg-start {
  z-index: 0;
  opacity: 0.7;
}

#home > img.object-cover.hero-bg-end {
  z-index: 1;
  opacity: 0;
  animation:
    heroCinematicZoom 20s ease-in-out infinite alternate,
    heroCrossfade var(--hero-phase-duration) ease-in-out forwards;
}

#home::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(76% 66% at 78% 18%, rgba(212, 162, 76, 0.14) 0%, rgba(212, 162, 76, 0.08) 26%, rgba(212, 162, 76, 0) 62%),
    radial-gradient(84% 74% at 24% 78%, rgba(95, 143, 163, 0.08) 0%, rgba(95, 143, 163, 0) 58%);
  opacity: 0.14;
  will-change: transform, opacity;
  animation: heroLightShift 24s ease-in-out infinite alternate;
}

#home .hero-text-primary {
  will-change: opacity, transform, filter;
  animation: heroTextPresence var(--hero-phase-duration) ease-out forwards;
}

#home .hero-text-secondary {
  will-change: opacity, transform, filter;
  animation: heroTextPresenceSub var(--hero-phase-duration) ease-out var(--hero-sub-delay) forwards;
  animation-fill-mode: both;
}

@keyframes heroCinematicZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes heroCrossfade {
  0% { opacity: 0; }
  72% { opacity: 0.68; }
  100% { opacity: 0.72; }
}

@keyframes heroLightShift {
  from {
    transform: translate3d(-1.5%, 0.8%, 0) scale(1);
    opacity: 0.12;
  }
  to {
    transform: translate3d(1.2%, -1.1%, 0) scale(1.035);
    opacity: 0.18;
  }
}

@keyframes heroTextPresence {
  from {
    opacity: 0.82;
    transform: translateY(6px) scale(0.97);
    filter: blur(1.1px);
  }
  72%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTextPresenceSub {
  from {
    opacity: 0.78;
    transform: translateY(7px) scale(0.955);
    filter: blur(1.35px);
  }
  72%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html,
body {
  background: var(--tb-bg-main) !important;
  color: var(--tb-text-primary) !important;
}

::selection {
  background: rgba(212, 162, 76, 0.35);
  color: #0d0f12;
}

.bg-neutral-950 {
  background-color: var(--tb-bg-main) !important;
}

.bg-neutral-950\/90,
.bg-neutral-950\/60 {
  background-color: rgba(13, 15, 18, 0.9) !important;
}

.bg-neutral-900,
.bg-neutral-900\/30,
.bg-neutral-900\/40,
.bg-neutral-900\/60 {
  background-color: var(--tb-bg-card) !important;
}

.text-neutral-100,
.text-neutral-200 {
  color: var(--tb-text-primary) !important;
}

.text-neutral-300,
.text-neutral-400 {
  color: var(--tb-text-secondary) !important;
}

.text-neutral-500 {
  color: #8f97a1 !important;
}

.text-cyan-400,
.text-cyan-300 {
  color: var(--tb-text-primary) !important;
}

.text-amber-300,
.text-amber-400 {
  color: var(--tb-text-emphasis) !important;
}

.text-red-500 {
  color: #bf9662 !important;
}

.text-green-500 {
  color: var(--tb-accent-secondary) !important;
}

.bg-cyan-500,
.bg-cyan-600 {
  background-color: var(--tb-accent-primary) !important;
}

.border-neutral-800,
.border-cyan-500,
.border-cyan-500\/45,
.border-amber-400\/25 {
  border-color: var(--tb-border) !important;
}

.border-amber-400 {
  border-color: rgba(212, 162, 76, 0.45) !important;
}

.hover\:text-cyan-400:hover {
  color: var(--tb-text-emphasis) !important;
}

.hover\:bg-cyan-500:hover,
.hover\:bg-cyan-600:hover {
  background-color: #c49545 !important;
}

.from-cyan-500\/10 {
  --tw-gradient-from: rgba(95, 143, 163, 0.1) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(95, 143, 163, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-amber-400\/10 {
  --tw-gradient-to: rgba(212, 162, 76, 0.08) var(--tw-gradient-to-position) !important;
}

.drop-shadow-lg {
  filter: none !important;
}

.shadow-lg,
.shadow-xl {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
}

[style*="text-shadow"] {
  text-shadow: none !important;
}

.animate-pulse {
  animation: none !important;
  opacity: 0.28 !important;
}

a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease,
    border-color 0.2s ease;
}

a:hover,
button:hover {
  opacity: 0.96;
}

#workflow .workflow-phase {
  border-color: var(--tb-border) !important;
  background: linear-gradient(160deg, var(--tb-bg-card), var(--tb-bg-soft)) !important;
}

#workflow .workflow-phase .workflow-title,
#workflow .workflow-phase .workflow-num {
  color: var(--tb-text-primary) !important;
  text-shadow: none !important;
}

#workflow .workflow-indicator {
  color: var(--tb-accent-secondary) !important;
}

#workflow .workflow-toggle:focus-visible {
  outline: 2px solid rgba(212, 162, 76, 0.7) !important;
}

#workflow .workflow-detail p {
  color: var(--tb-text-secondary) !important;
}

#workflow .workflow-phase:not(.workflow-final)::after {
  background: linear-gradient(
    90deg,
    rgba(95, 143, 163, 0.34),
    rgba(95, 143, 163, 0)
  ) !important;
}

#workflow .workflow-phase::before {
  background: linear-gradient(
    180deg,
    rgba(95, 143, 163, 0),
    rgba(95, 143, 163, 0.22),
    rgba(95, 143, 163, 0)
  ) !important;
}

#workflow .workflow-phase.workflow-final {
  background: linear-gradient(160deg, #13171c, #101318) !important;
}

#workflow .workflow-phase.workflow-final .workflow-title,
#workflow .workflow-phase.workflow-final .workflow-num,
#workflow .workflow-phase.workflow-final .workflow-indicator {
  color: #8f9ba8 !important;
}

#workflow .effort-bar {
  background: rgba(255, 255, 255, 0.08) !important;
}

#workflow .effort-main {
  background: linear-gradient(
    90deg,
    rgba(212, 162, 76, 0.68),
    rgba(212, 162, 76, 0.9)
  ) !important;
  box-shadow: none !important;
}

#workflow .effort-final {
  background: linear-gradient(
    90deg,
    rgba(95, 143, 163, 0.52),
    rgba(95, 143, 163, 0.7)
  ) !important;
}

h1,
h2,
h3 {
  color: var(--tb-text-primary) !important;
}

h4 {
  color: var(--tb-text-emphasis) !important;
}

#workflow [data-i18n="workflow_closing_line1"] {
  color: var(--tb-text-primary) !important;
}

#workflow [data-i18n="workflow_closing_line2"] {
  color: var(--tb-text-emphasis) !important;
}

.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  padding-top: 2px;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.linkedin-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.linkedin-icon svg {
  width: 20px;
  height: 20px;
  fill: #0A66C2; /* offizielles LinkedIn Blau */
}

/* ================================
   Mobile Usability Optimizations
================================ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  #home::before {
    animation: none !important;
    transform: none !important;
    opacity: 0.14 !important;
  }

  #home > img.object-cover.hero-bg-layer {
    animation: none !important;
    transform: scale(1) !important;
  }

  #home > img.object-cover.hero-bg-end {
    opacity: 0 !important;
  }

  #home .hero-text-primary,
  #home .hero-text-secondary {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.min-h-screen {
  min-height: 100vh !important;
  min-height: 100svh !important;
  min-height: 100dvh !important;
}

.min-h-\[80vh\] {
  min-height: 80vh !important;
  min-height: 80svh !important;
  min-height: 80dvh !important;
}

.min-h-\[60vh\] {
  min-height: 60vh !important;
  min-height: 60svh !important;
  min-height: 60dvh !important;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

#workflow .workflow-phase.is-open .workflow-detail {
  max-height: 900px !important;
}

@media (hover: hover) and (pointer: fine) {
  #workflow .workflow-phase:hover .workflow-detail {
    max-height: 900px !important;
  }
}

#workflow .flex.justify-between.text-sm {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

#workflow .flex.justify-between.text-sm > span:last-child {
  white-space: nowrap;
}

@media (max-width: 820px) {
  body > nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.45rem;
    padding: 0.85rem 1rem !important;
  }

  body > nav > a:first-child {
    font-size: 1rem !important;
  }

  body > nav > .linkedin-icon {
    order: 2;
    margin-left: auto !important;
    padding-top: 0 !important;
  }

  body > nav > div.flex {
    order: 3;
    width: 100%;
    margin-top: 0.2rem;
    gap: 0.35rem 0.55rem !important;
  }

  body > nav > div.flex > a,
  body > nav [data-lang] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0.4rem;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  body > nav > div.flex > div {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem !important;
  }
}

@media (max-width: 767px) {
  nav[class*="px-8"],
  section[class*="px-8"],
  footer[class*="px-8"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  section[class*="py-24"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  iframe.w-full.h-\[220px\].md\:h-\[360px\] {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  #workflow .workflow-toggle {
    padding: 0.9rem !important;
  }

  #workflow .workflow-detail {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  #workflow .workflow-detail p {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 640px) {
  .text-4xl.md\:text-6xl,
  h1.text-4xl,
  h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    word-break: break-word;
  }

  .text-lg.md\:text-xl,
  .text-xl {
    font-size: clamp(1rem, 4.3vw, 1.2rem) !important;
    line-height: 1.45 !important;
  }

  section#home .relative.z-10.max-w-3xl,
  section .relative.z-10.max-w-3xl {
    width: 100%;
    max-width: 100% !important;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  body.flex.flex-col.items-center.justify-center.min-h-screen {
    justify-content: flex-start !important;
    padding-top: 1rem !important;
  }

  body.flex.flex-col.items-center.justify-center.min-h-screen > .absolute.top-6.left-6,
  body.flex.flex-col.items-center.justify-center.min-h-screen > a.absolute.top-6.right-6 {
    position: static !important;
    align-self: flex-start;
    margin-bottom: 0.55rem;
  }

  body.flex.flex-col.items-center.justify-center.min-h-screen > div.w-full.max-w-lg {
    margin-top: 0.6rem !important;
    padding: 1rem !important;
  }

  body.flex.flex-col.items-center.justify-center.min-h-screen form#uploadForm {
    padding: 1rem !important;
  }
}

@media (max-width: 430px) {
  body > nav > div.flex {
    gap: 0.2rem 0.35rem !important;
  }

  body > nav > div.flex > a {
    padding: 0.15rem 0.3rem;
    font-size: 0.8rem;
  }

  body > nav > div.flex > div {
    gap: 0.15rem 0.35rem !important;
  }
}
