/**
 * components.css
 * Reusable UI components for deinwebteam.de
 *
 * Includes:
 * - Buttons (.btn, .btn--primary, .btn--secondary, .btn--ghost)
 * - Cards (.card, .card--featured, .card--service)
 * - Forms (.form, .form__field, .form__input, .form__label, .form__error)
 * - Badges (.badge)
 * - Accordion / FAQ (.accordion, .accordion__item)
 * - Header (.site-header)
 * - Footer (.site-footer)
 * - Navigation (.nav)
 * - Mobile menu
 * - Theme toggle
 * - Cookie banner (.cookie-banner)
 * - Alert / feedback messages (.alert)
 */

/* ============================================================
   BUTTONS
   ============================================================ */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

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

.btn:active {
  transform: translateY(0);
}

/* Primary — filled indigo with shimmer */
.btn--primary {
  background-color: var(--color-accent);
  color: oklch(1 0 0);
  border-color: var(--color-accent);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    oklch(1 0 0 / 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-150%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  transform: translateX(150%);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: oklch(1 0 0);
  box-shadow: var(--shadow-lg);
}

/* Secondary — outlined */
.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent-subtle);
  box-shadow: var(--shadow-sm);
}

/* Ghost — minimal */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-2);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background-color: var(--color-surface-2);
  color: var(--color-text-1);
}

/* Size variants */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Loading state */
.btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, oklch(0.42 0.19 264 / 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: oklch(0.42 0.19 264 / 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  color: var(--color-text-1);
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
}

.card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Featured card — accent border */
.card--featured {
  border-color: var(--color-accent);
  background-color: var(--color-accent-subtle);
  position: relative;
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    transparent 60%
  );
  opacity: 0.12;
  pointer-events: none;
}

/* Service card — icon + title + description */
.card--service {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card__icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-spring);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card--service:hover .card__icon {
  background-color: var(--color-accent);
  color: oklch(1 0 0);
  transform: scale(1.1) rotate(-6deg);
}

/* Stat card */
.card--stat {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.card__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

/* Testimonial card */
.card--testimonial {
  position: relative;
  overflow: hidden;
}

.card--testimonial::before {
  content: '\201C';
  position: absolute;
  top: -0.1em;
  right: var(--space-6);
  font-size: 7rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.08;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}

.card__quote {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.card__author-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-1);
}

.card__author-role {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

/* Stars rating */
.card__stars {
  display: flex;
  gap: 2px;
  color: oklch(0.75 0.18 75); /* warm amber */
  margin-bottom: var(--space-4);
}

/* ============================================================
   FORMS
   ============================================================ */

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-1);
}

.form__label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-1);
  background-color: var(--color-surface-1);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-base);
  appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-3);
}

.form__input:hover,
.form__textarea:hover {
  border-color: var(--color-accent-muted);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form__error svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.form__hint {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

/* Checkbox */
.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form__checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-1);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  appearance: none;
  position: relative;
}

.form__checkbox:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.form__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid oklch(1 0 0);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form__checkbox:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form__checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
}

/* Honeypot — visually hidden, trap for bots */
.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Form feedback alerts */
.form__feedback {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  align-items: center;
  gap: var(--space-3);
}

.form__feedback.is-visible {
  display: flex;
}

.form__feedback--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form__feedback--error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--accent {
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
}

.badge--neutral {
  background-color: var(--color-surface-3);
  color: var(--color-text-2);
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface-2);
  transition: border-color var(--transition-fast);
}

.accordion__item[open],
.accordion__item:focus-within {
  border-color: var(--color-border-strong);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
  list-style: none; /* Remove default <summary> marker */
}

/* Hide default details marker in all browsers */
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger::marker { display: none; }

.accordion__trigger:hover {
  background-color: var(--color-surface-3);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion__item[open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  animation: accordion-open var(--transition-base) ease forwards;
}

@keyframes accordion-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-surface-1);
  border-bottom: 1px solid var(--color-border);
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  will-change: transform;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
  height: 36px;
  width: auto;
}

/* Desktop navigation */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-2);
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-text-1);
  background-color: var(--color-surface-2);
}

.nav__link[aria-current="page"] {
  color: var(--color-accent);
  background-color: var(--color-accent-subtle);
  font-weight: var(--font-weight-semibold);
}

/* Header actions (theme toggle + CTA) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-2);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--color-surface-2);
  color: var(--color-text-1);
  border-color: var(--color-border-strong);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle__icon--sun  { display: none; }
.theme-toggle__icon--moon { display: block; }

[data-theme="dark"] .theme-toggle__icon--sun  { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-1);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background-color: var(--color-surface-2);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile navigation overlay
   z-index 1010 = ÜBER cookie-banner (1000) damit es nicht
   verdeckt wird. Bug-Fix: vorher z-index 99 → unsichtbar wenn
   Cookie-Banner offen war (sah aus wie „Menü kaputt"). */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1010;
  background-color: var(--color-surface-1);
  padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

/* Toggle muss ÜBER der mobile-nav bleiben, damit man sie schließen kann. */
.mobile-menu-toggle { position: relative; z-index: 1020; }
/* Wenn mobile-nav offen ist, soll der Header darüber bleiben (sonst
   schwebt der Burger über dem Nav-Inhalt aber das Logo verschwindet). */
.site-header { z-index: 1015; }

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-1);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
  background-color: var(--color-surface-2);
  color: var(--color-accent);
}

.mobile-nav__cta {
  margin-top: var(--space-6);
  align-self: flex-start;
}

/* ============================================================
   FOOTER CTA STRIP
   ============================================================ */

.footer-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, oklch(0.36 0.22 290) 100%);
  padding: var(--space-10) 0;
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-cta__label {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin: 0 0 var(--space-1);
  line-height: var(--leading-tight);
}

.footer-cta__sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.footer-cta .btn--primary {
  background: #fff;
  color: var(--color-accent);
  border-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-cta .btn--primary:hover {
  background: rgba(255,255,255,0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-surface-2);
  background-image: radial-gradient(ellipse 80% 50% at 50% 110%, oklch(0.42 0.19 264 / 0.07) 0%, transparent 70%);
  border-top: none;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 30%, oklch(0.50 0.22 290) 70%, transparent 100%);
  opacity: 0.6;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
  }
}

.site-footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
  max-width: 28ch;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.site-footer__logo img,
.site-footer__logo svg {
  height: 28px;
  width: auto;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.footer-trust__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-2);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 3px 9px;
  white-space: nowrap;
}

.site-footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Footer contact with icons */
.site-footer__contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

.footer-contact__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
  opacity: 0.8;
}

.footer-contact__item a {
  color: var(--color-text-2);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact__item a:hover {
  color: var(--color-accent);
}

.footer-contact__phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* WhatsApp button (used in footer + kontakt page) */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  background: #25D366;
  color: #fff !important;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1.6;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.40);
  color: #fff !important;
}

.whatsapp-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
}

/* WhatsApp button on contact page (slightly larger) */
.contact-info__whatsapp {
  padding: 5px 14px 5px 10px;
  font-size: var(--text-xs);
  border-radius: 100px;
  gap: 6px;
}

.contact-info__whatsapp svg {
  width: 15px;
  height: 15px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.site-footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--color-accent);
}

/* Cookie settings link (re-opens banner) */
.cookie-settings-link {
  cursor: pointer;
  background: none;
  border: none;
  font-size: var(--text-xs);
  color: var(--color-text-3);
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cookie-settings-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(92vw, 680px);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  animation: cookie-slide-up var(--transition-slow) ease forwards;
}

.cookie-banner.is-visible {
  display: flex;
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  max-width: none;
}

.cookie-banner__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface-3);
  border-radius: var(--radius-md);
}

.cookie-category__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-category__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
}

.cookie-category__desc {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background-color: var(--color-border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cookie-toggle__track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background-color: oklch(1 0 0);
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background-color: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle__track::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__track {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Banner actions */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cookie-banner__actions .btn {
  flex: 1;
  min-width: 120px;
}

/* ============================================================
   ALERT / Notification
   ============================================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.alert--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border-left: 3px solid var(--color-success);
}

.alert--error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border-left: 3px solid var(--color-error);
}

/* ============================================================
   PROCESS STEP (numbered)
   ============================================================ */

.process-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.process-step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-subtle);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-spring);
}

.process-step:hover .process-step__number {
  background-color: var(--color-accent);
  color: oklch(1 0 0);
  box-shadow: 0 0 0 8px var(--color-accent-subtle);
}

.process-step__content {
  flex: 1;
  padding-top: var(--space-2);
}

.process-step__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
  margin-bottom: var(--space-2);
}

.process-step__desc {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  max-width: none;
}

/* ============================================================
   MAPS — Two-Click Loader
   ============================================================ */

.maps-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-surface-3);
  border: 1px solid var(--color-border);
}

.maps-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  text-align: center;
}

.maps-placeholder__icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-3);
}

.maps-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  max-width: 28ch;
  line-height: var(--leading-relaxed);
}

.maps-iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
}

.maps-iframe.is-loaded {
  display: block;
}

/* ============================================================
   FORM TABS (Kontaktformular / Projektanfrage switcher)
   ============================================================ */

.form-tabs {
  display: flex;
  gap: var(--space-2);
  padding: 4px;
  background: var(--color-surface-raised);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
  width: fit-content;
}

.form-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-2);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.form-tab.is-active {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--color-accent-subtle);
}

.form-tab:not(.is-active):hover {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.form-tab-panel {
  display: none;
}

.form-tab-panel.is-active {
  display: block;
}

/* ============================================================
   FORM WIZARD (progressive multi-step)
   ============================================================ */

.form-wizard {
  position: relative;
}

/* Progress header */
.form-wizard__header {
  margin-bottom: var(--space-8);
}

.form-wizard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.form-wizard__label {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  font-weight: var(--font-weight-medium);
}

.form-wizard__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.form-wizard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-base), transform var(--transition-base);
}

.form-wizard__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}

.form-wizard__dot.is-done {
  background: var(--color-accent);
  opacity: 0.4;
}

.form-wizard__bar {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.form-wizard__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), oklch(0.52 0.22 290));
  border-radius: var(--radius-full);
  width: var(--progress, 0%);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step panels */
.form-wizard__step {
  display: none;
  animation: stepEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-wizard__step.is-active {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stepBack {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-wizard__step.is-entering-back {
  animation: stepBack 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-wizard__step-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0 0 var(--space-1);
  line-height: var(--leading-tight);
}

.form-wizard__step-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin: 0;
}

/* Navigation row */
.form-wizard__nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.form-wizard__nav .btn--ghost {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  color: var(--color-text-2);
}

.form-wizard__nav .btn--primary {
  flex: 1;
}

/* Project type radio cards */
.project-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.project-type-card {
  position: relative;
  cursor: pointer;
}

.project-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.project-type-card__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.project-type-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.project-type-card__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
}

.project-type-card input:checked + .project-type-card__inner {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.project-type-card__inner:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* Timeline radio pills */
.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-option {
  position: relative;
  cursor: pointer;
}

.timeline-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.timeline-option__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.timeline-option__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-option__dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition-fast);
}

.timeline-option input:checked + .timeline-option__inner {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.timeline-option input:checked + .timeline-option__inner .timeline-option__dot {
  border-color: var(--color-accent);
}

.timeline-option input:checked + .timeline-option__inner .timeline-option__dot::after {
  background: var(--color-accent);
}

.timeline-option__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-1);
}

.timeline-option__inner:hover {
  border-color: var(--color-accent);
}

/* Success state */
.form-wizard__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  animation: stepEnter 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-wizard__success.is-visible {
  display: flex;
}

.form-wizard__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.form-wizard__success-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0;
}

.form-wizard__success-text {
  font-size: var(--text-base);
  color: var(--color-text-2);
  margin: 0;
  max-width: 36ch;
  line-height: var(--leading-relaxed);
}

/* ============================================================
   PRICING CARDS — 4 Pakete (OnePage, Starter, Business, Premium)
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.pricing-card--featured {
  background: linear-gradient(180deg, var(--color-accent-subtle), var(--color-surface-2));
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-xl);
}

/* Featured-Ribbon: Inline-Pill am oberen Karten-Rand (kein absolute Positioning) */
.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0 0 var(--space-4) 0;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-accent);
  color: oklch(1 0 0);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-1);
  margin: 0 0 var(--space-2) 0;
}

.pricing-card__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin: 0 0 var(--space-5) 0;
  min-height: 2.6em;
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-text-1);
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

.pricing-card__rate {
  display: inline-block;
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
}

.pricing-card__rate--placeholder {
  visibility: hidden;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-fineprint {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  text-align: center;
}

/* ============================================================
   REFERENZ-PROJEKTE
   ============================================================ */

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.reference-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.reference-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.reference-card__type {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.reference-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0 0 var(--space-3) 0;
}

.reference-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin: 0 0 var(--space-4) 0;
  flex-grow: 1;
  line-height: var(--leading-relaxed);
}

.reference-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.reference-card__tag {
  padding: 2px var(--space-2);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
}

.reference-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-top: auto;
}

.reference-card__link:hover {
  text-decoration: underline;
}

/* ============================================================
   BRANCHEN-GRID (Für welche Branchen entwickeln wir?)
   ============================================================ */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.branch-chip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.branch-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background-color: var(--color-accent-subtle);
}

.branch-chip__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.branch-chip__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0;
}

.branch-chip__note {
  font-size: var(--text-xs);
  color: var(--color-text-2);
}

/* ============================================================
   PRICING — Individual / Custom (5. Paket, breit unter dem Grid)
   ============================================================ */

.pricing-individual {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-accent-subtle) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.pricing-individual:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

@media (min-width: 900px) {
  .pricing-individual {
    grid-template-columns: 1fr 1.4fr auto;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-8);
  }
}

.pricing-individual__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-individual__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.pricing-individual__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--color-text-1);
  margin: 0;
}

.pricing-individual__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin: 0;
}

.pricing-individual__period {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

.pricing-individual__desc {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-3) 0;
}

.pricing-individual__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 600px) {
  .pricing-individual__features {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-5);
  }
}

.pricing-individual__features li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.5;
}

.pricing-individual__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.pricing-individual__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-individual__cta {
    align-items: flex-end;
  }
}

/* ============================================================
   PROMO-BAR — Sticky Lead-Magnet-Hinweis ganz oben
   ============================================================ */

.promo-bar {
  position: relative;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: oklch(1 0 0);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.promo-bar.is-hidden {
  display: none;
}

.promo-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) calc(var(--space-4) + 28px) var(--space-2) var(--space-4);
  justify-content: center;
  min-height: 36px;
}

.promo-bar__icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.promo-bar__text {
  flex: 0 1 auto;
  text-align: center;
  line-height: 1.35;
}

.promo-bar__cta {
  flex: 0 0 auto;
  color: oklch(1 0 0);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.promo-bar__cta:hover {
  text-decoration: none;
}

/* Close-Button rechts oben absolut positioniert — bricht nie mehr um */
.promo-bar__close {
  position: absolute;
  top: 50%;
  right: var(--space-3);
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: oklch(1 0 0);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.promo-bar__close:hover {
  opacity: 1;
  background-color: oklch(1 0 0 / 0.15);
}

/* Mobile: kompaktere Darstellung, alles eine Zeile */
@media (max-width: 760px) {
  .promo-bar {
    font-size: var(--text-xs);
  }
  .promo-bar__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-right: 40px;
    text-align: left;
  }
  .promo-bar__icon { font-size: 1em; }
  .promo-bar__text { flex: 1 1 100%; text-align: left; }
  .promo-bar__cta  { font-size: var(--text-xs); }
}

@media (max-width: 480px) {
  .promo-bar__inner { gap: var(--space-2); }
}

/* ============================================================
   LEAD-MAGNET-BLOCK — prominente Sektion auf Startseite
   ============================================================ */

.leadmagnet-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .leadmagnet-block {
    grid-template-columns: 320px 1fr;
    gap: var(--space-10);
    padding: var(--space-10);
  }
}

.leadmagnet-block__visual {
  display: flex;
  justify-content: center;
}

/* Mock-PDF-Cover */
.leadmagnet-cover {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1.414;
  background: linear-gradient(160deg, var(--color-accent-hover) 0%, var(--color-accent) 60%, var(--color-accent-muted) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: oklch(1 0 0);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  box-shadow: 0 10px 30px oklch(0.14 0.025 264 / 0.25), 0 4px 10px oklch(0.14 0.025 264 / 0.1);
  transform: rotate(-2deg);
  transition: transform var(--transition-base);
}

.leadmagnet-cover:hover {
  transform: rotate(0deg) translateY(-4px);
}

.leadmagnet-cover__brand {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.leadmagnet-cover__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  opacity: 0.85;
  margin-top: var(--space-2);
}

.leadmagnet-cover__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 1.7rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-top: var(--space-1);
}

.leadmagnet-cover__subtitle {
  font-size: var(--text-xs);
  opacity: 0.85;
  margin-top: var(--space-2);
  line-height: 1.5;
}

.leadmagnet-cover__kpis {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
}

.leadmagnet-cover__kpis > div {
  flex: 1;
  text-align: center;
  padding: var(--space-2);
  background-color: oklch(1 0 0 / 0.12);
  border-radius: var(--radius-sm);
}

.leadmagnet-cover__kpis strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
}

.leadmagnet-cover__kpis span {
  font-size: 10px;
  opacity: 0.85;
}

.leadmagnet-cover__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: oklch(1 0 0);
  color: var(--color-accent);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transform: rotate(8deg);
}

.leadmagnet-block__lead {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  margin: var(--space-3) 0 var(--space-4) 0;
}

.leadmagnet-block__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.leadmagnet-block__bullets li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

.leadmagnet-block__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.leadmagnet-block__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.leadmagnet-block__hint {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

/* ============================================================
   NAV — Gift-Link (Lead Magnet im Menü hervorheben)
   ============================================================ */

/* "Gratis Leitfaden" — keine Pille mehr, sondern einzeln pulsierende Buchstaben */
.nav__link--gift {
  position: relative;
  color: var(--color-accent) !important;
  font-weight: var(--font-weight-bold);
  padding: 6px 8px;
  background: transparent !important;
  white-space: nowrap;          /* Verhindert Umbruch "Gratis / Leitfaden" */
  transition: transform var(--transition-base);
}

.nav__link--gift::after { display: none !important; }  /* alter Pulse-Ring weg */

.nav__link--gift:hover {
  transform: translateY(-1px);
  background: transparent !important;
}

/* Geschenk-Emoji wackelt sanft */
.nav__gift-icon {
  display: inline-block;
  margin-right: 4px;
  animation: dwtGiftWiggle 2.6s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes dwtGiftWiggle {
  0%, 100%       { transform: rotate(0) scale(1); }
  10%, 30%, 50%  { transform: rotate(-10deg) scale(1.05); }
  20%, 40%, 60%  { transform: rotate(10deg) scale(1.05); }
  70%            { transform: rotate(0) scale(1.1); }
}

/* Jeder Buchstabe pulsiert mit Stagger-Delay → Lichtwelle läuft durch */
.nav__char {
  display: inline-block;
  position: relative;
  color: var(--color-accent);
  text-shadow: 0 0 0 transparent;
  animation: dwtNavCharGlow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.09s);
  transition: color 0.2s ease;
}
.nav__char-space {
  display: inline-block;
  width: 0.3em;
}

@keyframes dwtNavCharGlow {
  0%, 100% {
    color: var(--color-accent);
    text-shadow: 0 0 0 oklch(from var(--color-accent) l c h / 0);
    transform: translateY(0);
  }
  40%, 60% {
    color: oklch(from var(--color-accent) calc(l + 0.18) c h);
    text-shadow:
      0 0 8px oklch(from var(--color-accent) calc(l + 0.1) c h / 0.85),
      0 0 18px oklch(from var(--color-accent) l c h / 0.6),
      0 0 32px oklch(from var(--color-accent) l c h / 0.3);
    transform: translateY(-1px);
  }
}

.nav__link--gift:hover .nav__char {
  color: oklch(from var(--color-accent) calc(l + 0.22) c h);
  text-shadow:
    0 0 10px oklch(from var(--color-accent) l c h / 0.9),
    0 0 24px oklch(from var(--color-accent) l c h / 0.5);
}

.mobile-nav__link--gift {
  color: var(--color-accent) !important;
  font-weight: var(--font-weight-bold);
}

@media (prefers-reduced-motion: reduce) {
  .nav__char, .nav__gift-icon { animation: none !important; }
  .nav__char { text-shadow: 0 0 8px oklch(from var(--color-accent) l c h / 0.4); }
}

/* ============================================================
   LEADMAGNET — Schwebe- und Glow-Animationen
   ============================================================ */

.lm-float {
  animation: lmFloat 6s ease-in-out infinite;
}

@keyframes lmFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lm-float { animation: none; }
}

