/* extra.css – Additional visual polish & micro-animations */

/* ---------- Bottom-right widget (scroll-to-top + theme toggle) ---------- */
.bottom-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    align-items: center;
    background: #232828;
    border: 1px solid #2e3636;
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.bottom-widget-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c9b9d;
    transition: background var(--transition), color var(--transition);
    padding: 0;
}

.bottom-widget-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.bottom-widget-btn svg {
    width: 16px;
    height: 16px;
}

.bottom-widget-divider {
    width: 1px;
    height: 20px;
    background: #2e3636;
    margin: 0 2px;
    flex-shrink: 0;
}

/* ---------- Theme Toggle ---------- */

/* ── Lang Picker ──────────────────────────────────────────── */
.lang-widget {
    position: relative;
}
.lang-btn {
    font-size: 17px;
    line-height: 1;
}
.lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #232828;
    border: 1px solid #2e3636;
    border-radius: 10px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.lang-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.lang-opt {
    background: transparent;
    border: none;
    color: #8c9b9d;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.12s, color 0.12s;
    width: 100%;
}
.lang-opt:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.lang-opt.active {
    color: #fff;
    font-weight: 600;
}
[data-theme="light"] .lang-dropdown {
    background: #f5f7f5;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
[data-theme="light"] .lang-opt {
    color: #555;
}
[data-theme="light"] .lang-opt.active {
    color: #222;
    font-weight: 600;
}
[data-theme="light"] .lang-opt:hover {
    background: rgba(0,0,0,0.06);
    color: #222;
}

/* ── Nav Search Button ─────────────────────────────────────── */
.nav-search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c9b9d;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-left: 0.25rem;
    padding: 0;
}
.nav-search-btn svg {
    width: 18px;
    height: 18px;
}
.nav-search-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ── Nav Search Overlay ────────────────────────────────────── */
.nav-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 72px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nav-search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.nav-search-panel {
    width: 100%;
    max-width: 640px;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
}
.nav-search-box {
    background: #1a1e1e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-search-results:not(:empty) + .nav-search-box,
.nav-search-panel:has(.nav-search-results:not(:empty)) .nav-search-box {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #8c9b9d;
}
#navSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    caret-color: var(--accent);
}
#navSearchInput::placeholder {
    color: #4a5656;
}
#navSearchClose {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c9b9d;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}
#navSearchClose svg { width: 16px; height: 16px; }
#navSearchClose:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Results list */
.nav-search-results {
    background: #1a1e1e;
    border: 1px solid rgba(255,255,255,0.12);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    max-height: 60vh;
    overflow-y: auto;
}
.nav-search-results:empty { display: none; }
.nav-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.nav-search-result-item:last-child { border-bottom: none; }
.nav-search-result-item:hover,
.nav-search-result-item:focus { background: rgba(255,255,255,0.06); outline: none; }
.nav-search-result-item[role="link"] { cursor: pointer; }
.nav-search-result-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    margin-top: 1px;
}
.nav-search-result-text {
    flex: 1;
    min-width: 0;
}
.nav-search-result-name {
    font-size: 0.95rem;
    color: #e0e8e0;
    font-weight: 500;
}
.nav-search-result-cat {
    font-size: 0.78rem;
    color: #8c9b9d;
    margin-top: 0.1rem;
}
.nav-search-result-more {
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: #5a6b6b;
    transition: background 0.15s, color 0.15s;
}
.nav-search-result-item:hover .nav-search-result-more {
    background: rgba(255,255,255,0.08);
    color: #c8d4d4;
}
.nav-search-result-more:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}
.nav-search-result-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #4a5656;
    font-size: 0.9rem;
}

/* Nav always dark regardless of theme */
.nav {
    background: rgba(26, 30, 30, 0.92) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.nav.scrolled {
    background: rgba(26, 30, 30, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
}
/* Brand pushes all other items to the right */
.nav-brand {
    color: #fff !important;
    margin-right: auto;
}
/* Nav-inner: no space-between, let brand's margin-right: auto do the work */
.nav-inner {
    justify-content: flex-start !important;
    gap: 0.25rem;
}
.nav-links a {
    color: #8c9b9d !important;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff !important;
    background: rgba(255,255,255,0.06) !important;
}
/* old nav-cta inside nav-links – no longer used */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #000 !important; }

/* Spenden button standalone (outside nav-links) */
a.nav-cta-standalone {
    color: #000 !important;
    background: var(--accent) !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 0.25rem !important;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}
a.nav-cta-standalone:hover {
    background: var(--accent-hover) !important;
    color: #000 !important;
    transform: translateY(-1px);
}
/* hamburger always last */
.nav-toggle {
    order: 99;
    margin-left: 0.25rem;
}
.nav-toggle span {
    background: #fff !important;
}
/* Mobile: hide standalone Spenden (shown in desktop nav only) */
@media (max-width: 768px) {
    a.nav-cta-standalone {
        display: none !important;
    }
}
/* Desktop: hide mobile-only Spenden inside nav-links */
@media (min-width: 769px) {
    a.nav-cta-mobile {
        display: none !important;
    }
}
:root[data-theme="light"] .card.glass {
    background: var(--bg-card);
    border-color: var(--border);
}
:root[data-theme="light"] .hero {
    background: linear-gradient(135deg, #e4ece4 0%, #f2f5f2 100%);
}
:root[data-theme="light"] .section-alt {
    background: var(--bg-surface);
}
:root[data-theme="light"] code,
:root[data-theme="light"] pre {
    background: var(--bg-code);
    border-color: var(--border);
}

/* ---------- Scroll reveal animations ---------- */
.card,
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.6s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.05s;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.15s;
}

.card:nth-child(4) {
    animation-delay: 0.2s;
}

.card:nth-child(5) {
    animation-delay: 0.25s;
}

.card:nth-child(6) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Smooth gradient border on card hover ---------- */
.card.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.glass {
    position: relative;
    overflow: hidden;
}

.card.glass:hover::before {
    opacity: 1;
}

/* ---------- Nav active link indicator ---------- */
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---------- Focus states for accessibility ---------- */
.btn:focus-visible,
.dns-tab:focus-visible,
.nav-links a:focus-visible,
.code:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---------- Selection color ---------- */
::selection {
    background: rgba(103, 140, 82, 0.3);
    color: #fff;
}

/* ---------- Subtle glow behind section titles ---------- */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 3px;
    margin-top: 0.5rem;
}

/* ---------- Mobile nav toggle animation ---------- */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Footer support box ---------- */
.footer-support-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.footer-support-heart {
    width: 52px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(103,140,82,0.35));
}
.footer-support-text {
    flex: 1;
    min-width: 200px;
}
.footer-support-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-desc);
    font-size: 0.9rem;
}
.footer-support-text p:first-child {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}
.footer-support-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .footer-support-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }
    .footer-support-btn { width: 100%; justify-content: center; }
}

