/*
 * Kraut & Rüben Studio – Shared Styles
 * Komponenten die auf JEDER Seite geladen werden:
 * Cursor, Navigation, Section Headers, Active Nav, CTA, Footer, Scroll Reveal
 */


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.35s ease,
              opacity 0.25s ease;
  will-change: left, top;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.25s ease;
  will-change: left, top;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 87, 72, 0.5);
}

.cursor-dot.hover {
  width: 10px;
  height: 10px;
}

/* Hide on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-ring,
  .cursor-dot {
    display: none;
  }
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--spacing-sm) 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(3, 25, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 1.6rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active Nav Link */
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  width: 100%;
  background: var(--color-primary);
}

/* Nav CTA Profile Button */
.nav-cta-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: var(--spacing-sm);
  padding: 0.35rem 1.1rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.nav-cta-profile:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-cta-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-cta-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nav-cta-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid var(--color-bg-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-label {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  /* Typografie kommt aus styles.css */
}

.section-desc {
  max-width: 560px;
  margin-top: var(--spacing-sm);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Narrow section desc – centered with constrained width */
.section-desc-narrow {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--spacing-sm);
}

/* Subpage hero with nav clearance */
.section-subpage-hero {
  padding-top: 160px;
}


/* ============================================================
   CTA / KONTAKT
   ============================================================ */

.cta-new {
  background: var(--color-bg-dark-alt);
  padding-top: var(--spacing-3xl);
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

.section-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-new-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.cta-new-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text-light);
  line-height: 1.15;
  max-width: 650px;
}

/* Contact Person */
.cta-new-contact {
  flex-shrink: 0;
}

.cta-new-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text-light);
  transition: opacity 0.3s ease;
}

.cta-new-person:hover {
  opacity: 0.85;
}

.cta-new-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.cta-new-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Radar / Pulse Animation */
.cta-new-radar {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-new-radar-dot {
  width: 10px;
  height: 10px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid var(--color-bg-dark-alt);
  position: relative;
  z-index: 2;
}

.cta-new-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid #22C55E;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radarPulse 2.4s ease-out infinite;
  opacity: 0;
}

.cta-new-radar-ring--delayed {
  animation-delay: 0.8s;
}

@keyframes radarPulse {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.7;
  }
  100% {
    width: 36px;
    height: 36px;
    opacity: 0;
  }
}

.cta-new-person-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cta-new-person-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
}

.cta-new-person-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.cta-new-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.cta-new-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-new-contact-link:hover {
  color: var(--color-text-light);
}

.cta-new-contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Marquee */
.cta-new-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-lg) 0;
}

.cta-new-marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.cta-new-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: var(--font-weight-black);
  color: rgba(255, 87, 72, 0.35);
  padding-right: 0.8em;
  text-transform: none;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cta-new-marquee-item:hover {
  color: var(--color-primary);
}

.cta-new-arrow {
  width: 0.7em;
  height: 0.7em;
  fill: rgba(255, 87, 72, 0.35);
  transition: fill 0.3s ease;
}

.cta-new-marquee-item:hover .cta-new-arrow {
  fill: var(--color-primary);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


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

.footer {
  background: var(--color-bg-dark);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  height: 1.4rem;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-fast);
}

a.footer-link:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
}

.footer-copy {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-legal a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-text-light);
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ============================================================
   REUSABLE SNIPPET PATTERNS
   Wiederverwendbare UI-Patterns fuer Snippets & neue Seiten.
   Muessen in shared.css stehen damit sie ohne seitenspezifische
   CSS-Dateien funktionieren (z.B. in snippets.html, Templates).
   ============================================================ */

/* --- Split Layout (Text + Visual) --- */
.split-layout {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--spacing-2xl);
  align-items: stretch;
}

.split-content {
  max-width: 100%;
}

.split-visual {
  display: flex;
  align-items: stretch;
}

/* --- Feature Point (Check-Icon + Text) --- */
.fitness-points {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.fitness-point {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.fitness-point-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.fitness-point-icon svg {
  width: 100%;
  height: 100%;
}

.fitness-point strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

/* --- Feature Card (Icon-Box + Titel + Beschreibung) --- */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.about-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 87, 72, 0.12);
  color: var(--color-primary);
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
}

.about-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-feature-text strong {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
}

.about-feature-text span {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- Process Step (Nummerierter Kreis + Titel + Beschreibung) --- */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.process-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: var(--color-bg-dark);
  margin-bottom: var(--spacing-lg);
  transition: background 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-circle {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.process-circle.filled {
  background: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 0 20px rgba(255, 87, 72, 0.4);
}

.process-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.process-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 280px;
}

/* --- Stat Item (Grosse Zahl + Label) --- */
.about-stat-item {
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 72, 0.2);
}

.about-stat-number {
  display: block;
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.about-stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-wide);
}

/* --- Target Card (Icon + Titel + Liste) --- */
.about-target-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-target-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 72, 0.2);
}

.about-target-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.about-target-icon svg {
  width: 100%;
  height: 100%;
}

.about-target-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.about-target-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-target-list li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  padding-left: 1rem;
}

.about-target-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

.about-target-list li:last-child {
  border-bottom: none;
}


/* ============================================================
   RESPONSIVE – Shared Components
   ============================================================ */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 768px) {
  /* Nav Mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(3, 25, 27, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-xl);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
  }

  .nav-cta-profile {
    margin-left: 0;
    margin-top: var(--spacing-md);
  }

  .nav-toggle {
    display: flex;
  }

  /* CTA */
  .cta-new-top {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .cta-new-title {
    max-width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  /* Snippet Patterns – Mobile */
  .about-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .about-stat-number {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
}
