/* ============================================================
   haas-consulting.ch — Light Theme (Redesign 2026)
   Modern, hell, animiert. Fokus: Webseiten · Plattformen · Web-Apps
   ============================================================ */

/* 0. Webfont – Inter Variable, selbst gehostet (DSGVO-konform)
   -------------------------------------------------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/Inter.var.woff2") format("woff2-variations"),
         url("/assets/fonts/Inter.var.woff2") format("woff2");
}

/* 1. Theme-Variablen — helle, moderne Palette
   -------------------------------------------------- */
:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fb;
    --color-bg-elevated: #ffffff;
    --color-surface: #ffffff;
    --color-border: #e7ebf2;
    --color-border-soft: #eef1f7;

    --color-text: #0c1424;
    --color-text-soft: #3f4a5f;
    --color-text-muted: #6b7689;

    --color-primary: #4f46e5;
    --color-primary-strong: #4338ca;
    --color-primary-soft: rgba(79, 70, 229, 0.08);
    --color-violet: #7c3aed;
    --color-cyan: #06b6d4;
    --color-accent: #06b6d4;

    --gradient-brand: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.10));

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 24px 60px rgba(79, 70, 229, 0.20);

    --radius-sm: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --max-width: 1140px;
    --header-height: 76px;
}

/* 2. Reset / Grundstruktur
   -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
    position: relative;
    overflow-x: hidden;
}

/* Heller, animierter Mesh-Gradient — weiche Pastell-Blobs auf Weiss */
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 18%, rgba(79, 70, 229, 0.14), transparent 42%),
        radial-gradient(circle at 82% 22%, rgba(6, 182, 212, 0.12), transparent 44%),
        radial-gradient(circle at 50% 88%, rgba(124, 58, 237, 0.10), transparent 48%);
    filter: blur(70px) saturate(115%);
    animation: mesh-drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes mesh-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.03); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

p { margin: 0 0 0.9rem; color: var(--color-text-soft); }

h1, h2, h3, h4 {
    margin: 0 0 0.6rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

.text-muted { color: var(--color-text-muted); }

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 3. Layout-Helfer
   -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; }

.section-header {
    margin-bottom: 2.75rem;
    max-width: 680px;
}
.section-header p { margin-top: 0.6rem; font-size: 1.05rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 1rem;
}
.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-brand);
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
}

/* 4. Buttons
   -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.btn-primary {
    color: #fff;
    background: var(--gradient-brand);
    background-size: 160% 160%;
    box-shadow: var(--shadow-glow);
    animation: btn-gradient 6s ease infinite;
}
@keyframes btn-gradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 70px rgba(79,70,229,0.30); }

.btn-ghost {
    color: var(--color-text);
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }

.btn-small { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* 5. Cards
   -------------------------------------------------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bullet-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.bullet-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    color: var(--color-text-soft);
    font-size: 0.96rem;
}
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--gradient-brand);
}

.inline-list { margin: 1rem 0; padding: 0; list-style: none; }
.inline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}
.inline-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* 6. Header / Navigation
   -------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 0.6rem 0;
    z-index: 1000;
    font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.has-scrolled .site-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-xs);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo-img { display: block; height: 56px; width: auto; max-width: 220px; }

.site-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0; padding: 0;
    list-style: none;
}
.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-soft);
    padding: 0.2rem 0;
    position: relative;
    transition: color 0.18s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -0.2rem;
    width: 0; height: 2px;
    border-radius: 999px;
    background: var(--gradient-brand);
    transition: width 0.2s ease-out;
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { width: 100%; }
.nav-item-cta .btn { margin-left: 0.25rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    margin-left: 0.5rem;
}
.nav-toggle-bar {
    display: block;
    width: 22px; height: 2px;
    margin: 4px 0;
    background-color: var(--color-text);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0,0,0,0);
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        padding: 1.25rem 1.5rem 1.75rem;
    }
    .site-nav.is-open { transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
    .nav-item-cta { width: 100%; }
    .nav-item-cta .btn { width: 100%; margin-left: 0; }
}

/* 7. HERO
   -------------------------------------------------- */
.section-hero {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 5rem;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-soft);
    max-width: 30rem;
    margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-soft);
}

/* Hero-Stage: Signature-Showcase + Orb + schwebende Chips */
.hero-aside { position: relative; min-height: 380px; }
.hero-stage {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: grid;
    place-items: center;
}
.parallax-layer { will-change: transform; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.orb-layer { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.showcase-layer { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; }
.hero-orb {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: var(--gradient-brand);
    filter: blur(10px);
    opacity: 0.8;
    animation: orb-pulse 7s ease-in-out infinite;
}
@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.08); opacity: 0.95; }
}
.hero-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    animation: chip-float 6s ease-in-out infinite;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--color-primary); }
.hero-chip-1 { top: 8%;  left: 2%;  animation-delay: 0s; }
.hero-chip-2 { top: 42%; right: 0;  animation-delay: 1.2s; }
.hero-chip-3 { bottom: 8%; left: 10%; animation-delay: 2.4s; }
@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@media (max-width: 860px) {
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-aside { min-height: 300px; order: -1; }
    .hero-orb { width: 240px; height: 240px; }
}