.lm-glow {
  position: relative;
}

.lm-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-accent), oklch(0.6 0.2 264), var(--color-accent));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  animation: lmGlow 4s ease-in-out infinite;
  transition: opacity var(--transition-base);
}

.lm-glow:hover::before {
  opacity: 0.55;
}

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

/* CTA pulse for the primary submit button */
.lm-pulse-btn {
  position: relative;
}

.lm-pulse-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 oklch(from var(--color-accent) l c h / 0.4);
  animation: lmPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lmPulse {
  0%   { box-shadow: 0 0 0 0 oklch(from var(--color-accent) l c h / 0.55); }
  70%  { box-shadow: 0 0 0 16px oklch(from var(--color-accent) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--color-accent) l c h / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lm-pulse-btn::after { animation: none; }
}

/* Stagger entrance for checklist preview */
.lm-stagger > * {
  opacity: 0;
  transform: translateY(8px);
  animation: lmStaggerIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.lm-stagger > *:nth-child(1) { animation-delay: 80ms; }
.lm-stagger > *:nth-child(2) { animation-delay: 160ms; }
.lm-stagger > *:nth-child(3) { animation-delay: 240ms; }
.lm-stagger > *:nth-child(4) { animation-delay: 320ms; }
.lm-stagger > *:nth-child(5) { animation-delay: 400ms; }
.lm-stagger > *:nth-child(6) { animation-delay: 480ms; }
.lm-stagger > *:nth-child(7) { animation-delay: 560ms; }

@keyframes lmStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lm-stagger > * { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   FOOTER-LEADMAGNET — Hinweis im Footer aller Seiten
   ============================================================ */

.footer-leadmagnet {
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-subtle), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.footer-leadmagnet__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.footer-leadmagnet__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.footer-leadmagnet__text {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-1);
  font-size: var(--text-sm);
}

.footer-leadmagnet__text strong {
  font-size: var(--text-base);
  color: var(--color-text-1);
}

.footer-leadmagnet__text span {
  color: var(--color-text-2);
}

/* ============================================================
   EBOOK — Inhaltspraesentation auf leadmagnet.html
   ============================================================ */

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.ebook-chapter {
  position: relative;
  padding: var(--space-6);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.ebook-chapter:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.ebook-chapter__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.85;
}

.ebook-chapter__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.25;
}

.ebook-chapter__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.ebook-chapter--featured {
  background: linear-gradient(160deg, var(--color-accent-subtle), var(--color-surface-2));
  border-color: var(--color-accent);
}

.ebook-chapter__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 4px 10px;
  background-color: var(--color-accent);
  color: oklch(1 0 0);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.ebook-bonus {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.ebook-bonus__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--color-accent-subtle);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.ebook-bonus__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.ebook-bonus__item strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text-1);
  margin-bottom: 4px;
}

.ebook-bonus__item span {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
}

.ebook-sneak {
  margin-top: var(--space-10);
  padding: var(--space-7) var(--space-6);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-border-strong);
}

.ebook-sneak__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0 0 var(--space-2) 0;
  text-align: center;
}

.ebook-sneak__intro {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin: 0 0 var(--space-6) 0;
  text-align: center;
}

.ebook-sneak__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.ebook-sneak__quote {
  position: relative;
  padding: var(--space-5);
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent);
  margin: 0;
}

.ebook-sneak__from {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.ebook-sneak__quote p {
  font-size: var(--text-sm);
  color: var(--color-text-1);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================================
   DWT LOGO — inline SVG-Wortmarke mit lebendigen Animationen
   ============================================================ */

.dwt-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-1);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dwt-logo:hover {
  transform: translateY(-1px);
}

/* Brackets — wechseln auf Hover zu Pfeil */
.dwt-logo__brackets {
  display: inline-flex;
  align-items: center;
  font-family: 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--color-accent);
  position: relative;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg,
    oklch(from var(--color-accent) l c h / 0.15),
    oklch(from var(--color-accent) l c h / 0.05));
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dwt-logo:hover .dwt-logo__brackets {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg,
    oklch(from var(--color-accent) l c h / 0.3),
    oklch(from var(--color-accent) l c h / 0.1));
}

.dwt-logo__brackets::before { content: '<'; }
.dwt-logo__brackets::after  { content: '/>'; margin-left: 1px; }

/* Wort-Stack — flexible Layout */
.dwt-logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.dwt-logo__accent {
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    oklch(0.55 0.22 270) 35%,
    oklch(0.65 0.18 290) 50%,
    oklch(0.55 0.22 270) 65%,
    var(--color-accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: dwtLogoGradient 3.5s ease-in-out infinite;
  padding: 0 2px;
}

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

/* Blinkender Cursor rechts neben dem Logo */
.dwt-logo__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 3px;
  animation: dwtLogoCursor 1s steps(2, end) infinite;
  border-radius: 1px;
  box-shadow: 0 0 8px oklch(from var(--color-accent) l c h / 0.7);
}

@keyframes dwtLogoCursor {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dwt-logo__accent { animation: none; background-position: 50% 50%; }
  .dwt-logo__cursor { animation: none; opacity: 1; }
}

@media (max-width: 480px) {
  .dwt-logo { font-size: 1.05rem; gap: 5px; }
  .dwt-logo__brackets { padding: 1px 4px; font-size: 1em; }
}

/* Dark-Mode-Anpassung */
[data-theme="dark"] .dwt-logo {
  color: oklch(0.96 0.006 264);
}

/* Footer-Variante: kleiner, dezenter */
.dwt-logo--footer {
  font-size: 1.05rem;
}

/* ============================================================
   HEADER — Hover-Lift auf Nav-Links + Logo-Spotlight
   ============================================================ */

.site-header {
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: var(--mx, 50%);
  transform: translate(-50%, 0);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center,
    oklch(from var(--color-accent) l c h / 0.10) 0%,
    transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, left 0.3s ease;
  z-index: 0;
}

.site-header:hover::before {
  opacity: 1;
}

.site-header__inner { position: relative; z-index: 1; }

/* ============================================================
   PROJEKT-ANFRAGEN BUTTON — Spektakuläre Animation
   ============================================================ */

.btn--cta-hero {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.btn--cta-hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--color-accent) 0%,
    oklch(0.55 0.22 290) 25%,
    var(--color-accent) 50%,
    oklch(0.6 0.2 280) 75%,
    var(--color-accent) 100%
  );
  z-index: -2;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s ease;
  animation: dwtCtaSpin 4s linear infinite;
}

.btn--cta-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 35%,
    oklch(1 0 0 / 0.25) 50%,
    transparent 65%);
  transform: translateX(-150%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--cta-hero:hover::before { opacity: 0.55; }
.btn--cta-hero:hover::after  { transform: translateX(150%); }

.btn--cta-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px oklch(from var(--color-accent) l c h / 0.35);
}

@keyframes dwtCtaSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--cta-hero::before { animation: none; }
}

/* ============================================================
   FLOATING LEADMAGNET POPUP — Unten links, scroll-triggered
   ============================================================ */

.lm-floater {
  position: fixed;
  bottom: 110px;     /* ueber dem Chatbot positioniert */
  right: 24px;
  left: auto;
  z-index: 70;
  max-width: 340px;
  padding: 16px 20px;
  background: linear-gradient(135deg,
    var(--color-surface-2) 0%,
    var(--color-accent-subtle) 100%);
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  box-shadow:
    0 20px 50px oklch(0.14 0.025 264 / 0.25),
    0 0 0 0 oklch(from var(--color-accent) l c h / 0.5);
  display: none;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition:
    opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  animation: lmFloaterPulse 3s ease-in-out infinite 1s;
}

.lm-floater.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lm-floater:hover {
  box-shadow:
    0 24px 60px oklch(0.14 0.025 264 / 0.35),
    0 0 0 6px oklch(from var(--color-accent) l c h / 0.15);
}

@keyframes lmFloaterPulse {
  0%, 100% { box-shadow: 0 20px 50px oklch(0.14 0.025 264 / 0.25), 0 0 0 0 oklch(from var(--color-accent) l c h / 0.4); }
  50%      { box-shadow: 0 20px 50px oklch(0.14 0.025 264 / 0.25), 0 0 0 8px oklch(from var(--color-accent) l c h / 0); }
}

.lm-floater__icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: lmFloaterGiftWiggle 2.5s ease-in-out infinite;
}

@keyframes lmFloaterGiftWiggle {
  0%, 100%   { transform: rotate(0deg); }
  15%, 45%   { transform: rotate(-12deg); }
  30%, 60%   { transform: rotate(12deg); }
  75%, 100%  { transform: rotate(0deg); }
}

.lm-floater__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lm-floater__text strong {
  font-size: 0.92rem;
  color: var(--color-text-1);
  line-height: 1.2;
}

.lm-floater__text span {
  font-size: 0.78rem;
  color: var(--color-text-2);
}

.lm-floater__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--color-text-3);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lm-floater__close:hover {
  opacity: 1;
  color: var(--color-text-1);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .lm-floater {
    left: 12px;
    right: 12px;
    bottom: 100px;   /* ueber dem Chatbot */
    max-width: none;
    padding: 14px 16px;
  }
  .lm-floater__icon { font-size: 1.6rem; }
  .lm-floater__text strong { font-size: 0.85rem; }
  .lm-floater__text span   { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-floater, .lm-floater__icon { animation: none; }
}

/* ============================================================
   PER-SEITE EASTER EGGS im Header (nur jeweils 1 Seite aktiv)
   ============================================================ */

/* INDEX — Code-Konfetti, das beim Hover am Logo aufploppt */
body.page-index .site-header__logo::before {
  content: '{ }';
  position: absolute;
  top: -10px;
  right: -18px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(8px) rotate(-15deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
body.page-index .site-header:hover .site-header__logo::before {
  opacity: 0.8;
  transform: translateY(-4px) rotate(8deg);
}

/* LEISTUNGEN — wandernder Lichtstrich quer durch den Header */
body.page-leistungen .site-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    oklch(from var(--color-accent) l c h / 0.18),
    transparent);
  pointer-events: none;
  animation: dwtSweep 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes dwtSweep {
  0%, 100% { left: -20%; }
  50%      { left: 110%; }
}

/* UEBER-UNS — winkende Hand neben dem Logo */
body.page-ueber-uns .site-header__logo::after {
  content: '👋';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.9em;
  transform-origin: 70% 70%;
  animation: dwtWave 3s ease-in-out infinite;
}
@keyframes dwtWave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30%      { transform: rotate(18deg); }
  20%, 40%      { transform: rotate(-12deg); }
}

/* KONTAKT — pulsierender Telefonindikator */
body.page-kontakt .site-header__logo::after {
  content: '📞';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  animation: dwtPhoneRing 2.5s ease-in-out infinite;
}
@keyframes dwtPhoneRing {
  0%, 80%, 100% { transform: rotate(0deg); }
  85%           { transform: rotate(-15deg) scale(1.1); }
  90%           { transform: rotate(15deg)  scale(1.1); }
  95%           { transform: rotate(-10deg) scale(1.1); }
}

/* LEADMAGNET — Glitzer-Konfetti permanent über dem Logo */
body.page-leadmagnet .site-header__logo::before {
  content: '✨';
  position: absolute;
  top: -6px;
  right: -16px;
  font-size: 0.85em;
  animation: dwtSparkle 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dwtSparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.2) rotate(180deg); }
}

/* IMPRESSUM — Stempel-Animation */
body.page-impressum .site-header__logo::after {
  content: '✓';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  color: var(--color-success);
  font-weight: bold;
  animation: dwtStamp 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes dwtStamp {
  0%, 70%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  75%           { transform: scale(1.6) rotate(-12deg); opacity: 0.6; }
  80%           { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* DATENSCHUTZ — Schloss schließt rhythmisch */
body.page-datenschutz .site-header__logo::after {
  content: '🔒';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  animation: dwtLock 3s ease-in-out infinite;
}
@keyframes dwtLock {
  0%, 60%, 100% { transform: scale(1); }
  30%           { transform: scale(1.2) rotate(-5deg); }
  45%           { transform: scale(0.9); }
}

/* DOWNLOAD — Pfeil zeigt nach unten und bouncet */
body.page-download .site-header__logo::after {
  content: '↓';
  display: inline-block;
  margin-left: 6px;
  font-size: 1.1em;
  color: var(--color-accent);
  font-weight: bold;
  animation: dwtArrowBounce 1.5s ease-in-out infinite;
}
@keyframes dwtArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-leistungen .site-header::after,
  body.page-ueber-uns .site-header__logo::after,
  body.page-kontakt .site-header__logo::after,
  body.page-leadmagnet .site-header__logo::before,
  body.page-impressum .site-header__logo::after,
  body.page-datenschutz .site-header__logo::after,
  body.page-download .site-header__logo::after,
  body.page-index .site-header__logo::before { animation: none; }
}

/* ============================================================
   PROJEKTE — Rotierender Hero-Showcase auf Startseite
   ============================================================ */

.project-rotator {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

@media (min-width: 900px) {
  .project-rotator { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

.project-rotator__head { display: flex; flex-direction: column; gap: var(--space-4); }

.project-rotator__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-rotator__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--color-text-1);
  margin: 0;
}

.project-rotator__desc {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  margin: 0;
  min-height: 4.5em;
}

.project-rotator__tags {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}

.project-rotator__tag {
  padding: 4px 10px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.project-rotator__cta-row {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center;
}

.project-rotator__dots {
  display: flex; gap: 8px; margin-top: var(--space-2);
}

.project-rotator__dot {
  width: 10px; height: 10px;
  background: var(--color-border-strong);
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-rotator__dot.is-active {
  background: var(--color-accent);
  width: 28px; border-radius: 5px;
}

.project-rotator__dot:hover { background: var(--color-accent-muted); }

/* Visual-Stack (Mockup + Schwebende Decals) */
.project-rotator__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg,
    oklch(0.18 0.04 320) 0%,
    oklch(0.14 0.05 340) 100%);
  box-shadow:
    0 30px 80px oklch(0.14 0.025 264 / 0.45),
    0 0 0 1px oklch(from var(--color-accent) l c h / 0.15);
}

.project-rotator__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.project-rotator__slide.is-active {
  opacity: 1; transform: scale(1);
}

.project-rotator__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Mockup-Fallback (wenn kein Bild da) */
.project-rotator__mockup {
  width: 88%; height: 70%;
  display: flex; flex-direction: column;
  background: oklch(0.96 0.006 264);
  border-radius: 14px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.4);
  overflow: hidden;
  position: relative;
}

.project-rotator__mockup-bar {
  display: flex; gap: 6px; padding: 10px;
  background: oklch(0.92 0.010 264);
  border-bottom: 1px solid oklch(0.85 0.01 264);
}

.project-rotator__mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: oklch(0.72 0.16 25);
}
.project-rotator__mockup-bar span:nth-child(2) { background: oklch(0.78 0.16 75); }
.project-rotator__mockup-bar span:nth-child(3) { background: oklch(0.68 0.18 145); }

.project-rotator__mockup-body {
  flex: 1; padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  color: oklch(0.14 0.025 264);
}

.project-rotator__mockup-headline {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.3rem;
  line-height: 1.2;
}

.project-rotator__mockup-headline em {
  font-style: normal;
  background: linear-gradient(90deg, oklch(0.55 0.22 5), oklch(0.65 0.2 30));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-rotator__mockup-sub {
  font-size: 0.78rem;
  color: oklch(0.4 0.02 264);
  margin: 0;
}

/* Schwebendes Badge oben rechts */
.project-rotator__badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 6px 14px;
  background: oklch(1 0 0 / 0.95);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.25);
  z-index: 5;
  animation: dwtBadgeFloat 4s ease-in-out infinite;
}

@keyframes dwtBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ============================================================
   PROJEKTE — Karten-Grid (auf projekte.html)
   ============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.proj-grid--showcase { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.proj-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease, border-color 0.3s ease;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px oklch(0.14 0.025 264 / 0.25);
  border-color: var(--color-accent);
}

.proj-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, oklch(0.2 0.04 280), oklch(0.14 0.05 320));
  position: relative;
  overflow: hidden;
}

.proj-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}

.proj-card:hover .proj-card__media img {
  transform: scale(1.05);
}

.proj-card__media-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  color: oklch(1 0 0 / 0.5);
  text-align: center;
  padding: var(--space-6);
}

.proj-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  background: var(--color-accent);
  color: oklch(1 0 0);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.2);
}

.proj-card__body {
  padding: var(--space-5) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  flex-grow: 1;
}

.proj-card__type {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.proj-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0;
  line-height: 1.2;
}

.proj-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.proj-card__meta {
  margin-top: auto; padding-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: 6px;
}

.proj-card__tag {
  padding: 2px 8px;
  background: var(--color-surface-3);
  color: var(--color-text-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.proj-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-3);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
}

/* Eigene Projekte: kleinere, dezentere Karten */
.proj-grid--own .proj-card { background: var(--color-surface-1); }
.proj-grid--own .proj-card__media { aspect-ratio: 16 / 6; }

@media (prefers-reduced-motion: reduce) {
  .project-rotator__badge { animation: none; }
  .project-rotator__slide { transition: opacity 0.2s ease; transform: none; }
}

/* ============================================================
   SUBDOMAIN-STRIP — Quick-Access fuer Premium-Showcases
   ============================================================ */

.sub-strip {
  padding: var(--space-3) 0;
  background: linear-gradient(90deg,
    oklch(from var(--color-accent) l c h / 0.06),
    oklch(from var(--color-accent) l c h / 0.02));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sub-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
}

.sub-strip__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-right: var(--space-2);
}

.sub-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-1);
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.sub-strip__item:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background-color: var(--color-accent-subtle);
  box-shadow: 0 8px 20px oklch(from var(--color-accent) l c h / 0.2);
}

.sub-strip__icon { font-size: 1.05em; }

.sub-strip__name {
  font-family: 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  font-size: 0.85em;
}

.sub-strip__arrow {
  font-size: 0.9em;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.sub-strip__item:hover .sub-strip__arrow {
  transform: translate(2px, -2px);
}

.sub-strip__all {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  margin-left: var(--space-2);
}

.sub-strip__all:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sub-strip__inner { gap: 8px; }
  .sub-strip__label { width: 100%; text-align: center; }
  .sub-strip__name { font-size: 0.75em; }
}

/* ============================================================
   HERO-CODE-ANIMATION — Live-Tipp im Loop
   ============================================================ */

.code-line--prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2.2em;
  min-height: 1.4em;
}

.ct-prompt {
  color: var(--color-accent);
  font-weight: bold;
}

.ct-typed {
  font-family: inherit;
}

.ct-caret {
  display: inline-block;
  color: var(--color-accent);
  animation: dwtCaretBlink 1s steps(2) infinite;
}

@keyframes dwtCaretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Wenn das Mode-Attribut wechselt, kann die rechte Spalte (Hero-Metrics)
   subtil reagieren, um Coding-Geschick zu visualisieren */
[data-mode="glow"] ~ .hero-metrics .hero-metric__num,
.hero-metrics.is-glow .hero-metric__num {
  filter: drop-shadow(0 0 12px oklch(from var(--color-accent) l c h / 0.8));
  transition: filter 0.5s ease;
}

.hero-metrics.is-rainbow .hero-metric__fill {
  animation: dwtRainbow 2s ease-in-out;
}
@keyframes dwtRainbow {
  0%   { stroke: oklch(0.6 0.22 264); }
  25%  { stroke: oklch(0.6 0.22 30);  }
  50%  { stroke: oklch(0.6 0.22 145); }
  75%  { stroke: oklch(0.6 0.22 75);  }
  100% { stroke: oklch(0.6 0.22 264); }
}

.hero-metrics.is-bounce { animation: dwtBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dwtBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-14px) scale(1.05); }
  70%      { transform: translateY(0) scale(0.98); }
}

.hero-metrics.is-pulse .hero-metric { animation: dwtPulse 0.8s ease; }
@keyframes dwtPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

.hero-metrics.is-shake { animation: dwtShake 0.6s ease; }
@keyframes dwtShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px) rotate(-1deg); }
  40%, 80% { transform: translateX(6px) rotate(1deg); }
}

/* Hero-Demo-H1 reagiert ebenfalls auf live Code */
#heroDemoH1 { transition: color 0.5s ease, text-shadow 0.5s ease; }
.is-h1-glow { color: var(--color-accent) !important; text-shadow: 0 0 16px oklch(from var(--color-accent) l c h / 0.6); }

@media (prefers-reduced-motion: reduce) {
  .ct-caret { animation: none; opacity: 1; }
  .hero-metrics.is-bounce, .hero-metrics.is-pulse, .hero-metrics.is-shake { animation: none; }
}

/* ============================================================
   LOGO — Click-Easter-Egg: Brackets cyclen durch verschiedene Symbole
   ============================================================ */