/* ---------- Hover underline effect on footer links ---------- */
.footer-col a {
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

/* ---------- Back to top indicator on scroll ---------- */
.nav-brand img {
    transition: transform 0.3s ease;
}

.nav.scrolled .nav-brand img {
    transform: rotate(-5deg) scale(0.95);
}



/* ---------- DNS tab active transition ---------- */
.dns-tab {
    position: relative;
}

.dns-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

/* ---------- Animated gradient separator ---------- */
.section+.section-alt::before,
.section-alt+.section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), rgba(103, 140, 82, 0.15), var(--border), transparent);
}
#services::before { display: none; }

/* ---------- Code hover glow ---------- */
.code:hover {
    box-shadow: 0 0 0 1px rgba(103, 140, 82, 0.1);
}

/* ---------- Status item animation ---------- */
.status-count {
    transition: transform 0.3s ease;
}

.status-item:hover .status-count {
    transform: scale(1.05);
}

/* ---------- Feature card icon bounce on hover ---------- */
.feature-card:hover .feature-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* ---------- Print styles ---------- */
@media print {

    .nav,
    .hero-bg,
    .nav-toggle {
        display: none;
    }

    .hero {
        padding-top: 2rem;
        min-height: auto;
    }

    body {
        background: #fff;
        color: #333;
    }

    .card.glass {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ---------- Clickable Pill (links) ---------- */
.pill-link {
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.pill-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* ---------- Navigation Glassmorphism Overrides ---------- */
.nav {
    background: rgba(26, 30, 30, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav.scrolled {
    background: rgba(26, 30, 30, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ---------- Search and Filter Inputs Styling ---------- */
input.code, select.code {
    color: var(--text-primary);
    font-family: var(--font-sans);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background-color: var(--bg-code);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

input.code:focus, select.code:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(103, 140, 82, 0.2);
    background-color: var(--bg-hover);
}

select.code {
    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='%23678c52' 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 1rem center;
    background-size: 1.1em;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

/* ---------- Blog Post Grid ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ---------- Post Card Image Hover Effect ---------- */
.card.glass img {
    transition: transform var(--transition);
}

.card.glass:hover img {
    transform: scale(1.04);
}

/* ---------- Post Metadata ---------- */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---------- Article Detail Page & Typography ---------- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-desc);
    margin-top: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    position: relative;
}

.article-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -1px;
    left: 0;
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content h4 {
    font-size: 1.1rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(14, 14, 14, 0.6);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-desc);
    font-style: italic;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content pre {
    background: #050505;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.article-content pre code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    word-break: normal;
    white-space: pre;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    background: #0d110c;
    border: 1px solid rgba(103, 140, 82, 0.25);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--accent-hover);
    word-break: break-all;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}
/* Account page icons: preserve WP-specified height regardless of flex context */
.article-content[data-page-slug="account"] img[src*="/2024/01/account"] {
    height: 64px !important;
    width: auto !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Screenshots (typically larger than 200 px height attribute) get a frame.
   Small icons (height attr ≤ 100) stay unframed so they look like on the WP page. */
.article-content img:not([style*="height:50px"]):not([style*="height:80px"]):not([style*="height: 50px"]) {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* WP float alignment – service detail pages use alignright thumbnails */
.article-content img.alignright,
.article-content .wp-caption.alignright {
    float: right;
    max-width: 160px;
    width: auto;
    margin: 0.25rem 0 1.25rem 1.75rem !important;
    clear: right;
}
.article-content img.alignleft,
.article-content .wp-caption.alignleft {
    float: left;
    max-width: 160px;
    width: auto;
    margin: 0.25rem 1.75rem 1.25rem 0 !important;
    clear: left;
}
.article-content img.aligncenter {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none;
}
/* clearfix so floated thumbnails don't overflow the article */
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

/* hide empty card-content blocks (WP sometimes leaves them empty) */
.article-content .card-content:not(:has(p, ul, ol, h1, h2, h3, h4, h5, h6, img, a, code, strong, em)) {
    display: none;
}
/* WP Features / card-content block (triple-nested in old WP pages) */
.article-content .card-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
/* flatten inner nesting — keep border/bg gone but allow content spacing */
.article-content .card-content .card-content,
.article-content .card-content .card-content .card-content {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}
/* lists inside card-content */
.article-content .card-content ul,
.article-content .card-content ol {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0.5rem 0 0;
}
.article-content .card-content ol {
    list-style: decimal;
}
.article-content .card-content li {
    line-height: 1.75;
    margin-bottom: 0.2rem;
}
/* "Features" heading inside card-content */
.article-content .card-content p:first-child strong u,
.article-content .card-content p:first-child strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
/* key: value lines inside the features block */
.article-content .card-content p {
    margin-bottom: 0;
    line-height: 2;
}
.article-content .card-content code {
    background: rgba(103, 140, 82, 0.12);
    border-color: rgba(103, 140, 82, 0.2);
    color: var(--accent-hover);
}
.page-logos .article-content img {
    border: none !important;
    box-shadow: none !important;
}
.page-logos .article-content .wp-caption {
    width: auto !important;
    max-width: 100%;
}
.page-logos .article-content .wp-caption-text {
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Bilder mit Auto-Anpassung der Höhe → kleine WP-Icons (z. B. Account.png 50px) */
.article-content figure {
    margin: 1.5rem 0;
}

.article-content figure.is-resized img,
.article-content figure.aligncenter img,
.article-content figure.alignleft img,
.article-content figure.alignright img {
    margin: 0;
}

/* Inline SVG icons in WP content (Kontakt, etc.) — constrain size & tint */
.article-content svg {
    width: 40px;
    height: 40px;
    max-width: 100%;
    color: var(--accent);
    display: block;
}

/* ============================================
   Kadence Row Layout (used on Account, etc.)
   ============================================ */
.article-content .kb-row-layout-wrap {
    margin: 2rem 0;
}

.article-content .kt-row-column-wrap {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

.article-content .kt-row-column-wrap.kt-has-2-columns { grid-template-columns: repeat(2, 1fr); }
.article-content .kt-row-column-wrap.kt-has-3-columns { grid-template-columns: repeat(3, 1fr); }
.article-content .kt-row-column-wrap.kt-has-4-columns { grid-template-columns: repeat(4, 1fr); }
.article-content .kt-row-column-wrap.kt-has-5-columns { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
    .article-content .kt-row-column-wrap.kt-has-3-columns,
    .article-content .kt-row-column-wrap.kt-has-4-columns,
    .article-content .kt-row-column-wrap.kt-has-5-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .article-content .kt-row-column-wrap {
        grid-template-columns: 1fr !important;
    }
}

.article-content .wp-block-kadence-column {
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), transform var(--transition);
}

.article-content .wp-block-kadence-column:hover {
    border-color: rgba(103, 140, 82, 0.35);
}

.article-content .wp-block-kadence-column .kt-inside-inner-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    flex: 1;
}

.article-content .wp-block-kadence-column figure {
    margin: 0;
    text-align: center;
}

.article-content .wp-block-kadence-column img {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.article-content .wp-block-kadence-column .wp-block-kadence-advancedheading {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-content .wp-block-kadence-advancedbtn {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    justify-content: center;
}

/* Kadence button — styled like our btn-primary */
.article-content .kb-button,
.article-content a.kb-button,
.article-content .kt-button,
.article-content a.kt-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.article-content .kb-button:hover,
.article-content a.kb-button:hover,
.article-content .kt-button:hover,
.article-content a.kt-button:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(103, 140, 82, 0.25);
}

.article-content .kb-button .kb-svg-icon-wrap svg,
.article-content .kt-button .kb-svg-icon-wrap svg {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
    margin: 0 !important;
}

/* Single image blocks in WP content (figures with is-resized for height:50px icons) */
.article-content .wp-block-image figure {
    margin: 1rem auto;
}

.article-content figure.aligncenter {
    text-align: center;
}

.article-content figure.aligncenter img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ─── Kadence Info-Box (Kontakt, Chat, Impressum …) ─── */
.article-content .wp-block-kadence-infobox {
    margin: 0.75rem 0;
}

/* Main card — clean card, no outer frame */
.article-content .kt-blocks-info-box-link-wrap,
.article-content .info-box-link {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
    background: var(--bg-card-inner) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 1.5rem 2rem !important;
    text-decoration: none !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    max-width: 100% !important;
    transition: background 0.2s !important;
}

.article-content .kt-blocks-info-box-link-wrap:hover,
.article-content .info-box-link:hover {
    background: var(--bg-hover) !important;
}

/* media-align-top variant (Chat-Page) */
.article-content .kt-blocks-info-box-media-align-top {
    align-items: center !important;
}

/* ─── Icon container: NO background, NO border — icon only ─── */
.article-content .kt-blocks-info-box-media-container,
.article-content .kt-blocks-info-box-media,
.article-content .kadence-info-box-icon-container,
.article-content .kadence-info-box-icon-inner-container {
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.article-content .kt-blocks-info-box-media .kt-info-svg-icon,
.article-content .kb-svg-icon-wrap,
.article-content .kt-info-svg-icon {
    font-size: 40px !important;
    display: inline-flex !important;
    color: var(--accent) !important;
    fill: var(--accent) !important;
}

.article-content .kt-blocks-info-box-media svg,
.article-content .kt-info-svg-icon svg,
.article-content .kb-svg-icon-wrap svg {
    width: 40px !important;
    height: 40px !important;
    color: var(--accent) !important;
    /* fill="currentColor" SVGs (chat icon) use color; fill="none" SVGs (mail) use stroke */
    fill: currentColor !important;
    stroke: currentColor !important;
    margin: 0 !important;
}

/* Mail icon has fill="none" stroke="currentColor" — restore none for its fill paths */
.article-content .kb-svg-icon-fe_mail svg {
    fill: none !important;
}

/* ─── When info-box has a real logo image (Chat page) ─── */
.article-content .kt-blocks-info-box-image-inner-intrisic-container,
.article-content .kadence-info-box-image-intrisic,
.article-content .kadence-info-box-image-inner-intrisic {
    display: inline-block !important;
    width: auto !important;
    max-width: 96px !important;
    margin: 0 !important;
}

.article-content .kt-info-box-image,
.article-content .kt-blocks-info-box-media img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 8px;
    margin: 0 !important;
    border: none;
    box-shadow: none !important;
    display: block;
}

/* Drop the accent-dim wrapper when real logo is present (no double frame) */
.article-content .kt-blocks-info-box-media-container:has(.kt-info-box-image),
.article-content .kt-blocks-info-box-media:has(.kt-info-box-image) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ─── Text content area ─── */
.article-content .kt-infobox-textcontent {
    flex: 1;
    min-width: 0;
    text-align: left !important;
}

.article-content .kt-infobox-textcontent .kt-blocks-info-box-text {
    text-align: left;
}

/* QR codes centered */
.article-content .kt-infobox-textcontent img {
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
    margin: 0.75rem auto 0 !important;
    display: block;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: none !important;
}

.article-content .kt-blocks-info-box-text {
    margin: 0 !important;
    color: var(--text-secondary) !important;
    line-height: 1.7;
}

.article-content .kt-blocks-info-box-text strong {
    color: var(--text-primary);
}

.article-content .kt-blocks-info-box-title,
.article-content h2.kt-blocks-info-box-title,
.article-content h3.kt-blocks-info-box-title {
    color: var(--text-primary) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.25rem 0 !important;
    padding: 0 !important;
    border: none !important;
}

.article-content .kt-blocks-info-box-title::after {
    display: none;
}

.article-content .kt-blocks-info-box-text {
    color: var(--text-desc) !important;
    margin: 0 !important;
}

.article-content .kt-blocks-info-box-learnmore {
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    padding: 0.3rem 0 0 0 !important;
    margin: 0.4rem 0 0 0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.article-content .kt-blocks-info-box-learnmore:hover {
    color: var(--accent-hover, var(--accent)) !important;
    text-decoration: underline;
}

/* ---------- Custom 2-column override for Passkey steps ---------- */
.article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 560px) {
    .article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) {
        grid-template-columns: 1fr !important;
    }
}

.article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) .wp-block-kadence-column {
    padding: 1.5rem !important;
}

@media (min-width: 561px) {
    .article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) .wp-block-kadence-column {
        min-height: 380px;
    }
}

/* Align and constrain screenshots horizontally on one line */
.article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) .kt-inside-inner-col .wp-block-image {
    margin-top: auto !important;
    width: 100% !important;
    height: 240px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.article-content .kt-row-column-wrap:has(img[src*="Passkey_"]) .kt-inside-inner-col .wp-block-image img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ─── Account page: 4 round icon images — klein + kein Rahmen ─── */
.article-content[data-page-slug="account"] .kt-has-4-columns img[src*="account"] {
    height: 64px !important;
    width: auto !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 0 0.5rem !important;
    cursor: default !important;
}

/* WP forms (contact form, etc.) */
.article-content form {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-content form label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.article-content form p {
    margin-bottom: 0;
}

.article-content input[type="text"],
.article-content input[type="email"],
.article-content input[type="url"],
.article-content input[type="search"],
.article-content input[type="tel"],
.article-content input[type="number"],
.article-content input[type="password"],
.article-content textarea,
.article-content select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.article-content input:focus,
.article-content textarea:focus,
.article-content select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(103, 140, 82, 0.15);
}

.article-content textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-sans);
    line-height: 1.6;
}

.article-content button,
.article-content input[type="submit"] {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.article-content button:hover,
.article-content input[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(103, 140, 82, 0.25);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color var(--transition);
}

.article-content a:hover {
    color: var(--accent-hover);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-content th,
.article-content td {
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content th {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: rgba(103, 140, 82, 0.02);
}

.article-content tr:hover {
    background: rgba(103, 140, 82, 0.05);
}/* extra.css – adminForge specific refinements */

/* Card Icon Styling */
.card-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    border: 1px solid rgba(103, 140, 82, 0.2);
}

.card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Ensure all buttons are equal */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 120px;
}

/* Category Headers */
.category-header {
    margin-bottom: 2rem;
    margin-top: 4rem;
    color: var(--text-primary);
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-header span {
    font-size: clamp(1rem, 4vw, 1.5rem);
    flex-shrink: 0;
}

/* Responsive Grid Tweaks */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Legend Styling */
.legend p {
    margin: 0.2rem 0;
}

.stats p {
    margin: 0.2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card {
    opacity: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.news-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Clickable Cards (Landing News & Blog Feed Cards) */
.clickable-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    position: relative;
}

/* Hover effects inside clickable-card */
.clickable-card:hover .btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.clickable-card:hover .card-title {
    color: var(--accent) !important;
}

.clickable-card:hover img {
    transform: scale(1.04);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    text-align: left;
}

/* ---------- Lightbox Overlay ---------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 5rem 5rem 3rem;
    gap: 1rem;
}
/* backdrop-filter on pseudo-element so it doesn't create a new containing block
   for position:fixed children (close button + arrows must stay fixed on scroll) */
.lightbox-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    user-select: none;
    z-index: 10001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
}

.lightbox-counter {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.5rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    flex-shrink: 0;
    transition: background 0.2s;
    font-size: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}
.lightbox-prev::before,
.lightbox-next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    flex-shrink: 0;
}
.lightbox-prev::before { transform: rotate(-135deg) translate(-2px, 2px); }
.lightbox-next::before { transform: rotate(45deg) translate(-2px, 2px); }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 600px) {
    .lightbox-overlay {
        padding: 5rem 0.5rem 3rem;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .lightbox-prev { left: 0.25rem; }
    .lightbox-next { right: 0.25rem; }
}

/* Search clear button (×) inside search inputs */
.search-clear-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.search-clear-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* Zoom cursor for expandable images */
.article-content img:not([style*="height:50px"]):not([style*="height:80px"]):not([style*="height: 50px"]):not(.copy-icon):not(.check-icon),
.app-screenshot {
    cursor: zoom-in;
}

/* Disable zoom cursor for news post detail images */
.post-content-area img {
    cursor: default !important;
}

/* Disable zoom/pointer cursor for donation page images */
.page-unterstuetzen img {
    cursor: default !important;
}

/* Outro-Karte (Herz + Dankestext): alles zentriert */
.page-unterstuetzen-container .card.glass:last-child .article-content {
    text-align: center;
}

/* Disable zoom cursor on service detail pages and in modal */
.page-service-detail img,
#service-modal-overlay img {
    cursor: default !important;
}

/* Disable zoom cursor only for magazine covers on press page */
.presse-cover {
    cursor: default !important;
}

/* Disable zoom cursor on chat page */
.chat-list img {
    cursor: default !important;
}

/* ---------- Presse Page Modernization ---------- */
.presse-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.presse-item-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
}

.presse-cover-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.presse-cover {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}

.presse-content-col {
    display: flex;
    flex-direction: column;
}

.presse-scans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.presse-scan-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card-inner);
    transition: border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.presse-scan-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    display: block;
    cursor: zoom-in;
    transition: filter var(--transition);
}

