/*
Theme Name:     Artpoint Media Divi 5 Modern
Theme URI:      https://www.artpoint-media.de
Description:    Divi-5-kompatibles Child-Theme fuer Artpoint Media. Nutzt Divi-Standardmodule/Code-Module, eigenes CSS und eigenes JavaScript, aber keine Legacy-Divi-Custom-Modules.
Author:         Artpoint Media
Author URI:     https://www.artpoint-media.de
Template:       Divi
Version:        2.0.0
License:        GNU General Public License v2 or later
Text Domain:    artpoint-divi5-modern
*/

:root {
  --ap-ink: #0d0f14;
  --ap-ink-soft: #343945;
  --ap-muted: #69707d;
  --ap-line: rgba(14, 18, 28, 0.12);
  --ap-bg: #f7f8fb;
  --ap-panel: rgba(255, 255, 255, 0.78);
  --ap-white: #fff;
  --ap-blue: #0071e3;
  --ap-cyan: #16c8ff;
  --ap-violet: #6b5cff;
  --ap-green: #20c997;
  --ap-orange: #ff9f43;
  --ap-radius: 28px;
  --ap-radius-sm: 16px;
  --ap-shadow: 0 24px 80px rgba(14, 18, 28, 0.12);
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --ap-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ap-bg);
}

.ap5-page,
.ap5-page * {
  box-sizing: border-box;
}

.ap5-page {
  font-family: var(--ap-font);
  color: var(--ap-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 200, 255, 0.18), transparent 36rem),
    radial-gradient(circle at 88% 8%, rgba(107, 92, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 38%, #ffffff 100%);
  overflow: hidden;
}

.ap5-page a {
  color: inherit;
}

.ap5-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.ap5-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(247, 248, 251, 0.72);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.ap5-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ap5-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.ap5-brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-cyan));
  box-shadow: 0 0 0 7px rgba(0, 113, 227, 0.12);
}

.ap5-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap5-nav-links a {
  display: block;
  padding: 9px 12px;
  color: var(--ap-ink-soft);
  text-decoration: none;
  font-size: 14px;
  border-radius: 999px;
}

.ap5-nav-links a:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--ap-ink);
}

.ap5-button,
.ap5-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.ap5-button {
  color: #fff;
  background: linear-gradient(135deg, var(--ap-blue), #0aa5ff);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.28);
}

.ap5-link-button {
  color: var(--ap-ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--ap-line);
}

.ap5-button:hover,
.ap5-link-button:hover {
  transform: translateY(-2px);
}

.ap5-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 72px 0 52px;
}

.ap5-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.ap5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ap5-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ap5-h1,
.ap5-h2 {
  font-family: var(--ap-display);
  letter-spacing: 0;
  margin: 0;
}

.ap5-h1 {
  margin-top: 18px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 800;
}

.ap5-h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
  font-weight: 800;
}

.ap5-gradient-text {
  background: linear-gradient(100deg, var(--ap-blue), var(--ap-violet), var(--ap-cyan));
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ap5Gradient 7s ease-in-out infinite alternate;
}

.ap5-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ap-ink-soft);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.ap5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ap5-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.ap5-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ap-radius-sm);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 34px rgba(14, 18, 28, 0.08);
}

.ap5-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.ap5-stat span {
  display: block;
  margin-top: 8px;
  color: var(--ap-muted);
  font-size: 13px;
}

.ap5-device-stage {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.ap5-orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 50%;
  animation: ap5Spin 24s linear infinite;
}

