/* ===================================================================
   CI Landingpage – Base Styles
   Alle Farben/Fonts als CSS Custom Properties (gesetzt via functions.php).
   Refactored aus wordpress-landingpage.html → CI-agnostisch.
   =================================================================== */

/* --- Layout --- */
.ci-lp { margin: 0; }
.ci-lp *, .ci-lp *::before, .ci-lp *::after { box-sizing: border-box; }
.ci-lp a { text-decoration: none; color: inherit; }
.ci-lp h1, .ci-lp h2, .ci-lp h3 {
    font-family: var(--ci-font-heading), -apple-system, sans-serif;
    color: var(--ci-dark);
    line-height: 1.15;
    margin-top: 0;
}
.ci-lp h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1.25rem; }
.ci-lp h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.ci-lp p { margin-top: 0; }

.ci-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.ci-accent { color: var(--ci-primary); font-size: 1.3em; }
.ci-section-text { font-size: 1.1rem; max-width: 700px; margin: 0 auto 1.5rem; color: var(--ci-text); }

/* --- Buttons --- */
.ci-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--ci-font-body), sans-serif; font-weight: 600; font-size: 1.05rem;
    border: none; border-radius: var(--ci-border-radius-button); cursor: pointer;
    background: var(--ci-primary); color: #fff; padding: 1rem 2rem;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-btn:hover {
    background: var(--ci-primary-dark); transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.35);
}
.ci-btn-inverted {
    background: #fff; color: var(--ci-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.ci-btn-inverted:hover {
    background: var(--ci-primary-50); transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.ci-btn-large {
    font-size: 1.15rem; font-weight: 700; padding: 1.2rem 3rem;
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.3);
}
.ci-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(13, 148, 136, 0.4);
}

/* --- Sections --- */
.ci-section { padding: 5rem 0; text-align: center; }

/* --- Hero – Split-Screen --- */
.ci-hero { padding: 4rem 0 5rem; background: #fff; overflow: hidden; }
.ci-hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.ci-hero-content { text-align: left; }
.ci-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 700;
    text-transform: uppercase; margin-bottom: 1.25rem; line-height: 1.05;
}
.ci-hero h1 .ci-accent { display: block; font-size: 1.3em; }
.ci-hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem); color: var(--ci-text);
    max-width: 520px; margin-bottom: 2rem; line-height: 1.6;
}

/* Hero – Dark Variant */
.ci-hero-dark {
    background: var(--ci-dark); padding: 6rem 0 0; min-height: 100vh;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.ci-hero-dark::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 148, 136, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 60%);
    animation: ci-hero-glow 6s ease-in-out infinite alternate;
}
@keyframes ci-hero-glow { from { opacity: 0.6; } to { opacity: 1; } }
.ci-hero-dark .ci-wrap { position: relative; z-index: 1; }
.ci-hero-dark h1 { color: #fff; }
.ci-hero-dark .ci-hero-sub { color: var(--ci-text-subtle); }
.ci-hero-dark .ci-hero-sub strong { color: #fff; font-weight: 600; }

.ci-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--ci-primary); color: #fff; font-size: 0.85rem; font-weight: 600;
    padding: 0.4rem 1rem; border-radius: var(--ci-border-radius-button);
    margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.ci-badge-outline {
    background: rgba(13, 148, 136, 0.15); border: 1px solid rgba(13, 148, 136, 0.4);
    color: var(--ci-primary); text-transform: uppercase; letter-spacing: 0.05em;
}

.ci-hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.ci-hero-trust span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--ci-text); font-weight: 500; }
.ci-hero-trust i { color: var(--ci-primary); font-size: 1rem; }
.ci-hero-dark .ci-hero-trust span { color: var(--ci-text-subtle); }
.ci-hero-dark .ci-hero-trust i { color: var(--ci-primary); }

