/*
Theme Name: Gentests.de - Premium Edition
Theme URI: https://gentests.de
Description: Deutsches Premium WordPress-Theme für gentests.de – Gen-Enzyklopädie & Wissens-Ratgeber
Version: 4.5.9
Text Domain: gentests
*/

:root {
    /* Theme Colors */
    --color-dna-blue: #2563eb;
    --color-dna-purple: #764ba2;
    --color-dna-indigo: #667eea;
    --color-dna-dark: #0F172A;
    --color-dna-slate: #94A3B8;
    --color-dna-bg: #F8FAFC;
    --color-dna-green: #10b981;

    /* Legacy Design Tokens (kompatibel mit migrierten Gen-Karten) */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1e40af;
    --color-secondary: #10b981;
    --color-accent: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-bg: #f8fafc;
    --color-surface: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-text-muted: #64748b;

    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);

    /* Spacing & Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 1.5rem;
}

/* Gradients */
.dna-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dna-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #1E293B;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.prose,
.card,
.snp-card,
.info-box,
.article-surface-card,
h1,
h2,
h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.fade-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Playfair Display', serif;
}

.prose h2,
.card h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    letter-spacing: -0.02em;
    color: var(--color-dna-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.22;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.card h2:first-child,
.prose h2:first-child {
    margin-top: 0;
}

.prose h3,
.card h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: var(--color-dna-dark);
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.card h3:first-child {
    margin-top: 0;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
    margin-bottom: 0;
}

/* --- Premium FAQs (Native Details) --- */
details.faq-item,
.prose details,
details[class*="bg-gray-50"] {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

details:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3) !important;
}

summary.faq-question,
.prose summary,
summary[class*="text-"] {
    list-style: none;
    padding: 1.5rem 2rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    font-size: 1.15rem !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    outline: none;
    font-family: 'Playfair Display', serif;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border-radius: 12px;
    color: #2563eb;
    transition: all 0.3s ease;
    font-size: 1.15rem;
    font-weight: 900;
}

details[open] summary {
    background: #f8fafc;
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
}

details[open] summary::after {
    transform: rotate(90deg);
    background: #2563eb;
    color: white;
}

details[open]>p,
details[open]>div,
.prose details[open]>p {
    padding: 1.75rem 2rem !important;
    color: #475569 !important;
    line-height: 1.75 !important;
    font-size: 1.05rem !important;
    margin: 0 !important;
    background: white;
}

/* --- Navigation --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

@media (min-width: 1024px) {
    #ga-desktop-nav {
        display: flex !important;
    }

    #ga-cta-btn {
        display: inline-block !important;
    }

    #ga-mobile-toggle,
    #ga-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    #ga-desktop-nav,
    #ga-cta-btn {
        display: none !important;
    }

    #ga-mobile-toggle {
        display: block !important;
    }
}

/* --- Premium Cards --- */
.premium-card {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(102, 126, 234, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px !important;
}

/* --- Main Content Cards --- */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem 2.25rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem !important;
}

.card .grid-2 {
    margin-top: 1rem !important;
    gap: 1rem 1.5rem !important;
}

.card .grid-2 > div p {
    margin: 0.2rem 0 0 !important;
}

.card .grid-2 > div br {
    display: none;
}

.card-gradient {
    background: var(--gradient-card);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.highlight-box,
.stat-card,
.vocab-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* --- SNP Section --- */
.snp-section {
    margin-top: 0 !important;
}

.snp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    align-items: stretch;
}