.ap5-device {
  position: absolute;
  border-radius: 34px;
  background: linear-gradient(180deg, #121722, #05070c);
  box-shadow: var(--ap-shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.ap5-device-main {
  width: min(430px, 72vw);
  height: 520px;
  right: 30px;
  top: 8px;
  padding: 16px;
  transform: rotate(-5deg);
}

.ap5-device-phone {
  width: 180px;
  height: 350px;
  left: 10px;
  bottom: 18px;
  padding: 10px;
  transform: rotate(8deg);
}

.ap5-screen {
  height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    radial-gradient(circle at 30% 20%, rgba(22,200,255,0.5), transparent 24rem),
    radial-gradient(circle at 70% 60%, rgba(107,92,255,0.55), transparent 20rem),
    #0d111a;
  color: #fff;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.ap5-screen-lines {
  position: absolute;
  inset: auto 24px 24px;
  display: grid;
  gap: 10px;
}

.ap5-screen-lines i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

.ap5-screen-lines i:nth-child(2) { width: 74%; }
.ap5-screen-lines i:nth-child(3) { width: 52%; }

.ap5-section {
  padding: 92px 0;
}

.ap5-section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.ap5-section-head p {
  margin: 0;
  color: var(--ap-ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.ap5-grid {
  display: grid;
  gap: 18px;
}

.ap5-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ap5-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ap5-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--ap-radius);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--ap-panel);
  box-shadow: 0 16px 56px rgba(14, 18, 28, 0.08);
  overflow: hidden;
}

.ap5-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 20%;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.ap5-card:hover::after {
  opacity: 1;
}

.ap5-card-kicker {
  display: block;
  color: var(--ap-blue);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ap5-card h3 {
  margin: 16px 0 10px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ap5-card p,
.ap5-card li {
  color: var(--ap-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.ap5-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.ap5-media-card {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.ap5-visual {
  min-height: 330px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.12)),
    radial-gradient(circle at 20% 30%, rgba(0,113,227,0.3), transparent 14rem),
    radial-gradient(circle at 70% 72%, rgba(32,201,151,0.24), transparent 16rem),
    #eef3ff;
  position: relative;
  overflow: hidden;
}

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

.ap5-floating-tile {
  position: absolute;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 40px rgba(14,18,28,0.14);
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--ap-ink);
  font-weight: 800;
  animation: ap5Float 5s ease-in-out infinite;
}

.ap5-floating-tile:nth-child(1) { left: 24px; top: 24px; }
.ap5-floating-tile:nth-child(2) { right: 22px; top: 45%; animation-delay: -1.4s; }
.ap5-floating-tile:nth-child(3) { left: 38%; bottom: 24px; animation-delay: -2.6s; }

.ap5-process {
  counter-reset: process;
}

.ap5-process .ap5-card {
  min-height: 210px;
}

.ap5-process .ap5-card::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  position: absolute;
  right: 26px;
  top: 22px;
  color: rgba(13, 15, 20, 0.1);
  font-size: 54px;
  font-weight: 900;
}

.ap5-cta {
  padding: 64px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 20%, rgba(22,200,255,0.28), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(107,92,255,0.24), transparent 22rem),
    #101521;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.ap5-cta .ap5-h2,
.ap5-cta p {
  color: #fff;
}

.ap5-cta p {
  max-width: 720px;
  color: rgba(255,255,255,0.78);
  font-size: 20px;
  line-height: 1.55;
}

.ap5-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ap5-contact a {
  color: var(--ap-blue);
  font-weight: 800;
  text-decoration: none;
}

.ap5-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.ap5-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ap5-magnetic {
  will-change: transform;
}

.ap5-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes ap5Gradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

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

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

@media (max-width: 980px) {
  .ap5-nav-links {
    display: none;
  }

  .ap5-hero-grid,
  .ap5-section-head,
  .ap5-media-card,
  .ap5-contact {
    grid-template-columns: 1fr;
  }

  .ap5-grid-3,
  .ap5-grid-2 {
    grid-template-columns: 1fr;
  }

  .ap5-device-stage {
    min-height: 450px;
  }

  .ap5-device-main {
    right: 0;
    left: 14%;
  }

  .ap5-device-phone {
    left: 0;
  }

  .ap5-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ap5-shell {
    width: min(100% - 24px, 1180px);
  }

  .ap5-hero,
  .ap5-section {
    padding: 54px 0;
  }

  .ap5-stats {
    grid-template-columns: 1fr;
  }

  .ap5-card,
  .ap5-cta {
    border-radius: 22px;
    padding: 22px;
  }

  .ap5-device-stage {
    min-height: 380px;
  }

  .ap5-device-main {
    width: 290px;
    height: 360px;
  }

  .ap5-device-phone {
    width: 138px;
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ap5-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   DIVI-STANDARDMODUL-VARIANTE
   Diese Klassen werden direkt in Divi Sections,
   Rows und Module gesetzt. Keine komplexen
   Code-Modul-Wrapper erforderlich.
   ============================================ */
.et_pb_section.ap5-divi-layout {
  font-family: var(--ap-font);
  color: var(--ap-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 200, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(107, 92, 255, 0.10), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.ap5-divi-layout .et_pb_row {
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: 1180px !important;
}

.et_pb_section.ap5-divi-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 !important;
  border-bottom: 1px solid rgba(14, 18, 28, 0.08);
  background: rgba(247, 248, 251, 0.78) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.ap5-divi-nav .et_pb_row {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 !important;
}

.ap5-brand-module .et_pb_text_inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ap-ink);
}

.ap5-brand-module .et_pb_text_inner::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-cyan));
  box-shadow: 0 0 0 7px rgba(0, 113, 227, 0.12);
}

.ap5-menu-module .et_pb_text_inner {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.ap5-menu-module a {
  color: var(--ap-ink-soft);
  text-decoration: none;
  font-weight: 700;
}

.ap5-menu-module a:hover {
  color: var(--ap-blue);
}

.et_pb_section.ap5-divi-hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 88px 0 72px !important;
}

.ap5-eyebrow-module .et_pb_text_inner,
.ap5-card-kicker-module .et_pb_text_inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ap5-eyebrow-module .et_pb_text_inner::before,
.ap5-card-kicker-module .et_pb_text_inner::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ap5-headline-module h1,
.ap5-headline-module h2,
.ap5-section-title-module h2 {
  font-family: var(--ap-display);
  color: var(--ap-ink);
  letter-spacing: 0;
  font-weight: 800;
  line-height: 0.98;
  padding: 0;
}

.ap5-headline-module h1 {
  font-size: clamp(48px, 7vw, 96px);
}

.ap5-section-title-module h2,
.ap5-headline-module h2 {
  font-size: clamp(34px, 4.8vw, 64px);
}

.ap5-gradient-text {
  background: linear-gradient(100deg, var(--ap-blue), var(--ap-violet), var(--ap-cyan));
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ap5Gradient 7s ease-in-out infinite alternate;
}

.ap5-lead-module .et_pb_text_inner,
.ap5-body-module .et_pb_text_inner {
  color: var(--ap-ink-soft);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
}

.ap5-body-module .et_pb_text_inner {
  font-size: 17px;
}

.ap5-button-row .et_pb_text_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ap5-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.ap5-inline-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ap-blue), #0aa5ff);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.28);
}