.presse-scan-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(103, 140, 82, 0.15);
}

.presse-scan-caption {
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
    transition: color var(--transition);
}

.presse-scan-card:hover .presse-scan-caption {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .presse-item-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .presse-cover-col {
        margin-bottom: 0.5rem;
    }
    
    .presse-cover {
        max-width: 160px;
    }
    
    .presse-scans-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .presse-scan-card img {
        height: 180px;
    }
}

/* Disable card hover animations and border glows on the press page */
.presse-list .card:hover {
    transform: none;
}

.presse-list .card.glass:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.presse-list .card.glass:hover::before {
    opacity: 0;
}

/* Disable image hover scaling on the press page */
.presse-list .card.glass:hover img,
.presse-cover:hover,
.presse-scan-card:hover img {
    transform: none !important;
}
/* ── Chat Services Page ──────────────────────────────────── */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.chat-item-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    align-items: start;
}

.chat-logo-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.25rem;
}

.chat-service-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.chat-content-col {
    display: flex;
    flex-direction: column;
}

.chat-qr-wrap {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    margin: 0 auto;
}

.chat-qr {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    cursor: default;
}

.chat-qr-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-align: center;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 560px) {
    .chat-item-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .chat-logo-col {
        justify-content: flex-start;
    }
}

/* Disable default card hover glow and image zoom on chat list */
.chat-list .card:hover { transform: none; }
.chat-list .card.glass:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.chat-list .card.glass:hover::before { opacity: 0; }
.chat-list .card.glass:hover img { transform: none !important; }