.dwt-logo--celebrate .dwt-logo__brackets {
  animation: dwtLogoCelebrate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dwtLogoCelebrate {
  0%   { transform: rotate(0deg) scale(1); }
  30%  { transform: rotate(-15deg) scale(1.3); background: var(--color-accent); color: oklch(1 0 0); }
  60%  { transform: rotate(12deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Logo "Web"-Text bekommt periodische Mini-Wiggle alle 12 Sekunden */
.dwt-logo__accent {
  animation: dwtLogoGradient 3.5s ease-in-out infinite,
             dwtLogoWiggle 12s ease-in-out infinite;
}

@keyframes dwtLogoWiggle {
  0%, 80%, 100% { transform: translateY(0) skew(0deg); }
  82%           { transform: translateY(-2px) skew(-3deg); }
  84%           { transform: translateY(0) skew(2deg); }
  86%           { transform: translateY(-1px) skew(-1deg); }
  88%           { transform: translateY(0) skew(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dwt-logo__accent { animation: dwtLogoGradient 0s; }
  .dwt-logo--celebrate .dwt-logo__brackets { animation: none; }
}

/* ============================================================
   LIVE-CODE-EFFEKTE — 15 simple Animationen, die per JS getriggert werden
   ============================================================ */

/* 1. Hero-H1 glow */
#heroTitle.is-fx-glow,
#heroDemoH1.is-h1-glow {
  text-shadow: 0 0 20px oklch(from var(--color-accent) l c h / 0.7);
  color: var(--color-accent);
  transition: color 0.5s, text-shadow 0.5s;
}

/* 2. Hero shake */
.hero.is-fx-shake { animation: dwtHeroShake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes dwtHeroShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* 3. CTA pulse */
.btn--primary.is-fx-pulse { animation: dwtBtnPulse 0.8s ease; }
@keyframes dwtBtnPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
  50%      { transform: scale(1.07); box-shadow: 0 0 40px oklch(from var(--color-accent) l c h / 0.5); }
}

/* 4. Header flash */
.site-header.is-fx-flash { animation: dwtHeaderFlash 0.6s ease; }
@keyframes dwtHeaderFlash {
  0%, 100% { background-color: var(--color-surface-1); }
  50%      { background-color: oklch(from var(--color-accent) l c h / 0.15); }
}

/* 5. Subdomain-Items kaskadieren */
.sub-strip.is-fx-cascade .sub-strip__item { animation: dwtSubCascade 0.6s ease both; }
.sub-strip.is-fx-cascade .sub-strip__item:nth-of-type(2) { animation-delay: 100ms; }
.sub-strip.is-fx-cascade .sub-strip__item:nth-of-type(3) { animation-delay: 200ms; }
@keyframes dwtSubCascade {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-8px) scale(1.06); box-shadow: 0 8px 20px oklch(from var(--color-accent) l c h / 0.4); }
  100% { transform: translateY(0) scale(1); }
}

/* 6. Konfetti — kleine Partikel über Hero */
.hero.is-fx-confetti::before {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦';
  position: absolute;
  top: 20%; left: 0; right: 0;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 1em;
  color: var(--color-accent);
  opacity: 0;
  animation: dwtConfetti 1.5s ease both;
  pointer-events: none;
}
@keyframes dwtConfetti {
  0%   { opacity: 0; transform: translateY(20px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-40px) rotate(20deg); }
}

/* 7. Theme-Flash — kurz Dark/Light invertieren */
.hero.is-fx-theme { animation: dwtThemeFlash 1.2s ease; }
@keyframes dwtThemeFlash {
  0%, 100% { filter: invert(0); }
  35%, 65% { filter: invert(0.15) hue-rotate(20deg); }
}

/* 8. Hero-Badge flip */
.hero__badge.is-fx-flip { animation: dwtBadgeFlip 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dwtBadgeFlip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg); }
}

/* 9. Accent-Farbe kurz wechseln */
.hero.is-fx-accent {
  --color-accent: oklch(0.55 0.22 300);
  transition: --color-accent 0.5s;
}
@property --color-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: oklch(0.42 0.19 264);
}

/* 10. Hero-Visual zoomt kurz */
.hero__visual.is-fx-zoom { animation: dwtZoom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dwtZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* 11. Trust-Items leuchten auf */
.hero__trust.is-fx-trust .hero__trust-item {
  animation: dwtTrustGlow 0.8s ease both;
}
.hero__trust.is-fx-trust .hero__trust-item:nth-of-type(2) { animation-delay: 100ms; }
.hero__trust.is-fx-trust .hero__trust-item:nth-of-type(3) { animation-delay: 200ms; }
@keyframes dwtTrustGlow {
  0%, 100% { color: var(--color-text-2); }
  50%      { color: var(--color-accent); transform: scale(1.05); }
}

/* 12. Promo-Bar wiggle */
.promo-bar.is-fx-wiggle { animation: dwtPromoWiggle 0.5s ease; }
@keyframes dwtPromoWiggle {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px) skewX(-1deg); }
  75%      { transform: translateX(4px) skewX(1deg); }
}

/* 13. Hero rainbow gradient bg */
.hero.is-fx-rainbow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg,
    oklch(0.6 0.22 5 / 0.08),
    oklch(0.6 0.22 75 / 0.08),
    oklch(0.6 0.22 145 / 0.08),
    oklch(0.6 0.22 215 / 0.08),
    oklch(0.6 0.22 285 / 0.08));
  background-size: 400% 400%;
  animation: dwtRainbowBg 2s ease;
  pointer-events: none;
  z-index: 0;
}
@keyframes dwtRainbowBg {
  0%, 100% { background-position: 0% 0%; opacity: 0; }
  50%      { background-position: 100% 100%; opacity: 1; }
}

/* 14. Tech-Ticker beschleunigt kurz */
.tech-ticker.is-fx-fast .tech-ticker__track { animation-duration: 12s !important; }

/* 15. Logo bouncen */
.dwt-logo.is-fx-bounce { animation: dwtLogoBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dwtLogoBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-8px) scale(1.08); }
  70%      { transform: translateY(2px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-fx-shake,
  .hero.is-fx-theme,
  .hero.is-fx-confetti::before,
  .hero.is-fx-rainbow::after,
  .hero__visual.is-fx-zoom,
  .hero__badge.is-fx-flip,
  .promo-bar.is-fx-wiggle,
  .dwt-logo.is-fx-bounce,
  .btn--primary.is-fx-pulse,
  .site-header.is-fx-flash,
  .sub-strip.is-fx-cascade .sub-strip__item,
  .hero__trust.is-fx-trust .hero__trust-item { animation: none; }
}

/* ============================================================
   PER-SEITE Extra-Animationen (2-3 thematische Effekte pro Page)
   ============================================================ */

/* === LEISTUNGEN: Service-Blocks mit Floating-Visual + Tag-Highlight === */
body.page-leistungen .service-block__visual {
  animation: dwtServiceFloat 6s ease-in-out infinite;
}
@keyframes dwtServiceFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
body.page-leistungen .service-block__tag {
  background: linear-gradient(90deg,
    var(--color-accent-subtle), var(--color-accent-subtle), oklch(from var(--color-accent) l c h / 0.3));
  background-size: 200% 100%;
  animation: dwtServiceTagSheen 4s ease-in-out infinite;
}
@keyframes dwtServiceTagSheen {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}
body.page-leistungen .pricing-card--featured {
  animation: dwtFeaturedGlow 3s ease-in-out infinite;
}
@keyframes dwtFeaturedGlow {
  0%, 100% { box-shadow: 0 8px 24px oklch(from var(--color-accent) l c h / 0.2); }
  50%      { box-shadow: 0 12px 36px oklch(from var(--color-accent) l c h / 0.4); }
}

/* === PROJEKTE: Tilt-Hover + Title-Color-Cycle === */
body.page-projekte .proj-card { transform-style: preserve-3d; }
body.page-projekte .proj-card:hover { transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-6px); }
body.page-projekte .proj-card__badge { animation: dwtBadgePulse 2s ease-in-out infinite; }
@keyframes dwtBadgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
body.page-projekte .badge--accent {
  animation: dwtAccentBadgeShine 3s ease-in-out infinite;
}
@keyframes dwtAccentBadgeShine {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}

/* === UEBER-UNS: Werte-Cards Reveal-Cascade + Quote-Highlight === */
body.page-ueber-uns .card { animation: dwtCardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
body.page-ueber-uns .card:nth-child(2) { animation-delay: 100ms; }
body.page-ueber-uns .card:nth-child(3) { animation-delay: 200ms; }
body.page-ueber-uns .card:nth-child(4) { animation-delay: 300ms; }
@keyframes dwtCardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-ueber-uns h2 {
  background-image: linear-gradient(90deg,
    transparent 0%, transparent 100%,
    oklch(from var(--color-accent) l c h / 0.3) 100%);
  background-size: 0% 4px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s ease;
}
body.page-ueber-uns h2:hover { background-size: 100% 4px; }

/* === KONTAKT: Form-Field-Glow + WhatsApp-Pulse === */
body.page-kontakt .form__input:focus,
body.page-kontakt .form__textarea:focus {
  box-shadow: 0 0 0 4px oklch(from var(--color-accent) l c h / 0.2),
              0 8px 24px oklch(from var(--color-accent) l c h / 0.15);
  transition: box-shadow 0.3s ease;
}
body.page-kontakt .whatsapp-btn { animation: dwtWhatsPulse 2s ease-in-out infinite; }
@keyframes dwtWhatsPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.65 0.16 145 / 0.5); }
  50%      { box-shadow: 0 0 0 6px oklch(0.65 0.16 145 / 0); }
}

/* === LEADMAGNET: PDF-Cover floaten lassen === */
body.page-leadmagnet .card .form-wizard {
  animation: dwtFormFloat 7s ease-in-out infinite;
}
@keyframes dwtFormFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
body.page-leadmagnet .ebook-chapter:hover .ebook-chapter__num {
  background: linear-gradient(135deg, var(--color-accent), oklch(0.55 0.22 290));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s;
}

/* === IMPRESSUM / DATENSCHUTZ: Sektion-Headlines mit Slide-In === */
body.page-impressum h2, body.page-datenschutz h2 {
  position: relative;
}
body.page-impressum h2::before, body.page-datenschutz h2::before {
  content: '';
  position: absolute; left: -16px; top: 50%;
  width: 4px; height: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.6s ease;
}
body.page-impressum h2:hover::before, body.page-datenschutz h2:hover::before { height: 80%; }

/* === DOWNLOAD: Pulsing-Box-Shadow auf Download-Button === */
body.page-download .lm-pulse-btn { animation-iteration-count: infinite !important; }

@media (prefers-reduced-motion: reduce) {
  body.page-leistungen .service-block__visual,
  body.page-leistungen .service-block__tag,
  body.page-leistungen .pricing-card--featured,
  body.page-projekte .proj-card__badge,
  body.page-projekte .badge--accent,
  body.page-ueber-uns .card,
  body.page-kontakt .whatsapp-btn,
  body.page-leadmagnet .card .form-wizard { animation: none; }
}

/* ============================================================
   STICKY HEADER + PROMO-BAR — bleiben oben, Scroll-Animation
   ============================================================ */

/* WICHTIG: html/body MÜSSEN overflow: visible haben, sonst funktioniert
   position: sticky nicht. Auch auf #app etc. */
html, body { overflow-x: clip; overflow-y: visible; }
html { scroll-behavior: smooth; }
body { padding-top: 0; }

/* Promo-Bar — IMMER sticky, IMMER sichtbar */
.promo-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

/* Site-Header — IMMER sticky, sitzt direkt unter der Promo-Bar */
.site-header {
  position: sticky;
  top: 36px; /* Höhe der Promo-Bar */
  z-index: 60;
  background-color: oklch(from var(--color-surface-1) l c h / 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition:
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    top 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Wenn die Promo-Bar wirklich geschlossen ist (X geklickt → .is-hidden),
   rutscht der Header ganz nach oben */
.promo-bar.is-hidden + .site-header,
body:not(:has(.promo-bar)) .site-header,
body.no-promo .site-header { top: 0; }

.promo-bar.is-hidden { display: none; }

/* Beim Scrollen wird der Header kompakter und bekommt mehr Schatten —
   bleibt aber IMMER sichtbar, genauso wie die Promo-Bar */
body.is-scrolled .promo-bar {
  box-shadow: 0 2px 8px oklch(0.14 0.025 264 / 0.18);
}
body.is-scrolled .site-header {
  background-color: oklch(from var(--color-surface-1) l c h / 0.96);
  box-shadow: 0 8px 28px oklch(0.14 0.025 264 / 0.16);
  border-bottom-color: var(--color-border);
}
body.is-scrolled .site-header .site-header__inner {
  padding-block: var(--space-2);
}
body.is-scrolled .dwt-logo { font-size: 1.05rem; }
body.is-scrolled .dwt-logo__cursor { opacity: 0; transition: opacity 0.3s; }

/* Damit Anchor-Links nicht unter dem Sticky-Header verschwinden */
[id] { scroll-margin-top: 130px; }

@media (max-width: 760px) {
  .site-header { top: 48px; /* Promo-Bar wird auf Mobile höher */ }
  [id] { scroll-margin-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-bar, .site-header { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CAL.COM EMBED — Inline-Kalender Komponente
   ============================================================ */

.cal-embed {
  position: relative;
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px oklch(0.14 0.025 264 / 0.12);
}

.cal-embed--inline {
  padding: var(--space-2);
}

.cal-embed--hero {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface-1), var(--color-accent-subtle));
  padding: var(--space-3);
}

.cal-embed__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-3);
}

.cal-embed__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--color-accent);
  color: oklch(1 0 0);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.cal-embed__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: oklch(0.7 0.18 145);
  border-radius: 50%;
  box-shadow: 0 0 0 0 oklch(0.7 0.18 145 / 0.6);
  animation: dwtCalLive 2s ease-in-out infinite;
}

@keyframes dwtCalLive {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.7 0.18 145 / 0.5); }
  50%      { box-shadow: 0 0 0 6px oklch(0.7 0.18 145 / 0); }
}

.cal-embed__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  margin: 0;
}

.cal-embed__sub {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  margin: 0;
}

.cal-embed__widget {
  width: 100%;
  min-height: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-1);
}

@media (max-width: 760px) {
  .cal-embed__widget { min-height: 580px; }
}

.cal-embed__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-2);
}

@media (prefers-reduced-motion: reduce) {
  .cal-embed__badge::before { animation: none; }
}


/* ============================================================
   v2-SPECTACULAR — Hero-Rotor + Toast + Site-Wide FX
   ============================================================ */

/* ---------- Hero-Rotor (rotierende H1) ---------- */
.hero__title--rotor {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  line-height: 1.05;
}

.hero__rotor {
  position: relative;
  display: inline-block;
  min-height: 1.1em;
  perspective: 800px;
}

.hero__rotor-word {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(40%) rotateX(-65deg);
  transform-origin: 50% 100%;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s ease;
  filter: blur(6px);
  background: linear-gradient(90deg,
    var(--color-text-1) 0%,
    var(--color-accent) 50%,
    var(--color-text-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 0% 50%;
  white-space: nowrap;
  pointer-events: none;
}

.hero__rotor-word.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  filter: blur(0);
  pointer-events: auto;
  animation: dwtRotorShine 3.4s linear infinite;
}

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

.hero__title-sub {
  display: block;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.95;
  color: var(--color-text-2);
}

.hero__title-sub em {
  color: var(--color-text-1);
  font-style: normal;
  background: linear-gradient(90deg, var(--color-accent), oklch(from var(--color-accent) calc(l + 0.06) c calc(h + 30)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .hero__rotor-word { transition: opacity 0.2s; animation: none; filter: none; transform: none; }
  .hero__rotor-word.is-visible { animation: none; }
}

/* ---------- Toast (unten am Bildschirmrand) ---------- */
.dwt-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px) scale(0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  max-width: 460px;
  background: oklch(from var(--color-surface-1) l c h / 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px oklch(0.14 0.025 264 / 0.28),
              0 4px 12px oklch(0.14 0.025 264 / 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dwt-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.dwt-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 30px) scale(0.97);
}

.dwt-toast__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.7 0.18 145);
  box-shadow: 0 0 0 0 oklch(0.7 0.18 145 / 0.6);
  animation: dwtToastPulse 1.6s ease-in-out infinite;
}

@keyframes dwtToastPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.7 0.18 145 / 0.6); }
  50%      { box-shadow: 0 0 0 8px oklch(0.7 0.18 145 / 0); }
}

.dwt-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dwt-toast__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  letter-spacing: -0.005em;
}

.dwt-toast__desc {
  font-size: var(--text-xs);
  color: var(--color-text-2);
  line-height: 1.35;
}

.dwt-toast__code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  background: oklch(from var(--color-accent) calc(l - 0.4) c h / 0.12);
  color: var(--color-accent);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 0.72rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 600px) {
  .dwt-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; transform: translate(0, 80px) scale(0.96); }
  .dwt-toast.is-visible { transform: translate(0, 0) scale(1); }
  .dwt-toast.is-leaving { transform: translate(0, 30px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .dwt-toast { transition: opacity 0.2s; }
  .dwt-toast__dot { animation: none; }
}

/* ---------- Seitenweite FX-Klassen ---------- */

/* Body-Tint warm — sanfter Glow-Hintergrund */
body.fx-body-tint-warm {
  background-image: radial-gradient(circle at 50% 0%,
    oklch(from var(--color-accent) l c h / 0.10) 0%,
    transparent 50%);
  transition: background 0.6s ease;
}

/* Body Rainbow — hue rotation auf alle Akzent-Elemente */
body.fx-body-rainbow {
  animation: dwtBodyRainbow 2.4s ease-in-out;
}
@keyframes dwtBodyRainbow {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(180deg) saturate(1.3); }
}

/* Body Deploy — grünlicher Schimmer + leichter Scale */
body.fx-body-deploy {
  animation: dwtBodyDeploy 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtBodyDeploy {
  0%   { box-shadow: inset 0 0 0 0 oklch(0.7 0.18 145 / 0); }
  40%  { box-shadow: inset 0 0 120px 0 oklch(0.7 0.18 145 / 0.18); }
  100% { box-shadow: inset 0 0 0 0 oklch(0.7 0.18 145 / 0); }
}

/* Body Sparkle — pseudo-element streut Sterne */
body.fx-body-sparkle::before {
  content: '✨ ✦ ✧ · ✨ ✦ ✧ · ✨ ✦';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;
  font-size: 1.4rem;
  color: var(--color-accent);
  opacity: 0;
  animation: dwtSparkleIn 2s ease-out;
}
@keyframes dwtSparkleIn {
  0%   { opacity: 0; transform: scale(0.4) rotate(0deg); }
  30%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.15) rotate(20deg); }
}

/* Body Speed — alle Transitions kurzzeitig schneller */
body.fx-body-speed * {
  animation-duration: 0.5s !important;
  transition-duration: 0.18s !important;
}

/* Body Glow — heller Hintergrund-Pulse */
body.fx-body-glow {
  animation: dwtBodyGlow 1.8s ease-in-out;
}
@keyframes dwtBodyGlow {
  0%, 100% { background-color: var(--color-bg); }
  50%      { background-color: oklch(from var(--color-bg) calc(l + 0.03) c h); }
}

/* ---------- Erweiterte Element-FX ---------- */
.is-fx-bounce-soft { animation: dwtBounceSoft 0.7s cubic-bezier(0.36, 0, 0.66, -0.56); }
@keyframes dwtBounceSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px) scale(1.02); }
}

.is-fx-shake-soft { animation: dwtShakeSoft 0.45s ease-in-out; }
@keyframes dwtShakeSoft {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

.is-fx-rainbow-border {
  position: relative;
  isolation: isolate;
}
.is-fx-rainbow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    oklch(0.65 0.22 0),
    oklch(0.7 0.22 60),
    oklch(0.75 0.22 120),
    oklch(0.7 0.22 180),
    oklch(0.7 0.22 240),
    oklch(0.65 0.22 300),
    oklch(0.65 0.22 0)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  animation: dwtRainbowSpin 2.4s linear infinite;
  opacity: 0.95;
}
@keyframes dwtRainbowSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  body.fx-body-tint-warm,
  body.fx-body-rainbow,
  body.fx-body-deploy,
  body.fx-body-glow,
  body.fx-body-speed,
  body.fx-body-sparkle::before,
  .is-fx-bounce-soft,
  .is-fx-shake-soft,
  .is-fx-rainbow-border::before { animation: none !important; }
}


/* ============================================================
   v3 — Cleaner Rotor + Global-FX-Overlay + Bold-Toast
   ============================================================ */

/* ---------- Rotor: kein Overlap mehr ---------- */
.hero__rotor-word {
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.45s ease;
  transform: translateY(60%) scale(0.9);
  filter: blur(8px);
}