.snp-grid > p,
.snp-grid > br,
.prose p:empty,
.card > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.snp-card {
    background: #F8FAFC !important;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    border-left: 6px solid var(--color-dna-blue);
    position: relative;
    margin-bottom: 1.25rem;
    border-top: 1px solid #F1F5F9;
    border-right: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.snp-grid .snp-card {
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.snp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.snp-header br,
.allele-box br {
    display: none !important;
}

.snp-id {
    color: var(--color-dna-blue);
    font-family: monospace;
    font-weight: 800;
    font-size: 1.25rem;
}

.snp-position {
    color: var(--color-dna-slate);
    font-family: monospace;
    font-size: 0.875rem;
}

.snp-description {
    color: #475569;
    line-height: 1.7;
    margin-top: 1rem;
}

.snp-frequency {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.frequency-label {
    color: var(--color-dna-slate);
    font-weight: 700;
}

.frequency-value,
.frequency-percent {
    color: var(--color-dna-dark);
    font-weight: 700;
}

.frequency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.frequency-item {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
}

.frequency-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.frequency-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
}

/* --- Allele Box Styling --- */
.allele-display {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.allele-display p {
    margin: 0 !important;
    display: inline !important;
}

.allele-box {
    min-width: 64px;
    height: 64px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s ease;
    background: #fff;
    border: 2px solid var(--color-dna-blue);
}

.allele-reference {
    background: var(--color-dna-blue) !important;
    border: 2px solid var(--color-dna-blue);
}

.allele-reference .allele-value {
    color: white !important;
}

.allele-alternative,
.allele-normal {
    background: white !important;
    border: 2px solid var(--color-dna-green) !important;
}

.allele-alternative .allele-value,
.allele-normal .allele-value {
    color: var(--color-dna-green) !important;
}

.allele-risk {
    background: white !important;
    border: 2px solid var(--color-danger) !important;
}

.allele-risk .allele-value {
    color: var(--color-danger) !important;
}

.allele-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-dna-slate);
    position: absolute;
    top: -22px;
    left: 0;
    white-space: nowrap;
}

.allele-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.allele-separator {
    font-size: 1.75rem;
    color: #CBD5E1;
    font-weight: 300;
    margin: 0 0.25rem;
}

/* Legacy .snp-alleles & .allele */
.snp-alleles {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.allele {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--color-dna-blue);
    color: var(--color-dna-blue);
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
}

.allele small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-dna-slate);
}

.allele.allele-alt {
    border-color: var(--color-warning);
    color: #b45309;
}

.diseases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

/* Assoziierte Krankheiten / Risiken als kompakte Grid-Karten nebeneinander */
.card ul[style*="list-style"],
.prose ul[style*="list-style"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0.85rem 0 0 !important;
}

.card ul[style*="list-style"] > li,
.prose ul[style*="list-style"] > li {
    margin-bottom: 0 !important;
    padding: 1rem 1.25rem !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0;
    border-radius: 0.85rem !important;
}

.card ul[style*="list-style"] > li p:last-child,
.prose ul[style*="list-style"] > li p:last-child {
    margin-bottom: 0 !important;
}

.card ul[style*="list-style"] > br,
.card ul[style*="list-style"] > p,
.prose ul[style*="list-style"] > br,
.prose ul[style*="list-style"] > p {
    display: none !important;
}

/* --- Badges & Buttons --- */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary {
    background: var(--color-dna-blue);
    color: #fff;
}

.badge-secondary {
    background: var(--color-dna-green);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--color-dna-blue) !important;
    border: 2px solid var(--color-dna-blue);
}

.btn-secondary:hover {
    background: var(--color-dna-blue);
    color: #fff !important;
}

.btn-outline {
    background: #fff;
    color: var(--color-dna-dark) !important;
    border: 1px solid #CBD5E1;
}

.btn-outline:hover {
    border-color: var(--color-dna-indigo);
    color: var(--color-dna-indigo) !important;
}

.gene-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

/* --- Info Boxes --- */
.info-box {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 !important;
    border-left: 4px solid var(--color-dna-indigo);
    background: #F8FAFC;
    color: #334155;
}

.info-box h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.05rem;
}

.info-box p:last-child,
.info-box ul:last-child,
.info-box ol:last-child {
    margin-bottom: 0 !important;
}

.info-box-info {
    background: #eff6ff;
    border-left-color: var(--color-dna-blue);
    color: #1e40af;
}

.info-box-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.info-box-danger {
    background: #fff5f5;
    border-left-color: #ef4444;
    color: #991b1b;
}

.info-box-success {
    background: #ecfdf5;
    border-left-color: var(--color-dna-green);
    color: #065f46;
}

/* --- Article Header Image --- */
.article-header-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* --- Prose Content --- */
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose a {
    color: var(--color-dna-blue);
    text-decoration: underline;
}

.prose ul,
.prose ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose blockquote {
    border-left: 4px solid var(--color-dna-indigo);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #F8FAFC;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #475569;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

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

.prose th,
.prose td {
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    text-align: left;
}

.prose th {
    background: #F8FAFC;
    font-weight: 700;
}

/* --- Prose Structural Compat for Migrated HTML --- */
.prose .border-l-4 {
    border-left: 4px solid var(--color-dna-indigo);
    padding-left: 1.25rem;
}

.prose .bg-white.border {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.22);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.08);
}