/* Disable card hover animations and border glows on the donation page cards */
.page-unterstuetzen-container .card.glass:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border) !important;
}
.page-unterstuetzen-container .card.glass:hover::before {
    opacity: 0 !important;
}
.page-unterstuetzen-container .card.glass:hover img {
    transform: none !important;
}

/* Stacking of Payment Methods */
.donation-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* PayPal + Wero nebeneinander */
.donation-pair-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.donation-pair-row .card.glass {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.donation-pair-row .card.glass .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.donation-pair-row .card.glass .card-body p:last-child {
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 640px) {
    .donation-pair-row {
        grid-template-columns: 1fr;
    }
}


/* Limit size of payment QR codes inside cards */
.donation-methods-grid img {
    max-width: 200px !important;
    height: auto !important;
    display: block;
    margin: 1.25rem auto !important;
    border-radius: var(--radius-sm);
}

/* Overrides for blockquote on supports page */
.page-unterstuetzen blockquote {
    background: var(--bg-card-inner) !important;
    border-left: 4px solid var(--accent) !important;
    font-style: normal !important;
    margin: 1.25rem 0 !important;
    padding: 1.25rem !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.page-unterstuetzen blockquote p:first-child {
    flex: 1 !important;
    margin: 0 !important;
}

.page-unterstuetzen blockquote p:last-child {
    flex-shrink: 0 !important;
    margin: 0 !important;
    text-align: right !important;
}

.page-unterstuetzen blockquote img {
    max-width: 160px !important;
    height: auto !important;
    margin: 0 !important;
}

@media (max-width: 560px) {
    .page-unterstuetzen blockquote {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .page-unterstuetzen blockquote p:last-child {
        align-self: center !important;
    }
}

/* ── Goals months grid (replaces WP table) ────────────────── */
.goals-months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.goals-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.goals-month--done {
    border-color: var(--accent);
    background: var(--accent-dim);
}
.goals-month-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.goals-month-status {
    font-size: 1.1rem;
    line-height: 1;
}
@media (max-width: 600px) {
    .goals-months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ── News Pagination ──────────────────────────────────────── */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}
.pagination-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}
.pagination-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    cursor: default;
}
.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pagination-ellipsis {
    min-width: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    user-select: none;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.footer-giebel-link {
    color: #41c0f0 !important;
}

/* ── Zammad Contact Form ──────────────────────────────────── */
.zammad-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
}
.zf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.zf-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.zf-field label span {
    color: var(--accent);
}
.zf-field input,
.zf-field select,
.zf-field textarea {
    padding: 0.75rem 1rem;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.zf-field input:focus,
.zf-field select:focus,
.zf-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(103,140,82,0.18);
}
.zf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23678c52' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.zf-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}
.zf-error {
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.3);
}
.zf-success {
    color: #a3d977;
    background: rgba(103,140,82,0.12);
    border: 1px solid rgba(103,140,82,0.35);
}
.zammad-form .btn-primary {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.zammad-form .btn-primary:hover { background: var(--accent-hover); }
.zammad-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.zf-captcha input[type="number"] {
    max-width: 120px;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}
.zf-captcha label {
    font-size: 0.88rem;
}

/* Center donation/support banner content */
.article-content table:has(img[src*="herz"]) td,
.article-content table:has(.wp-image-10681) td,
.article-content table:has(.wp-image-10680) td {
    text-align: center;
}

.article-content table:has(img[src*="herz"]) img,
.article-content table:has(.wp-image-10681) img,
.article-content table:has(.wp-image-10680) img,
.article-content img[src*="herz"],
.article-content img.wp-image-10681,
.article-content img.wp-image-10680 {
    display: block;
    margin: 1rem auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: default !important;
}

/* Center aligned images standard helper */
.article-content img.aligncenter,
.article-content .aligncenter img,
.article-content .aligncenter {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Pill brand icons */
.pill-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ── Hero dark secondary button ─────────────────────── */
.btn-hero-dark {
    background: #2e3535;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="light"] .btn-hero-dark {
    background: rgba(0,0,0,0.13);
    border: none;
}
.btn-hero-dark:hover {
    background: #3a4242;
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
[data-theme="light"] .btn-hero-dark:hover {
    background: rgba(0,0,0,0.22);
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ── Hero Follow Box ─────────────────────────────────── */
.hero-follow-box {
    margin-top: 2.5rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.hero-follow-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(103, 140, 82, 0.25);
    background: linear-gradient(135deg, rgba(103,140,82,0.07) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    text-align: center;
}
.hero-follow-box-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
    opacity: 0.85;
}
.hero-follow-box-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.hero-follow-box-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.3rem 0 0;
}
.hero-follow-box-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-follow-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.hero-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.hero-follow-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(103,140,82,0.2);
}
.hero-follow-img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: brightness(0) invert(1) opacity(0.55);
    transition: filter var(--transition);
}
.hero-follow-btn:hover .hero-follow-img {
    filter: brightness(0) invert(1) opacity(1) sepia(1) saturate(3) hue-rotate(60deg);
}
@media (max-width: 480px) {
    .hero-follow-box-inner { padding: 1.25rem 1.25rem; }
}

/* Innere Seiten (kein Hero): content-section muss die fixe Navbar freistellen */
body.no-hero #content-section {
    padding-top: calc(var(--nav-height) + 2rem);
}