.hero__rotor-word.is-leaving {
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- Bold-Toast Variante (für Global-FX) ---------- */
.dwt-toast.is-bold {
  border-color: var(--color-accent);
  background: linear-gradient(135deg,
    oklch(from var(--color-surface-1) l c h / 0.97),
    oklch(from var(--color-accent) calc(l - 0.4) c h / 0.18));
  box-shadow: 0 24px 60px oklch(from var(--color-accent) l c h / 0.32),
              0 0 0 1px var(--color-accent);
}
.dwt-toast.is-bold .dwt-toast__dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 0 oklch(from var(--color-accent) l c h / 0.6);
}
.dwt-toast.is-bold .dwt-toast__label {
  background: linear-gradient(90deg, var(--color-accent), oklch(from var(--color-accent) calc(l + 0.06) c calc(h + 30)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Erweiterte Body-Tints (subtil — 70% Effekte) ---------- */
body.fx-body-tint-cool {
  background-image: radial-gradient(circle at 50% 0%,
    oklch(0.7 0.18 220 / 0.10) 0%,
    transparent 50%);
  transition: background 0.6s ease;
}

body.fx-body-shake-soft {
  animation: dwtBodyShakeSoft 0.6s ease-in-out;
}
@keyframes dwtBodyShakeSoft {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-1.5px) rotate(-0.1deg); }
  40%      { transform: translateX(1.5px) rotate(0.1deg); }
  60%      { transform: translateX(-1px); }
  80%      { transform: translateX(1px); }
}

/* ---------- GLOBAL-FX-OVERLAY (für 15s-Timer) ---------- */
.dwt-fx-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background: transparent;
}

/* 1) Page-Flash — weißer Vollbild-Blitz */
.dwt-fx-overlay.is-fx-page-flash {
  animation: dwtPageFlash 0.9s ease-out;
}
@keyframes dwtPageFlash {
  0%   { opacity: 0; background: oklch(1 0 0 / 0); }
  20%  { opacity: 1; background: oklch(1 0 0 / 0.78); }
  60%  { opacity: 0.6; background: oklch(from var(--color-accent) calc(l + 0.2) c h / 0.55); }
  100% { opacity: 0; background: transparent; }
}

/* 2) Diagonal-Wipe — Akzent-Welle */
.dwt-fx-overlay.is-fx-page-wipe {
  animation: dwtPageWipe 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  background: linear-gradient(135deg,
    transparent 0%,
    transparent 30%,
    oklch(from var(--color-accent) l c h / 0.42) 45%,
    oklch(from var(--color-accent) calc(l + 0.05) c calc(h + 30) / 0.45) 50%,
    oklch(from var(--color-accent) l c h / 0.42) 55%,
    transparent 70%,
    transparent 100%);
  background-size: 300% 300%;
  background-position: -100% -100%;
}
@keyframes dwtPageWipe {
  0%   { opacity: 0; background-position: -100% -100%; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: 200% 200%; }
}

/* 3) Code-Grid — Linien-Raster */
.dwt-fx-overlay.is-fx-page-grid {
  animation: dwtPageGrid 1.5s ease-in-out;
  background-image:
    linear-gradient(oklch(from var(--color-accent) l c h / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, oklch(from var(--color-accent) l c h / 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}
@keyframes dwtPageGrid {
  0%   { opacity: 0; background-size: 80px 80px; }
  35%  { opacity: 1; background-size: 40px 40px; }
  70%  { opacity: 0.7; }
  100% { opacity: 0; background-size: 20px 20px; }
}

/* 4) Color-Invert — kompletter Reset-Effekt */
body.fx-body-page-invert {
  animation: dwtBodyInvert 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes dwtBodyInvert {
  0%   { filter: none; }
  30%  { filter: invert(1) hue-rotate(180deg); }
  70%  { filter: invert(0.4) hue-rotate(90deg); }
  100% { filter: none; }
}

/* 5) Reality-Warp — Body-Zoom */
body.fx-body-page-zoom {
  animation: dwtBodyWarp 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}
@keyframes dwtBodyWarp {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.025); filter: blur(0.5px); }
  100% { transform: scale(1); filter: none; }
}

/* 6) Aura-Glow — Akzent-Halo an den Rändern */
.dwt-fx-overlay.is-fx-page-glow {
  animation: dwtPageGlow 1.5s ease-in-out;
  background: radial-gradient(ellipse at center,
    transparent 35%,
    oklch(from var(--color-accent) l c h / 0.32) 75%,
    oklch(from var(--color-accent) calc(l - 0.05) c h / 0.55) 100%);
}
@keyframes dwtPageGlow {
  0%   { opacity: 0; }
  35%  { opacity: 1; }
  70%  { opacity: 0.7; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dwt-fx-overlay,
  body.fx-body-page-invert,
  body.fx-body-page-zoom,
  body.fx-body-tint-cool,
  body.fx-body-shake-soft { animation: none !important; }
}


/* ============================================================
   v3.1 — 15 NEUE CREATIVE FX
   ============================================================ */

/* --- Matrix Rain (Body-Background-Effekt) --- */
body.fx-body-matrix::after {
  content: '0 1 0 0 1 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1';
  position: fixed; inset: 0; pointer-events: none; z-index: 9997;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px; line-height: 1.6;
  color: oklch(0.78 0.22 145 / 0.55);
  text-shadow: 0 0 8px oklch(0.78 0.22 145 / 0.55);
  word-spacing: 14px;
  letter-spacing: 4px;
  padding: 12px;
  white-space: pre-wrap;
  opacity: 0;
  animation: dwtMatrixRain 3s ease-out;
}
@keyframes dwtMatrixRain {
  0%   { opacity: 0; transform: translateY(-30%); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(15%); }
}
.is-fx-matrix-glow { box-shadow: 0 0 0 2px oklch(0.78 0.22 145 / 0.5), inset 0 0 60px oklch(0.78 0.22 145 / 0.18); transition: box-shadow 0.4s; }

/* --- RGB-Glitch --- */
.is-fx-glitch { animation: dwtGlitch 1.4s steps(2, end); position: relative; }
@keyframes dwtGlitch {
  0%, 100% { text-shadow: none; transform: none; }
  10%      { text-shadow: -2px 0 oklch(0.65 0.3 25), 2px 0 oklch(0.65 0.3 220); transform: translate(-1px, 0); }
  20%      { text-shadow: 2px 0 oklch(0.65 0.3 25), -2px 0 oklch(0.65 0.3 220); transform: translate(1px, 0); }
  30%      { text-shadow: -3px 0 oklch(0.65 0.3 145), 3px 0 oklch(0.65 0.3 320); }
  60%      { text-shadow: 1px 0 oklch(0.65 0.3 25), -1px 0 oklch(0.65 0.3 220); transform: skewX(-1deg); }
}
body.fx-body-glitch { animation: dwtBodyGlitch 1.4s steps(4, end); }
@keyframes dwtBodyGlitch {
  0%, 100% { filter: none; }
  30%      { filter: hue-rotate(20deg) saturate(1.3); }
  60%      { filter: hue-rotate(-20deg) contrast(1.1); }
}

/* --- Page-Tilt (2 Grad) --- */
body.fx-body-tilt { animation: dwtBodyTilt 1.3s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: center top; }
@keyframes dwtBodyTilt {
  0%, 100% { transform: rotate(0deg); }
  35%      { transform: rotate(1.5deg); }
  70%      { transform: rotate(-1deg); }
}
.is-fx-tilt-soft { animation: dwtTiltSoft 1.2s ease-in-out; }
@keyframes dwtTiltSoft {
  0%, 100% { transform: rotate(0) translateZ(0); }
  50%      { transform: rotate(1.2deg) translateZ(0); }
}

/* --- Card-Magnify --- */
.is-fx-zoom-soft { animation: dwtZoomSoft 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtZoomSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); box-shadow: 0 12px 40px oklch(0.14 0.025 264 / 0.18); }
}

/* --- Crystallize (Akzent-Partikel über Seite) --- */
body.fx-body-crystal::before {
  content: '◆ ◇ ✦ ◈ ◆ ◇ ✦ ◈ ◆ ◇ ✦ ◈ ◆ ◇ ✦';
  position: fixed; inset: 0; pointer-events: none; z-index: 9996;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-around;
  font-size: 1.5rem; color: var(--color-accent);
  opacity: 0;
  animation: dwtCrystal 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtCrystal {
  0%   { opacity: 0; transform: scale(0.3) rotate(0deg); filter: blur(8px); }
  40%  { opacity: 0.8; filter: blur(0); }
  100% { opacity: 0; transform: scale(1.3) rotate(180deg); filter: blur(4px); }
}

/* --- Spotlight (Lichtkegel) --- */
body.fx-body-spotlight {
  background-image: radial-gradient(circle 320px at 50% 30%,
    oklch(from var(--color-accent) calc(l + 0.1) c h / 0.18) 0%,
    transparent 80%);
  animation: dwtSpotlight 1.8s ease-in-out;
}
@keyframes dwtSpotlight {
  0%   { background-position: 10% 30%; }
  50%  { background-position: 90% 30%; }
  100% { background-position: 50% 30%; }
}

/* --- Conic-Gradient-Shift --- */
body.fx-body-conic::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9995;
  background: conic-gradient(from 0deg at 50% 50%,
    oklch(from var(--color-accent) l c h / 0.12) 0%,
    transparent 25%,
    oklch(from var(--color-accent) l c calc(h + 60) / 0.14) 50%,
    transparent 75%,
    oklch(from var(--color-accent) l c h / 0.12) 100%);
  animation: dwtConic 2.4s linear;
}
@keyframes dwtConic { to { transform: rotate(360deg); } }

/* --- Parallax-Hover (Tilt der Visuals) --- */
.is-fx-parallax { animation: dwtParallax 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtParallax {
  0%, 100% { transform: perspective(800px) rotateY(0) rotateX(0); }
  25%      { transform: perspective(800px) rotateY(-6deg) rotateX(2deg); }
  75%      { transform: perspective(800px) rotateY(6deg) rotateX(-2deg); }
}

/* --- Content-Wave --- */
body.fx-body-wave { animation: dwtBodyWave 2s ease-in-out; }
@keyframes dwtBodyWave {
  0%, 100% { transform: translateY(0); }
  20%      { transform: translateY(-6px); }
  40%      { transform: translateY(4px); }
  60%      { transform: translateY(-3px); }
  80%      { transform: translateY(2px); }
}

/* --- Typewriter-Live H2 --- */
.is-fx-typewriter {
  position: relative;
  overflow: hidden;
  animation: dwtTypewriter 1.5s steps(28, end);
}
@keyframes dwtTypewriter {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* --- Neon-Outline für Buttons --- */
.is-fx-neon {
  animation: dwtNeon 1.6s ease-in-out;
}
@keyframes dwtNeon {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-accent); }
  30%      { box-shadow: 0 0 0 3px var(--color-accent), 0 0 16px var(--color-accent), 0 0 32px oklch(from var(--color-accent) l c h / 0.4); }
  70%      { box-shadow: 0 0 0 2px var(--color-accent), 0 0 10px var(--color-accent); }
}

/* --- Icon-Orbit (360deg rotation) --- */
.is-fx-orbit { animation: dwtOrbit 2s cubic-bezier(0.65, 0, 0.35, 1); }
@keyframes dwtOrbit {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* --- Soft-Invert (Dark↔Light Mischeffekt) --- */
body.fx-body-soft-invert { animation: dwtSoftInvert 1.1s ease-in-out; }
@keyframes dwtSoftInvert {
  0%, 100% { filter: none; }
  40%      { filter: invert(0.18) hue-rotate(30deg) saturate(1.1); }
  70%      { filter: invert(0.08) hue-rotate(15deg); }
}

/* --- Aurora (Polarlichter-Bänder) --- */
body.fx-body-aurora::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9994;
  background: linear-gradient(45deg,
    transparent 0%,
    oklch(0.7 0.22 145 / 0.28) 25%,
    oklch(0.7 0.22 220 / 0.28) 45%,
    oklch(0.7 0.22 320 / 0.28) 65%,
    transparent 100%);
  background-size: 400% 400%;
  background-position: 0% 0%;
  animation: dwtAurora 2.8s cubic-bezier(0.4, 0, 0.2, 1);
  mix-blend-mode: screen;
  filter: blur(40px);
}
@keyframes dwtAurora {
  0%   { opacity: 0; background-position: 0% 0%; }
  30%  { opacity: 1; }
  70%  { opacity: 0.8; }
  100% { opacity: 0; background-position: 100% 100%; }
}

/* --- Reveal-Cards (Stagger) --- */
.is-fx-reveal {
  animation: dwtReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dwtReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.95); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.fx-body-matrix::after,
  body.fx-body-crystal::before,
  body.fx-body-aurora::before,
  body.fx-body-conic::after,
  body.fx-body-tilt,
  body.fx-body-glitch,
  body.fx-body-wave,
  body.fx-body-soft-invert,
  body.fx-body-spotlight,
  .is-fx-glitch,
  .is-fx-tilt-soft,
  .is-fx-zoom-soft,
  .is-fx-parallax,
  .is-fx-typewriter,
  .is-fx-neon,
  .is-fx-orbit,
  .is-fx-reveal { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.fx-body-matrix::after,
  body.fx-body-crystal::before,
  body.fx-body-aurora::before,
  body.fx-body-conic::after,
  body.fx-body-tilt,
  body.fx-body-glitch,
  body.fx-body-wave,
  body.fx-body-soft-invert,
  body.fx-body-spotlight,
  .is-fx-glitch,
  .is-fx-tilt-soft,
  .is-fx-zoom-soft,
  .is-fx-parallax,
  .is-fx-typewriter,
  .is-fx-neon,
  .is-fx-orbit,
  .is-fx-reveal { animation: none !important; }
}


/* ============================================================
   v4 — INTERACTIVE CODEBOX (ersetzt v3-Toast)
   ============================================================ */

.dwt-toast { display: none !important; } /* alter Toast deaktiviert */

.dwt-codebox {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  z-index: 220;
  background: linear-gradient(180deg, #0f1424 0%, #0a0e1c 100%);
  color: #e6e9f2;
  border: 1px solid rgba(140, 165, 220, 0.18);
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(140, 165, 220, 0.08) inset;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s ease;
  max-height: 220px;
}

.dwt-codebox.is-closed {
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  pointer-events: none;
}

/* Mobile: Codebox ausblenden wenn der Chat geöffnet ist —
   sonst stapelt sich Codebox + Chat-Panel im selben Bereich
   und wirkt verwirrend. CSS-Sicherheitsnetz; das eigentliche
   Schließen erfolgt JS-getrieben (chatbot.js → closeCodebox()). */
@media (max-width: 768px) {
  body.dwt-chat-open #dwtCodebox,
  body.dwt-chat-open #dwtCodeboxReopen {
    display: none !important;
  }
}

.dwt-codebox.is-paused {
  filter: grayscale(0.55) brightness(0.85);
}

.dwt-codebox.is-library {
  width: 540px;
  max-height: 540px;
}

.dwt-codebox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a1f33, #131826);
  border-bottom: 1px solid rgba(140, 165, 220, 0.12);
}