.prose .grid-cols-1.md\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.prose .bg-green-50 {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 1rem;
    padding: 1.25rem;
}

.prose .bg-yellow-50 {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 1.25rem;
}

.prose .bg-red-50 {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 1rem;
    padding: 1.25rem;
}

/* --- Footer --- */
footer {
    background-color: #0F172A;
    padding: 5rem 0;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(102, 126, 234, 0.05);
    text-align: center;
}

/* --- Cookie Consent Banner --- */
#gt-cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    max-width: 26rem;
    margin-left: auto;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(102, 126, 234, 0.16);
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

#gt-cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Pagination --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-links a {
    color: #475569;
    background: #fff;
    border: 1px solid #E2E8F0;
}

.nav-links a:hover {
    background: var(--color-dna-indigo);
    color: #fff;
    border-color: var(--color-dna-indigo);
}

.nav-links .current {
    background: var(--color-dna-indigo);
    color: #fff;
    border: 1px solid var(--color-dna-indigo);
}

/* --- Utilities --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .card,
    .article-surface-card,
    .cat-cta-box,
    .footer-disclaimer {
        padding: 1.35rem !important;
        border-radius: 1.35rem !important;
        margin-bottom: 1.5rem;
    }

    .gene-content-stack {
        margin-top: -5rem !important;
    }

    .snp-card {
        padding: 1.25rem !important;
        border-radius: 1.15rem !important;
    }

    .info-box,
    .prose .bg-white.border,
    .prose .p-8,
    .prose .p-6 {
        padding: 1.15rem !important;
        border-radius: 1rem !important;
    }

    .prose h2,
    .card h2 {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
        line-height: 1.25;
        margin-top: 1.5rem;
    }

    .prose h3,
    .card h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.4rem);
        line-height: 1.3;
    }

    summary.faq-question,
    .prose summary,
    summary[class*="text-"] {
        padding: 1.1rem 1.25rem !important;
        font-size: 1rem !important;
    }

    details[open] > p,
    details[open] > div,
    .prose details[open] > p {
        padding: 1.15rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    .prose table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.875rem;
    }

    .prose th,
    .prose td {
        padding: 0.55rem 0.75rem;
    }

    .article-header-img {
        height: 220px;
        margin-bottom: 1.5rem;
    }

    .gene-hero-header {
        padding: 3rem 0 7.5rem !important;
    }

    .ratgeber-hero-header {
        padding: 3rem 0 5.5rem !important;
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .snp-grid,
    .frequency-grid,
    .card ul[style*="list-style"],
    .prose ul[style*="list-style"],
    .prose .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .hero-search-form {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
        padding: 0.5rem !important;
    }

    .hero-search-form input.ga-search-input {
        width: 100%;
        height: 2.75rem !important;
        padding: 0 0.85rem !important;
    }

    .hero-search-form button[type="submit"] {
        width: 100%;
        height: 2.75rem !important;
    }

    .gene-nav-buttons .btn,
    .cat-cta-box .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Live Search Dropdown --- */
.ga-live-search {
    position: relative;
}

.ga-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.15);
    margin-top: 0.5rem;
    overflow-x: hidden;
    z-index: 99999;
    max-height: 30rem;
    overflow-y: auto;
}

.ga-search-results.active {
    display: block;
}

.ga-search-results a {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    text-decoration: none;
    color: #0F172A;
    transition: background 0.15s;
    border-bottom: 1px solid #F1F5F9;
}

.ga-search-results a:last-child {
    border-bottom: none;
}

.ga-search-results a:hover,
.ga-search-results a.selected {
    background: #F8FAFC;
}

.ga-search-results .ga-sr-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ga-search-results .ga-sr-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    background: #F1F5F9;
    color: #64748B;
    font-size: 1rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ga-search-results .ga-sr-info {
    flex: 1;
    min-width: 0;
}

.ga-search-results .ga-sr-title {
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: normal;
    line-height: 1.3;
    color: #0F172A;
}

