/* PureDisplay – eigene Styles (ergänzend zu tailwind.css) */

/* Schrift: Inter (SIL Open Font License, siehe /assets/fonts/LICENSE-OFL.txt),
   lokal ausgeliefert – kein Google-Server. Lateinischer Zeichensatz inkl. Umlaute. */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-latin-wght-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root { --nav-h: 5rem; }
@media (min-width: 768px) { :root { --nav-h: 7rem; } }

html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Hintergründe & Effekte ---------- */
.glass { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bg-grid { background-size: 40px 40px; background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px); }

.hero-mesh {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
}
.hero-mesh--red {
    background-image:
        radial-gradient(at 10% 10%, rgba(239, 68, 68, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(30, 41, 59, 0.05) 0px, transparent 50%);
}

.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particles canvas { width: 100%; height: 100%; display: block; }

.shimmer {
    background: linear-gradient(90deg, #1e293b 0%, #3b82f6 50%, #1e293b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    padding: 0.1em 0;
}
.shimmer--red { background-image: linear-gradient(90deg, #1e293b 0%, #ef4444 50%, #1e293b 100%); }
@keyframes shimmer { to { background-position: 200% auto; } }

.tilt-card { transform-style: preserve-3d; transition: transform 0.4s ease; will-change: transform; }

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: pulsate 4s ease-out infinite;
}
@keyframes pulsate {
    0% { transform: scale(0.1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating { animation: floating 6s ease-in-out infinite; }
.floating-delayed { animation: floating 6s ease-in-out 3s infinite; }
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ---------- Einblend-Animationen (ersetzt AOS) ---------- */
.js [data-aos] {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-aos="fade-up"]       { transform: translate3d(0, 40px, 0); }
.js [data-aos="fade-right"]    { transform: translate3d(-40px, 0, 0); }
.js [data-aos="fade-left"]     { transform: translate3d(40px, 0, 0); }
.js [data-aos="zoom-in"]       { transform: scale(0.92); }
.js [data-aos="zoom-in-right"] { transform: translate3d(-40px, 0, 0) scale(0.92); }
.js [data-aos="zoom-in-left"]  { transform: translate3d(40px, 0, 0) scale(0.92); }
.js [data-aos].aos-animate     { opacity: 1; transform: none; }
/* Kopfbereich sofort sichtbar – schnellerer erster Eindruck (LCP), kein Aufblitzen */
.js .hero-mesh [data-aos] { opacity: 1; transform: none; transition: none; }
@media (max-width: 767px) {
    /* Auf dem Handy nur vertikal einblenden – verhindert seitliches Scrollen */
    .js [data-aos="fade-right"], .js [data-aos="fade-left"],
    .js [data-aos="zoom-in-right"], .js [data-aos="zoom-in-left"] { transform: translate3d(0, 30px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .shimmer, .pulse-ring, .floating, .floating-delayed, .animate-ping, .animate-pulse { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Navigation ---------- */
.menu-icon { position: relative; width: 20px; height: 14px; display: block; }
.menu-icon span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6px; }
.menu-icon span:nth-child(3) { top: 12px; }
.menu-open .menu-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e2e8f0;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    box-shadow: 0 30px 40px -20px rgba(15, 23, 42, 0.25);
}
.mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 0.25rem;
    font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; color: #0f172a;
}
.mobile-link::after { content: '→'; color: #2563eb; font-weight: 700; }
body.menu-locked { overflow: hidden; }

/* ---------- Fußzeile ---------- */
.footer-title { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: #94a3b8; margin-bottom: 1rem; }
.footer-list li + li { margin-top: 0.6rem; }
.footer-list a { color: #334155; font-weight: 600; transition: color 0.2s; }
.footer-list a:hover { color: #2563eb; }

/* ---------- Formulare ---------- */
select.select-arrow {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1em;
    padding-right: 3.5rem;
}

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.3rem; font-weight: 900; color: #0f172a; margin: 2.75rem 0 0.9rem; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: #475569; line-height: 1.75; }
.legal p + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0; }
.legal li + li { margin-top: 0.25rem; }
.legal a { color: #2563eb; font-weight: 600; overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; color: #0f172a; font-weight: 600; line-height: 1.75; }
.legal .hint { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 1.5rem; padding: 1.25rem 1.5rem; margin-top: 1rem; }

/* =========================================================
   Bausteine der Produktseiten (inc/components.php)
   ========================================================= */

/* ---------- Abschnitts-Überschrift ---------- */
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: #2563eb; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 0.9rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.035em; color: #0f172a; }
.section-head .intro { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.7; color: #64748b; font-weight: 500; }
.section-head--dark h2 { color: #fff; }
.section-head--dark .kicker { color: #60a5fa; }
.section-head--dark .intro { color: #94a3b8; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-light, .btn-ghost-light {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 1.75rem; border-radius: 1rem; font-size: 12px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.14em; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 18px 40px -18px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: #0f172a; }
.btn-secondary { background: #fff; color: #0f172a; border: 2px solid #e2e8f0; }
.btn-secondary:hover { border-color: #0f172a; }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: #dbeafe; }
.btn-ghost-light { color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-primary:active, .btn-secondary:active, .btn-light:active, .btn-ghost-light:active { transform: scale(.98); }

/* ---------- Slideshow ---------- */
/* Rasterzellen dürfen schmaler als ihr Inhalt werden (sonst sprengen Slideshows das Layout) */
.grid > * { min-width: 0; }
.slider { position: relative; min-width: 0; }
.slider-big { overflow-wrap: anywhere; max-width: 100%; }
.slider-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    border-radius: 2rem; scrollbar-width: none; outline: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { box-shadow: 0 0 0 3px #93c5fd; }
.slider-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
.slider-media {
    position: relative; overflow: hidden; border-radius: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #e0e7ff 100%);
    display: flex; align-items: center; justify-content: center;
}
.slider-media img { width: 100%; height: 100%; object-fit: contain; }
.slider-media--text { flex-direction: column; gap: 1rem; padding: 2rem; text-align: center; }
.slider-icon { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; }
.slider-big { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; color: #0f172a; }
.slider-caption { padding: 1.25rem 0.5rem 0; display: flex; flex-direction: column; gap: 0.35rem; }
.slider-caption strong { font-size: 1.15rem; font-weight: 900; color: #0f172a; letter-spacing: -0.01em; }
.slider-caption span { color: #64748b; line-height: 1.6; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.slider-btn {
    width: 3rem; height: 3rem; border-radius: 999px; border: 2px solid #e2e8f0; background: #fff; color: #0f172a;
    font-weight: 900; font-size: 1.1rem; transition: background-color .2s, border-color .2s, color .2s; flex-shrink: 0;
}
.slider-btn:hover { background: #0f172a; border-color: #0f172a; color: #fff; }
.slider-dots { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.slider-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #cbd5e1; transition: width .3s, background-color .3s; }
.slider-dot[aria-current="true"] { width: 2rem; background: #2563eb; }
.slider--dark .slider-media { background: linear-gradient(135deg, #1e293b 0%, #0f172a 70%); }
.slider--dark .slider-big, .slider--dark .slider-caption strong { color: #fff; }
.slider--dark .slider-caption span { color: #94a3b8; }
.slider--dark .slider-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }
.slider--dark .slider-btn:hover { background: #fff; color: #0f172a; }
.slider--dark .slider-dot { background: rgba(255, 255, 255, .25); }
.slider--dark .slider-dot[aria-current="true"] { background: #60a5fa; }
@media (max-width: 639px) { .slider-track, .slider-media { border-radius: 1.25rem; } }

/* ---------- Kennzahlen ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 1.75rem; overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { background: #fff; padding: 1.5rem 1.25rem; display: flex; flex-direction: column-reverse; gap: 0.35rem; }
.facts dd { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -0.03em; color: #0f172a; line-height: 1.1; }
.facts dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: #64748b; }
.facts--dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.facts--dark > div { background: #0f172a; }
.facts--dark dd { color: #fff; }
.facts--dark dt { color: #94a3b8; }

/* ---------- Ablauf-Schritte ---------- */
.steps { display: grid; gap: 1rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.75rem; padding: 1.75rem; }
.steps-num { display: inline-flex; width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; background: #2563eb; color: #fff; font-weight: 900; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.steps h3 { font-weight: 900; font-size: 1.1rem; color: #0f172a; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.steps p { color: #64748b; font-size: 0.95rem; line-height: 1.65; }

/* ---------- Funktionsgruppen ---------- */
.feature-groups { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .feature-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-group { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1.75rem; padding: 1.75rem; transition: background-color .3s, border-color .3s; }
.feature-group:hover { background: #eff6ff; border-color: #bfdbfe; }
.feature-group-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; }
.feature-group-head span { width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; background: #fff; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.feature-group-head h3 { font-weight: 900; font-size: 1.15rem; color: #0f172a; letter-spacing: -0.01em; }
.feature-group-text { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.9rem; }
.feature-group ul { display: grid; gap: 0.55rem; }
.feature-group li { position: relative; padding-left: 1.6rem; color: #334155; font-size: 0.95rem; line-height: 1.5; font-weight: 500; }
.feature-group li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #2563eb; font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bfdbfe; box-shadow: 0 20px 40px -30px rgba(37, 99, 235, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.5rem; font-weight: 800; color: #0f172a; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 999px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.faq details[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 1.5rem 1.35rem; color: #475569; line-height: 1.7; }
.faq-a a { color: #2563eb; font-weight: 700; }
.faq-a p + p { margin-top: 0.6rem; }

/* ---------- Abschluss-Aufruf ---------- */
.cta-band {
    max-width: 80rem; margin: 0 auto; border-radius: 2.5rem; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    background: radial-gradient(at 15% 0%, rgba(96, 165, 250, .35) 0, transparent 55%), linear-gradient(135deg, #1d4ed8 0%, #0f172a 85%);
    color: #fff; text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.cta-band p { margin: 1rem auto 0; max-width: 38rem; color: #cbd5e1; font-size: 1.1rem; line-height: 1.7; }
.cta-band-buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Unterseiten-Navigation (Sprungmarken) ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
.subnav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 0.95rem 0.9rem; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; color: #64748b; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: #0f172a; }
.subnav a.is-active { color: #2563eb; border-color: #2563eb; }
html { scroll-padding-top: calc(var(--nav-h) + 4rem); }

/* ---------- Gerätrahmen für Screenshots ---------- */
.device-frame { position: relative; border-radius: 2rem; padding: 0.75rem; background: #0f172a; box-shadow: 0 50px 80px -40px rgba(15, 23, 42, .55); }
.device-frame .slider-media { border-radius: 1.4rem; }

/* ---------- Status-Hinweise ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; }
.pill--blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pill--amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.pill--green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pill-dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: currentColor; }

@media (prefers-reduced-motion: reduce) {
    .slider-track { scroll-behavior: auto; }
}