.dwt-codebox__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dwt-codebox__dots {
  display: inline-flex;
  gap: 6px;
}
.dwt-codebox__dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #5a607a;
}
.dwt-codebox__dots .dot.red    { background: #ff5f57; }
.dwt-codebox__dots .dot.yellow { background: #febc2e; }
.dwt-codebox__dots .dot.green  { background: #28c840; }

.dwt-codebox__filename {
  font-size: 11px;
  color: #aab2ce;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dwt-codebox__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  background: rgba(40, 200, 64, 0.15);
  color: #4ed975;
  border: 1px solid rgba(40, 200, 64, 0.35);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.dwt-codebox__live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ed975;
  animation: dwtLivePulse 1.5s ease-in-out infinite;
}
@keyframes dwtLivePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.dwt-codebox.is-paused .dwt-codebox__live {
  background: rgba(254, 188, 46, 0.15);
  color: #febc2e;
  border-color: rgba(254, 188, 46, 0.35);
}
.dwt-codebox.is-paused .dwt-codebox__live::before { background: #febc2e; animation: none; }

.dwt-codebox__controls {
  display: inline-flex;
  gap: 4px;
}

.dwt-codebox__btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(140, 165, 220, 0.18);
  border-radius: 6px;
  color: #c8d0ea;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dwt-codebox__btn:hover {
  background: rgba(140, 165, 220, 0.12);
  border-color: rgba(140, 165, 220, 0.32);
  color: #fff;
}
.dwt-codebox__btn--close:hover {
  background: rgba(255, 95, 87, 0.15);
  border-color: #ff5f57;
  color: #ff5f57;
}

.dwt-codebox__btn .ic-play  { display: none; }
.dwt-codebox__btn .ic-pause { display: inline; }
.dwt-codebox.is-paused .dwt-codebox__btn .ic-play  { display: inline; }
.dwt-codebox.is-paused .dwt-codebox__btn .ic-pause { display: none; }

.dwt-codebox__body {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dwt-codebox__body.is-bold {
  background: linear-gradient(180deg, rgba(255, 130, 90, 0.06), rgba(140, 90, 255, 0.06));
  box-shadow: inset 0 0 30px rgba(255, 130, 90, 0.08);
}

.dwt-codebox__line {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.dwt-codebox__line--active .dwt-codebox__code {
  position: relative;
}

.dwt-codebox__lineno {
  display: inline-block;
  width: 22px;
  text-align: right;
  color: #5a607a;
  font-size: 11px;
  flex-shrink: 0;
  user-select: none;
}

.dwt-codebox__code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.cb-kw   { color: #c792ea; }
.cb-fn   { color: #82aaff; }
.cb-str  { color: #c3e88d; }
.cb-num  { color: #f78c6c; }
.cb-cm   { color: #5a607a; font-style: italic; }
.cb-pn   { color: #89ddff; }

.dwt-codebox__progress {
  position: relative;
  height: 2px;
  background: rgba(140, 165, 220, 0.08);
  overflow: hidden;
}
.dwt-codebox__progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #82aaff, #c792ea, #4ed975);
  background-size: 200% 100%;
  animation: dwtCodeProgressShine 1.2s linear infinite;
}
@keyframes dwtCodeProgressShine {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.dwt-codebox.is-paused .dwt-codebox__progress > span { animation-play-state: paused; }

/* ---- Library Panel ---- */
.dwt-codebox__library {
  padding: 12px;
  background: linear-gradient(180deg, #0c1020, #0a0e1c);
  border-top: 1px solid rgba(140, 165, 220, 0.12);
  max-height: 380px;
  overflow-y: auto;
}

.dwt-codebox__library-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.dwt-codebox__library-head strong {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.dwt-codebox__library-hint {
  font-size: 10px;
  color: #5a607a;
  font-style: italic;
}

.dwt-codebox__library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.dwt-codebox__lib-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 8px;
  padding: 6px 8px;
  background: rgba(140, 165, 220, 0.04);
  border: 1px solid rgba(140, 165, 220, 0.10);
  border-radius: 6px;
  color: #c8d0ea;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.dwt-codebox__lib-item:hover {
  background: rgba(130, 170, 255, 0.12);
  border-color: rgba(130, 170, 255, 0.32);
  transform: translateY(-1px);
}
.dwt-codebox__lib-item:active {
  transform: translateY(0) scale(0.98);
}
.dwt-codebox__lib-item.is-bold {
  border-color: rgba(247, 140, 108, 0.32);
  background: linear-gradient(135deg, rgba(247, 140, 108, 0.08), rgba(199, 146, 234, 0.06));
}
.dwt-codebox__lib-num {
  grid-row: span 2;
  font-size: 10px;
  color: #5a607a;
  text-align: right;
  font-weight: 600;
}
.dwt-codebox__lib-label {
  font-weight: 700;
  color: #e6e9f2;
  font-size: 11px;
}
.dwt-codebox__lib-item.is-bold .dwt-codebox__lib-label {
  color: #ffba94;
}
.dwt-codebox__lib-code {
  color: #82aaff;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

/* ---- Reopen Button ---- */
.dwt-codebox-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  z-index: 220;
  background: linear-gradient(135deg, #1a1f33, #0a0e1c);
  color: #82aaff;
  border: 1px solid rgba(130, 170, 255, 0.4);
  border-radius: 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.dwt-codebox-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(130, 170, 255, 0.32);
  color: #fff;
}

/* ---- Mobile ---- */
@media (max-width: 700px) {
  .dwt-codebox {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .dwt-codebox.is-library {
    width: auto;
    max-height: 70vh;
  }
  .dwt-codebox__library-grid {
    grid-template-columns: 1fr;
  }
  .dwt-codebox__filename { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .dwt-codebox, .dwt-codebox__progress > span, .dwt-codebox__live::before {
    animation: none !important;
    transition: opacity 0.2s !important;
  }
}


/* ============================================================
   v5 — Cinema Codebox (Typing UI + Custom-Buttons + 25 neue FX)
   ============================================================ */

/* --- Codebox typing area --- */
.dwt-codebox__body {
  padding: 12px 14px 10px;
  font-size: 13px;
  line-height: 1.55;
}
.dwt-codebox__pre {
  margin: 0 0 6px;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  color: #e6e9f2;
  min-height: 4.6em;
}
.dwt-codebox__pre code {
  font-family: inherit;
  white-space: pre-wrap;
}
.dwt-codebox__caret {
  display: inline-block;
  margin-left: 1px;
  color: #82aaff;
  opacity: 0;
}
.dwt-codebox__caret.is-blinking {
  opacity: 1;
  animation: dwtCaretBlink 0.9s steps(2) infinite;
}
@keyframes dwtCaretBlink {
  50% { opacity: 0; }
}

.dwt-codebox__desc-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 11px;
  color: #aab2ce;
  border-top: 1px dashed rgba(140, 165, 220, 0.10);
  padding-top: 6px;
  min-height: 1.4em;
}
.dwt-codebox__chevron { color: #4ed975; flex-shrink: 0; font-weight: 700; }
.dwt-codebox__desc { flex: 1; }

.dwt-codebox__body.is-bold {
  background: linear-gradient(180deg, rgba(255, 130, 90, 0.06), rgba(140, 90, 255, 0.06));
}
.dwt-codebox__body.is-custom {
  background: linear-gradient(180deg, rgba(82, 170, 255, 0.08), rgba(199, 146, 234, 0.06));
  box-shadow: inset 0 0 32px rgba(130, 170, 255, 0.10);
}
.dwt-codebox__body.is-custom::before {
  content: 'DWT-CUSTOM';
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #82aaff, #c792ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}
.dwt-codebox__body { position: relative; }

.dwt-codebox { max-height: 260px; }
.dwt-codebox.is-library { max-height: 580px; }

/* --- Library Item: Custom DWT (animiert) --- */
.dwt-codebox__lib-item.is-custom {
  background: linear-gradient(135deg, rgba(82, 170, 255, 0.16), rgba(199, 146, 234, 0.12));
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dwt-codebox__lib-item.is-custom::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  background: conic-gradient(from 0deg,
    #82aaff, #c792ea, #4ed975, #f78c6c, #82aaff);
  z-index: -2;
  animation: dwtCustomBorderSpin 4s linear infinite;
}
.dwt-codebox__lib-item.is-custom::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: linear-gradient(135deg, #0c1224, #0a0e1c);
  z-index: -1;
}
@keyframes dwtCustomBorderSpin {
  to { transform: rotate(360deg); }
}
.dwt-codebox__lib-item.is-custom .dwt-codebox__lib-label {
  background: linear-gradient(90deg, #82aaff 0%, #c792ea 50%, #4ed975 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dwtCustomTextShift 3s linear infinite;
  font-weight: 800;
}
@keyframes dwtCustomTextShift {
  to { background-position: 200% 0; }
}
.dwt-codebox__lib-item.is-custom:hover {
  transform: translateY(-2px) scale(1.02);
}
.dwt-codebox__lib-item.is-custom .dwt-codebox__lib-code {
  color: #c8d0ea;
}

.dwt-codebox__lib-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4ed975;
  padding: 1px 4px;
  background: rgba(40, 200, 64, 0.18);
  border-radius: 3px;
  z-index: 1;
}

/* Library Item: standard layout (3 cols for custom badge) */
.dwt-codebox__lib-item.is-custom {
  grid-template-columns: 22px 1fr;
  padding-right: 38px;
}

/* --- 5 DWT-Custom Effekte (Body-Klassen) --- */

/* 1. dwt-deploy — grüner Deploy-Sweep + Badge-Pop */
body.fx-body-dwt-deploy {
  animation: dwtBodyCustomDeploy 2.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
body.fx-body-dwt-deploy::after {
  content: '✓ DEPLOYED · LIVE';
  position: fixed;
  inset: auto 0 38% 0;
  text-align: center;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: oklch(0.78 0.22 145);
  text-shadow: 0 0 40px oklch(0.78 0.22 145 / 0.7), 0 0 80px oklch(0.78 0.22 145 / 0.4);
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  animation: dwtDeployBadge 2.4s ease-out;
}
@keyframes dwtBodyCustomDeploy {
  0%   { box-shadow: inset 0 0 0 oklch(0.78 0.22 145 / 0); }
  40%  { box-shadow: inset 0 0 180px oklch(0.78 0.22 145 / 0.25); }
  100% { box-shadow: inset 0 0 0 oklch(0.78 0.22 145 / 0); }
}
@keyframes dwtDeployBadge {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); filter: blur(8px); }
  35%  { opacity: 1; transform: scale(1.05) translateY(0); filter: blur(0); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* 2. dwt-handshake — Wave-Connection vom Logo zum Cursor */
.is-fx-handshake { animation: dwtHandshakeWave 2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtHandshakeWave {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(8deg) scale(1.06); }
  40%      { transform: rotate(-6deg) scale(1.04); }
  60%      { transform: rotate(4deg) scale(1.02); }
  80%      { transform: rotate(-2deg); }
}
body.fx-body-handshake::before {
  content: '👋';
  position: fixed;
  font-size: 3rem;
  top: 14%;
  left: 30%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  animation: dwtHandshakeEmoji 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dwtHandshakeEmoji {
  0%   { opacity: 0; transform: translate(-40px, 20px) rotate(-20deg) scale(0.5); }
  25%  { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1.2); }
  50%  { opacity: 1; transform: translate(20px, -10px) rotate(20deg) scale(1); }
  75%  { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1.15); }
  100% { opacity: 0; transform: translate(40px, -30px) rotate(-10deg) scale(0.7); }
}

/* 3. dwt-mehr-cascade — Wellen durch alle "Mehr X" Wörter */
.is-fx-mehr-cascade { animation: dwtMehrCascadePulse 2.8s ease-in-out; }
@keyframes dwtMehrCascadePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  25%      { transform: scale(1.08); filter: drop-shadow(0 8px 30px oklch(from var(--color-accent) l c h / 0.4)); }
  50%      { transform: scale(1.04); }
  75%      { transform: scale(1.06); filter: drop-shadow(0 4px 20px oklch(from var(--color-accent) l c h / 0.3)); }
}
body.fx-body-mehr-wave {
  animation: dwtBodyMehrWave 2.8s ease-in-out;
  background-image: linear-gradient(180deg,
    oklch(from var(--color-accent) calc(l + 0.2) c h / 0.08) 0%,
    transparent 30%);
}
@keyframes dwtBodyMehrWave {
  0%, 100% { background-position: 0 -200px; }
  50%      { background-position: 0 0; }
}

/* 4. dwt-brand-pulse — expandierende Wellen vom Logo */
.is-fx-brand-pulse { animation: dwtBrandLogoPulse 2.6s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtBrandLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  35%      { transform: scale(1.18); filter: drop-shadow(0 0 30px oklch(from var(--color-accent) calc(l + 0.1) c h)); }
  70%      { transform: scale(1.08); filter: drop-shadow(0 0 20px oklch(from var(--color-accent) calc(l + 0.05) c h)); }
}
body.fx-body-brand-pulse {
  animation: dwtBodyBrandRing 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtBodyBrandRing {
  0%   { box-shadow: inset 0 0 0 0 oklch(from var(--color-accent) l c h / 0); }
  30%  { box-shadow: inset 0 0 0 80px oklch(from var(--color-accent) l c h / 0.18),
                    inset 0 0 0 200px oklch(from var(--color-accent) l c h / 0.06); }
  70%  { box-shadow: inset 0 0 0 0 oklch(from var(--color-accent) l c h / 0); }
}

/* 5. dwt-code-rain — Brand-spezifischer Code-Regen */
body.fx-body-dwt-rain::after {
  content: 'DeinWebTeam.de · 24h · DeinWebTeam.de · 24h · DeinWebTeam.de · 24h · DeinWebTeam.de · 24h · DeinWebTeam.de · 24h';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9991;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  color: oklch(0.78 0.22 145 / 0.45);
  text-shadow: 0 0 8px oklch(0.78 0.22 145 / 0.6);
  letter-spacing: 0.15em;
  white-space: pre-wrap;
  word-spacing: 12px;
  padding: 12px;
  opacity: 0;
  animation: dwtCodeRainBrand 3.2s ease-out;
}
@keyframes dwtCodeRainBrand {
  0%   { opacity: 0; transform: translateY(-25%); }
  25%  { opacity: 0.7; }
  75%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(15%); }
}

/* --- 20 neue Standard-Effekte --- */

/* Lightning */
body.fx-body-lightning::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  background: linear-gradient(135deg, transparent 0%, transparent 40%,
    oklch(1 0 0 / 0.8) 48%, oklch(0.95 0.18 280 / 0.7) 50%,
    oklch(1 0 0 / 0.8) 52%, transparent 60%, transparent 100%);
  background-size: 300% 300%;
  background-position: -100% -100%;
  animation: dwtLightningStrike 1s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes dwtLightningStrike {
  0% { opacity: 0; background-position: -100% -100%; }
  15% { opacity: 1; }
  100% { opacity: 0; background-position: 200% 200%; }
}

/* Ripple */
body.fx-body-ripple::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  background: radial-gradient(circle 0px at 50% 50%,
    oklch(from var(--color-accent) l c h / 0.35),
    transparent 80%);
  animation: dwtRipple 1.6s ease-out;
}
@keyframes dwtRipple {
  0%   { background-size: 0 0; opacity: 1; }
  100% { background-size: 300% 300%; opacity: 0; }
}

/* Holographic */
.is-fx-holo { animation: dwtHolo 1.8s ease-in-out; position: relative; overflow: hidden; }
.is-fx-holo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%,
    oklch(0.9 0.2 320 / 0.4) 40%, oklch(0.9 0.2 220 / 0.4) 50%,
    oklch(0.9 0.2 120 / 0.4) 60%, transparent 70%);
  background-size: 300% 100%;
  background-position: -100% 0;
  animation: dwtHoloShift 1.8s ease-in-out;
  mix-blend-mode: screen;
}
@keyframes dwtHoloShift { to { background-position: 200% 0; } }
@keyframes dwtHolo { 0%,100%{filter:none;} 50%{filter:saturate(1.3);} }

/* Binary */
body.fx-body-binary::before {
  content: '0 1 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 0 1 1';
  position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  font-family: ui-monospace, monospace;
  font-size: 1.1rem; color: oklch(0.78 0.22 145 / 0.4);
  word-spacing: 20px; letter-spacing: 4px;
  line-height: 1.8; padding: 16px;
  text-shadow: 0 0 6px oklch(0.78 0.22 145 / 0.5);
  opacity: 0;
  animation: dwtBinaryFall 2.4s ease-out;
}
@keyframes dwtBinaryFall {
  0% { opacity: 0; transform: translateY(-30%); }
  35% { opacity: 0.65; }
  100% { opacity: 0; transform: translateY(20%); }
}

/* Cursor-Trail */
body.fx-body-cursor-trail {
  cursor: crosshair;
  background-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%),
    oklch(from var(--color-accent) calc(l + 0.2) c h / 0.18), transparent 80%);
  transition: background 0.1s;
}

/* Magnetize */
.is-fx-magnetize { animation: dwtMagnetize 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtMagnetize {
  0%,100% { transform: translate(0, 0); }
  40%     { transform: scale(0.85) translateY(-10px); filter: brightness(1.3); }
  70%     { transform: scale(1.15); }
}

/* Data-Stream */
body.fx-body-stream {
  background-image: repeating-linear-gradient(90deg,
    transparent 0, transparent 60px,
    oklch(from var(--color-accent) l c h / 0.12) 60px,
    oklch(from var(--color-accent) l c h / 0.12) 64px);
  background-size: 200% 100%;
  animation: dwtStream 2.2s linear;
}
@keyframes dwtStream { to { background-position: -200% 0; } }

/* Liquid */
body.fx-body-liquid::before {
  content: ''; position: fixed; inset: -20%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, oklch(from var(--color-accent) calc(l + 0.1) c h / 0.4) 0, transparent 30%),
    radial-gradient(circle at 70% 60%, oklch(from var(--color-accent) l c calc(h + 60) / 0.35) 0, transparent 35%),
    radial-gradient(circle at 40% 80%, oklch(from var(--color-accent) calc(l + 0.05) c calc(h - 30) / 0.3) 0, transparent 30%);
  filter: blur(60px);
  animation: dwtLiquid 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtLiquid {
  0%,100% { transform: scale(1) rotate(0deg); opacity: 0; }
  50%     { transform: scale(1.15) rotate(60deg); opacity: 1; }
}

/* CRT */
body.fx-body-crt::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9989;
  background: repeating-linear-gradient(180deg,
    transparent 0, transparent 2px,
    oklch(0 0 0 / 0.18) 2px, oklch(0 0 0 / 0.18) 4px);
  animation: dwtCrt 1.5s ease;
}
@keyframes dwtCrt { 0%,100%{opacity:0;} 35%,65%{opacity:1;} }

/* Gravity-Up */
.is-fx-gravity-up { animation: dwtGravityUp 1.1s cubic-bezier(0.36, 0, 0.66, -0.56); }
@keyframes dwtGravityUp {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-30px) rotate(-3deg); }
}

/* Kaleidoscope */
.is-fx-kaleidoscope { animation: dwtKaleido 2.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtKaleido {
  0%   { transform: rotate(0) scale(1); }
  50%  { transform: rotate(60deg) scale(0.9); filter: hue-rotate(120deg); }
  100% { transform: rotate(0) scale(1); }
}

/* Pixelate */
body.fx-body-pixelate { animation: dwtPixelate 0.8s steps(4); }
@keyframes dwtPixelate {
  0%,100%{ filter: none; }
  50%    { filter: contrast(2) saturate(2) blur(2px); }
}

/* Breathe */
body.fx-body-breathe { animation: dwtBreathe 2.2s ease-in-out; }
@keyframes dwtBreathe {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.012); }
}

/* Chromatic */
body.fx-body-chromatic { animation: dwtChromatic 1.6s ease-in-out; }
@keyframes dwtChromatic {
  0%,100%{ filter: none; }
  25% { filter: drop-shadow(-4px 0 oklch(0.65 0.3 25)) drop-shadow(4px 0 oklch(0.65 0.3 220)); }
  75% { filter: drop-shadow(3px 0 oklch(0.65 0.3 25)) drop-shadow(-3px 0 oklch(0.65 0.3 220)); }
}

/* Wireframe */
body.fx-body-wireframe::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9988;
  background-image:
    linear-gradient(oklch(from var(--color-accent) l c h / 0.15) 1px, transparent 1px),
    linear-gradient(90deg, oklch(from var(--color-accent) l c h / 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: dwtWireframe 1.4s ease-out;
}
@keyframes dwtWireframe {
  0%,100% { opacity: 0; }
  30%,70% { opacity: 1; }
}

/* Vortex */
body.fx-body-vortex { animation: dwtVortex 1.8s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtVortex {
  0%,100%{ transform: rotate(0); }
  50%    { transform: rotate(3deg) scale(1.02); }
}

/* Prism */
body.fx-body-prism::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9988;
  background:
    linear-gradient(90deg, oklch(0.7 0.22 25 / 0.25) 0, transparent 8%),
    linear-gradient(-90deg, oklch(0.7 0.22 240 / 0.25) 0, transparent 8%),
    linear-gradient(180deg, oklch(0.7 0.22 120 / 0.25) 0, transparent 6%),
    linear-gradient(0deg, oklch(0.7 0.22 320 / 0.25) 0, transparent 6%);
  animation: dwtPrismFade 1.6s ease;
}
@keyframes dwtPrismFade {
  0%,100%{ opacity: 0; }
  40%,70%{ opacity: 1; }
}

/* TV-Static */
body.fx-body-static::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  animation: dwtStatic 0.7s steps(8);
}
@keyframes dwtStatic { 0%,100%{opacity:0;} 50%{opacity:1;} }

/* Paper-Fold */
.is-fx-fold { animation: dwtFold 2s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top center; }
@keyframes dwtFold {
  0%,100%{ transform: perspective(1200px) rotateX(0); }
  50%    { transform: perspective(1200px) rotateX(-12deg); }
}

/* Ink-Bleed */
.is-fx-ink-bleed { animation: dwtInkBleed 2.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtInkBleed {
  0%,100% { box-shadow: 0 0 0 0 transparent; }
  50%     { box-shadow: 0 0 0 12px oklch(from var(--color-accent) l c h / 0.15),
                       0 0 30px oklch(from var(--color-accent) l c h / 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="fx-body-dwt-"], body[class*="fx-body-"],
  [class*="is-fx-"] { animation: none !important; }
  .dwt-codebox__caret { animation: none !important; }
  .dwt-codebox__lib-item.is-custom::before { animation: none !important; }
  .dwt-codebox__lib-item.is-custom .dwt-codebox__lib-label { animation: none !important; }
}

@keyframes dwtStatic { 0%,100%{opacity:0;} 50%{opacity:1;} }

/* Paper-Fold */
.is-fx-fold { animation: dwtFold 2s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top center; }
@keyframes dwtFold {
  0%,100%{ transform: perspective(1200px) rotateX(0); }
  50%    { transform: perspective(1200px) rotateX(-12deg); }
}

/* Ink-Bleed */
.is-fx-ink-bleed { animation: dwtInkBleed 2.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtInkBleed {
  0%,100% { box-shadow: 0 0 0 0 transparent; }
  50%     { box-shadow: 0 0 0 12px oklch(from var(--color-accent) l c h / 0.15),
                       0 0 30px oklch(from var(--color-accent) l c h / 0.45); }
}


/* ============================================================
   v5.1 — Codebox-ELEGANT (langsamer, edler, ruhiger)
   ============================================================ */

/* Sanftere Hauptbox */
.dwt-codebox {
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  padding-bottom: 0;
  border: 1px solid rgba(140, 165, 220, 0.14);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(140, 165, 220, 0.05) inset,
    0 -1px 0 rgba(255, 255, 255, 0.04) inset;
  background: linear-gradient(180deg, #11162a 0%, #0a0e1c 70%, #080b16 100%);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.5s ease,
    filter 0.4s ease;
}

/* Body atmet: sanfter Fade-in/out beim Snippet-Wechsel */
.dwt-codebox__body {
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.dwt-codebox.is-transitioning .dwt-codebox__body {
  opacity: 0.15;
  filter: blur(2px);
}

/* Längere Min-Height damit Wechsel nicht ruckartig */
.dwt-codebox__pre {
  min-height: 5.6em;
  font-size: 13.5px;
  letter-spacing: 0.012em;
  line-height: 1.65;
}

/* Edler Caret: langsamer Blink + subtiler Glow */
.dwt-codebox__caret {
  color: #82aaff;
  text-shadow: 0 0 6px rgba(130, 170, 255, 0.5);
  font-weight: 100;
  margin-left: 2px;
}
.dwt-codebox__caret.is-blinking {
  animation: dwtCaretBlinkSlow 1.6s ease-in-out infinite;
}
@keyframes dwtCaretBlinkSlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Description-Row eleganter */
.dwt-codebox__desc-row {
  padding-top: 9px;
  margin-top: 4px;
  font-size: 11.5px;
  color: #b8c0db;
  border-top: 1px solid rgba(140, 165, 220, 0.08);
  letter-spacing: 0.008em;
  min-height: 1.6em;
  transition: opacity 0.4s ease 0.1s;
}
.dwt-codebox__chevron {
  color: #82aaff;
  font-weight: 400;
  font-size: 13px;
  margin-right: 2px;
}

/* Title-Bar feiner */
.dwt-codebox__bar {
  padding: 9px 14px;
  background: linear-gradient(180deg, #1d2236 0%, #15192a 100%);
  border-bottom: 1px solid rgba(140, 165, 220, 0.08);
}
.dwt-codebox__filename {
  font-size: 11.5px;
  color: #b8c0db;
  letter-spacing: 0.4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Live-Badge ruhiger blinken (statt schneller Pulse) */
.dwt-codebox__live::before {
  animation: dwtLivePulseSlow 2.4s ease-in-out infinite;
}
@keyframes dwtLivePulseSlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* Progress-Bar mit sanftem Glow + Shine */
.dwt-codebox__progress {
  height: 3px;
  background: linear-gradient(180deg, rgba(140, 165, 220, 0.04), rgba(140, 165, 220, 0.10));
  position: relative;
  overflow: hidden;
}
.dwt-codebox__progress > span {
  background: linear-gradient(90deg,
    #82aaff 0%,
    #c792ea 35%,
    #4ed975 70%,
    #82aaff 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(130, 170, 255, 0.4);
  animation: dwtCodeProgressShineSlow 3s linear infinite;
  border-radius: 0 2px 2px 0;
}
@keyframes dwtCodeProgressShineSlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Description-Animation: erst nach Tippen ein-fade-en */
.dwt-codebox__desc:empty + .dwt-codebox__chevron,
.dwt-codebox__desc-row:has(.dwt-codebox__desc:empty) { opacity: 0.5; }
.dwt-codebox__desc:not(:empty) { animation: dwtDescFadeIn 0.7s ease both; }
@keyframes dwtDescFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bold-Body subtiler */
.dwt-codebox__body.is-bold {
  background: linear-gradient(180deg, rgba(255, 138, 90, 0.04), rgba(140, 90, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 138, 90, 0.08);
}
.dwt-codebox__body.is-custom {
  background: linear-gradient(180deg, rgba(82, 170, 255, 0.06), rgba(199, 146, 234, 0.05));
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .dwt-codebox, .dwt-codebox__body, .dwt-codebox__caret,
  .dwt-codebox__live::before, .dwt-codebox__progress > span,
  .dwt-codebox__desc { animation: none !important; transition: opacity 0.2s !important; }
}


/* ============================================================
   v5.3 — CODEBOX "LIVING" — atmet, pulsiert, reagiert
   ============================================================ */

.dwt-codebox {
  animation: dwtCodeboxBreath 6s ease-in-out infinite;
  border-image: linear-gradient(135deg,
    rgba(130, 170, 255, 0.18),
    rgba(199, 146, 234, 0.12),
    rgba(78, 218, 143, 0.18)) 1;
}

@keyframes dwtCodeboxBreath {
  0%, 100% {
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.55),
      0 8px 24px rgba(0, 0, 0, 0.30),
      0 0 0 1px rgba(140, 165, 220, 0.08) inset,
      0 0 24px 0 rgba(130, 170, 255, 0.10);
  }
  50% {
    box-shadow:
      0 36px 90px rgba(0, 0, 0, 0.55),
      0 10px 28px rgba(0, 0, 0, 0.30),
      0 0 0 1px rgba(140, 165, 220, 0.12) inset,
      0 0 40px 4px rgba(130, 170, 255, 0.22);
  }
}

.dwt-codebox:hover {
  transform: translateY(-3px);
  animation-duration: 3s;
}

/* Border-Color shifts dezent zwischen Akzentfarben */
.dwt-codebox::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: conic-gradient(from 0deg,
    rgba(130, 170, 255, 0.4),
    rgba(199, 146, 234, 0.35),
    rgba(78, 218, 143, 0.4),
    rgba(247, 140, 108, 0.35),
    rgba(130, 170, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  animation: dwtCodeboxBorderRotate 12s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes dwtCodeboxBorderRotate {
  to { transform: rotate(360deg); }
}

/* Beim aktiven Effekt — Border-Glow intensiviert */
.dwt-codebox__body.is-bold ~ .dwt-codebox__progress > span,
.dwt-codebox.is-active::before {
  opacity: 1;
  animation-duration: 4s;
}

/* Caret atmet beim Tippen staerker */
.dwt-codebox__caret.is-blinking {
  filter: drop-shadow(0 0 4px rgba(130, 170, 255, 0.6));
}

@media (prefers-reduced-motion: reduce) {
  .dwt-codebox, .dwt-codebox::before { animation: none !important; }
}

.dwt-codebox::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: conic-gradient(from 0deg,
    rgba(130, 170, 255, 0.4),
    rgba(199, 146, 234, 0.35),
    rgba(78, 218, 143, 0.4),
    rgba(247, 140, 108, 0.35),
    rgba(130, 170, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  animation: dwtCodeboxBorderRotate 12s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes dwtCodeboxBorderRotate {
  to { transform: rotate(360deg); }
}

.dwt-codebox__caret.is-blinking {
  filter: drop-shadow(0 0 4px rgba(130, 170, 255, 0.6));
}

@media (prefers-reduced-motion: reduce) {
  .dwt-codebox, .dwt-codebox::before { animation: none !important; }
}


/* ============================================================
   v5.3.1 — 25 NEUE DWT-CUSTOM CSS-EFFEKTE
   ============================================================ */

/* Logo-Konfetti */
body.fx-body-dwt-confetti::before {
  content: '🎉 ✨ 🎊 ⭐ 🎉 ✨ 🎊 ⭐ 🎉 ✨';
  position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-content: flex-start;
  font-size: 1.6rem; padding: 10px;
  opacity: 0;
  animation: dwtConfettiFall 2.4s ease-out;
}
@keyframes dwtConfettiFall {
  0% { opacity: 0; transform: translateY(-100%) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%) rotate(360deg); }
}

/* Premium-Frame — goldener Rahmen */
body.fx-body-dwt-frame { animation: dwtFrameGlow 2.2s ease-in-out; }
@keyframes dwtFrameGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 0 6px oklch(0.78 0.16 80 / 0.6),
                    inset 0 0 40px oklch(0.78 0.16 80 / 0.3); }
}

/* Speed-Lines */
body.fx-body-dwt-speed::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9988;
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent 80px,
    oklch(from var(--color-accent) calc(l + 0.15) c h / 0.55) 80px,
    oklch(from var(--color-accent) calc(l + 0.15) c h / 0.55) 82px);
  background-size: 200% 100%;
  animation: dwtSpeedSweep 2s linear;
}
@keyframes dwtSpeedSweep { 0% { background-position: 0 0; } 100% { background-position: -300% 0; } }

/* Wave-Greeting */
body.fx-body-dwt-wave-greeting::before {
  content: '👋 👋 👋 👋 👋 👋';
  position: fixed; top: 18%; left: 0; right: 0;
  display: flex; justify-content: space-around;
  font-size: 2.5rem; pointer-events: none; z-index: 9991;
  opacity: 0;
  animation: dwtWaveMove 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtWaveMove {
  0%   { opacity: 0; transform: translateX(-30%); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(30%); }
}

/* Pixel-Build */
body.fx-body-dwt-pixel-build {
  animation: dwtPixelBuild 2.2s steps(8);
}
@keyframes dwtPixelBuild {
  0%   { filter: blur(8px) contrast(2); }
  60%  { filter: blur(0) contrast(1); }
  100% { filter: none; }
}

/* Stripe-Sweep */
body.fx-body-dwt-stripes::after {
  content: ''; position: fixed; inset: -20%; pointer-events: none; z-index: 9988;
  background: repeating-linear-gradient(45deg,
    transparent 0, transparent 60px,
    oklch(from var(--color-accent) l c h / 0.18) 60px,
    oklch(from var(--color-accent) l c h / 0.18) 90px);
  transform: translateY(-100%);
  animation: dwtStripeDiag 2.4s ease-in-out;
}
@keyframes dwtStripeDiag {
  0%, 100% { transform: translateY(-100%); opacity: 0; }
  40%      { transform: translateY(0); opacity: 1; }
  100%     { transform: translateY(100%); opacity: 0; }
}

/* Heartbeat */
.is-fx-heartbeat { animation: dwtHeartbeat 2.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtHeartbeat {
  0%, 30%, 70%, 100% { transform: scale(1); }
  15%, 45% { transform: scale(1.18); }
  60% { transform: scale(1.08); }
}
body.fx-body-dwt-heartbeat { animation: dwtBodyHeart 2.4s ease-in-out; }
@keyframes dwtBodyHeart {
  0%, 100% { background-image: none; }
  50% { background-image: radial-gradient(circle at center,
        oklch(from var(--color-accent) l c h / 0.12) 0%, transparent 50%); }
}

/* Live-Stamp */
.is-fx-live-stamp { animation: dwtLiveStampShake 2s ease-out; position: relative; }
.is-fx-live-stamp::after {
  content: 'LIVE NOW'; position: absolute; top: 20%; left: 50%;
  font-family: system-ui; font-size: 5rem; font-weight: 900;
  color: oklch(0.62 0.24 25); text-shadow: 0 0 24px oklch(0.62 0.24 25 / 0.6);
  letter-spacing: 0.05em; pointer-events: none;
  transform: translateX(-50%) rotate(-12deg) scale(0);
  animation: dwtLiveStampPop 2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 6px solid oklch(0.62 0.24 25); padding: 8px 24px; border-radius: 8px;
}
@keyframes dwtLiveStampShake { 0%, 100%{transform:translate(0);} 30%{transform:translateX(-3px);} 60%{transform:translateX(3px);} }
@keyframes dwtLiveStampPop {
  0% { transform: translateX(-50%) rotate(-12deg) scale(0); opacity: 0; }
  40% { transform: translateX(-50%) rotate(-12deg) scale(1.1); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) rotate(-12deg) scale(1); opacity: 0; }
}
body.fx-body-dwt-stamp { animation: dwtBodyTintRed 2s ease-in-out; }
@keyframes dwtBodyTintRed {
  0%, 100% { background-color: var(--color-bg); }
  50% { background-color: oklch(from var(--color-bg) l calc(c + 0.02) 25); }
}

/* Golden-Ratio Spiral */
.is-fx-golden-spiral { position: relative; }
.is-fx-golden-spiral::after {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(from 0deg,
    transparent 0deg, oklch(0.78 0.16 80 / 0.3) 60deg, transparent 120deg);
  animation: dwtGoldenSpin 2.4s linear;
  pointer-events: none;
}
@keyframes dwtGoldenSpin { to { transform: rotate(720deg); } }
body.fx-body-dwt-grid::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9988;
  background-image: linear-gradient(oklch(0.78 0.16 80 / 0.15) 1px, transparent 1px);
  background-size: 100% 38.2%;
  animation: dwtGridFade 2.4s ease-in-out;
}
@keyframes dwtGridFade { 0%,100%{opacity:0;} 50%{opacity:1;} }

/* Light-Speed */
body.fx-body-dwt-lightspeed::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  background: radial-gradient(ellipse at center,
    oklch(1 0 0 / 0.8) 0%, transparent 30%);
  animation: dwtLightSpeed 1.7s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes dwtLightSpeed {
  0% { transform: scale(0.1); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Card-Stack */
.is-fx-card-stack { animation: dwtCardStack 2.2s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes dwtCardStack {
  0%, 100% { transform: rotate(0) translateY(0) scale(1); }
  40% { transform: rotate(-3deg) translateY(8px) scale(0.96); }
  60% { transform: rotate(3deg) translateY(8px) scale(0.96); }
}

/* Spotlight-Hero */
.is-fx-spotlight-headline { position: relative; }
.is-fx-spotlight-headline::after {
  content: ''; position: absolute; inset: -10px;
  background: radial-gradient(circle at var(--mx,50%) 50%,
    oklch(from var(--color-accent) calc(l + 0.2) c h / 0.5) 0%, transparent 35%);
  pointer-events: none; animation: dwtSpotlightFollow 2.4s ease-in-out;
}
@keyframes dwtSpotlightFollow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
body.fx-body-dwt-spotlight { animation: dwtBodyDim 2.4s ease-in-out; }
@keyframes dwtBodyDim {
  0%, 100% { filter: none; }
  50% { filter: brightness(0.9); }
}

/* Stars / Constellation / Approval */
body.fx-body-dwt-stars::before {
  content: '✦ ⋆ ✦ ⋆ ✦ ⋆ ✦ ⋆ ✦ ⋆ ✦ ⋆ ✦ ⋆ ✦';
  position: fixed; inset: 0; pointer-events: none; z-index: 9989;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-around;
  font-size: 1.6rem; color: oklch(0.95 0.16 80);
  text-shadow: 0 0 12px oklch(0.95 0.16 80 / 0.8);
  opacity: 0;
  animation: dwtStarsAppear 2.6s ease-in-out;
}
@keyframes dwtStarsAppear {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}

/* KPI-Boost — schwellen die Metric-Zahlen an */
body.fx-body-dwt-kpi { animation: dwtKpiBoost 2.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dwtKpiBoost {
  0%, 100% { filter: hue-rotate(0); }
  50% { filter: hue-rotate(15deg) saturate(1.3); }
}

/* Magic-Reveal */
body.fx-body-dwt-magic::before {
  content: '✨ ★ ✦ ⭐ ✨ ★ ✦ ⭐ ✨ ★ ✦ ⭐';
  position: fixed; inset: 0; pointer-events: none; z-index: 9991;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-around;
  font-size: 2rem; color: oklch(from var(--color-accent) calc(l + 0.15) c h);
  text-shadow: 0 0 20px oklch(from var(--color-accent) l c h / 0.8);
  opacity: 0;
  animation: dwtMagicSparkle 2.4s ease-out;
}
@keyframes dwtMagicSparkle {
  0% { opacity: 0; transform: rotate(-45deg) scale(0.3); }
  50% { opacity: 1; transform: rotate(0) scale(1); }
  100% { opacity: 0; transform: rotate(45deg) scale(1.4); }
}

/* Tower-Build */
.is-fx-tower-build { animation: dwtTowerBuild 2.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dwtTowerBuild {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Notification-Storm */
body.fx-body-dwt-notify::after {
  content: '🔔 5 neue Anfragen · 📩 Neuer Lead · ✓ Termin gebucht';
  position: fixed; top: 80px; right: 24px; z-index: 9992;
  background: oklch(0.18 0.04 264);
  color: #fff; padding: 10px 16px; border-radius: 12px;
  font-family: system-ui; font-size: 13px;
  box-shadow: 0 12px 32px oklch(0.14 0.025 264 / 0.4);
  opacity: 0;
  animation: dwtNotifyPop 2.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
@keyframes dwtNotifyPop {
  0% { opacity: 0; transform: translateX(40px) scale(0.8); }
  20%, 80% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* Sound-Wave */
.is-fx-sound-wave { animation: dwtSoundWave 2.4s ease-in-out; }
@keyframes dwtSoundWave {
  0%, 100% { transform: scaleY(1); }
  20% { transform: scaleY(1.04); }
  40% { transform: scaleY(0.98); }
  60% { transform: scaleY(1.03); }
  80% { transform: scaleY(0.99); }
}

/* Mood-Lift */
body.fx-body-dwt-mood { animation: dwtMoodLift 2.2s ease-in-out; }
@keyframes dwtMoodLift {
  0%, 100% { filter: hue-rotate(0) brightness(1); transform: translateY(0); }
  50% { filter: hue-rotate(8deg) brightness(1.04); transform: translateY(-1px); }
}

/* Signature-Sweep */
body.fx-body-dwt-signature::before {
  content: '~ Erdogan ~';
  position: fixed; bottom: 30%; left: -20%;
  font-family: 'Brush Script MT', cursive; font-size: 4rem;
  color: oklch(from var(--color-accent) l c h / 0.7);
  text-shadow: 0 4px 12px oklch(0 0 0 / 0.4);
  pointer-events: none; z-index: 9991;
  opacity: 0;
  animation: dwtSignSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtSignSweep {
  0%   { left: -20%; opacity: 0; transform: rotate(-5deg); }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { left: 120%; opacity: 0; transform: rotate(5deg); }
}

/* Premium-Glow */
body.fx-body-dwt-premium {
  animation: dwtPremiumGlow 2.6s ease-in-out;
}
@keyframes dwtPremiumGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 200px 0 oklch(from var(--color-accent) calc(l + 0.1) c h / 0.18); }
}

/* Code-Diff */
.is-fx-code-diff { animation: dwtCodeDiff 2.4s ease-in-out; position: relative; }
@keyframes dwtCodeDiff {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: inset 4px 0 0 oklch(0.55 0.22 5), inset -4px 0 0 oklch(0.7 0.22 145); }
  60% { box-shadow: inset 4px 0 0 oklch(0.55 0.22 5), inset -4px 0 0 oklch(0.7 0.22 145); }
}

/* Achievement-Unlock */
body.fx-body-dwt-achievement::after {
  content: '🏆 Achievement: 24h-Delivery!';
  position: fixed; top: 30%; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, oklch(0.78 0.18 80), oklch(0.65 0.22 30));
  color: #fff; padding: 20px 40px; border-radius: 16px;
  font-family: system-ui; font-size: 22px; font-weight: 800;
  box-shadow: 0 20px 60px oklch(0.18 0.18 60 / 0.6);
  pointer-events: none; z-index: 9993;
  opacity: 0;
  animation: dwtAchievement 2.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dwtAchievement {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-10deg); }
  30% { opacity: 1; transform: translateX(-50%) scale(1.05) rotate(0); }
  70% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9) rotate(5deg); }
}

/* Conversion-Boost */
body.fx-body-dwt-conversion {
  animation: dwtConversionPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dwtConversionPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 150px 0 oklch(0.65 0.24 25 / 0.15); }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="fx-body-dwt-"], [class*="is-fx-"] { animation: none !important; }
  body[class*="fx-body-dwt-"]::before, body[class*="fx-body-dwt-"]::after { animation: none !important; opacity: 0 !important; }
}


/* ============================================================
   DWT-CHATBOT — Floating + Inline
   ============================================================ */

.dwt-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 210;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.dwt-chatbot__bubble {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), oklch(from var(--color-accent) calc(l + 0.08) c calc(h + 30)));
  color: oklch(1 0 0);
  border: none;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 12px 32px oklch(from var(--color-accent) l c h / 0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  animation: dwtChatbotBreath 4s ease-in-out infinite;
}
.dwt-chatbot__bubble:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 40px oklch(from var(--color-accent) l c h / 0.6);
}
.dwt-chatbot__bubble::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 12px; height: 12px; background: oklch(0.7 0.18 145);
  border-radius: 50%; border: 2px solid #fff;
  animation: dwtChatbotPulse 1.8s ease-in-out infinite;
}
@keyframes dwtChatbotBreath {
  0%, 100% { box-shadow: 0 12px 32px oklch(from var(--color-accent) l c h / 0.45); }
  50% { box-shadow: 0 12px 40px oklch(from var(--color-accent) l c h / 0.65), 0 0 0 8px oklch(from var(--color-accent) l c h / 0.15); }
}
@keyframes dwtChatbotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.dwt-chatbot__panel {
  position: absolute;
  bottom: 80px; right: 0;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 32px 64px oklch(0.14 0.025 264 / 0.35), 0 0 0 1px oklch(from var(--color-accent) l c h / 0.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dwt-chatbot.is-open .dwt-chatbot__panel {
  display: flex; opacity: 1; transform: translateY(0) scale(1);
}

.dwt-chatbot__header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--color-accent), oklch(from var(--color-accent) calc(l - 0.05) c calc(h + 20)));
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.dwt-chatbot__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.dwt-chatbot__head-text { flex: 1; }
.dwt-chatbot__head-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.dwt-chatbot__head-status { font-size: 11px; opacity: 0.85; }
.dwt-chatbot__head-status::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: oklch(0.7 0.18 145); border-radius: 50%; margin-right: 4px;
  vertical-align: middle;
}
.dwt-chatbot__close {
  width: 28px; height: 28px; border: none; background: transparent; color: #fff;
  border-radius: 50%; cursor: pointer; font-size: 20px;
  transition: background 0.2s;
}
.dwt-chatbot__close:hover { background: rgba(255,255,255,0.15); }

.dwt-chatbot__messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--color-surface-2);
}
.dwt-chatbot__msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.4;
  animation: dwtMsgIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dwt-chatbot__msg--bot {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  color: var(--color-text-1);
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.dwt-chatbot__msg--user {
  background: var(--color-accent);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}
@keyframes dwtMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dwt-chatbot__typing {
  align-self: flex-start;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  padding: 12px 16px; border-radius: 14px; border-top-left-radius: 4px;
  display: none;
}
.dwt-chatbot__typing.is-active { display: flex; gap: 4px; }
.dwt-chatbot__typing span {
  width: 8px; height: 8px; background: var(--color-text-3); border-radius: 50%;
  animation: dwtTypingDot 1.2s ease-in-out infinite;
}
.dwt-chatbot__typing span:nth-child(2) { animation-delay: 0.15s; }
.dwt-chatbot__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dwtTypingDot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; transform: translateY(-2px); } }

.dwt-chatbot__quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 16px; background: var(--color-surface-2);
}
.dwt-chatbot__quick-replies button {
  padding: 8px 14px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 18px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dwt-chatbot__quick-replies button:hover {
  background: var(--color-accent); color: #fff;
}

.dwt-chatbot__input-row {
  display: flex; gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.dwt-chatbot__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface-2);
  color: var(--color-text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.dwt-chatbot__input:focus { border-color: var(--color-accent); }
.dwt-chatbot__send {
  width: 38px; height: 38px;
  background: var(--color-accent); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.dwt-chatbot__send:hover { transform: scale(1.08); }

/* ============================================================
   LEISTUNGEN — Bild-Integration (Service-Blocks, Prozess, Pricing)
   ============================================================
   Custom-Illustrationen in /assets/img/leistungen/*.svg
   - Service-Blocks: 600x400 viewBox, full-bleed mit Hover-Tilt
   - Prozess-Schritte: 200x200 viewBox, kompakt mit Float-Animation
   - Pricing-Cards:   160x100 viewBox, dekorativ als Card-Topper
   ============================================================ */

/* --- Service-Block Bilder: ersetzen das ehemalige Mini-Icon-Layout --- */
body.page-leistungen .service-block__visual {
  /* Override des kleinen Icon-Containers — Bild fuellt jetzt die Flaeche */
  display: block;
  padding: 0;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.06) 0%,
              oklch(from var(--color-accent) l c h / 0.02) 60%,
              transparent 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px oklch(from var(--color-accent) l c h / 0.08);
  transition: transform .55s cubic-bezier(.22,1,.36,1),
              box-shadow .55s ease;
}
body.page-leistungen .service-block__visual::before {
  /* Subtiler Glanz-Ring rechts oben */
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 70%; height: 130%;
  background: radial-gradient(ellipse at center,
              oklch(from var(--color-accent) l c h / 0.18) 0%,
              transparent 65%);
  pointer-events: none;
  z-index: 0;
}
body.page-leistungen .service-block__visual::after {
  /* Dezenter Diagonal-Shine, animiert beim Hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
              transparent 0%,
              transparent 38%,
              oklch(1 0 0 / 0.18) 50%,
              transparent 62%,
              transparent 100%);
  background-size: 300% 100%;
  background-position: 200% 0;
  pointer-events: none;
  transition: background-position 1s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}
body.page-leistungen .service-block__visual:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 22px 42px oklch(from var(--color-accent) l c h / 0.18);
}
body.page-leistungen .service-block__visual:hover::after {
  background-position: -100% 0;
}
.service-block__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 14px 28px oklch(from var(--color-accent) l c h / 0.10));
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
body.page-leistungen .service-block__visual:hover .service-block__img {
  transform: scale(1.035) translateY(-3px);
}

/* Die alte float-Animation auf den jetzigen Block deaktivieren —
   die Bilder haben eigene, dezentere Hover-/Reveal-Effekte */
body.page-leistungen .service-block__visual {
  animation: none;
}

/* --- Prozess-Schritte: Bild oberhalb der Nummer --- */
.process-step--illustrated {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.process-step__visual {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.08) 0%,
              transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-1);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.process-step__visual::before {
  /* Sanftes Halo hinter dem Icon */
  content: '';
  position: absolute;
  inset: 14% 14% auto auto;
  width: 70%; height: 70%;
  background: radial-gradient(circle,
              oklch(from var(--color-accent) l c h / 0.20) 0%,
              transparent 70%);
  pointer-events: none;
}
.process-step__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.process-step--illustrated:hover .process-step__visual {
  transform: translateY(-4px);
}
.process-step--illustrated:hover .process-step__img {
  transform: scale(1.06) rotate(-2deg);
}
@media (min-width: 768px) {
  .process-step__visual { max-width: 160px; }
}

/* Sanfte Float-Bewegung pro Step, mit Stagger via nth-child */
@keyframes dwtProcStepFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
body.page-leistungen .process-step--illustrated .process-step__img {
  animation: dwtProcStepFloat 6s ease-in-out infinite;
}
body.page-leistungen .process-step--illustrated:nth-child(2) .process-step__img { animation-delay: -1.5s; }
body.page-leistungen .process-step--illustrated:nth-child(3) .process-step__img { animation-delay: -3s; }
body.page-leistungen .process-step--illustrated:nth-child(4) .process-step__img { animation-delay: -4.5s; }

/* --- Pricing-Card Visuals (dekorativer Topper) --- */
.pricing-card--with-visual {
  padding-top: var(--space-5);
}
.pricing-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 88px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.07) 0%,
              oklch(from var(--color-accent) l c h / 0.02) 100%);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.08);
  overflow: hidden;
  position: relative;
  transition: transform .4s ease, background .4s ease;
}
.pricing-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.pricing-card--with-visual:hover .pricing-card__visual {
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.12) 0%,
              oklch(from var(--color-accent) l c h / 0.04) 100%);
}
.pricing-card--with-visual:hover .pricing-card__visual img {
  transform: scale(1.08);
}
.pricing-card--featured.pricing-card--with-visual .pricing-card__visual {
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.14) 0%,
              oklch(from var(--color-accent) l c h / 0.06) 100%);
  border-color: oklch(from var(--color-accent) l c h / 0.18);
}
/* Beim Featured-Plan ein bisschen mehr Platz fuer den Badge oben */
.pricing-card--featured.pricing-card--with-visual { padding-top: var(--space-7); }

/* Individual: Visual links neben dem Head (Desktop), oben (Mobile) */
.pricing-individual--with-visual { position: relative; }
.pricing-individual__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.08) 0%,
              oklch(0.85 0.10 320 / 0.10) 100%);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.10);
  overflow: hidden;
  transition: transform .5s ease;
}
.pricing-individual__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.pricing-individual--with-visual:hover .pricing-individual__visual img {
  transform: scale(1.06) rotate(-2deg);
}
@media (min-width: 1024px) {
  .pricing-individual--with-visual {
    /* Visual als 4. Spalte in das vorhandene Grid einfuegen */
    grid-template-columns: auto 1fr 1fr auto;
  }
  .pricing-individual__visual {
    grid-row: 1;
    grid-column: 1;
    width: 120px;
    height: 100%;
    max-height: 200px;
    margin-bottom: 0;
  }
  .pricing-individual--with-visual .pricing-individual__head { grid-column: 2; }
  .pricing-individual--with-visual > div:not(.pricing-individual__visual):not(.pricing-individual__head):not(.pricing-individual__cta) { grid-column: 3; }
  .pricing-individual--with-visual .pricing-individual__cta { grid-column: 4; }
}