/* Hero Visual */
.ci-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.ci-hero-blob {
    width: 100%; max-width: 420px; aspect-ratio: 1;
    background: linear-gradient(135deg, var(--ci-primary) 0%, var(--ci-primary-light) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.15; animation: ci-blob-morph 8s ease-in-out infinite;
}
@keyframes ci-blob-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
.ci-hero-img {
    width: 100%; height: auto; border-radius: 24px 24px 0 0;
    object-fit: cover; object-position: top center;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* --- Problem --- */
.ci-problem .ci-wrap { text-align: left; max-width: 800px; }
.ci-problem h2 { position: relative; padding-left: 1.5rem; }
.ci-problem h2::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--ci-primary); border-radius: 2px;
}
.ci-problem .ci-section-text { margin-left: 0; margin-right: 0; max-width: none; }
.ci-highlight-box {
    background: var(--ci-primary-50); border-left: 4px solid var(--ci-primary);
    padding: 1.25rem 1.5rem; border-radius: 0 var(--ci-border-radius-card) var(--ci-border-radius-card) 0;
    margin-top: 1rem; font-weight: 500; color: var(--ci-dark);
}
.ci-callout-box {
    background: var(--ci-dark); color: #fff;
    padding: 2rem 2.5rem; border-radius: var(--ci-border-radius-card); margin-top: 2rem;
    position: relative; overflow: hidden;
}
.ci-callout-box::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; background: var(--ci-primary);
}