@media (max-width: 768px) {
    body.no-hero #content-section {
        padding-top: calc(var(--nav-height) + 1.5rem);
    }
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Logo zentriert */
.service-icon-center {
    margin-left: auto;
    margin-right: auto;
}

/* Titel-Zeile: nur noch Überschrift */
.service-title-row {
    margin-bottom: 0.5rem;
}

.service-title-row .card-title {
    margin-bottom: 0;
}

/* Mehr-lesen-Badge: Fahne bündig in der oberen rechten Kartenecke */
.service-more-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.65rem;
    border: none;
    border-radius: 0 var(--radius-lg) 0 var(--radius-md);
    background: var(--bg-hover);
    transition: color var(--transition), background var(--transition);
    z-index: 1;
}

.service-more-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.service-card.has-more {
    cursor: pointer;
}

.service-card.has-more:hover .service-more-btn {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Grüner Dienst-Button: volle Kartenbreite = alle automatisch gleich breit */
.service-btn-row {
    margin-top: auto;
    padding-top: 0.75rem;
}

.service-btn-row .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

/* Hero pills – kompaktere Darstellung auf kleinen Displays */
@media (max-width: 480px) {
    .hero-tags .pill {
        padding: 0.25rem 0.55rem;
        font-size: 0.75rem;
    }
    .hero-tags .pill-icon {
        width: 12px;
        height: 12px;
    }
}

/* Kompaktere Buttons in der Mobile-Ansicht */
@media (max-width: 768px) {
    .hero-actions {
        gap: 0.75rem;
    }
    .hero-actions .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        gap: 0.5rem;
    }
    .hero-actions .btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    .hero-actions .btn svg {
        width: 16px;
        height: 16px;
    }
}/* Remove spin buttons from the captcha number input */
#zf-captcha::-webkit-outer-spin-button,
#zf-captcha::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#zf-captcha {
    -moz-appearance: textfield;
}