/* 8. Leistungen / Pillars
   -------------------------------------------------- */
.pillar-grid { margin-top: 0.5rem; }
.pillar-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pillar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.pillar-card:hover::after { opacity: 1; }
.pillar-icon {
    position: relative;
    z-index: 1;
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: #fff;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-glow);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { position: relative; z-index: 1; font-size: 1.3rem; }
.pillar-card p { position: relative; z-index: 1; }
.pillar-card .bullet-list { position: relative; z-index: 1; margin-top: auto; }

.note-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
}
.note-bar strong { color: var(--color-text); }
.note-bar p { margin: 0; }
.note-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* 9. Technologie-Marquee
   -------------------------------------------------- */
.section-tech { padding: 3.5rem 0; }
.tech-head { text-align: center; margin-bottom: 2rem; }
.tech-head h2 { margin-bottom: 0.4rem; }
.tech-head p { color: var(--color-text-muted); }

.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-soft);
    white-space: nowrap;
}

/* 10. Beratungs-Ergänzung (kompakt)
   -------------------------------------------------- */
.section-extra { position: relative; }
.extra-card {
    background: var(--color-text);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.extra-card::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%; height: 140%;
    background: var(--gradient-brand);
    opacity: 0.35;
    filter: blur(60px);
    pointer-events: none;
}
.extra-card .eyebrow { color: #a5b4fc; }
.extra-card h2 { color: #fff; position: relative; z-index: 1; }
.extra-card > p { color: rgba(255,255,255,0.78); position: relative; z-index: 1; max-width: 40rem; }
.extra-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 0;
    list-style: none;
}
.extra-list li {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.extra-list li span { display: block; font-weight: 400; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }
@media (max-width: 860px) { .extra-list { grid-template-columns: 1fr; } }

/* 11. Referenz / EasyTender
   -------------------------------------------------- */
.platform-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.platform-card::before {
    content: "";
    position: absolute;
    inset: auto auto -30% -10%;
    width: 50%; height: 120%;
    background: var(--gradient-soft);
    filter: blur(40px);
    pointer-events: none;
}
.platform-card-body { position: relative; z-index: 1; max-width: 46rem; }

.ref-grid { margin-top: 1.75rem; }
.ref-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.ref-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.ref-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}
.ref-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.ref-card p { font-size: 0.95rem; }
.ref-link {
    margin-top: auto;
    padding-top: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: gap 0.18s ease;
}
.ref-card:hover .ref-link { color: var(--color-primary-strong); }

/* 12. Über mich
   -------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.about-meta { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.about-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.about-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--color-primary);
}
.about-value { color: var(--color-text-soft); }

.about-card { text-align: left; }
.about-photo {
    margin: 0 0 1.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-soft);
}
.about-photo-img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait { margin: 0; }

@media (max-width: 860px) {
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
}

/* 13. Kontakt-CTA
   -------------------------------------------------- */
.contact-cta-card {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
    background: var(--color-text);
    border: none;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.contact-cta-card::before {
    content: "";
    position: absolute;
    inset: -50% auto auto -10%;
    width: 60%; height: 180%;
    background: var(--gradient-brand);
    opacity: 0.4;
    filter: blur(70px);
    pointer-events: none;
}
.contact-cta-text { position: relative; z-index: 1; }
.contact-cta-text h2 { color: #fff; }
.contact-cta-text p { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.contact-cta-actions { position: relative; z-index: 1; }
.contact-cta-meta { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.9rem; }
@media (max-width: 760px) {
    .contact-cta-card { grid-template-columns: 1fr; }
}

/* 14. Insights / Blog
   -------------------------------------------------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--color-primary-soft), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card:hover::before { opacity: 1; }
.post-card-dot {
    width: 0.6rem; height: 0.6rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: inline-block;
}
.post-card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.post-card-title { font-size: 1.25rem; }
.post-card-excerpt { color: var(--color-text-soft); }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; padding: 0; list-style: none; }
.post-card-tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.post-card-cta { margin-top: auto; font-weight: 600; color: var(--color-primary); }

.post-list-item { list-style: none; }

/* 15. Artikel (Insights-Detail)
   -------------------------------------------------- */
.article-container { max-width: 760px; }
.article-breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.article-breadcrumb a:hover { color: var(--color-primary); }
.article-header { margin-bottom: 2rem; }
.article-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.88rem; color: var(--color-text-muted); margin-top: 0.75rem; }
.article-body { font-size: 1.08rem; line-height: 1.8; }
.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 1.75rem; }
.article-body p { color: var(--color-text-soft); }
.article-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article-body ul, .article-body ol { color: var(--color-text-soft); padding-left: 1.25rem; }
.article-body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-soft);
    font-style: italic;
}
.article-body pre {
    background: var(--color-text);
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-size: 0.9rem;
}
.article-body code { background: var(--color-bg-soft); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.9em; }
.article-body pre code { background: none; padding: 0; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; margin-bottom: 1.5rem; }
.article-tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.article-share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.article-share-label { font-size: 0.88rem; color: var(--color-text-muted); }
.share-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-soft);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.share-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.share-copy.is-copied { border-color: var(--color-cyan); color: var(--color-cyan); }

