/* Nexvia Custom Styles & Accessibility (BFSG / WCAG 2.1 AA Compliant) */

@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --foreground: #ffffff;
  --background: #000000;
  --angle-1: -75deg;
  --angle-2: -45deg;
  --color-brand-green: #22c55e;
  --color-brand-emerald: #10b981;
  --color-brand-cyan: #06b6d4;
  --color-brand-blue: #0284c7;
  --color-bg-dark: #000000;
  --color-card-bg: rgba(255, 255, 255, 0.025);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-glow-green: rgba(34, 197, 94, 0.1);
  --color-glow-cyan: rgba(6, 182, 212, 0.1);
}

/* 100% DSGVO-konforme System-Schriftarten (Kein Google-Fonts-Serverkontakt) */
html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
  background-color: #000000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: #000000;
  color: #f1f5f9;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.025em;
}

.font-serif-italic {
  font-family: "Georgia", "Times New Roman", "Playfair Display", serif;
  font-style: italic;
  font-weight: 300;
}

/* BFSG / Barrierefreiheit: Skip Link für Tastatur- & Screen-Reader-Navigation */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #06b6d4;
}

/* Tastatur-Fokus-Indikator für alle interaktiven Elemente (BFSG-Kriterium) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #06b6d4 !important;
  outline-offset: 3px !important;
}

/* Subtiles Gradient Text & Tags */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Minimalist Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Neon Glows Purged for High-End Minimalist Aesthetic */
.ambient-glow-green,
.ambient-glow-cyan,
.tech-grid-bg {
  display: none !important;
}

/* Glassmorphism Cards: Calm, Quiet Luxury */
.glass-panel {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Liquid Glass Buttons with Dynamic Specular Reflection (Mirror Sheen)
   ========================================================================== */

.glass-button-wrap {
  --anim-time: 0.3s;
  --anim-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --border-width: clamp(1px, 0.0625em, 4px);
  z-index: 2;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  touch-action: manipulation !important;
}

/* 3D tilt NUR auf Desktop mit echter Maus – niemals auf Touchscreens/Smartphones */
@media (hover: hover) and (pointer: fine) {
  .glass-button-wrap {
    transform-style: preserve-3d;
    transition: transform var(--anim-time) var(--anim-ease);
  }
  .glass-button-wrap:has(.glass-button:active) {
    transform: rotateX(15deg);
  }
}

.glass-button-shadow {
  --shadow-cutoff-fix: 2em;
  width: calc(100% + var(--shadow-cutoff-fix));
  height: calc(100% + var(--shadow-cutoff-fix));
  top: calc(0% - var(--shadow-cutoff-fix) / 2);
  left: calc(0% - var(--shadow-cutoff-fix) / 2);
  filter: blur(clamp(2px, 0.125em, 12px));
  transition: filter var(--anim-time) var(--anim-ease);
  pointer-events: none !important;
  position: absolute;
  border-radius: 9999px;
  z-index: 0 !important;
}

.glass-button-shadow:after,
.glass-button-shadow:before {
  pointer-events: none !important;
}

.glass-button-shadow:after {
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  background: linear-gradient(180deg, oklch(from var(--foreground) l c h / 20%), oklch(from var(--foreground) l c h / 10%));
  width: calc(100% - var(--shadow-cutoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cutoff-fix) - 0.25em);
  top: calc(var(--shadow-cutoff-fix) - 0.5em);
  left: calc(var(--shadow-cutoff-fix) - 0.875em);
  box-sizing: border-box;
  transition: all var(--anim-time) var(--anim-ease);
  opacity: 1;
  border-radius: 9999px;
  padding: 0.125em;
  position: absolute;
  pointer-events: none !important;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0, #000 0), linear-gradient(#000 0, #000 0);
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glass-button {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(clamp(3px, 0.25em, 16px));
  backdrop-filter: blur(clamp(3px, 0.25em, 16px));
  transition: all var(--anim-time) var(--anim-ease);
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  background: linear-gradient(-75deg, oklch(from var(--background) l c h / 5%), oklch(from var(--background) l c h / 20%), oklch(from var(--background) l c h / 5%));
  box-shadow: inset 0 0.125em 0.125em rgba(255, 255, 255, 0.1),
              inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5),
              0 0.25em 0.125em -0.125em rgba(255, 255, 255, 0.2),
              0 0 0.1em 0.25em inset rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0.125em 0.125em oklch(from var(--foreground) l c h / 5%),
              inset 0 -0.125em 0.125em oklch(from var(--background) l c h / 50%),
              0 0.25em 0.125em -0.125em oklch(from var(--foreground) l c h / 20%),
              0 0 0.1em 0.25em inset oklch(from var(--background) l c h / 20%),
              0 0 oklch(from var(--background) l c h);
  border-radius: 9999px;
  position: relative;
  z-index: 10 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1;
}

.glass-button:hover {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0.125em 0.125em rgba(255, 255, 255, 0.15),
              inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5),
              0 0.15em 0.05em -0.1em rgba(255, 255, 255, 0.3),
              0 0 0.05em 0.1em inset rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0.125em 0.125em oklch(from var(--foreground) l c h / 5%),
              inset 0 -0.125em 0.125em oklch(from var(--background) l c h / 50%),
              0 0.15em 0.05em -0.1em oklch(from var(--foreground) l c h / 25%),
              0 0 0.05em 0.1em inset oklch(from var(--background) l c h / 50%),
              0 0 oklch(from var(--background) l c h);
  transform: scale(0.985);
}