/* ════════════════════════════════════════════════════
   CSP inline-style migration – all style="" attrs moved here
   ════════════════════════════════════════════════════ */

/* ── Section padding variants ── */
.section-sm        { padding-top: 1rem;  padding-bottom: 2rem; }
.section-flush-top { padding-top: 0;     padding-bottom: 2rem; }
.section-std       { padding-top: 2rem;  padding-bottom: 2rem; }

/* ── News card animation delays ── */
.fade-in-0 { animation-delay: 0s; }
.fade-in-1 { animation-delay: 0.15s; }
.fade-in-2 { animation-delay: 0.3s; }

/* ── News card title ── */
.news-card-title {
    margin-top: 0.4rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color var(--transition);
}

/* ── Services toolbar ── */
.services-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
.legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.stats {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.stat-value { color: var(--text-primary); font-weight: 600; }

/* ── Services / news search ── */
#services-search-wrap { margin: 0 0 2rem; padding: 0 1rem; }
#services-search-empty {
    display: none;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 0.95rem;
}
.search-input-wrap { position: relative; }
.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.search-field {
    width: 100%;
    padding: 0.75rem 2.4rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}
/* Override .search-clear-btn default to hidden; JS shows it via style.display */
.search-clear-btn { display: none; }

/* ── Loading / empty state ── */
.loading-text { color: var(--text-muted); text-align: center; padding: 2rem 0; }
.empty-state-body { text-align: center; padding: 3rem 0; }

/* ── Support / accent card ── */
.accent-card { background: var(--accent-dim) !important; border-color: var(--accent) !important; }
.accent-card-body { text-align: center; padding: 2.5rem 1.5rem; }
.support-heart {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(103,140,82,0.35));
}
.support-heading {
    max-width: 900px;
    margin: 0 auto 0.5rem;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
}
.support-desc {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

/* ── Info banner (offline / mock mode) ── */
.info-banner-card {
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent) !important;
    background: rgba(103, 140, 82, 0.05) !important;
}
.info-banner-body  { padding: 1.25rem; }
.info-banner-title { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; color: var(--accent); }
.info-banner-desc  { margin-bottom: 0; font-size: 0.88rem; }