/* 16. Footer
   -------------------------------------------------- */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-soft);
    padding: 3.5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-title { font-size: 1rem; margin-bottom: 0.75rem; }
.footer-text { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer-list a:hover { color: var(--color-primary); }
.footer-cta { margin-top: 1.1rem; }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--color-text-muted); }
.footer-meta a:hover { color: var(--color-primary); }
.footer-separator { color: var(--color-border); }

/* 17. Cookie-Banner
   -------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 2rem));
    z-index: 200;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-hidden { opacity: 0; transform: translate(-50%, 120%); pointer-events: none; }
.cookie-banner-text { font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 1rem; }
.cookie-banner-text a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }

/* 18. Kontaktformular (kontakt.php)
   -------------------------------------------------- */
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--color-text); }
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.form-row textarea { min-height: 150px; resize: vertical; }

/* 19. Scroll-Reveal-Animationen (data-animate)
   -------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate="fade"] { transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

/* 20. Wort-Rotator im Hero
   -------------------------------------------------- */
.word-rotator {
    position: relative;
    display: inline-block;
    min-width: 9ch;
    height: 1.06em;
    vertical-align: bottom;
}
.word-rotator .word {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.5em);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.word-rotator .word.is-active { opacity: 1; transform: none; }

/* 21. Signature-Showcase: animiertes Browser-Fenster
   -------------------------------------------------- */
.hero-chip { z-index: 2; }

.showcase-window {
    width: min(380px, 100%);
    aspect-ratio: 4 / 3;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.win-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border-soft);
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e4; }
.win-dot:nth-child(1) { background: #ff5f57; }
.win-dot:nth-child(2) { background: #febc2e; }
.win-dot:nth-child(3) { background: #28c840; }
.win-url {
    margin-left: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    overflow: hidden;
}
.win-url svg { color: #28c840; flex-shrink: 0; }
.win-url-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-body { position: relative; height: calc(100% - 36px); }
.frame {
    position: absolute;
    inset: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.showcase-window[data-state="0"] .frame-web,
.showcase-window[data-state="1"] .frame-platform,
.showcase-window[data-state="2"] .frame-mobile { opacity: 1; transform: none; }

/* Skeleton-Shimmer für die neutralen Blöcke */
.sk-lines span, .sk-grid i, .sk-side b, .sk-cards u, .sk-rows span {
    background-image: linear-gradient(90deg, #eef1f7 25%, #e3e8f0 50%, #eef1f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.9s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Zustand Webseite */
.frame-web .sk-hero {
    height: 42%;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(79,70,229,0.20), rgba(6,182,212,0.16));
}
.sk-lines { display: flex; flex-direction: column; gap: 7px; }
.sk-lines span { height: 8px; border-radius: 4px; }
.sk-lines span:nth-child(1) { width: 82%; }
.sk-lines span:nth-child(2) { width: 66%; }
.sk-lines span:nth-child(3) { width: 48%; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.sk-grid i { height: 38px; border-radius: 8px; }

/* Zustand Plattform / Dashboard */
.sk-app { display: flex; gap: 10px; height: 100%; }
.sk-side { width: 26%; display: flex; flex-direction: column; gap: 7px; }
.sk-side b { height: 10px; border-radius: 4px; }
.sk-side b:first-child { background: var(--gradient-brand); height: 12px; animation: none; }
.sk-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-cards u { height: 36px; border-radius: 8px; }
.sk-chart { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding-top: 6px; }
.sk-chart i {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, rgba(79,70,229,0.55), rgba(6,182,212,0.35));
    transform-origin: bottom;
    animation: bar-grow 1.5s ease-in-out infinite alternate;
}
.sk-chart i:nth-child(1) { height: 45%; animation-delay: 0s; }
.sk-chart i:nth-child(2) { height: 72%; animation-delay: 0.15s; }
.sk-chart i:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.sk-chart i:nth-child(4) { height: 88%; animation-delay: 0.45s; }
.sk-chart i:nth-child(5) { height: 62%; animation-delay: 0.6s; }
@keyframes bar-grow { from { transform: scaleY(0.6); } to { transform: scaleY(1); } }

/* Zustand Web-App / Phone */
.frame-mobile { display: grid; place-items: center; }
.sk-phone {
    width: 46%;
    height: 96%;
    border: 2px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
}
.sk-phone-top { height: 30%; border-radius: 12px; background: linear-gradient(120deg, rgba(79,70,229,0.20), rgba(6,182,212,0.16)); }
.sk-rows { display: flex; flex-direction: column; gap: 6px; }
.sk-rows span { height: 9px; border-radius: 5px; }
.sk-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--color-border-soft); }
.sk-tabbar i { width: 12px; height: 12px; border-radius: 4px; background: #e3e8f0; }
.sk-tabbar i:first-child { background: var(--color-primary); }

@media (max-width: 860px) {
    .showcase-window { width: min(320px, 100%); }
}

/* 22. Scroll-Fortschritt + Back-to-Top
   -------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-brand);
    z-index: 100;
    transition: width 0.1s linear;
    pointer-events: none;
}
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* 23. Cursor-Spotlight auf Leistungs- & Referenzkarten
   -------------------------------------------------- */
.ref-card { position: relative; overflow: hidden; }
.ref-card > * { position: relative; z-index: 1; }
.pillar-card::before, .ref-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--color-primary-soft), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}
.pillar-card:hover::before, .ref-card:hover::before { opacity: 1; }

/* 24. Live-Website-Generator (Signature-Interaktion)
   -------------------------------------------------- */
.section-demo { position: relative; }
.demo-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 2.75rem;
    align-items: center;
}
.demo-controls .demo-field { margin-bottom: 1.6rem; }
.demo-controls .demo-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.55rem;
    color: var(--color-text);
}
#demo-name {
    width: 100%;
    padding: 0.9rem 1.05rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--color-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#demo-name:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.demo-branche { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.demo-branche .chip {
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-soft);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.demo-branche .chip:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }
.demo-branche .chip.is-active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.demo-hint { font-size: 0.92rem; color: var(--color-text-muted); margin: 1.4rem 0 0; }
.demo-hint a { color: var(--color-primary); font-weight: 600; }
.demo-hint a:hover { color: var(--color-primary-strong); }