/* --- Dark-Mode Tunings --- */
[data-theme="dark"] body.page-leistungen .service-block__visual {
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.18) 0%,
              oklch(0.18 0.04 264) 80%);
  border-color: oklch(from var(--color-accent) l c h / 0.20);
}
[data-theme="dark"] .process-step__visual,
[data-theme="dark"] .pricing-card__visual,
[data-theme="dark"] .pricing-individual__visual {
  background: linear-gradient(135deg,
              oklch(from var(--color-accent) l c h / 0.18) 0%,
              oklch(0.20 0.04 264) 100%);
  border-color: oklch(from var(--color-accent) l c h / 0.20);
}
[data-theme="dark"] .service-block__img,
[data-theme="dark"] .process-step__img,
[data-theme="dark"] .pricing-card__visual img,
[data-theme="dark"] .pricing-individual__visual img {
  /* SVGs haben eigene Hintergruende — leicht entsaettigen im Dark-Mode */
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.30));
}

/* --- Reveal-Verstaerkung: Bilder fliegen sanft ein --- */
.service-block__visual.reveal { opacity: 0; transform: translateY(20px) scale(0.985); }
.service-block__visual.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .9s cubic-bezier(.22,1,.36,1) var(--delay, 0ms),
              transform .9s cubic-bezier(.22,1,.36,1) var(--delay, 0ms);
}

