/* Base Product Page Styles */
.product-feature {
    transition: all 0.3s ease;
}

.product-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

.demo-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.product-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.product-comparison-table th,
.product-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.product-comparison-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.testimonial-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4D8EF3;
}

.product-cta {
    background: linear-gradient(135deg, #4D8EF3 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(77, 142, 243, 0.3);
    color: white;
}

.product-screenshot {
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-screenshot:hover {
    transform: scale(1.02);
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: #4D8EF3;
    flex-shrink: 0;
}

.product-stat {
    text-align: center;
    padding: 1rem;
}

.product-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4D8EF3;
    line-height: 1;
}

.product-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.benefits-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.product-faq {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-faq summary {
    padding: 1rem;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.2s ease;
}

.product-faq summary:hover {
    background: #f3f4f6;
}

.product-faq[open] summary {
    background: #4D8EF3;
    color: white;
}

.product-faq .faq-content {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.product-video {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ============================================
   Extracted Inline Styles from Product Pages
   ============================================ */

/* Background Gradient Pattern
   Used in: product_schichtplan_neu.php (/schichtplan), product_shiftplan.php (archived, not routed)
   Commented out in: product_appstore.php, product_documents.php, product_events.php,
                     product_payroll.php, product_payroll_alt.php, product_payroll_neu.php
*/
.product-page-body-gradient {
    background-image: radial-gradient(#e6e6e6 1px, transparent 0) !important;
    background-size: 20px 20px !important;
    background-position: -19px -19px !important;
}

/* Zeiterfassung: Fix sticky scroll - sticky section is direct child of body (outside content div)
   to avoid overflow-x: hidden on body > div:first-of-type creating a scroll container.
   overflow-x: hidden forces overflow-y: auto, so sticky would stick to that div instead of viewport.
   Ref: Polypane/CSS-Tricks on position:sticky + overflow
*/
body.zeiterfassung-page,
body.zeiterfassung-page .zeiterfassung-sticky-section,
body.zeiterfassung-page .zeiterfassung-sticky-section .container {
    overflow: visible !important;
}

/* Content divs: use overflow: clip (not hidden) - clips overflow but doesn't create scroll container */
body.zeiterfassung-page > div {
    overflow: clip !important;
}

/* Zeiterfassung sticky cards: explicit top + z-index (Tailwind arbitrary values may not be in output)
   position:sticky requires explicit top/bottom/left/right - without it, sticky does nothing.
   Cards 1-6 cascade at 150-200px with z-index 10-60 for folder-tab stacking.
*/
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(1) {
    top: 150px !important;
    z-index: 10 !important;
}
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(2) {
    top: 160px !important;
    z-index: 20 !important;
}
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(3) {
    top: 170px !important;
    z-index: 30 !important;
}
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(4) {
    top: 180px !important;
    z-index: 40 !important;
}
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(5) {
    top: 190px !important;
    z-index: 50 !important;
}
body.zeiterfassung-page .zeiterfassung-sticky-section .container > div:nth-child(6) {
    top: 200px !important;
    z-index: 60 !important;
}

/* Zeiterfassung feature cards: center last 2 cards on desktop (4-col grid) for visual consistency */
@media (min-width: 1024px) {
    .zeiterfassung-feature-card-grid .zeiterfassung-feature-card:nth-last-child(2) {
        grid-column: 2;
    }
    .zeiterfassung-feature-card-grid .zeiterfassung-feature-card:nth-last-child(1) {
        grid-column: 3;
    }
}

/* Product feature cards (Schichtplan, Abwesenheiten): same design + center last row on desktop */
/* Last 2 cards: center in columns 2-3 */
@media (min-width: 1024px) {
    .product-feature-card-grid--last-2 .product-feature-card:nth-last-child(2) {
        grid-column: 2;
    }
    .product-feature-card-grid--last-2 .product-feature-card:nth-last-child(1) {
        grid-column: 3;
    }
}
/* Last 3 cards (Abwesenheiten): centered via flex wrapper in PHP - no grid override needed */

@media (max-width: 1023px) {
    html.zeiterfassung-sticky-root,
    body.zeiterfassung-page {
        overflow: visible !important;
    }
}

/* Transition Utility Class
   Used in: product_schichtplan_neu.php, product_shiftplan.php, product_documents.php, product_personnelfile.php
*/
.transition-all {
    transition: all 0.5s ease-in-out;
}

/* Icon Animation
   Used in: product_checklists.php
*/
.icon {
    transition: transform 0.5s ease;
}

.central {
    transition: transform 0.5s ease;
}

/* AOS Fade Right Rotate Animation
   Used in: product_checklists.php
*/
.aos-fade-right-rotate {
    transform: rotate(17deg);
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.aos-animate.aos-fade-right-rotate {
    transform: translate3d(100px, 0, 0) rotate(17deg);
    opacity: 1;
}

/* Highlighted Text with SVG Circle
   Used in: product_payroll.php, product_payroll_neu.php
*/
.highlighted {
    font-weight: bold;
    position: relative;
    display: inline-block;
    color: #4d8ef3;
}

/* FAQ section heading: topic after "Häufig gestellte Fragen zu/zur" (wins over parent text-[#333]) */
section#faq h2 .highlighted,
#faq h2 .highlighted {
    color: #4d8ef3 !important;
}

/* FAQ accordion chevron: collapsed = down, open = up.
   !important overrides Tailwind .transform / group-open utilities on the same <svg>. */
details > summary svg {
    transform: rotate(0deg) !important;
    transition: transform 0.3s ease-in-out;
}

details[open] > summary svg {
    transform: rotate(180deg) !important;
}

/* site-faq-section.php: inline FAQ links — distinct from body (color + weight); underline on interaction only; no focus box outline */
#faq .ordio-faq-answer a,
.ordio-faq-answer a {
    color: #4d8ef3;
    font-weight: 500;
    text-decoration: none;
    text-decoration-color: rgba(40, 107, 205, 0.55);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: auto;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

#faq .ordio-faq-answer a:hover,
.ordio-faq-answer a:hover {
    color: #286bcd;
    text-decoration: underline;
    text-decoration-color: rgba(40, 107, 205, 0.5);
}

#faq .ordio-faq-answer a:focus-visible,
.ordio-faq-answer a:focus-visible {
    outline: none;
    text-decoration: underline;
    text-decoration-color: #286bcd;
    text-decoration-thickness: 2px;
    color: #286bcd;
}

.kringel-svg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    display: none; /* TODO: fix highlight circles – hidden for now */
}

/* Registration Form Styling
   Used in: product_payroll_webinar.php, product_webinar.php
*/
.registration-form {
    background: white;
}

.registration-form input,
.registration-form select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.registration-form input:focus,
.registration-form select:focus {
    outline: none;
    border-color: #4d8df3;
    box-shadow: 0 0 0 3px rgba(77, 141, 243, 0.1);
}

/* Webinar Cards Layout
   Used in: product_payroll_webinar.php, product_webinar.php
   Note: Grid layout is handled by Tailwind classes (grid grid-cols-1 lg:grid-cols-2)
   This CSS only handles card internal flex layout
*/
.webinar-cards > div {
    display: flex;
    flex-direction: column;
}

/* Logo Slider Animation
   Used in: product_payroll_webinar.php, product_webinar.php
*/
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Optimization for Webinar Pages
   Used in: product_webinar.php
*/
@media (max-width: 640px) {
    details summary {
        font-size: 0.875rem;
    }
}

/* Company Logo Slider Styles
   Used in: product_payroll_neu.php, product_payroll_webinar.php
*/
.company-logo-fixed {
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    max-height: 84px;
}

@media (max-width: 640px) {
    .company-logo-fixed {
        max-width: 100px;
        max-height: 64px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-comparison-table {
        font-size: 0.875rem;
    }

    .product-comparison-table th,
    .product-comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .product-stat-number {
        font-size: 2rem;
    }

    .product-cta {
        width: 100%;
        text-align: center;
        padding: 1.25rem 2rem;
    }

    .demo-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .testimonial-card {
        padding: 1rem;
    }
}

/* Mobile: comparison table horizontal scroll (mitarbeiter-app) */
@media (max-width: 767px) {
    .mobile-app-comparison-scroll {
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .mobile-app-comparison-scroll table {
        min-width: 600px;
        max-width: none;
    }
    /* Better wrap points for German on mobile */
    .max-w-7xl {
        hyphens: auto;
    }
}

/* Benefit Card Title Alignment
   Base styles - JavaScript will override height based on row content.
   Ensures descriptions align horizontally across cards in the same row,
   regardless of whether titles are 1-line or 2-line.
   Used in: product_mobile_app.php
*/
.grid[class*="items-stretch"] > .flex.flex-col h3.text-xl.font-inter600,
.grid[class*="items-stretch"] .flex.flex-col h3.text-xl.font-inter600 {
    display: flex;
    align-items: flex-start; /* Align text to top of fixed-height container */
    margin-bottom: 0.5rem; /* mb-2 equivalent */
    /* Height will be set by JavaScript based on row content */
}

/* Digitale Personalakte — benefit card icons: same grey → Ordio blue as reporting-insights-section */
#digitale-personalakte-benefits .dpa-benefit-icon-wrap {
  color: #9ca3af;
  transition: color 0.2s ease-out;
}

@media (hover: hover) {
  #digitale-personalakte-benefits article:hover .dpa-benefit-icon-wrap {
    color: #4d8ef3;
  }
}

@media (prefers-reduced-motion: reduce) {
  #digitale-personalakte-benefits .dpa-benefit-icon-wrap {
    transition: none;
  }
}

/* ==========================================================================
   Schichtplan /schichtplan — Nano AI promo (metallic blob background)
   Partial: v2/sections/partials/product-schichtplan-neu-nano-promo.php
   ========================================================================== */

.schichtplan-neu-nano-promo {
    background-color: #030303;
    isolation: isolate;
}

/* No contain:paint — can interfere with GPU canvas compositing in some browsers */
.schichtplan-neu-nano-promo__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.schichtplan-neu-nano-promo__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

/* Light edge darkening only — heavy overlay was killing liquid-metal contrast */
.schichtplan-neu-nano-promo__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(
        ellipse 98% 92% at 50% 45%,
        transparent 48%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.schichtplan-neu-nano-promo__blob {
    position: absolute;
    z-index: 2;
    filter: blur(64px);
    -webkit-filter: blur(64px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    mix-blend-mode: screen;
    will-change: transform;
}

/* Organic “goo” silhouettes — large so metallic wash reads across full section */
.schichtplan-neu-nano-promo__blob--1 {
    width: 85%;
    min-width: 420px;
    max-width: 900px;
    height: 70%;
    min-height: 280px;
    left: -20%;
    top: -15%;
    border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%;
    background: radial-gradient(
        ellipse 65% 55% at 35% 40%,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(180, 195, 215, 0.28) 38%,
        rgba(90, 98, 112, 0.12) 62%,
        transparent 78%
    );
    opacity: 1;
    animation: schichtplanNeuNanoBlob1 22s ease-in-out infinite;
}

.schichtplan-neu-nano-promo__blob--2 {
    width: 95%;
    min-width: 480px;
    max-width: 1000px;
    height: 65%;
    min-height: 260px;
    right: -25%;
    bottom: -18%;
    border-radius: 55% 45% 48% 52% / 52% 48% 45% 55%;
    background: radial-gradient(
        ellipse 60% 55% at 62% 48%,
        rgba(240, 245, 252, 0.38) 0%,
        rgba(140, 155, 175, 0.22) 42%,
        rgba(60, 68, 82, 0.1) 65%,
        transparent 80%
    );
    opacity: 0.95;
    animation: schichtplanNeuNanoBlob2 26s ease-in-out infinite;
}

.schichtplan-neu-nano-promo__blob--3 {
    width: 70%;
    min-width: 320px;
    max-width: 720px;
    height: 55%;
    min-height: 220px;
    left: 25%;
    top: 28%;
    border-radius: 48% 52% 50% 50% / 55% 45% 55% 45%;
    background: radial-gradient(
        ellipse 58% 52% at 48% 52%,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(120, 130, 148, 0.18) 48%,
        transparent 72%
    );
    opacity: 0.85;
    animation: schichtplanNeuNanoBlob3 18s ease-in-out infinite;
}

@media (max-width: 1023px) {
    .schichtplan-neu-nano-promo__blob {
        filter: blur(48px);
        -webkit-filter: blur(48px);
    }

    .schichtplan-neu-nano-promo__blob--1 {
        min-width: 300px;
        left: -35%;
    }

    .schichtplan-neu-nano-promo__blob--2 {
        min-width: 320px;
        right: -40%;
    }

    .schichtplan-neu-nano-promo__blob--3 {
        opacity: 0.65;
    }
}

@keyframes schichtplanNeuNanoBlob1 {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate3d(8%, -6%, 0) scale(1.08) rotate(2deg);
    }
}

@keyframes schichtplanNeuNanoBlob2 {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate3d(-10%, 7%, 0) scale(1.07) rotate(-2deg);
    }
}

@keyframes schichtplanNeuNanoBlob3 {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate3d(-7%, 5%, 0) scale(1.05) rotate(1.5deg);
    }

    66% {
        transform: translate3d(6%, -5%, 0) scale(0.96) rotate(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .schichtplan-neu-nano-promo__blob {
        animation: none;
        will-change: auto;
    }

    .schichtplan-neu-nano-promo__blob--1 {
        transform: translate3d(3%, -2%, 0) scale(1.03);
    }

    .schichtplan-neu-nano-promo__blob--2 {
        transform: translate3d(-4%, 3%, 0) scale(1.02);
    }

    .schichtplan-neu-nano-promo__blob--3 {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.55;
    }
}

/* WebGL active: hide CSS blobs (single background layer + less GPU from filters) */
.schichtplan-neu-nano-promo--gl-active .schichtplan-neu-nano-promo__blob {
    opacity: 0;
    visibility: hidden;
    display: none;
    animation: none;
    will-change: auto;
    pointer-events: none;
}

/* OMR Reviews award badge — v2/sections/partials/omr-review-badges-strip.php (e.g. /einladung) */
.omr-review-badges-strip__link {
    display: block !important;
    width: var(--omr-badge-width, 110px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 0;
}

.omr-review-badges-strip__visual {
    display: block !important;
    width: var(--omr-badge-width, 110px) !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/*
 * Madame Croissant case study — v2/sections/partials/madame-croissant-case-study.php
 * KPI row: outer flex items-baseline. Numeral+label use inline flow (not nested inline-flex):
 * mixed Gilroy + Inter in inline-flex often mis-synthesizes baselines → labels look top-aligned.
 */
#madame-croissant-case-study .madame-croissant-case-kpi-row {
    align-items: baseline;
}

#madame-croissant-case-study .madame-croissant-case-kpi-inline-text {
    vertical-align: baseline;
}

#madame-croissant-case-study .madame-croissant-case-kpi-numeral,
#madame-croissant-case-study .madame-croissant-case-kpi-label {
    display: inline;
    vertical-align: baseline;
}

#madame-croissant-case-study .madame-croissant-case-kpi-row > .madame-croissant-case-kpi-icon {
    display: block;
    flex-shrink: 0;
}

/* Chef SVG reads smaller than croissant stroke icon at same box size */
#madame-croissant-case-study .madame-croissant-case-kpi-icon--chef {
    width: 1.375rem;
    height: 1.375rem;
}

@media (min-width: 640px) {
    #madame-croissant-case-study .madame-croissant-case-kpi-icon--chef {
        width: 1.625rem;
        height: 1.625rem;
    }
}

/*
 * Logo: bottom-left, aligned with copy (.madame-croissant-case-logo-footer — padding via partial utilities).
 * Sizing here (not Tailwind arbitrary max-*).
 */
#madame-croissant-case-study .madame-croissant-case-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 15.75rem);
    max-height: 4.875rem;
    object-fit: contain;
    object-position: center left;
}

@media (min-width: 640px) {
    #madame-croissant-case-study .madame-croissant-case-logo {
        max-height: 5.25rem;
    }
}

@media (min-width: 768px) {
    #madame-croissant-case-study .madame-croissant-case-logo {
        max-height: 6rem;
    }
}

@media (min-width: 1024px) {
    #madame-croissant-case-study .madame-croissant-case-logo {
        max-height: 6.375rem;
    }
}