/* ==========================================================================
   GLOBAL STYLES - digitalinhalt.de
   Gemeinsame Styles fuer alle Custom Page Templates.
   Scope: body.di-site (alle Seiten) oder .di-homepage (Homepage-only Compat)
   ========================================================================== */

/* ---------- RESET & BASE ---------- */

body.di-site {
  background: #06060f !important;
  color: #9ca3af !important;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  margin: 0;
  padding: 0;
}

body.di-site *,
body.di-site *::before,
body.di-site *::after {
  box-sizing: border-box;
}

body.di-site .di-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

body.di-site img {
  max-width: 100%;
  height: auto;
}

body.di-site a {
  color: inherit;
  text-decoration: none;
}

/* ---------- UTILITY ---------- */

body.di-site .gradient-text {
  background: var(--text-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.di-site .section-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary) !important;
  margin-bottom: 1rem;
  display: inline-block;
}

body.di-site .section-headline {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary) !important;
  line-height: 1.2;
  margin: 0 0 1rem;
}

body.di-site .section-sub {
  font-size: 1.15rem;
  color: var(--text-secondary) !important;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---------- BUTTONS ---------- */

body.di-site .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 14px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: none;
  text-decoration: none !important;
}

body.di-site .btn:hover {
  transform: translateY(-2px);
}

body.di-site .btn-primary {
  background: var(--gradient-main) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

body.di-site .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

body.di-site .btn-ghost {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glow) !important;
}

body.di-site .btn-ghost:hover {
  background: rgba(124, 58, 237, 0.1) !important;
  box-shadow: var(--glow-violet);
}

/* ---------- SCROLL-ANIMATION BASIS ---------- */