/* --- Cards --- */
.ci-cards-light { background: var(--ci-primary-50); }
.ci-cards-alt { background: var(--ci-bg-light); }
.ci-card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.ci-card {
    background: #fff; border-radius: var(--ci-border-radius-card); padding: 2rem 1.5rem;
    border: 1px solid var(--ci-border); text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-card:hover { transform: translateY(-6px); box-shadow: 0 12px 48px rgba(15, 23, 42, 0.10); }
.ci-card-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.4rem;
}
.ci-card-icon-neg { background: #fef2f2; color: var(--ci-accent-red); }
.ci-card-icon-primary { background: var(--ci-primary-light); color: var(--ci-primary); }
.ci-card-icon-success { background: #f0fdf4; color: var(--ci-accent-green); }
.ci-card p { color: var(--ci-text); font-size: 0.95rem; }
.ci-card-sm { padding: 1.5rem 1.25rem; }
.ci-card-number {
    font-family: var(--ci-font-heading), sans-serif; font-size: 3rem; font-weight: 700;
    color: var(--ci-primary); opacity: 0.15; position: absolute; top: 1rem; right: 1.5rem; line-height: 1;
}

/* --- Provocation Strip (Marquee) --- */
.ci-marquee { background: var(--ci-primary); padding: 1.25rem 0; overflow: hidden; }
.ci-marquee-track {
    display: flex; gap: 3rem; animation: ci-marquee 20s linear infinite; white-space: nowrap;
}
@keyframes ci-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ci-marquee-track span {
    font-family: var(--ci-font-heading), sans-serif; font-weight: 700; font-size: 1rem;
    color: #fff; text-transform: uppercase; letter-spacing: 0.1em;
    display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}
.ci-marquee-track span::before { content: '\2726'; font-size: 0.7em; opacity: 0.6; }

/* --- Pricing --- */
.ci-pricing {
    background: var(--ci-primary); color: #fff; position: relative; text-align: center;
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding: calc(5rem + 4vw) 0 calc(5rem + 4vw);
}
.ci-pricing h2 { color: #fff; }
.ci-pricing-label {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}
.ci-price-old {
    font-family: var(--ci-font-heading), sans-serif; font-size: 2rem;
    text-decoration: line-through; color: rgba(255, 255, 255, 0.4); margin-bottom: 0.5rem;
}
.ci-price-new {
    font-family: var(--ci-font-heading), sans-serif;
    font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 1rem;
}
.ci-price-suffix { font-size: 0.4em; font-weight: 400; opacity: 0.8; }
.ci-badge-discount {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fff; color: var(--ci-primary); font-size: 1rem; font-weight: 700;
    padding: 0.6rem 1.5rem; border-radius: var(--ci-border-radius-button); margin-bottom: 2rem;
    animation: ci-pulse-badge 2s ease-in-out infinite;
}
@keyframes ci-pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* Pricing Dark Variant */
.ci-pricing-dark {
    background: var(--ci-dark); color: #fff; overflow: hidden; position: relative;
    clip-path: none; padding: 5rem 0 6rem;
}
.ci-pricing-dark::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.ci-pricing-dark .ci-wrap { position: relative; z-index: 1; }

/* --- Features – 2-Column Cards --- */
.ci-features { background: #fff; }
.ci-feature-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
    max-width: 800px; margin: 2.5rem auto 0; text-align: left;
}
.ci-feature-item {
    display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
    background: #fff; border: 1px solid var(--ci-border); border-radius: var(--ci-border-radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-feature-item:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }
.ci-feature-icon {
    width: 48px; height: 48px; background: var(--ci-primary-light); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--ci-primary); font-size: 1.2rem;
    transition: 0.3s ease;
}
.ci-feature-item:hover .ci-feature-icon { background: var(--ci-primary); color: #fff; }
.ci-feature-item h3 { font-family: var(--ci-font-body), sans-serif; font-size: 1.05rem; font-weight: 600; }
.ci-feature-item p { color: var(--ci-text); font-size: 0.95rem; margin-top: 0.2rem; }

/* --- Social Proof --- */
.ci-social-proof { background: var(--ci-primary-50); padding: 5rem 0; text-align: center; overflow: hidden; }
.ci-mockup-img {
    width: 100%; max-width: 700px; margin: 2.5rem auto 0; border-radius: var(--ci-border-radius-card);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}
.ci-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.ci-stat { text-align: center; }
.ci-stat-number {
    font-family: var(--ci-font-heading), sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; color: var(--ci-primary); display: block; line-height: 1;
}
.ci-stat-label { font-size: 0.85rem; color: var(--ci-text); font-weight: 500; margin-top: 0.3rem; display: block; }

/* --- Garantie --- */
.ci-garantie { background: #fff; }
.ci-garantie-box {
    border: 2px solid var(--ci-primary); border-radius: var(--ci-border-radius-card); padding: 3rem 2rem;
    max-width: 650px; margin: 0 auto; position: relative; background: #fff;
    box-shadow: 0 0 80px rgba(13, 148, 136, 0.15);
}
.ci-garantie-box::before {
    content: ''; position: absolute; inset: -6px;
    border: 2px solid var(--ci-primary-light); border-radius: 20px; pointer-events: none;
}
.ci-garantie-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--ci-primary), var(--ci-primary-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2rem; color: #fff;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.3);
}
.ci-garantie-text { font-size: 1.15rem; margin-bottom: 1rem; color: var(--ci-dark); }
.ci-garantie-sub { font-size: 1rem; color: var(--ci-text); }

/* --- Langfristig – Service Grid --- */
.ci-services { background: var(--ci-primary-50); }
.ci-service-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    max-width: 700px; margin: 2rem auto 0; text-align: left;
}
.ci-service-item {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
    background: #fff; border: 1px solid var(--ci-border); border-radius: var(--ci-border-radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-service-item:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }
.ci-service-item i { color: var(--ci-primary); font-size: 1.3rem; flex-shrink: 0; }
.ci-service-item span { font-weight: 500; color: var(--ci-dark); }

/* --- Unsicher / CTA --- */
.ci-cta-light { background: var(--ci-primary-light); }
.ci-cta-dark { background: var(--ci-dark); color: #fff; position: relative; overflow: hidden; }
.ci-cta-dark::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(13, 148, 136, 0.12), transparent);
}
.ci-cta-dark .ci-wrap { position: relative; z-index: 1; }
.ci-cta-dark h2 { color: #fff; }
.ci-cta-dark .ci-section-text { color: var(--ci-text-subtle); }

.ci-trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; margin-bottom: 2rem; }
.ci-trust-badges span { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--ci-dark); }
.ci-trust-badges i { color: var(--ci-primary); }
.ci-cta-dark .ci-trust-badges span { color: var(--ci-primary-light); }

/* --- Kontakt --- */
.ci-kontakt { padding: 5rem 0; text-align: center; background: var(--ci-bg-light); }
.ci-form-card {
    max-width: 560px; margin: 2rem auto 0; background: #fff;
    border-radius: var(--ci-border-radius-card); padding: 2.5rem 2rem;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.10);
}
.ci-form-hint {
    text-align: center; font-size: 0.8rem; color: var(--ci-text); margin-top: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
}

/* --- Sticky Header (optional, for dark-hero pages) --- */
.ci-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s ease;
}
.ci-header.scrolled { background: rgba(15, 23, 42, 0.95); }
.ci-header-inner {
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.ci-logo {
    font-family: var(--ci-font-heading), sans-serif; font-weight: 700; font-size: 1.5rem;
    color: #fff; letter-spacing: 0.08em;
}
.ci-header-cta {
    background: var(--ci-primary); color: #fff;
    padding: 0.55rem 1.5rem; border-radius: var(--ci-border-radius-button);
    font-weight: 600; font-size: 0.9rem; transition: 0.3s ease;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.3);
}
.ci-header-cta:hover {
    background: var(--ci-primary-dark); transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.5);
}