.ga-search-results .ga-sr-desc {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.45;
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ga-search-results .ga-sr-meta {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.3rem;
    line-height: 1.35;
}

.ga-search-results .ga-sr-cat {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dna-indigo);
    background: rgba(102, 126, 234, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ga-search-results .ga-sr-loading,
.ga-search-results .ga-sr-empty {
    padding: 1.5rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Nav Search Panel */
#ga-search-panel .ga-search-results {
    position: static;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    max-height: 20rem;
}

#ga-search-panel .ga-search-results.active {
    display: block;
}

@media (max-width: 640px) {
    #ga-search-panel {
        position: fixed !important;
        top: 5.5rem !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }

    .ga-search-results a {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .ga-search-results .ga-sr-cat {
        display: none;
    }
}

/* --- WP Content: Tailwind class compat for DB-stored content --- */
.prose .inline-flex,
.prose a.inline-flex,
.prose a.inline-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-dna-dark);
    color: #fff !important;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    -webkit-text-fill-color: #fff;
}

.prose .inline-flex:hover,
.prose a.inline-flex:hover,
.prose a.inline-block:hover {
    background: var(--color-dna-indigo);
}

.prose .inline-flex svg,
.prose a.inline-flex svg {
    width: 1rem;
    height: 1rem;
}

/* Remove <br> display inside links (wpautop fix) */
.prose a br {
    display: none;
}