body.di-site [data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.di-site [data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

body.di-site [data-animate-delay="1"] { transition-delay: 0.1s; }
body.di-site [data-animate-delay="2"] { transition-delay: 0.2s; }
body.di-site [data-animate-delay="3"] { transition-delay: 0.3s; }
body.di-site [data-animate-delay="4"] { transition-delay: 0.4s; }
body.di-site [data-animate-delay="5"] { transition-delay: 0.5s; }
body.di-site [data-animate-delay="6"] { transition-delay: 0.6s; }

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

body.di-site .di-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

body.di-site .di-scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7c3aed 0%, #06b6d4 50%, #f43f5e 100%);
  transition: width 0.1s linear;
}

/* ==========================================================================
   HEADER (Custom, fixiert)
   ========================================================================== */

body.di-site .di-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

body.di-site .di-header.scrolled {
  background: rgba(6, 6, 15, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

body.di-site .di-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.di-site .di-logo {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

body.di-site .di-logo:hover {
  color: var(--text-primary) !important;
}

body.di-site .di-logo .logo-dot {
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Desktop-Navigation */
body.di-site .di-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.di-site .di-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.3s;
}

body.di-site .di-nav a:hover {
  color: var(--text-primary) !important;
}

body.di-site .di-header .di-nav a.is-active {
  color: var(--text-primary) !important;
  position: relative;
}

body.di-site .di-header .di-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

body.di-site .di-nav-cta {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--border-glow) !important;
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s !important;
}

body.di-site .di-nav-cta:hover {
  background: rgba(124, 58, 237, 0.15) !important;
  box-shadow: var(--glow-violet);
}

/* Header Phone */
body.di-site .di-header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.3s;
  margin-left: auto;
  margin-right: 1.5rem;
}

body.di-site .di-header-phone:hover {
  color: var(--accent-secondary) !important;
}

body.di-site .di-header-phone .phone-icon {
  font-size: 1rem;
}

@media (max-width: 768px) {
  body.di-site .di-header-phone .phone-text {
    display: none;
  }
  body.di-site .di-header-phone {
    margin-right: 1rem;
  }
}

/* Mobile Hamburger */
body.di-site .di-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

body.di-site .di-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

body.di-site .di-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.di-site .di-hamburger.open span:nth-child(2) { opacity: 0; }
body.di-site .di-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
body.di-site .di-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 6, 15, 0.97) !important;
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.di-site .di-mobile-nav.open {
  display: flex;
}

body.di-site .di-mobile-nav a {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

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

body.di-site .di-footer {
  padding: 4rem 0 2rem;
  background: #06060f !important;
  border-top: 2px solid transparent;
  border-image: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%) 1;
}

body.di-site .di-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

body.di-site .di-footer-brand {
  max-width: 320px;
}

body.di-site .di-footer-brand .di-logo {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

body.di-site .di-footer-brand p {
  font-size: 0.9rem;
  color: #4b5563 !important;
  margin: 0 0 1rem;
  line-height: 1.6;
}

body.di-site .di-footer-contact {
  font-size: 0.85rem;
  color: #9ca3af !important;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.di-site .di-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.di-site .di-footer-contact-item svg {
  color: #7c3aed;
  flex-shrink: 0;
  opacity: 0.7;
}

body.di-site .di-footer-contact-item span {
  color: #9ca3af !important;
}

body.di-site .di-footer-contact a {
  color: #9ca3af !important;
  text-decoration: none !important;
  transition: color 0.3s;
}

body.di-site .di-footer-contact a:hover {
  color: #7c3aed !important;
}

body.di-site .di-footer-nav h4 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f5 !important;
  margin: 0 0 1rem;
}

body.di-site .di-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.di-site .di-footer-nav li {
  margin-bottom: 0.5rem;
}

body.di-site .di-footer-nav a {
  font-size: 0.9rem;
  color: #4b5563 !important;
  text-decoration: none !important;
  transition: color 0.3s;
}

body.di-site .di-footer-nav a:hover {
  color: #f0f0f5 !important;
}

body.di-site .di-footer-bottom {
  border-top: 1px solid rgba(124, 58, 237, 0.15) !important;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #4b5563 !important;
}

body.di-site .di-footer-bottom a {
  color: #4b5563 !important;
  text-decoration: none !important;
  transition: color 0.3s;
}

body.di-site .di-footer-bottom a:hover {
  color: #f0f0f5 !important;
}

body.di-site .di-footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   GLASSMORPHISM CARD (Wiederverwendbar)
   ========================================================================== */

body.di-site .glass-card {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
}

body.di-site .glass-card:hover {
  border-color: var(--border-glow) !important;
  box-shadow: var(--glow-violet);
}

/* ==========================================================================
   RESPONSIVE (Global: Header, Footer, Utilities)
   ========================================================================== */

@media (max-width: 768px) {
  body.di-site .di-nav { display: none; }
  body.di-site .di-hamburger { display: flex; }

  body.di-site .di-footer-inner {
    flex-direction: column;
  }

  body.di-site .section-headline {
    font-size: clamp(1.7rem, 5vw, 2.4rem) !important;
  }

  body.di-site [data-animate] {
    transform: translateY(15px);
  }
}

@media (max-width: 480px) {
  body.di-site .di-container {
    padding: 0 1.2rem;
  }
}

/* ---------- CTA CHECKLISTE (Lead Magnet) ---------- */

.di-cta-checkliste {
  padding: 4rem 0;
}

.di-cta-checkliste-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
}

.di-cta-checkliste-content {
  flex: 1;
}

.di-cta-checkliste-content .section-label {
  margin-bottom: 0.75rem;
}

.di-cta-checkliste-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #f0f0f5;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.di-cta-checkliste-content p {
  color: #a0a0b5;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.di-cta-checkliste-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.di-cta-checkliste-list li {
  color: #c0c0d0;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}

.di-cta-checkliste-list li::first-letter {
  color: #10b981;
}

.di-cta-checkliste-visual {
  flex: 0 0 220px;
}

.di-cta-checkliste-mockup {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-line {
  height: 8px;
  background: rgba(240, 240, 245, 0.08);
  border-radius: 4px;
  width: 100%;
}

.mockup-line.short {
  width: 60%;
}

.mockup-check {
  font-size: 0.8rem;
  color: #a0a0b5;
  padding: 0.4rem 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 6px;
}

@media (max-width: 768px) {
  .di-cta-checkliste-card {
    flex-direction: column;
    padding: 2rem;
  }

  .di-cta-checkliste-visual {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .di-cta-checkliste-card {
    padding: 1.5rem;
  }

  .di-cta-checkliste-visual {
    display: none;
  }
}