/* ── Blog search form ── */
.blog-search-form       { margin-bottom: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.blog-search-input-wrap { flex: 1; min-width: 260px; position: relative; }
.blog-search-input      { padding: 0.75rem 2.4rem 0.75rem 2.4rem; width: 100%; border-radius: var(--radius-md); box-sizing: border-box; }
.blog-cat-select        { padding: 0.75rem 1rem; cursor: pointer; border-radius: var(--radius-md); min-width: 180px; height: 100%; }
.blog-submit-hidden     { display: none; }

/* ── Post cards ── */
.post-card-img-wrap {
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #000;
}
.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.post-card-placeholder {
    height: 120px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #050505 0%, rgba(103, 140, 82, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-card-placeholder-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.post-card-link  { height: 100%; }
.post-card-body  { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card-title { font-size: 1.2rem; line-height: 1.4; margin-bottom: 0.75rem; color: var(--text-primary); transition: color var(--transition); }
.post-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-tags   { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.pill-accent-sm   { font-size: 0.75rem !important; padding: 0.2rem 0.6rem !important; color: var(--accent) !important; border-color: var(--accent-dim) !important; }

/* ── Pagination (simple SSR variant) ── */
.pagination-simple { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.btn-disabled      { opacity: 0.4; cursor: not-allowed; }
.pagination-info   { font-size: 0.9rem; color: var(--text-muted); }
.pagination-bar    { margin-top: 3rem; }

/* ── Post / page header ── */
.post-header    { margin-bottom: 2.5rem; }
.post-meta-lg   { margin-bottom: 1rem !important; font-size: 0.95rem !important; }
.page-title     { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; color: var(--text-primary); margin-bottom: 1.5rem; }
.post-tags-row  { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pill-accent    { color: var(--accent) !important; border-color: var(--accent-dim) !important; }
.pill-muted     { color: var(--text-muted) !important; border-color: rgba(255,255,255,0.06) !important; }
.post-nav-footer    { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; }
.service-nav-footer { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ── Kommentare ── */
.comments-wrap { padding: 0; margin-top: 2rem; }
.comments-header { margin-bottom: 0.75rem; padding-bottom: 0; border-bottom: none; }
.comments-count-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.comments-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.comments-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0.25rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: color var(--transition);
}
.comments-tab-btn:hover {
    color: var(--text-primary);
}
.comments-tab-btn.active {
    color: var(--accent);
}
.comments-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}
.tab-badge {
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    margin-left: 0.25rem;
    border: 1px solid var(--border);
}
.comments-tab-btn.active .tab-badge {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(103, 140, 82, 0.3);
}

.comments-list { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.comments-list-hidden { display: none !important; }
.comment-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.comment-item--reply {
    padding-left: 1.25rem;
    border-left: 2px solid var(--border);
}
@media (min-width: 640px) {
    .comment-item--reply.comment-item--depth-1 { margin-left: 2rem; }
    .comment-item--reply.comment-item--depth-2 { margin-left: 4rem; }
    .comment-item--reply.comment-item--depth-3 { margin-left: 6rem; }
}

.comment-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-author { font-size: 0.875rem; color: var(--text-primary); font-weight: 700; }
.comment-meta-sep { font-size: 0.75rem; color: var(--text-muted); opacity: 0.5; }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-content { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.comment-content p { margin: 0 0 0.5rem; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: 0.5rem; }
.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color var(--transition);
}
.comment-reply-btn:hover {
    color: var(--accent);
}

.comments-empty {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-reply-parent-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.comment-reply-parent-banner strong {
    color: var(--accent);
}
.comment-reply-cancel-btn {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: underline;
}

.comments-form-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.comment-form-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-input, .comment-textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition);
}
.comment-input:focus, .comment-textarea:focus { outline: none; border-color: var(--accent); }
.comment-textarea { resize: vertical; min-height: 6rem; margin-bottom: 0.75rem; }
.comment-form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.comment-form-msg { font-size: 0.8rem; }
.comment-form-msg--ok  { color: var(--accent); }
.comment-form-msg--err { color: #f87171; }
@media (max-width: 600px) {
    .comment-form-row { flex-direction: column; }
}

/* ── Service Detail Hero ── */
.service-detail-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.25rem;
}
.service-detail-logo {
    width: 64px;
    height: 64px;
    box-sizing: content-box;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    padding: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.service-detail-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}
.service-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}
.service-detail-url {
    align-self: flex-start;
    font-size: 0.85rem;
}
.service-detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.svc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.svc-badge-ha {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.svc-badge-sso {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
@media (max-width: 480px) {
    .service-detail-hero { gap: 1rem; }
    .service-detail-logo { width: 56px; height: 56px; }
    .service-detail-title { font-size: 1.4rem; }
}
.error-card  { margin-top: 2rem; }
.error-title { color: var(--red); }

/* ── App page ── */
.app-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--border);
}
.app-hero-text    { flex: 1; min-width: 280px; }
.app-pill-row     { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.pill-badge       { color: var(--text-secondary) !important; border-color: var(--border) !important; font-size: 0.8rem !important; display: inline-flex !important; align-items: center; gap: 0.4rem; }
.pill-app-badge   { margin-bottom: 1.25rem; display: inline-block; color: var(--accent) !important; border-color: var(--accent-dim) !important; font-size: 0.8rem !important; letter-spacing: 0.05em; }
.app-hero-title   { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; color: var(--text-primary); margin: 0 0 1rem; }
.text-accent      { color: var(--accent); }
.app-hero-desc    { font-size: 1.1rem; line-height: 1.7; color: var(--text-desc); margin: 0 0 2rem; max-width: 520px; }
.btn-row          { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-icon         { display: inline-flex !important; align-items: center; gap: 0.6rem; }
.app-warn-text    { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-muted); }
.link-accent      { color: var(--accent); }
.phone-mockup-col { flex-shrink: 0; position: relative; margin-right: 2rem; }
.phone-frame {
    width: 160px;
    height: 340px;
    border: 3px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 6px rgba(103,140,82,0.08), 0 20px 60px rgba(0,0,0,0.7);
    position: relative;
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background: #111;
    border-radius: 0 0 6px 6px;
    z-index: 2;
}
.screenshot-fill { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-secondary {
    position: absolute;
    bottom: -10px;
    right: -24px;
    width: 110px;
    height: 235px;
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    opacity: 0.75;
    box-shadow: 0 0 0 4px rgba(103,140,82,0.06), 0 12px 40px rgba(0,0,0,0.6);
}
.section-block-lg  { margin-top: 3.5rem; }
.section-block-xl  { margin-top: 4rem; }
.subsection-title     { font-size: 1.6rem !important; margin-bottom: 2rem !important; }
.subsection-title-sm  { margin-bottom: 1.25rem !important; }
.screenshots-grid  { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.screenshot-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(103,140,82,0.2);
}
.screenshot-thumb { display: block; height: 300px; width: auto; max-width: 145px; object-fit: cover; }
.feature-icon     { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.feature-title    { font-size: 1.05rem !important; margin-bottom: 0.5rem !important; }
.feature-desc     { font-size: 0.9rem !important; line-height: 1.6 !important; }
.tech-body        { padding: 2rem; }
.tech-table       { width: 100%; border-collapse: collapse; }
.tech-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.tech-td-label    { padding: 0.85rem 1rem; color: var(--text-muted); font-size: 0.9rem; width: 35%; font-weight: 500; }
.tech-td-value    { padding: 0.85rem 1rem; color: var(--text-primary); font-size: 0.9rem; }
.padded-card-body { padding: 2rem; }
.playstore-title  { font-size: 1.3rem !important; display: flex !important; align-items: center; gap: 0.75rem; }
.google-notice {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    border: 1px solid var(--border);
}
.google-notice-js {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card-inner);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border: 1px solid var(--border);
}
.btn-mt       { margin-top: 1.25rem; }
.btn-mt-sm    { margin-top: 1rem; }
.playstore-body { margin-top: 0.75rem; }
.sha256-desc {
    color: var(--text-desc);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}
.sha256-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    word-break: break-all;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
    position: relative;
}
.app-footer-cards { margin-top: 3.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.flex-card        { flex: 1; min-width: 260px; }
.icon-title       { display: flex !important; align-items: center; gap: 0.6rem; }
.card-desc-lh     { line-height: 1.7; }
.page-footer-note {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Chat page ── */
.chat-intro-desc { max-width: 700px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.4rem; }
.chat-note       { color: var(--text-muted); font-style: italic; font-size: 0.9rem; margin-bottom: 0; }
.service-title   { font-size: 1.4rem !important; margin-top: 0 !important; color: var(--accent) !important; }
.service-btn-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; align-items: center; }

/* ── Presse page ── */
.presse-desc { margin-bottom: 1.5rem; line-height: 1.7; }

/* ── Goals card ── */
.goals-card       { margin-top: 1.5rem; }
.goals-card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0 0 1.25rem; text-align: center; }

/* ── Form utilities ── */
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-legal-links { margin-top: 2rem; font-size: 0.85rem; color: var(--text-muted); }
#zf-error   { display: none; }
#zf-success { display: none; }
.zf-msg-visible { display: block !important; }

/* ── Copy-btn check icon (JS-toggled) ── */
.check-icon { display: none; }

/* ── Nav heart emoji ── */
.nav-heart { color: #000; font-size: 1.3em; filter: drop-shadow(0 0 2px rgba(0,0,0,0.4)); }

/* ── Hero ── */
.hero-hidden { display: none !important; }
.hero-subtitle-motto { font-weight: 600; color: var(--text-secondary); margin-bottom: 1.25rem; }

/* ── Scroll-to-top / bottom widget (hidden until JS shows them) ── */
#scrollToTop        { display: none; }
#bottomWidgetDivider { display: none; }

/* ── Utility spacing ── */
.mb-md { margin-bottom: 1.5rem; }
.mt-md { margin-top: 1.5rem; }

/* ── Misc ── */
.text-center-muted { color: var(--text-muted); text-align: center; padding: 2rem 0; }

/* ── Services Big Picture (Rubriken Grid) ── */

.category-header {
    scroll-margin-top: calc(var(--nav-height) + 2rem);
}
.category-header-highlight {
    animation: category-header-pulse 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes category-header-pulse {
    0% {
        color: var(--accent);
        text-shadow: 0 0 10px var(--accent-dim);
    }
    100% {
        color: inherit;
        text-shadow: none;
    }
}

.service-card:target {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-dim);
    scroll-margin-top: calc(var(--nav-height) + 2rem);
}
.service-card-target-highlight {
    animation: service-card-highlight 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    scroll-margin-top: calc(var(--nav-height) + 2rem);
}
@keyframes service-card-highlight {
    0% {
        border-color: var(--accent);
        box-shadow: 0 0 15px var(--accent-dim);
        transform: translateY(-2px);
    }
    100% {
        border-color: var(--border);
        box-shadow: none;
        transform: none;
    }
}

/* ─── LibreTranslate indicator im Language-Dropdown ─── */
.lt-indicator[hidden] { display: none !important; }
.lt-indicator {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.35rem 0.6rem 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.2rem;
    white-space: normal;
    line-height: 1.4;
    opacity: 0.85;
}
.lt-indicator .lt-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}
.lt-indicator[data-state="error"] {
    color: #e8a838;
    opacity: 1;
}

.services-wish-links {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.68rem;
    font-weight: 500;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.services-wish-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.services-wish-links a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}
.services-wish-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ── Purge page ────────────────────────────────────────────────────── */
body.page-purge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}
.purge-card { max-width: 400px; width: 100%; text-align: center; }
.purge-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.purge-card .lead { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.purge-form { display: flex; flex-direction: column; gap: 0.75rem; }
.purge-form input[type=password] {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.purge-form input[type=password]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(103,140,82,0.18);
}
.purge-hint { margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); }
.purge-msg { margin-bottom: 1rem; padding: 0.75rem 1rem; }
.purge-msg--ok { border-color: rgba(103,140,82,0.4); color: var(--accent); }
.purge-msg--err { border-color: rgba(231,76,60,0.4); color: #e74c3c; }
.purge-back-btn { margin-top: 0.5rem; }

/* ── Service Detail Modal ──────────────────────────────────────────── */
#service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#service-modal-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.55);
    z-index: -1;
    pointer-events: none;
}
#service-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.service-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.34, 1.20, 0.64, 1);
}
.service-modal-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: 90vh;
    padding: 2rem 2rem 3rem;
}
#service-modal-overlay.open .service-modal {
    transform: translateY(0);
}
.service-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: -0.5rem -0.5rem 0.5rem 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.15s, border-color 0.15s;
}
.service-modal-close:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}
.service-modal-close::before,
.service-modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}
.service-modal-close::before { transform: rotate(45deg); }
.service-modal-close::after  { transform: rotate(-45deg); }
body.service-modal-open {
    overflow: hidden;
}
/* tablet/desktop: centered panel with rounded corners all sides */
@media (min-width: 640px) {
    #service-modal-overlay {
        align-items: center;
        padding: 2rem;
    }
    .service-modal {
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }
    .service-modal-scroll {
        max-height: 85vh;
    }
}
#service-modal-overlay,
#service-modal-overlay * {
    font-family: var(--font-sans) !important;
}
#service-modal-overlay code,
#service-modal-overlay pre,
#service-modal-overlay pre * {
    font-family: var(--font-mono) !important;
}
/* Hide all images in service modal article content */
#service-modal-overlay .article-content img,
#service-modal-overlay .article-content figure,
#service-modal-overlay .article-content .wp-caption {
    display: none !important;
}

/* ── Post/News Modal ───────────────────────────────────────────────── */
#post-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#post-modal-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.55);
    z-index: -1;
    pointer-events: none;
}
#post-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
#post-modal-overlay .service-modal {
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.34, 1.20, 0.64, 1);
}
#post-modal-overlay.open .service-modal {
    transform: translateY(0);
}
.post-modal-body { font-family: var(--font-sans); }
.post-modal-hero-img {
    margin: -2rem -2rem 1.75rem;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 260px;
}
.post-modal-hero-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    cursor: default !important;
}
#post-modal-overlay img { cursor: default !important; }
@media (min-width: 640px) {
    #post-modal-overlay {
        align-items: center;
        padding: 2rem;
    }
    #post-modal-overlay .service-modal {
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }
    #post-modal-overlay .service-modal-scroll {
        max-height: 85vh;
    }
    .post-modal-hero-img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}
