/* =============================================================
   round360 | extras.css  –  Optionale Sections (Marquee · Stats · CTA)
   Zum Entfernen: diesen <link>-Tag aus index.html löschen +
   die drei Sections #ticker, #stats, #cta-section aus index.html.
   ============================================================= */


/* ══════════════════════════════════════════════════════════════
   SERVICE-TICKER  (infinite marquee)
══════════════════════════════════════════════════════════════ */
#ticker {
    background: var(--bg-card);
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    overflow: hidden;
    position: relative;
}

/* Fade-Masken links/rechts */
#ticker::before,
#ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 6rem;
    z-index: 2;
    pointer-events: none;
}
#ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card), transparent);
}
#ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card), transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    transition: color 0.2s;
}
.ticker-item:hover { color: var(--blue); }

.ticker-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.6;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════════════════ */
#stats {
    padding: 5rem 1.5rem;
    background: var(--bg);
}
@media (max-width: 480px) {
    #stats { padding: 3rem 0.75rem; }
}

.stats-inner {
    max-width: 1420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
@media (max-width: 480px) {
    .stat-card {
        padding: 1.25rem 0.8rem;
        overflow: hidden;
    }
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.08), transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

/* Icon wrapper */
.stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.stat-svg {
    width: 100px;
    height: 100px;
    overflow: visible;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--blue);
    text-align: center;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .stat-label {
        font-size: 0.5rem;
        letter-spacing: 0.01em;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

/* ── SVG Icon Animations ─────────────────────────────────── */
/* Clockwise rotation */
.icon-cw  { animation: svgCW  16s linear infinite; transform-origin: 60px 60px; }
/* Counter-clockwise */
.icon-ccw { animation: svgCCW 20s linear infinite; transform-origin: 60px 60px; }
@keyframes svgCW  { to { transform: rotate(360deg);  } }
@keyframes svgCCW { to { transform: rotate(-360deg); } }

/* Pulse (center dot) */
.icon-pulse {
    animation: svgPulse 2.4s ease-in-out infinite;
    transform-origin: 60px 60px;
}
.icon-pulse-slow {
    animation: svgPulse 3.8s ease-in-out infinite;
    transform-origin: 60px 52px;
}
@keyframes svgPulse {
    0%,100% { opacity: 0.7; transform: scale(1);    }
    50%      { opacity: 1;   transform: scale(1.35); }
}

/* Light rays opacity pulse */
.icon-rays {
    animation: svgRays 2.2s ease-in-out infinite;
    transform-origin: 60px 52px;
}
@keyframes svgRays {
    0%,100% { opacity: 0.5; }
    50%      { opacity: 1;   }
}

/* Typing dots – staggered */
.icon-dot-1 { animation: dotBounce 1.4s ease-in-out infinite 0s;    }
.icon-dot-2 { animation: dotBounce 1.4s ease-in-out infinite 0.22s; }
.icon-dot-3 { animation: dotBounce 1.4s ease-in-out infinite 0.44s; }
@keyframes dotBounce {
    0%,60%,100% { opacity: 0.3; transform: translateY(0);   }
    30%          { opacity: 1;   transform: translateY(-5px); }
}

/* Progress ring fill (0 → 264, loops) */
.icon-progress {
    animation: progressFill 2.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes progressFill {
    0%   { stroke-dashoffset: 264; opacity: 0.4; }
    70%  { stroke-dashoffset: 0;   opacity: 1;   }
    90%  { stroke-dashoffset: 0;   opacity: 1;   }
    100% { stroke-dashoffset: 264; opacity: 0.4; }
}


/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
#cta-section {
    padding: 6rem 1.5rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Hintergrund-Glow */
#cta-section::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.75rem;
}

.cta-headline {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.25rem;
}
.cta-headline span { color: var(--blue); }

.cta-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 2.75rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    border: 2px solid var(--blue);
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
}
.btn-cta-primary:hover {
    background: var(--blue-dk);
    border-color: var(--blue-dk);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59,130,246,0.35);
}

.btn-cta-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.25);
    transition: border-color 0.22s, background 0.22s, transform 0.18s;
}
.btn-cta-outline:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