/* --- Reduced-Motion: alle Bild-Animationen abschalten --- */
@media (prefers-reduced-motion: reduce) {
  body.page-leistungen .service-block__visual,
  body.page-leistungen .service-block__visual:hover,
  body.page-leistungen .process-step__img,
  body.page-leistungen .process-step--illustrated:hover .process-step__visual,
  body.page-leistungen .process-step--illustrated:hover .process-step__img,
  body.page-leistungen .pricing-card--with-visual:hover .pricing-card__visual img,
  body.page-leistungen .pricing-individual--with-visual:hover .pricing-individual__visual img,
  .service-block__visual:hover .service-block__img {
    animation: none !important;
    transform: none !important;
  }
  body.page-leistungen .service-block__visual::after {
    transition: none;
  }
}

.dwt-chatbot__dsgvo {
  font-size: 10px;
  color: var(--color-text-3);
}
.dwt-chatbot__dsgvo a { color: var(--color-accent); }

/* Chat-Footer: Counter + DSGVO nebeneinander */
.dwt-chatbot__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 10px;
  color: var(--color-text-3);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  gap: 12px;
}
.dwt-chatbot__counter {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--color-text-3);
  transition: color 0.2s;
}
.dwt-chatbot__counter.is-low {
  color: var(--color-warning);
  font-weight: 600;
}
.dwt-chatbot__counter.is-empty {
  color: var(--color-error);
  font-weight: 700;
}

/* Consent-Banner */
.dwt-chatbot__consent {
  padding: 16px 20px 20px;
  background: linear-gradient(135deg,
    oklch(from var(--color-accent) l c h / 0.08),
    oklch(from var(--color-accent) l c h / 0.02));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  animation: chatConsentSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes chatConsentSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dwt-chatbot__consent-text {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-2);
}
.dwt-chatbot__consent-text a {
  color: var(--color-accent);
  font-weight: 600;
}
.dwt-chatbot__consent-btn {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), oklch(0.55 0.22 290));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.4) inset,
    0 6px 18px -6px oklch(from var(--color-accent) l c h / 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dwt-chatbot__consent-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.5) inset,
    0 10px 26px -8px oklch(from var(--color-accent) l c h / 0.7);
}
.dwt-chatbot__consent-btn:active {
  transform: translateY(0);
}

/* Bubble-Pulse — sanfter Indikator */
.dwt-chatbot__bubble-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid oklch(from var(--color-accent) l c h / 0.5);
  opacity: 0;
  animation: chatBubblePulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes chatBubblePulse {
  0%   { opacity: 0.8; transform: scale(0.95); }
  60%  { opacity: 0;   transform: scale(1.3); }
  100% { opacity: 0;   transform: scale(1.3); }
}

/* System-Hint (z.B. "noch 2 Nachrichten übrig") */
.dwt-chatbot__msg--system {
  align-self: center;
  max-width: 90%;
  padding: 6px 12px;
  background: oklch(from var(--color-warning) l c h / 0.12);
  color: var(--color-warning);
  border: 1px dashed oklch(from var(--color-warning) l c h / 0.3);
  border-radius: 12px;
  font-size: 11px;
  font-style: italic;
  text-align: center;
  margin: 4px auto;
}

@media (prefers-reduced-motion: reduce) {
  .dwt-chatbot__consent,
  .dwt-chatbot__bubble-pulse {
    animation: none !important;
  }
}

/* INLINE-Variante für Footer-Wide / Kontakt-Section */
.dwt-chatbot--inline {
  position: static; max-width: 560px; margin: 0 auto;
}
.dwt-chatbot--inline .dwt-chatbot__bubble { display: none; }
.dwt-chatbot--inline .dwt-chatbot__panel {
  position: static; display: flex; opacity: 1; transform: none;
  width: 100%; max-width: 100%;
  height: 540px; max-height: 600px;
}

@media (max-width: 600px) {
  .dwt-chatbot__panel { width: calc(100vw - 32px); height: calc(100vh - 140px); }
  .dwt-chatbot { right: 16px; bottom: 16px; }
  .dwt-chatbot__bubble { width: 56px; height: 56px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .dwt-chatbot__bubble, .dwt-chatbot__bubble::after { animation: none !important; }
}

/* ============================================================
   ÜBER-UNS — FOUNDER SPOTLIGHT, STORY, BOCHUM, SISTER BRANDS,
   TOOLS, VS-GRID, FAQ, CONTAINER NARROW
   ============================================================ */

/* Schmaler Container für FAQ */
.container--narrow { max-width: 880px; margin-inline: auto; }

/* ----- FOUNDER SPOTLIGHT — neue Version: nahtlos integriert, kein harter Kreis ----- */
.founder-spotlight {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background:
    radial-gradient(ellipse at 80% 10%, oklch(from var(--color-accent) l c h / 0.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, oklch(from var(--color-accent) l c h / 0.07), transparent 60%),
    var(--color-surface-1);
  overflow: hidden;
}
[data-theme="dark"] .founder-spotlight {
  background:
    radial-gradient(ellipse at 80% 10%, oklch(from var(--color-accent) l c h / 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, oklch(from var(--color-accent) l c h / 0.18), transparent 60%),
    var(--color-surface-1);
}

/* Atmosphärische Aura-Blobs */
.founder-aura {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.founder-aura__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.founder-aura__blob--1 {
  width: 520px; height: 520px;
  top: -8%; left: -6%;
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.55), transparent 70%);
  animation: founderBlob 16s ease-in-out infinite;
}
.founder-aura__blob--2 {
  width: 460px; height: 460px;
  bottom: -10%; right: 8%;
  background: radial-gradient(circle, oklch(0.55 0.22 290 / 0.55), transparent 70%);
  animation: founderBlob 22s ease-in-out infinite reverse;
  animation-delay: -4s;
}
.founder-aura__blob--3 {
  width: 360px; height: 360px;
  top: 40%; left: 35%;
  background: radial-gradient(circle, oklch(0.70 0.16 220 / 0.45), transparent 70%);
  animation: founderBlob 19s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes founderBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.94); }
}

/* Code-Pattern hinter dem Foto */
.founder-codewall {
  position: absolute;
  top: 0; left: 0;
  width: 60%; max-width: 740px;
  height: 100%;
  z-index: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0.08;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.4;
  color: var(--color-text-1);
  mask-image: linear-gradient(110deg, #000 0%, #000 55%, transparent 95%);
}
[data-theme="dark"] .founder-codewall { opacity: 0.18; }
.founder-codewall__line { white-space: nowrap; }
.founder-codewall .tk-key  { color: oklch(0.55 0.22 290); }
.founder-codewall .tk-fn   { color: var(--color-accent); font-weight: 600; }
.founder-codewall .tk-str  { color: oklch(0.62 0.16 145); }
.founder-codewall .tk-com  { color: var(--color-text-3); font-style: italic; }
.founder-codewall .tk-mt   { color: var(--color-text-3); }
.founder-codewall .tk-arg  { color: oklch(0.65 0.14 60); }

.founder-spotlight__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 8vw, 6.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .founder-spotlight__grid { grid-template-columns: minmax(440px, 1fr) 1.15fr; }
}

/* Foto-Stage — keine Kreise, kein Rahmen, weich integriert */
.founder-photo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  perspective: 1200px;
  padding-left: 0;
  margin-left: -6%;
}
@media (max-width: 900px) {
  .founder-photo {
    justify-content: center;
    margin-left: 0;
  }
}
.founder-photo__stage {
  position: relative;
  width: min(440px, 86vw);
  aspect-ratio: 832 / 1000; /* etwas mehr Höhe für Bodenschatten */
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Verbindungslinien zwischen Tags und Person */
.founder-photo__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  color: var(--color-accent);
  pointer-events: none;
}
.founder-photo__line {
  stroke-dasharray: 4 6;
  animation: dwtDashShift 1.6s linear infinite;
}
@keyframes dwtDashShift {
  to { stroke-dashoffset: -20; }
}

/* Soft Halo (weicher Glow um Person, KEIN Kreisrand) */
.founder-photo__halo {
  position: absolute;
  inset: -2% 5% 6% 5%;
  z-index: 1;
  background:
    radial-gradient(60% 50% at 50% 35%, oklch(from var(--color-accent) l c h / 0.55), transparent 70%),
    radial-gradient(70% 60% at 50% 55%, oklch(0.65 0.20 290 / 0.40), transparent 75%),
    radial-gradient(50% 40% at 50% 80%, oklch(0.60 0.18 220 / 0.35), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
  animation: founderHaloPulse 7s ease-in-out infinite;
}
@keyframes founderHaloPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* PREMIUM-EFFEKTE — Rim-Light, Aura-Sweep, Spotlight */

/* Rim-Light: scharfer Lichtsaum, der periodisch über die Person streift */
.founder-photo__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: conic-gradient(from var(--rim-angle, 0deg) at 50% 50%,
    transparent 0deg,
    transparent 60deg,
    oklch(from var(--color-accent) l c h / 0.35) 90deg,
    oklch(0.92 0.10 290 / 0.4) 110deg,
    oklch(from var(--color-accent) l c h / 0.35) 130deg,
    transparent 160deg,
    transparent 360deg);
  mix-blend-mode: screen;
  filter: blur(8px);
  -webkit-mask-image: radial-gradient(ellipse 40% 45% at 50% 50%, transparent 50%, #000 70%, #000 100%);
          mask-image: radial-gradient(ellipse 40% 45% at 50% 50%, transparent 50%, #000 70%, #000 100%);
  opacity: 0.6;
  animation: rimSweep 9s linear infinite;
  --rim-angle: 0deg;
}
@keyframes rimSweep {
  to { --rim-angle: 360deg; }
}

/* Property registration — damit --rim-angle als angle animierbar ist */
@property --rim-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Aura-Wave: kreisförmige Schockwelle die periodisch aus dem Zentrum nach außen geht */
.founder-photo__stage::after {
  content: '';
  position: absolute;
  inset: 10% 10% 10% 10%;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  border: 1.5px solid oklch(from var(--color-accent) l c h / 0.30);
  opacity: 0;
  animation: auraWave 5s ease-out infinite;
}
@keyframes auraWave {
  0%   { transform: scale(0.7); opacity: 0; border-width: 2px; }
  25%  { opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; border-width: 0.5px; }
}

/* Glow-Nodes: pulsierende Lichtknoten mit expandierenden Ringen — kein X mehr */
.founder-photo__sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.founder-photo__sparkles span {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle,
    oklch(0.95 0.08 290 / 1) 0%,
    oklch(from var(--color-accent) l c h / 0.7) 50%,
    transparent 100%);
  box-shadow:
    0 0 8px 1px oklch(from var(--color-accent) l c h / 0.6),
    0 0 16px 3px oklch(0.65 0.20 290 / 0.35);
  opacity: 0;
  animation: glowNodePulse 5s ease-in-out infinite;
}
.founder-photo__sparkles span::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1.5px solid oklch(from var(--color-accent) l c h / 0.6);
  animation: glowNodeRing 5s ease-out infinite;
  animation-delay: inherit;
}
.founder-photo__sparkles span:nth-child(1) { top: 14%; right: 12%; animation-delay: 0s; }
.founder-photo__sparkles span:nth-child(2) { top: 42%; left:  6%; animation-delay: 1.7s; }
.founder-photo__sparkles span:nth-child(3) { bottom: 28%; right: 8%; animation-delay: 3.4s; }
@keyframes glowNodePulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  18%, 26% { opacity: 1; transform: scale(1.4); }
  44%      { opacity: 0; transform: scale(1.6); }
}
@keyframes glowNodeRing {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  18%      { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(4); border-width: 0.5px; }
}

/* Scan-Line: dünner Lichtstrahl wandert vertikal über die Figur (zusätzliche Animation) */
.founder-photo__scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 60px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    oklch(from var(--color-accent) l c h / 0.0) 30%,
    oklch(0.85 0.12 290 / 0.35) 50%,
    oklch(from var(--color-accent) l c h / 0.0) 70%,
    transparent 100%);
  filter: blur(2px);
  opacity: 0;
  mix-blend-mode: screen;
  animation: scanlineSweep 8s ease-in-out infinite;
}
@keyframes scanlineSweep {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20%      { opacity: 0.9; }
  60%      { opacity: 0.7; }
  80%, 100% { transform: translateY(720px); opacity: 0; }
}

/* Particle-Aura: kleine Lichtpartikel die um die Person aufsteigen */
.founder-photo__stage > .founder-photo__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.founder-photo__particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.9), transparent 70%);
  bottom: 10%;
  opacity: 0;
  animation: particleRise 6s linear infinite;
}
.founder-photo__particles span:nth-child(1) { left: 12%; animation-delay: 0s;   animation-duration: 7s; }
.founder-photo__particles span:nth-child(2) { left: 22%; animation-delay: 1.2s; animation-duration: 8s; }
.founder-photo__particles span:nth-child(3) { left: 38%; animation-delay: 2.5s; animation-duration: 6.5s; }
.founder-photo__particles span:nth-child(4) { left: 58%; animation-delay: 0.8s; animation-duration: 9s; }
.founder-photo__particles span:nth-child(5) { left: 72%; animation-delay: 3.0s; animation-duration: 7.5s; }
.founder-photo__particles span:nth-child(6) { left: 86%; animation-delay: 1.8s; animation-duration: 6s; }
.founder-photo__particles span:nth-child(7) { left: 28%; animation-delay: 4.2s; animation-duration: 8.5s;
  background: radial-gradient(circle, oklch(0.65 0.20 290 / 0.9), transparent 70%); }
.founder-photo__particles span:nth-child(8) { left: 64%; animation-delay: 2.0s; animation-duration: 7s;
  background: radial-gradient(circle, oklch(0.78 0.16 220 / 0.9), transparent 70%); }