.ap5-inline-button-secondary {
  color: var(--ap-ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--ap-line);
}

.ap5-stat-module .et_pb_text_inner {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ap-radius-sm);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(14, 18, 28, 0.08);
}

.ap5-stat-module strong {
  display: block;
  color: var(--ap-ink);
  font-size: 28px;
  line-height: 1;
}

.ap5-stat-module span {
  display: block;
  margin-top: 8px;
  color: var(--ap-muted);
  font-size: 13px;
}

.ap5-device-module .et_pb_text_inner {
  min-height: 500px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)),
    radial-gradient(circle at 30% 20%, rgba(22,200,255,0.5), transparent 24rem),
    radial-gradient(circle at 70% 60%, rgba(107,92,255,0.55), transparent 20rem),
    #0d111a;
  color: #fff;
  box-shadow: var(--ap-shadow);
  padding: 38px;
  transform: rotate(-3deg);
}

.ap5-device-module h3 {
  color: #fff;
  font-size: 34px;
  line-height: 1.1;
}

.et_pb_section.ap5-divi-section {
  padding: 92px 0 !important;
  background: #fff !important;
}

.ap5-card-module .et_pb_text_inner {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--ap-radius);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 56px rgba(14, 18, 28, 0.08);
}

.ap5-card-module h3 {
  color: var(--ap-ink);
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: 0;
  padding-bottom: 8px;
}

.ap5-card-module p,
.ap5-card-module li {
  color: var(--ap-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.ap5-visual-module .et_pb_text_inner {
  min-height: 330px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.12)),
    radial-gradient(circle at 20% 30%, rgba(0,113,227,0.3), transparent 14rem),
    radial-gradient(circle at 70% 72%, rgba(32,201,151,0.24), transparent 16rem),
    #eef3ff;
  position: relative;
  overflow: hidden;
}

.ap5-visual-module p {
  display: inline-block;
  margin: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 40px rgba(14,18,28,0.14);
  font-weight: 800;
}

.ap5-cta-module .et_pb_text_inner {
  padding: 64px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 20%, rgba(22,200,255,0.28), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(107,92,255,0.24), transparent 22rem),
    #101521;
  color: #fff;
}

.ap5-cta-module h2 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
  font-weight: 800;
}

.ap5-cta-module p {
  color: rgba(255,255,255,0.78);
  font-size: 20px;
  line-height: 1.55;
}

.ap5-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.ap5-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .ap5-menu-module .et_pb_text_inner {
    justify-content: flex-start;
  }

  .ap5-device-module .et_pb_text_inner {
    min-height: 360px;
    transform: none;
  }
}