/* --- Footer --- */
.ci-footer { background: var(--ci-dark); color: rgba(255, 255, 255, 0.6); padding: 2rem 0; font-size: 0.9rem; }
.ci-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.ci-footer-nav { display: flex; gap: 1.5rem; }
.ci-footer-nav a { color: rgba(255, 255, 255, 0.6); transition: color 0.3s ease; }
.ci-footer-nav a:hover { color: var(--ci-primary); }

/* --- Intersection Observer Animations --- */
.ci-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ci-animate.ci-visible { opacity: 1; transform: translateY(0); }

/* ===================================================================
   Responsive
   =================================================================== */

/* Mobile (max 639px) */
@media (max-width: 639px) {
    .ci-section { padding: 3rem 0; }
    .ci-hero { padding: 2.5rem 0 3rem; }
    .ci-hero-dark { min-height: auto; padding: 5rem 0 3rem; }
    .ci-hero-content { text-align: center; }
    .ci-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .ci-hero-sub { margin-left: auto; margin-right: auto; }
    .ci-hero-trust { justify-content: center; }
    .ci-hero-visual { min-height: 200px; }
    .ci-hero-blob { max-width: 280px; }
    .ci-kontakt { padding: 3rem 0; }
    .ci-wrap { padding: 0 1rem; }
    .ci-lp h2 { font-size: 1.5rem; }
    .ci-lp h3 { font-size: 1.05rem; }
    .ci-section-text { font-size: 1rem; }
    .ci-btn { font-size: 0.95rem; padding: 0.85rem 1.5rem; width: 100%; justify-content: center; }
    .ci-badge { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
    .ci-card { padding: 1.5rem 1.25rem; }
    .ci-card-grid { gap: 1rem; margin-top: 1.5rem; }
    .ci-pricing { clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%); padding: calc(4rem + 2vw) 0; }
    .ci-price-new { font-size: clamp(3rem, 10vw, 4rem); }
    .ci-price-old { font-size: 1.5rem; }
    .ci-badge-discount { font-size: 0.85rem; padding: 0.4rem 1rem; }
    .ci-garantie-box { padding: 2rem 1.25rem; }
    .ci-garantie-icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 1rem; }
    .ci-form-card { padding: 1.5rem 1.25rem; margin-top: 1.5rem; }
    .ci-footer-inner { gap: 0.5rem; }
    .ci-footer-nav { gap: 1rem; }
    .ci-trust-badges { gap: 1rem; }
    .ci-stats { gap: 1.5rem; }
}

/* Tablet (640px+) */
@media (min-width: 640px) {
    .ci-card-grid { grid-template-columns: repeat(3, 1fr); }
    .ci-card-grid.ci-four-cols { grid-template-columns: repeat(2, 1fr); }
    .ci-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .ci-service-grid { grid-template-columns: repeat(2, 1fr); }
    .ci-card-grid:not(.ci-four-cols) .ci-card:nth-child(2) { transform: translateY(-12px); }
    .ci-card-grid:not(.ci-four-cols) .ci-card:nth-child(2):hover { transform: translateY(-18px); }
}

/* Desktop (900px+) */
@media (min-width: 900px) {
    .ci-section { padding: 6rem 0; }
    .ci-hero { padding: 7rem 0; }
    .ci-hero-grid { grid-template-columns: 55% 45%; gap: 2rem; }
    .ci-kontakt { padding: 6rem 0; }
    .ci-card-grid.ci-four-cols { grid-template-columns: repeat(4, 1fr); }
    .ci-footer-inner { flex-direction: row; justify-content: space-between; }
}