/* --- Extended Utility Compat für statische Seiten & Ratgeber --- */
.prose .grid { display: grid; }
.prose .grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .prose .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .prose .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.prose .gap-3 { gap: 0.75rem; }
.prose .gap-4 { gap: 1rem; }
.prose .gap-6 { gap: 1.5rem; }
.prose .gap-12 { gap: 3rem; }
.prose .space-y-2 > * + * { margin-top: 0.5rem; }
.prose .space-y-4 > * + * { margin-top: 1rem; }
.prose .space-y-6 > * + * { margin-top: 1.5rem; }
.prose .space-y-8 > * + * { margin-top: 2rem; }
.prose .space-y-12 > * + * { margin-top: 3rem; }
.prose .p-4 { padding: 1rem; }
.prose .p-6 { padding: 1.5rem; }
.prose .p-8 { padding: 2rem; }
.prose .px-4 { padding-left: 1rem; padding-right: 1rem; }
.prose .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.prose .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.prose .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.prose .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.prose .pl-4 { padding-left: 1rem; }
.prose .pl-6 { padding-left: 1.5rem; }
.prose .pb-2 { padding-bottom: 0.5rem; }
.prose .pt-8 { padding-top: 2rem; }
.prose .m-0 { margin: 0; }
.prose .mb-0 { margin-bottom: 0; }
.prose .mb-2 { margin-bottom: 0.5rem; }
.prose .mb-3 { margin-bottom: 0.75rem; }
.prose .mb-4 { margin-bottom: 1rem; }
.prose .mb-6 { margin-bottom: 1.5rem; }
.prose .mb-8 { margin-bottom: 2rem; }
.prose .mb-10 { margin-bottom: 2.5rem; }
.prose .mb-12 { margin-bottom: 3rem; }
.prose .mt-2 { margin-top: 0.5rem; }
.prose .mt-8 { margin-top: 2rem; }
.prose .mt-12 { margin-top: 3rem; }
.prose .mt-16 { margin-top: 4rem; }
.prose .\!mt-0 { margin-top: 0 !important; }
.prose .ml-2 { margin-left: 0.5rem; }
.prose .my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.prose .my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.prose .my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.prose .my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.prose .rounded-lg { border-radius: 0.5rem; }
.prose .rounded-xl { border-radius: 0.75rem; }
.prose .rounded-2xl { border-radius: 1rem; }
.prose .rounded-3xl { border-radius: 1.5rem; }
.prose .rounded-full { border-radius: 9999px; }
.prose .border { border-width: 1px; border-style: solid; }
.prose .border-t { border-top: 1px solid #e2e8f0; }
.prose .border-b { border-bottom: 1px solid #e2e8f0; }
.prose .border-l-4 { border-left-width: 4px; border-left-style: solid; }
.prose .bg-white { background-color: #ffffff; }
.prose .bg-slate-50,
.prose .bg-gray-50 { background-color: #f8fafc; }
.prose .bg-blue-50 { background-color: #eff6ff; }
.prose .bg-indigo-50 { background-color: #eef2ff; }
.prose .bg-purple-50 { background-color: #faf5ff; }
.prose .bg-teal-50 { background-color: #f0fdfa; }
.prose .bg-amber-50 { background-color: #fffbeb; }
.prose .bg-green-50 { background-color: #f0fdf4; }
.prose .bg-yellow-50 { background-color: #fefce8; }
.prose .bg-red-50 { background-color: #fef2f2; }
.prose .border-gray-100,
.prose .border-slate-50 { border-color: #f1f5f9; }
.prose .border-gray-200,
.prose .border-slate-200 { border-color: #e2e8f0; }
.prose .border-blue-100 { border-color: #dbeafe; }
.prose .border-blue-500 { border-color: #3b82f6; }
.prose .border-indigo-100 { border-color: #e0e7ff; }
.prose .border-indigo-200 { border-color: #c7d2fe; }
.prose .border-dnaIndigo { border-color: #667eea; }
.prose .border-dnaIndigo\/20 { border-color: rgba(102, 126, 234, 0.2); }
.prose .border-teal-200 { border-color: #99f6e4; }
.prose .border-teal-500 { border-color: #14b8a6; }
.prose .border-amber-200 { border-color: #fde68a; }
.prose .border-amber-500 { border-color: #f59e0b; }
.prose .border-green-200 { border-color: #bbf7d0; }
.prose .border-green-500 { border-color: #22c55e; }
.prose .border-purple-100 { border-color: #f3e8ff; }
.prose .border-purple-500 { border-color: #a855f7; }
.prose .border-red-200 { border-color: #fecaca; }
.prose .border-red-500 { border-color: #ef4444; }
.prose .border-orange-200 { border-color: #fed7aa; }
.prose .border-orange-500 { border-color: #f97316; }
.prose .border-pink-200 { border-color: #fbcfe8; }
.prose .border-pink-500 { border-color: #ec4899; }
.prose .border-yellow-200 { border-color: #fef08a; }
.prose .border-yellow-500 { border-color: #eab308; }
.prose .text-dnaDark { color: #0f172a; }
.prose .text-dnaDark\/80 { color: rgba(15, 23, 42, 0.85); }
.prose .text-dnaIndigo { color: #667eea; }
.prose .text-dnaSlate,
.prose .text-slate-600 { color: #475569; }
.prose .text-teal-700,
.prose .text-teal-900 { color: #0f766e; }
.prose .text-red-700,
.prose .text-red-800,
.prose .text-red-900 { color: #b91c1c; }
.prose .text-blue-700,
.prose .text-blue-800,
.prose .text-blue-900 { color: #1d4ed8; }
.prose .text-amber-800,
.prose .text-amber-900 { color: #92400e; }
.prose .text-green-700,
.prose .text-green-800,
.prose .text-green-900 { color: #15803d; }
.prose .text-purple-800,
.prose .text-purple-900 { color: #6b21a8; }
.prose .text-indigo-800,
.prose .text-indigo-900 { color: #3730a3; }
.prose .italic { font-style: italic; }
.prose .font-bold { font-weight: 700; }
.prose .font-black { font-weight: 900; }
.prose .font-medium { font-weight: 500; }
.prose .text-xs { font-size: 0.75rem; }
.prose .text-sm { font-size: 0.875rem; }
.prose .text-lg { font-size: 1.125rem; }
.prose .text-xl { font-size: 1.25rem; }
.prose .text-2xl { font-size: 1.5rem; }
.prose .text-3xl { font-size: 1.875rem; }
.prose .uppercase { text-transform: uppercase; }
.prose .tracking-widest { letter-spacing: 0.1em; }
.prose .shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.prose .shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.prose .overflow-hidden { overflow: hidden; }
.prose .overflow-x-auto { overflow-x: auto; }
.prose .relative { position: relative; }
.prose .z-10 { position: relative; z-index: 10; }
.prose .flex { display: flex; }
.prose .items-center { align-items: center; }
.prose .list-disc { list-style-type: disc; }
.prose .list-decimal { list-style-type: decimal; }
.prose .w-8 { width: 2rem; }
.prose .h-8 { height: 2rem; }
.prose .w-full { width: 100%; }
.prose .max-w-xs { max-width: 20rem; }
.prose .text-center { text-align: center; }
.prose .text-left { text-align: left; }