.demo-preview { display: grid; place-items: center; }
.demo-window { width: 100%; max-width: 580px; aspect-ratio: 16 / 10; }
.demo-window .win-body { height: calc(100% - 36px); }

/* Die live generierte Mini-Website */
.demo-site {
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --accent-tint: rgba(79, 70, 229, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-size: 11px;
    line-height: 1.4;
}
.ds-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border-soft);
}
.ds-logo { font-weight: 800; font-size: 14px; letter-spacing: -0.02em; color: var(--accent); }
.ds-links { display: flex; gap: 14px; color: var(--color-text-muted); }
.ds-links i { font-style: normal; }
.ds-cta { background: var(--accent); color: #fff; padding: 4px 11px; border-radius: 999px; font-weight: 600; font-size: 10px; }
.ds-hero {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 22px 18px;
    background: linear-gradient(135deg, var(--accent-tint), #fff 70%);
}
.ds-headline { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--color-text); min-height: 1.2em; margin: 0; }
.ds-headline .caret { display: inline-block; width: 2px; height: 0.9em; background: var(--accent); margin-left: 1px; vertical-align: -1px; animation: caret-blink 0.8s step-end infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.ds-sub { color: var(--color-text-soft); margin: 0; }
.ds-btn { display: inline-block; margin-top: 4px; background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 10px; }
.ds-cards { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 14px 16px; }
.ds-card { border: 1px solid var(--color-border); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 7px; }
.ds-ico { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); position: relative; }
.ds-ico::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--accent); opacity: 0.55; }
.ds-card b { font-size: 10.5px; color: var(--color-text); font-weight: 700; }
.ds-card em { font-style: normal; height: 5px; border-radius: 3px; background: #eef1f7; }

/* Assemble-Animation beim Generieren */
.demo-site .ds-nav,
.demo-site .ds-hero,
.demo-site .ds-cards {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-site.is-built .ds-nav { opacity: 1; transform: none; transition-delay: 0.05s; }
.demo-site.is-built .ds-hero { opacity: 1; transform: none; transition-delay: 0.22s; }
.demo-site.is-built .ds-cards { opacity: 1; transform: none; transition-delay: 0.38s; }

@media (max-width: 860px) {
    .demo-grid { grid-template-columns: 1fr; gap: 2rem; }
    .demo-window { max-width: 100%; }
}

/* 25. Reduced Motion
   -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto; }
    body::before { animation: none; }
    [data-animate] { opacity: 1; transform: none; }
}