.glass-button-text {
  color: rgba(255, 255, 255, 0.95);
  color: oklch(from var(--foreground) l c h / 95%);
  text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.5);
  text-shadow: 0em 0.25em 0.05em oklch(from var(--foreground) l c h / 10%);
  transition: all var(--anim-time) var(--anim-ease);
  position: relative;
  z-index: 2 !important;
  pointer-events: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.015em;
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  user-select: none;
  white-space: nowrap !important;
  width: 100%;
}

.glass-button-text * {
  pointer-events: none !important;
}

.glass-button:hover .glass-button-text {
  text-shadow: 0.025em 0.025em 0.025em rgba(255, 255, 255, 0.3);
  text-shadow: 0.025em 0.025em 0.025em oklch(from var(--foreground) l c h / 12%);
}

/* Spiegel-Effekt / Specular Reflection Sheen */
.glass-button-text:after {
  content: "";
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  box-sizing: border-box;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.25) 40%, rgba(255, 255, 255, 0.65) 50%, transparent 60%);
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, oklch(from var(--background) l c h / 50%) 40% 50%, transparent 55%);
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events: none !important;
  transition: background-position calc(var(--anim-time) * 1.5) var(--anim-ease),
              --angle-2 calc(var(--anim-time) * 1.5) var(--anim-ease);
  background-position: 0% 0%;
  background-size: 200% 200%;
  border-radius: 9999px;
  display: block;
  position: absolute;
  overflow: clip;
}

.glass-button:hover .glass-button-text:after {
  --angle-2: -25deg;
  background-position: 100% 100%;
}

.glass-button:active .glass-button-text:after {
  --angle-2: -15deg;
  background-position: 50% 15%;
}

/* Conic Border Glass Highlight */
.glass-button:after {
  content: "";
  z-index: 1;
  pointer-events: none !important;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background: conic-gradient(from var(--angle-1, -75deg) at 50% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 6% 38%, rgba(255, 255, 255, 0.7) 50%, transparent 56% 92%, rgba(255, 255, 255, 0.7) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background: conic-gradient(from var(--angle-1, -75deg) at 50% 50%, oklch(from var(--foreground) l c h / 50%) 0%, transparent 5% 40%, oklch(from var(--foreground) l c h / 50%) 50%, transparent 60% 95%, oklch(from var(--foreground) l c h / 50%) 100%), linear-gradient(180deg, oklch(from var(--background) l c h / 50%), oklch(from var(--background) l c h / 50%));
  transition: all var(--anim-time) var(--anim-ease), --angle-1 0.5s ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) oklch(from var(--background) l c h / 50%);
  border-radius: 9999px;
  position: absolute;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0, #000 0), linear-gradient(#000 0, #000 0);
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glass-button:hover:after {
  --angle-1: -125deg;
}

.glass-button:active:after {
  --angle-1: -75deg;
}

.glass-button-wrap:has(.glass-button:hover) .glass-button-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
}

.glass-button-wrap:has(.glass-button:hover) .glass-button-shadow:after {
  top: calc(var(--shadow-cutoff-fix) - 0.875em);
  opacity: 1;
}

.glass-button-wrap:has(.glass-button:active) .glass-button-shadow {
  filter: blur(clamp(2px, 0.125em, 12px));
}

.glass-button-wrap:has(.glass-button:active) .glass-button-shadow:after {
  top: calc(var(--shadow-cutoff-fix) - 0.5em);
  opacity: 0.75;
}