.founder-photo__particles span:nth-child(9) { left: 48%; animation-delay: 3.6s; animation-duration: 9s; }
@keyframes particleRise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-90vh) translateX(20px) scale(1.4); opacity: 0; }
}

/* Bodenschatten unter den Schuhen — verankert die Person */
.founder-photo__shadow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 62%;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, oklch(from var(--color-accent) l c h / 0.5), transparent 65%);
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
  animation: founderShadowPulse 7s ease-in-out infinite;
}
@keyframes founderShadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1, 1); opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(1.08, 0.9); opacity: 0.7; }
}

/* Person freigestellt — direkt ohne Rahmen */
.founder-photo__img {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
  transform: translate(var(--shift-x), var(--shift-y));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter:
    drop-shadow(0 4px 4px rgba(0,0,0,0.18))
    drop-shadow(0 18px 32px oklch(from var(--color-accent) l c h / 0.45));
}
.founder-photo__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  animation: founderFloat 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes founderFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Floating Tags — interaktiv, pill-shaped, mit Shimmer + magnetic + diverse Animationen */
.founder-photo { overflow: visible; }
.founder-photo__stage { overflow: visible; }

.founder-photo__tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  max-width: 280px;
  background: oklch(from var(--color-surface-1) l c h / 0.94);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.5) inset,
    0 14px 32px -12px oklch(from var(--color-accent) l c h / 0.45),
    0 4px 12px -6px oklch(from var(--color-text-1) l c h / 0.18);
  font-family: var(--font-body);
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  appearance: none;
  color: inherit;
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
[data-theme="dark"] .founder-photo__tag {
  background: oklch(from var(--color-surface-2) l c h / 0.80);
}

/* Shimmer-Sweep: periodisches Highlight von links nach rechts */
.founder-photo__tag::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 70%; height: 100%;
  background: linear-gradient(110deg,
    transparent 30%,
    oklch(1 0 0 / 0.28) 50%,
    transparent 70%);
  transform: translateX(-160%);
  animation: tagShimmer 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
.founder-photo__tag--1::after { animation-delay: 0s; }
.founder-photo__tag--2::after { animation-delay: 1.5s; }
.founder-photo__tag--3::after { animation-delay: 3s; }
.founder-photo__tag--4::after { animation-delay: 4.5s; }
@keyframes tagShimmer {
  0%, 60%   { transform: translateX(-160%); }
  78%, 100% { transform: translateX(260%); }
}

.founder-photo__tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), oklch(0.55 0.22 290));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
  box-shadow:
    0 4px 12px -2px oklch(from var(--color-accent) l c h / 0.6),
    0 1px 0 oklch(1 0 0 / 0.25) inset;
  animation: tagIconPulse 3.4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.founder-photo__tag--1 .founder-photo__tag-icon { animation-delay: 0s; }
.founder-photo__tag--2 .founder-photo__tag-icon { animation-delay: 0.6s; }
.founder-photo__tag--3 .founder-photo__tag-icon { animation-delay: 1.2s; }
.founder-photo__tag--4 .founder-photo__tag-icon { animation-delay: 1.8s; }
@keyframes tagIconPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.08) rotate(-4deg); }
}
.founder-photo__tag strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-1);
  line-height: 1.1;
  display: block;
  position: relative;
  z-index: 2;
}
.founder-photo__tag em {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-2);
  letter-spacing: 0.02em;
  display: block;
  position: relative;
  z-index: 2;
}
.founder-photo__tag-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid oklch(from var(--color-accent) l c h / 0.5);
  opacity: 0;
  pointer-events: none;
}
.founder-photo__tag:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: oklch(from var(--color-accent) l c h / 0.55);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.6) inset,
    0 22px 44px -12px oklch(from var(--color-accent) l c h / 0.65),
    0 6px 18px -6px oklch(from var(--color-text-1) l c h / 0.24);
}
.founder-photo__tag:hover .founder-photo__tag-pulse {
  animation: founderTagRipple 1.2s ease-out;
}
.founder-photo__tag:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px oklch(from var(--color-accent) l c h / 0.25);
}
@keyframes founderTagRipple {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Service-Block Visual Modifier — vollflächiges Bild (z. B. direct-line.svg) */
.service-block__visual--image {
  position: relative;
  display: block;
  background: linear-gradient(135deg, oklch(from var(--color-accent) l c h / 0.08), oklch(0.55 0.22 290 / 0.06));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.5) inset,
    0 22px 44px -18px oklch(from var(--color-accent) l c h / 0.4);
}
.service-block__visual--image::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    oklch(from var(--color-accent) l c h / 0.35),
    transparent 30%,
    oklch(0.55 0.22 290 / 0.30),
    transparent 70%,
    oklch(from var(--color-accent) l c h / 0.35));
  z-index: -1;
  animation: sbVisualSpin 14s linear infinite;
  filter: blur(20px);
  opacity: 0.7;
}
@keyframes sbVisualSpin {
  to { transform: rotate(360deg); }
}
.service-block__visual--image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-block__visual--image:hover img {
  transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
  .service-block__visual--image::before { animation: none; }
  .service-block__visual--image:hover img { transform: none; }
}

/* Click-Burst Particles */
.tag-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tag-burst__particle {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), oklch(0.55 0.22 290));
  transform: translate(-50%, -50%);
  animation: tagBurst 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  --dx: 0; --dy: 0;
}
@keyframes tagBurst {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 60px), calc(-50% + var(--dy) * 60px)) scale(0.4); }
}

/* Verteilung der Tags AUSSERHALB der Person — Tags sitzen seitlich neben der Stage,
   nur die Icon-Bubble peekt leicht in den Stage-Rand. So bleiben Gesicht & Körper frei. */
.founder-photo__tag--1 {
  top:    4%;
  right:  calc(100% - 56px);
  animation: founderTagDriftA 6s ease-in-out infinite;
  transform-origin: right center;
}
.founder-photo__tag--2 {
  top:    -3%;
  left:   42%;
  animation: founderTagDriftB 7s ease-in-out infinite;
  animation-delay: 0.6s;
  transform-origin: bottom left;
}
.founder-photo__tag--3 {
  bottom: 36%;
  right:  calc(100% - 56px);
  animation: founderTagDriftC 6.4s ease-in-out infinite;
  animation-delay: 1.2s;
  transform-origin: right center;
}
.founder-photo__tag--4 {
  bottom: 34%;
  left:   calc(100% - 60px);
  animation: founderTagDriftD 7.6s ease-in-out infinite;
  animation-delay: 1.8s;
  transform-origin: left center;
}

/* 4 unterschiedliche Bewegungsprofile für visuelle Vielfalt */
@keyframes founderTagDriftA {  /* sanftes Heben + Mini-Neigung */
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -9px, 0) rotate(-1.5deg); }
}
@keyframes founderTagDriftB {  /* leichter Sway nach rechts oben */
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%      { transform: translate3d(-5px, -3px, 0) rotate(1.2deg); }
  66%      { transform: translate3d(4px, -7px, 0) rotate(-0.6deg); }
}
@keyframes founderTagDriftC {  /* Breathing-Scale + Bob */
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -5px, 0) scale(1.035); }
}
@keyframes founderTagDriftD {  /* Mikro-Orbit (Figure-8 light) */
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%      { transform: translate3d(3px, -4px, 0) rotate(0.8deg); }
  50%      { transform: translate3d(0, -8px, 0) rotate(0deg); }
  75%      { transform: translate3d(-3px, -4px, 0) rotate(-0.8deg); }
}

/* MOBILE — Badges innerhalb der Stage, in Ecken ohne Personenüberlappung */
@media (max-width: 760px) {
  .founder-photo__tag {
    padding: 7px 14px 7px 7px;
    gap: 8px;
    max-width: 200px;
  }
  .founder-photo__tag-icon { width: 26px; height: 26px; font-size: 11px; }
  .founder-photo__tag strong { font-size: var(--text-sm); }
  .founder-photo__tag em { font-size: 10px; }
  .founder-photo__tag--1 { top: -2%;  right: auto; left: -4%;  }
  .founder-photo__tag--2 { top: 14%;  left: auto;  right: -4%; }
  .founder-photo__tag--3 { bottom: 36%; right: auto; left: -4%; }
  .founder-photo__tag--4 { bottom: 6%;  left: auto;  right: -4%; }
}

/* Signatur unten */
.founder-photo__sig {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 60px;
  color: var(--color-accent);
  z-index: 4;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.founder-photo__sig svg {
  width: 100%; height: 100%;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: founderSig 4s ease-in-out 0.5s forwards;
}
.founder-photo__sig-label {
  position: absolute;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
  text-transform: uppercase;
  opacity: 0;
  animation: founderSigLabel 0.6s ease-out 4s forwards;
}
@keyframes founderSig {
  to { stroke-dashoffset: 0; }
}
@keyframes founderSigLabel {
  to { opacity: 1; }
}

/* Founder Intro Content */
.founder-intro {
  position: relative;
  z-index: 2;
}
.founder-intro__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 12px 0 18px;
  color: var(--color-text-1);
}
.founder-intro__name {
  background: linear-gradient(120deg, var(--color-accent), oklch(0.55 0.22 290));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.founder-intro__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: 16px;
}
.founder-intro__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: 20px;
}
.founder-intro__body strong { color: var(--color-text-1); }

.founder-intro__facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
}
.founder-intro__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-1);
}
.founder-intro__facts li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.founder-intro__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- KPI STRIP ----- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.kpi-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-strip__item strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.kpi-strip__item span {
  font-size: var(--text-xs);
  color: var(--color-text-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ----- STORY TIMELINE ----- */
.story-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 32px;
  position: relative;
}
@media (min-width: 900px) {
  .story-timeline { grid-template-columns: repeat(3, 1fr); }
}
.story-timeline__step {
  position: relative;
  padding: 26px 24px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.story-timeline__step:hover {
  transform: translateY(-4px);
  border-color: oklch(from var(--color-accent) l c h / 0.40);
  box-shadow: 0 18px 36px -18px oklch(from var(--color-accent) l c h / 0.35);
}
.story-timeline__step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), oklch(0.55 0.22 290));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0.3);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-timeline__step:hover::before { transform: scaleX(1); }

.story-timeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.story-timeline__phase {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.story-timeline__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.story-timeline__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 4px 0 12px;
  color: var(--color-text-1);
}
.story-timeline__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: 16px;
}
.story-timeline__body a { color: var(--color-accent); font-weight: 500; }
.story-timeline__body strong { color: var(--color-text-1); }
.story-timeline__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.story-timeline__tags li {
  padding: 4px 10px;
  background: oklch(from var(--color-accent) l c h / 0.08);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ----- BOCHUM SECTION ----- */
.bochum-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .bochum-section__grid { grid-template-columns: 1.15fr 1fr; }
}
.bochum-section__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px oklch(from var(--color-accent) l c h / 0.4);
  position: relative;
  isolation: isolate;
}
.bochum-section__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(from var(--color-accent) l c h / 0.12));
  pointer-events: none;
}
.bochum-section__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}
.bochum-section__image:hover img { transform: scale(1.03); }

.bochum-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 12px 0 16px;
  color: var(--color-text-1);
}
.bochum-section__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: 14px;
}
.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.local-grid__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.local-grid__item:hover {
  transform: translateY(-2px);
  border-color: oklch(from var(--color-accent) l c h / 0.35);
  background: oklch(from var(--color-accent) l c h / 0.05);
}
.local-grid__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  font-size: 18px;
}
.local-grid__item strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.1;
}
.local-grid__item > span:not(.local-grid__icon) {
  font-size: var(--text-xs);
  color: var(--color-text-2);
  line-height: 1.4;
}

/* ----- SISTER GRID ----- */
.sister-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .sister-grid { grid-template-columns: repeat(3, 1fr); }
}
.sister-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}
.sister-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
    oklch(from var(--color-accent) l c h / 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.sister-card:hover {
  transform: translateY(-6px);
  border-color: oklch(from var(--color-accent) l c h / 0.5);
  box-shadow: 0 22px 44px -18px oklch(from var(--color-accent) l c h / 0.4);
}
.sister-card:hover::before { opacity: 1; }
.sister-card--featured {
  background: linear-gradient(135deg,
    oklch(from var(--color-accent) l c h / 0.07),
    oklch(from var(--color-accent) l c h / 0.02));
  border-color: oklch(from var(--color-accent) l c h / 0.30);
}
.sister-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.sister-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 6px 0 2px;
  background: linear-gradient(120deg, var(--color-accent), oklch(0.55 0.22 290));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.sister-card__sub {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-1);
  margin: 0 0 8px;
}
.sister-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin: 0;
}
.sister-card__cta {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.sister-card:hover .sister-card__cta {
  transform: translateX(4px);
}
.sister-grid__footnote {
  margin-top: 28px;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.sister-grid__footnote em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ----- TOOLS SECTION ----- */
.tools-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .tools-section__grid { grid-template-columns: 1fr 1.1fr; }
}
.tools-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 12px 0 16px;
  color: var(--color-text-1);
}
.tools-section__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: 14px;
}
.tools-section__body strong { color: var(--color-text-1); }
.tools-section__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px oklch(from var(--color-accent) l c h / 0.4);
}
.tools-section__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}
.tools-section__image:hover img { transform: scale(1.025); }

.tools-chiplist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tools-chip {
  padding: 7px 14px;
  background: var(--color-surface-2);
  color: var(--color-text-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.tools-chip:hover {
  transform: translateY(-2px);
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  border-color: oklch(from var(--color-accent) l c h / 0.3);
}

/* ----- VS-GRID (Vergleich) ----- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
  align-items: stretch;
}
@media (min-width: 760px) {
  .vs-grid { grid-template-columns: 1fr 1fr; }
}
.vs-card {
  position: relative;
  padding: 28px 26px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vs-card:hover { transform: translateY(-3px); }
.vs-card--them {
  background: var(--color-surface-2);
  filter: saturate(0.6);
}
.vs-card--us {
  background: linear-gradient(135deg,
    oklch(from var(--color-accent) l c h / 0.10),
    oklch(from var(--color-accent) l c h / 0.02));
  border-color: oklch(from var(--color-accent) l c h / 0.35);
  box-shadow: 0 22px 44px -18px oklch(from var(--color-accent) l c h / 0.30);
}
.vs-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--color-border);
}
.vs-card__label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-1);
}
.vs-card--us .vs-card__label {
  color: var(--color-accent);
}
.vs-card__mood {
  font-size: 1.8rem;
}
.vs-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vs-card__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-2);
}
.vs-card--us .vs-card__list li {
  color: var(--color-text-1);
}
.vs-card__list li span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  font-size: 18px;
}

/* ----- ÜBER-FAQ ----- */
.ueber-faq {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ueber-faq__item {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ueber-faq__item[open] {
  border-color: oklch(from var(--color-accent) l c h / 0.35);
  box-shadow: 0 18px 36px -20px oklch(from var(--color-accent) l c h / 0.30);
}
.ueber-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-1);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: color 0.25s ease;
}
.ueber-faq__q::-webkit-details-marker { display: none; }
.ueber-faq__q::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}
.ueber-faq__item[open] .ueber-faq__q::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--color-accent);
  color: #fff;
}
.ueber-faq__q:hover {
  color: var(--color-accent);
}
.ueber-faq__a {
  padding: 0 22px 20px;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  animation: faqOpen 0.35s ease;
}
.ueber-faq__a a { color: var(--color-accent); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .founder-aura__blob,
  .founder-photo__halo,
  .founder-photo__shadow,
  .founder-photo__img img,
  .founder-photo__tag,
  .founder-photo__sig svg,
  .founder-photo__line,
  .founder-photo__sig-label,
  .founder-photo__stage::before,
  .founder-photo__stage::after,
  .founder-photo__particles span,
  .founder-photo__sparkles span {
    animation: none !important;
  }
  .founder-photo__stage { transform: none !important; }
  .founder-photo__img { transform: none !important; }
  .founder-photo__sig svg { stroke-dashoffset: 0 !important; }
  .founder-photo__sig-label { opacity: 1 !important; }
  .founder-photo__particles, .founder-photo__sparkles { display: none; }
}



/* ============================================================
   MOBILE RESPONSIVE FIXES — 2026-05-17
   Korrekturen damit alle Seiten auf <768px sauber aussehen
   ============================================================ */

/* Globaler Overflow-Schutz */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg, video, iframe { max-width: 100%; height: auto; }

/* Hero — auf Mobile keine Outside-Badges, kein Visual */
@media (max-width: 900px) {
  .hero-metrics { display: none; }
  .hero__visual { display: none; }
  .hero__inner--split { flex-direction: column; }
  .hero__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero__title-sub { font-size: 1rem; }
  .hero__kicker { font-size: 0.9rem; }
}

/* Promo-Bar + Site-Header — komprimieren auf Mobile */
@media (max-width: 700px) {
  .promo-bar__text { font-size: 0.7rem; line-height: 1.3; }
  .promo-bar__cta { font-size: 0.7rem; }
  .promo-bar__inner { padding: 6px 32px 6px 10px; gap: 6px; }
  .site-header__inner { padding-block: 8px; gap: 8px; }
}

/* Hauptnav — auf Mobile in Mobile-Nav statt Desktop-Nav */
@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* Cards: Touch-friendly padding + stack */
@media (max-width: 768px) {
  .services-grid, .pricing-grid, .branches-grid, .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .proj-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .card, .pricing-card, .proj-card { padding: 20px 18px; }
  .pricing-card__amount { font-size: 2rem; }
}

/* Buttons: Min-Tap-Target 44x44px (WCAG/Apple HIG) */
@media (max-width: 768px) {
  .btn, .nav__link, .footer-nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn--lg { padding: 14px 22px; font-size: 0.95rem; }
  .btn--sm { padding: 8px 14px; min-height: 36px; }
}

/* Forms — full width on mobile */
@media (max-width: 768px) {
  .form-wizard__step input,
  .form-wizard__step textarea,
  .form-wizard__step select,
  .form input, .form textarea, .form select {
    font-size: 16px !important; /* verhindert iOS auto-zoom */
    width: 100%;
    box-sizing: border-box;
  }
  .form-wizard__nav { flex-direction: column; gap: 10px; }
  .form-wizard__nav .btn { width: 100%; }
}

/* Sektion-Padding kleiner */
@media (max-width: 768px) {
  .section { padding-block: 48px; }
  .section__title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section__subtitle { font-size: 0.95rem; }
  .container { padding-inline: 16px; }
}

/* CTA-Banner — kompakter */
@media (max-width: 768px) {
  .cta-banner__title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .cta-banner__subtitle { font-size: 0.9rem; }
}

/* Cal.com-Embed — min-height kleiner auf Mobile */
@media (max-width: 768px) {
  .cal-embed__widget { min-height: 540px !important; }
  .cal-embed__header { padding: 16px; flex-direction: column; align-items: flex-start; }
  .cal-embed__title { font-size: 1.2rem; }
}

/* Chatbot Mobile */
@media (max-width: 600px) {
  .dwt-chatbot { right: 14px; bottom: 14px; }
  .dwt-chatbot__bubble { width: 52px; height: 52px; font-size: 22px; }
  .dwt-chatbot__panel { width: calc(100vw - 28px); height: calc(100vh - 100px); max-height: 600px; }
  .dwt-chatbot__messages { padding: 12px; gap: 8px; }
  .dwt-chatbot__msg { max-width: 88%; font-size: 13px; }
}

/* Lead-Magnet-Floater — auf Mobile nicht überall überschneiden */
@media (max-width: 600px) {
  .lm-floater { bottom: 84px; right: 14px; left: 14px; max-width: none; padding: 12px 14px; }
  .lm-floater__icon { font-size: 1.4rem; }
  .lm-floater__text strong { font-size: 0.85rem; }
}

/* Footer-Multi-Spalte → 1-Spalte */
@media (max-width: 768px) {
  .site-footer__grid, .footer__cols { grid-template-columns: 1fr !important; gap: 28px !important; }
  .site-footer { padding-block: 40px; }
  .site-footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* Tabellen (z.B. in Datenschutz) — scroll-fähig */
@media (max-width: 768px) {
  .prose table, .legal-page table {
    display: block; overflow-x: auto; max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .prose h2 { font-size: 1.3rem; }
  .prose h3 { font-size: 1.1rem; }
  .prose { font-size: 0.95rem; }
}

/* Projekt-Card Image — auf Mobile nicht zu hoch */
@media (max-width: 768px) {
  .proj-card__media { min-height: 180px; max-height: 220px; }
}

/* Pricing Featured-Badge nicht abschneiden */
@media (max-width: 768px) {
  .pricing-card__badge { font-size: 0.7rem; padding: 4px 10px; }
}

/* Code-Window auf sehr kleinen Mobiles ausblenden (war schon - sicherheitshalber) */
@media (max-width: 480px) {
  .hero__visual, .code-window, .hero-metrics { display: none !important; }
}