.glass-button-wrap:has(.glass-button:active) .glass-button-text {
  text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.5);
  text-shadow: 0.025em 0.25em 0.05em oklch(from var(--foreground) l c h / 12%);
}

.glass-button-wrap:has(.glass-button:active) .glass-button {
  box-shadow: inset 0 0.125em 0.125em rgba(255, 255, 255, 0.1),
              inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5),
              0 0.125em 0.125em -0.125em rgba(255, 255, 255, 0.2),
              0 0 0.1em 0.25em inset rgba(0, 0, 0, 0.2),
              0 0.225em 0.05em rgba(255, 255, 255, 0.05),
              0 0.25em rgba(0, 0, 0, 0.75),
              inset 0 0.25em 0.05em rgba(255, 255, 255, 0.15);
}

/* Accent Glowing Liquid Glass Variant */
.glass-button-accent {
  background: linear-gradient(-75deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.25)) !important;
}

.glass-button-accent .glass-button-text {
  color: #ffffff !important;
  font-weight: 600;
}

.glass-button-accent:hover {
  background: linear-gradient(-75deg, rgba(6, 182, 212, 0.35), rgba(16, 185, 129, 0.45), rgba(6, 182, 212, 0.35)) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0.125em 0.125em rgba(255, 255, 255, 0.35) !important;
}

/* Compact Size for Navigation and Header (Exact same height & padding) */
.glass-button-sm {
  height: 2.25rem !important; /* 36px on mobile */
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.glass-button-sm .glass-button-text {
  padding: 0 0.85rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  height: 2.25rem !important;
  line-height: 2.25rem !important;
  gap: 0.35rem !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Kein display-Zwang: die Kinder sind bereits Flex-Items von .glass-button-text
   und werden darueber zentriert. Ein "display: inline-flex !important" wuerde hier
   Tailwinds .hidden / .sm:hidden ueberschreiben und beide Button-Labels anzeigen. */
.glass-button-sm .glass-button-text * {
  white-space: nowrap !important;
}

.glass-button-wrap:has(.glass-button-sm),
.glass-button-wrap.glass-button-sm-wrap {
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .glass-button-sm {
    height: 2.5rem !important; /* 40px on tablet/desktop */
  }

  .glass-button-sm .glass-button-text {
    padding: 0 1.25rem !important;
    font-size: 0.75rem !important;
    height: 2.5rem !important;
    line-height: 2.5rem !important;
    gap: 0.45rem !important;
  }

  .glass-button-wrap:has(.glass-button-sm),
  .glass-button-wrap.glass-button-sm-wrap {
    height: 2.5rem;
  }
}
.glass-button-wrap.w-full {
  display: flex !important;
  width: 100% !important;
}

.glass-button-wrap.w-full .glass-button {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* Mobile Alignment & Sizing (Screen widths < 640px) */
@media (max-width: 640px) {
  .glass-button-text {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.8125rem !important;
    gap: 0.45rem !important;
    justify-content: center !important;
  }

  .glass-button-wrap {
    max-width: 100%;
  }

  .glass-button-sm {
    height: 2.25rem !important;
    flex-shrink: 0 !important;
  }

  .glass-button-sm .glass-button-text {
    height: 2.25rem !important;
    line-height: 2.25rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.72rem !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
  }
}

/* Also bring specular reflections to all classic btn-primary and btn-secondary */
.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #000000 !important;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  isolation: isolate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.4) 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%);
  mix-blend-mode: overlay;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.28);
}

.btn-primary:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

.btn-secondary {
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.6) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

/* Navigation Menu & Pill Liquid Glass Elements */
#nav-menu-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#nav-menu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.25) 42%, rgba(255, 255, 255, 0.7) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

#nav-menu-btn:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

#nav-menu-btn:active {
  transform: scale(0.97);
}

.service-pill-slim {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-pill-slim::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.15) 42%, rgba(255, 255, 255, 0.5) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.5s ease;
  z-index: 1;
}

.service-pill-slim:hover::before {
  background-position: 100% 100%;
}

.portfolio-cat-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-cat-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.6) 50%, transparent 58%);
  mix-blend-mode: overlay;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.5s ease;
  z-index: 1;
}

.portfolio-cat-btn:hover::before {
  background-position: 100% 100%;
}

#portfolio-prev,
#portfolio-next {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#portfolio-prev::before,
#portfolio-next::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.6) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.5s ease;
  z-index: 1;
}

#portfolio-prev:hover::before,
#portfolio-next:hover::before {
  background-position: 100% 100%;
}

#portfolio-prev:active,
#portfolio-next:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Nexvia Redesign: Paper Shader & Editorial Typography (reuno-ui Inspired)
   ========================================================================== */

.paper-shader-hero {
  position: relative;
  background-color: #000000;
  overflow: hidden;
}

#fluid-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

#mesh-gradient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

#mesh-wireframe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  opacity: 1.0;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.25));
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

/* 3-Tier Typography Hierarchy */
.tier-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tier-line-1 {
  font-size: clamp(1.65rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.animated-hero-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 30%, #f97316 70%, #ffffff 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.35));
  animation: heroGradientShift 8s linear infinite;
}

@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tier-line-2 {
  font-size: clamp(2.35rem, 7.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.35rem;
}

.tier-line-3 {
  font-size: clamp(1.75rem, 5.5vw, 4.8rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.1;
  font-family: "Georgia", "Times New Roman", "Playfair Display", serif;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

/* Gooey Button (21st.dev / reuno-ui authentic) */
#gooey-btn {
  filter: url(#gooey-filter);
  transition: transform 0.3s ease;
}
#gooey-btn:hover {
  transform: scale(1.02);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #1e293b;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
  border: 2px solid #050811;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px #06b6d4, 0 0 14px rgba(34, 197, 94, 0.6);
}

/* Portfolio Showcase Slider Animations */
.portfolio-slide {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.portfolio-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.browser-mockup {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.1);
}

/* Slim Contact Form & Blue-Cyan Gradient Button */
.btn-gradient-blue-cyan {
  background: linear-gradient(90deg, #1d68f2 0%, #00b4d8 55%, #00d2ff 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(29, 104, 242, 0.4), 0 0 20px rgba(0, 210, 255, 0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-gradient-blue-cyan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.25) 42%, rgba(255, 255, 255, 0.7) 50%, transparent 58%);
  mix-blend-mode: overlay;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

.btn-gradient-blue-cyan:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

.btn-gradient-blue-cyan:hover {
  background: linear-gradient(90deg, #2563eb 0%, #00c0e8 55%, #38bdf8 100%);
  box-shadow: 0 12px 30px -4px rgba(29, 104, 242, 0.5), 0 0 28px rgba(0, 210, 255, 0.35);
  transform: translateY(-1px);
}

.btn-gradient-blue-cyan:active {
  transform: scale(0.99);
}

.service-pill-slim {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s ease;
  user-select: none;
}

.service-pill-slim:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.service-pill-slim.is-selected {
  background: rgba(6, 182, 212, 0.16) !important;
  border-color: #00d2ff !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

/* 5 Webdesign Style Archetypes */
.btn-style-corporate {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}
.btn-style-corporate:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-style-clean {
  background: #ffffff;
  color: #090d16;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.btn-style-clean:hover {
  background: #f1f5f9;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-style-darktech {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #040814;
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}
.btn-style-darktech:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.65);
  transform: translateY(-1px);
}

.btn-style-bold {
  background: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transition: all 0.2s ease;
}
.btn-style-bold:hover {
  background: linear-gradient(135deg, #a855f7 0%, #fb923c 100%);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.55);
  transform: translateY(-1px);
}

.btn-style-luxury {
  background: linear-gradient(135deg, #d4af37 0%, #e5c07b 50%, #c59b27 100%);
  color: #12100e;
  font-weight: 700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}
.btn-style-luxury:hover {
  background: linear-gradient(135deg, #e5c07b 0%, #f3d799 50%, #d4af37 100%);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

.btn-style-craft {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
  transition: all 0.2s ease;
}
.btn-style-craft:hover {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.6);
  transform: translateY(-1px);
}

.btn-style-architecture {
  background: linear-gradient(135deg, #65a30d 0%, #84cc16 100%);
  color: #050d03;
  font-weight: 700;
  border: 1px solid rgba(132, 204, 22, 0.5);
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.35);
  transition: all 0.2s ease;
}
.btn-style-architecture:hover {
  background: linear-gradient(135deg, #84cc16 0%, #a3e635 100%);
  box-shadow: 0 6px 22px rgba(132, 204, 22, 0.55);
  transform: translateY(-1px);
}

.btn-style-beauty {
  background: linear-gradient(135deg, #be185d 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.4);
  transition: all 0.2s ease;
}
.btn-style-beauty:hover {
  background: linear-gradient(135deg, #db2777 0%, #f43f5e 100%);
  box-shadow: 0 6px 22px rgba(190, 24, 93, 0.6);
  transform: translateY(-1px);
}

.btn-style-gastro {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  transition: all 0.2s ease;
}
.btn-style-gastro:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.6);
  transform: translateY(-1px);
}

/* Specular mirror sheen on all style showcase buttons */
.btn-style-craft,
.btn-style-architecture,
.btn-style-beauty,
.btn-style-gastro,
.btn-style-darktech {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-style-craft::before,
.btn-style-architecture::before,
.btn-style-beauty::before,
.btn-style-gastro::before,
.btn-style-darktech::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.25) 42%, rgba(255, 255, 255, 0.7) 50%, transparent 58%);
  mix-blend-mode: overlay;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

.btn-style-craft:hover::before,
.btn-style-architecture:hover::before,
.btn-style-beauty:hover::before,
.btn-style-gastro:hover::before,
.btn-style-darktech:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

/* ==========================================================================
   KI-Produktberater „Alex“ Widget & Modal Styles
   ========================================================================== */

#alex-trigger-btn {
  background-color: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#alex-trigger-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(var(--angle-2, -45deg), transparent 0%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), --angle-2 0.6s ease;
  z-index: 2;
}

#alex-trigger-btn:hover::before {
  --angle-2: -20deg;
  background-position: 100% 100%;
}

#alex-trigger-btn:hover {
  background-color: rgba(18, 18, 18, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

#alex-chat-modal {
  background-color: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar im Chat */
#alex-messages::-webkit-scrollbar,
#alex-inline-messages::-webkit-scrollbar {
  width: 5px;
}
#alex-messages::-webkit-scrollbar-track,
#alex-inline-messages::-webkit-scrollbar-track {
  background: transparent;
}
#alex-messages::-webkit-scrollbar-thumb,
#alex-inline-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
#alex-messages::-webkit-scrollbar-thumb:hover,
#alex-inline-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.35);
}

/* Responsive Mobile Full-Width Bottom Sheet */
@media (max-width: 639px) {
  #alex-chat-modal {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    width: auto;
    max-width: none;
    height: 75vh;
    max-height: 520px;
  }
}

/* ==========================================================================
   Mobile Performance & 60-120fps Smooth Scrolling Optimization
   ========================================================================== */
@media (max-width: 768px) {
  /* Reduce blur overhead on mobile GPUs for stutter-free 60-120fps scrolling */
  .ambient-glow-green,
  .ambient-glow-cyan {
    filter: blur(35px);
    width: 300px;
    height: 300px;
    opacity: 0.55;
  }

  /* Optimize glassmorphism on mobile: lighter blur + hardware composite layer */
  .glass-panel {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(13, 20, 36, 0.92);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Header stays rock-solid without multi-layer blur recalculations during scroll */
  header[role="banner"] {
    background-color: rgba(5, 8, 17, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Optimize shadows and transitions on touch devices */
  .browser-mockup {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6);
  }

  .glass-panel:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  }

  /* Prevent iOS Safari auto-zoom when tapping into form inputs / textareas */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}


/* ==========================================================================
   Lesbarkeit auf dem Handy: Kleinstschriften +3px
   --------------------------------------------------------------------------
   Betrifft nur Viewports unterhalb des sm-Breakpoints (640px). Ab Tablet
   greifen wieder unveraendert die Tailwind-Klassen aus dem Markup.
   Die Mockups der vier Schritte lagen bei 8-11px und waren am Geraet
   praktisch nicht lesbar.
   ========================================================================== */
@media (max-width: 639px) {
  .text-\[8px\]  { font-size: 11px !important; }
  .text-\[9px\]  { font-size: 12px !important; }
  .text-\[10px\] { font-size: 13px !important; }
  .text-\[11px\] { font-size: 14px !important; }
  .text-xs       { font-size: 15px !important; line-height: 1.45 !important; }
}

/* Sehr schmale Geraete (iPhone SE 1. Gen, 320px): Innenabstaende der beiden
   Kopfzeilen-Knoepfe verringern, damit der Menue-Knopf nicht ueber den Rand
   hinausragt. Ab 360px bleibt alles unveraendert. */
@media (max-width: 359px) {
  .glass-button-sm .glass-button-text {
    padding: 0 0.55rem !important;
    gap: 0.25rem !important;
  }
}
