/* ══════════════════════════════════════════════════════════
   PFORTE.DE – BESTATTER
   Suche, Ergebnisse, Profil
   ══════════════════════════════════════════════════════════ */


/* ── VARIABLES ──────────────────────────────────────────── */
:root {
    /* Colors - Base */
    --bg: #F6F4F0;
    --white: #FFF;
    --ink: #1A1A1A;
    --ink-soft: #3D3D3D;
    --ink-muted: #7A7670;
    --ink-faint: #A8A49D;
    --border: #DDD9D2;

    /* Colors - Brand */
    --accent: #8B7355;
    --accent-light: #B5A48C;
    --accent-warm:    #c4956a;

    /* Colors - Bestatter Section */
    --section: #2E7D6F;
    --section-light: #E0F2EF;
    --section-dark: #256B5F;

    /* Colors - Alerts */
    --soforthilfe: #C62828;
    --soforthilfe-light: #FFEBEE;

    /* Typography */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Outfit', system-ui, sans-serif;

    /* Spacing & Layout */
    --r: 12px;
    --sh: 0 2px 12px rgba(0, 0, 0, .06);
    --shh: 0 8px 32px rgba(0, 0, 0, .1);
    --mw: 1200px;
    --pad: 40px;

    --shadow-xl:0 20px 48px rgba(0,34,84,.16);

    --radius:12px;--radius-lg:16px;--radius-xl:20px;--radius-2xl:24px;
    --navy:#002254;
    --green:#8AB529;
    --green-pale:#F4F9E8;
    --gray-50:#F8FAFC;
    --gray-100:#F1F5F9;
    --gray-200:#E2E8F0;
    --gray-300:#CBD5E1;
    --gray-400:#94A3B8;
    --gray-500:#64748B;
    --gray-600:#475569;
    --gray-700:#334155;
    --gray-800:#1E293B;
    --gray-900:#0F172A;


}


/* ── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}



/* ── HEADER ──────────────────────────────────────────────────── */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}


.logo {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span { color: var(--accent-warm); }

/*
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
*/


.logo-mark svg {
    width: 32px;
    height: 32px;
}

.logo-name {
    font-family: var(--serif);
    font-size: 1.725rem;
    font-weight: 400;
    letter-spacing: .03em;
}




/* ── HEADER / NAVIGATION ───────────────────────────────── */
.header-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-wrap.bt {
    border-top: 3px solid var(--section);
}

.site-header {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}




/* ── NAV (Desktop) ── */
.nav {
    display: flex;
    gap: 28px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover { color: var(--accent-sage); }



/* ── BURGER ── */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE (max-width: 768px) ── */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        gap: 4px;
        z-index: 100;
    }
    .nav.open {
        display: flex;
    }
    .burger {
        display: flex;
    }
}









/* ── LAYOUT ────────────────────────────────────────────── */
.container {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--pad);
}


/* ── SHARED COMPONENTS ─────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    transition: .3s;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shh);
    border-color: #C8C3BA;
}


/*
.badge {
    display: inline-block;
    font-size: 0.782rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}
*/

.stars-rating {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: #ddd;
    position: relative;
}
.stars-rating::before {
    content: '★★★★★';
    position: absolute;
    left: 0;
    top: 0;
    color: #f5a623;
    overflow: hidden;
    white-space: nowrap;
    width: var(--star-width);
}


.rv-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.rv-rating-meta {
    font-size: .78rem;
    color: var(--ink-muted);
}
.stars {
    color: #F4B942;
    font-size: 1.035rem;
    letter-spacing: 1px;
}

.nbox {
    background: var(--soforthilfe-light);
    border: 1px solid #FFCDD2;
    border-radius: var(--r);
    padding: 16px;
}

.nbox h4 {
    color: var(--soforthilfe);
    font-size: 0.9775rem;
    margin-bottom: 6px;
}

.nbox p {
    font-size: 1.012rem;
    font-weight: 600;
    color: var(--soforthilfe);
}


/* ── MODAL (shared) ────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shh);
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    font-family: var(--serif);
    font-size: 1.61rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 0.943rem;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.modal-close:hover {
    background: var(--bg);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.897rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 1.012rem;
    color: var(--ink);
    background: var(--white);
    transition: .2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--section);
    box-shadow: 0 0 0 3px var(--section-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--section);
    color: white;
    border: 0;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 1.058rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    margin-top: 8px;
}

.form-submit:hover {
    filter: brightness(.9);
}

.form-hint {
    font-size: 0.828rem;
    color: var(--ink-faint);
    margin-top: 16px;
    text-align: center;
}


/* ── FOOTER ────────────────────────────────────────────── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 48px var(--pad) 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9775rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-top: 12px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-size: 0.897rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.9775rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: .2s;
}

.footer-col a:hover {
    color: var(--section);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.897rem;
    color: var(--ink-faint);
}

.powered-by {
    font-size: 0.943rem;
    color: var(--ink-muted);
}

.powered-by a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.897rem;
    color: var(--ink-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--ink);
}


/* ── LIGHTBOX (shared) ─────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.lightbox.open {
    display: flex;
}

.lb-content {
    max-width: 95vw;
    max-height: 75vh;
    background: transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 1.38rem;
}

@media (max-width: 600px) {
    .lb-content {
        max-width: 95vw;
        max-height: 75vh;
    }
}

.lb-title {
    color: #fff;
    font-size: 1.058rem;
    font-weight: 500;
}

.lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.38rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    z-index: 10000;
}

.lb-close:hover {
    background: rgba(255, 255, 255, .3);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.38rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-dots {
    display: flex;
    gap: 6px;
}

.lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: .2s;
}

.lb-dot.active {
    background: #fff;
}


/* ── RESPONSIVE (Global) ───────────────────────────────── */
@media (max-width: 900px) {
    .site-header {
        padding: 14px 20px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    :root {
        --pad: 16px;
    }
    .nav.open {
        align-items: flex-start;
    }

    
    .nav.open a {
        width: 100%;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
    }
    .nav.open a:last-child {
        border-bottom: none;
    }
    

    

    .site-header {
        padding: 12px 16px;
    }

    .footer-links-group {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal {
        padding: 24px 20px;
    }
}

/* ── PROFILE HEADER ────────────────────────────────────── */
.profile-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.profile-hero-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 32px var(--pad);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.p-logo {
    max-width: 150px;
    /* height: 100px; */
    /* border-radius: 16px; */
    background: var(--section);
    color: white;
    font-weight: 700;
    font-size: 2.07rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p-info {
    flex: 1;
    min-width: 200px;
}

.p-info h1 {
    font-family: var(--serif);
    font-size: 2.07rem;
    font-weight: 400;
}

.p-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-actions button {
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 1.5em;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.btn-cta {
    background: var(--section);
    color: white;
    border: 0;
}

.btn-cta:hover {
    background: var(--section-dark);
}

.btn-sec {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-sec:hover {
    background: var(--bg);
}









/* ── PROFIL TABS (sticky) ──────────────────────────────── */
.ptabs-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ptabs {
    display: flex;
    gap: 0;
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--pad);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ptabs::-webkit-scrollbar {
    height: 0;
}

.ptab {
    display: block;
    padding: 14px 24px;
    font-size: 0.9775rem;
    color: var(--ink-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.ptab.active {
    color: var(--section);
    border-bottom-color: var(--section);
    font-weight: 600;
}

.ptab:hover {
    color: var(--ink);
}


/* ── PROFILE GRID (2 columns) ──────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.profile-grid > div {
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 70px;
}


/* ── DIENST-TAGS ───────────────────────────────────────── */
.dtag {
    display: inline-block;
    font-size: 0.92rem;
    padding: 5px 12px;
    background: var(--section-light);
    color: var(--section);
    border-radius: 6px;
    font-weight: 400;
    margin: 2px;
}


/* ── CONTACT BOX (Sidebar) ─────────────────────────────── */
.cbox {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
}

.cbox h3 {
    font-family: var(--serif);
    font-size: 1.265rem;
    margin-bottom: 16px;
}

.crow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 1.012rem;
}

.crow:last-child {
    border-bottom: 0;
}

.cbox-link {
    color: var(--section);
    text-decoration: none;
    font-weight: 500;
}

.cbox-link:hover {
    text-decoration: underline;
}
/* ── GALLERY ───────────────────────────────────────────── */
.gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.gallery-scroll {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}
.gallery-scroll::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
}


.gimg {
    flex-shrink: 0;
    max-width: 150px;
    max-height:175px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 0.943rem;
    cursor: pointer;
    scroll-snap-align: start;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.gimg:hover {
    box-shadow: var(--sh);
}

.gimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gimg::after {
    content: '🔍';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.805rem;
    background: rgba(255, 255, 255, .85);
    padding: 3px 8px;
    border-radius: 6px;
    opacity: 0;
    transition: .2s;
}

.gimg:hover::after {
    opacity: 1;
}

.gallery-nav {
    display: flex;
    gap: 8px;
}

.gallery-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 0.943rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.gallery-nav button:hover {
    background: var(--bg);
}


/* ── RESPONSIVE (Bestattung) ───────────────────────────── */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr !important;
    }
    .sidebar-sticky {
        position: static;
    }
    .profile-hero-inner {
        padding: 24px 20px;
        gap: 16px;
    }

    .p-info h1 {
        font-size: 1.61rem;
    }
    .ptabs {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .ptab {
        padding: 12px 16px;
        font-size: 0.897rem;
    }
    .profile-hero-inner {
        padding: 20px 16px;
    }
    .p-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .p-actions button {
        padding: 10px 18px;
        font-size: 1.5rem;
    }
    .gimg {
        width: 160px;
        height: 120px;
    }
}

/* ══════════════════════════════════════════════════════════
   SEARCH & RESULTS PAGE
   ══════════════════════════════════════════════════════════ */

.search-meta-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.smf-tag {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    background: #e8f4ea;
    color: #2d6a4f;
    border-radius: 4px;
}
.search-meta-label {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    background: #cecece;
    color: #2d6a4f;
    border-radius: 4px;
}
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0.8rem 0; */ 
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.results-count {
    font-size: 1.05rem;
    color: #333;
}
.results-count strong {
    font-size: 1.2rem;
    color: #1a1a1a;
}
.results-sort select {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
}
@media (max-width: 480px) {
    .results-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .results-sort { width: 100%; }
    .results-sort select { width: 100%; }
}


.reset-ort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    border: 2px solid #b02a37;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.reset-ort:hover {
    background: #b02a37;
    border-color: #8c2028;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.no-results h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}
.no-results p {
    font-size: 1rem;
    color: #888;
    margin: 0 0 1rem;
}
.no-results-reset {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--section);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}
.no-results-reset:hover {
    background: var(--section-dark);
}

.no-results-vip-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}


/* ── SEARCH BOX AREA ───────────────────────────────────── */
.search-area {
    background: var(--section-light);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 24px;
}

.search-bar {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.search-bar a {
    color: inherit;
    /* text-decoration: none; */
}


.search-bar h2 {
    font-family: var(--serif);
    font-size: 1.61rem;
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--ink);
}

.search-bar h2 span {
    color: var(--section);
    font-weight: 600;
}

.search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    transition: .2s;
    position: relative;
}

.search-form:focus-within {
    border-color: var(--section);
    box-shadow: 0 0 0 4px var(--section-light);
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field label {
    display: block;
    font-size: 0.782rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    padding: 12px 16px 0;
}

.search-field input {
    width: 100%;
    padding: 4px 16px 12px;
    border: 0;
    outline: none;
    font-family: var(--sans);
    font-size: 1.058rem;
    color: var(--ink);
    background: transparent;
}

.search-field input::placeholder {
    color: var(--ink-faint);
}

.search-submit {
    padding: 0 28px;
    background: var(--section);
    color: white;
    border: 0;
    border-radius: 0 12px 12px 0;
    font-family: var(--sans);
    font-size: 1.058rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: var(--section-dark);
}

.search-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


.search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.897rem;
    color: var(--ink-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.search-meta strong {
    color: var(--ink);
}

.search-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-tags a {
    font-size: 0.828rem;
    padding: 4px 10px;
    background: var(--white);
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    transition: .2s;
}

.search-tags a:hover {
    background: var(--section);
    color: #fff;
    border-color: var(--section);
}




.filter-submit-sticky {
    position: sticky;
    bottom: 0;
    background: var(--white);
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.filter-submit-sticky button {
    width: 100%;
    padding: 12px;
    background: var(--section);
    color: var(--white);
    border: 0;
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.943rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.filter-submit-sticky button:hover {
    filter: brightness(.9);
}

@keyframes shake {
    0%,100% { transform: rotate(0deg); }
    25%      { transform: rotate(-10deg); }
    75%      { transform: rotate(10deg); }
}
.shake {
    animation: shake 0.3s ease;
}








.search-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.beta-hint {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
}

.beta-hint strong {
    color: #e8621a;
}

/* Handy: kleiner und dünner */
@media (max-width: 640px) {
    .beta-hint {
        font-size: 0.8rem;
        flex-basis: 100%;
    }
}













/* ── AUTOCOMPLETE DROPDOWN ─────────────────────────────── */
.ac-wrap {
    position: relative;
}

.ac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shh);
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
}

.ac-dropdown.open {
    display: block;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.active {
    background: var(--section-light);
}

.ac-plz {
    font-size: 0.828rem;
    font-weight: 600;
    color: var(--section);
    flex-shrink: 0;
    min-width: 48px;
}

.ac-text {
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-size: 0.943rem;
    font-weight: 500;
    color: var(--ink);
}

.ac-name mark {
    background: none;
    color: var(--section);
    font-weight: 700;
}

.ac-region {
    font-size: 0.782rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.ac-loading,
.ac-empty {
    padding: 14px 16px;
    font-size: 0.897rem;
    color: var(--ink-muted);
    text-align: center;
}

.hidden-fields {
    display: none;
}

/* ── RESULTS LAYOUT ────────────────────────────────────── */
.results-wrap {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 28px var(--pad) 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.results-grid > div {
    min-width: 0;
}


/* ── SIDEBAR FILTERS ───────────────────────────────────── */
.filter-sticky {
    position: sticky;
    top: 20px;
}

.filter-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 20px 0 20px;
    margin-bottom: 16px;
}

.filter-box h4 {
    font-size: 0.897rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg);
}

.filter-group {
    margin-bottom: 14px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.828rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    margin-bottom: 6px;
    display: block;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.943rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: .15s;
}

.filter-km-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
}


.filter-check:hover {
    color: var(--section);
}

.filter-check input[type="checkbox"] {
    accent-color: var(--section);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.filter-check .count {
    margin-left: auto;
    font-size: 0.828rem;
    color: var(--ink-faint);
}

.filter-links a {
    display: block;
    padding: 5px 0;
    font-size: 0.943rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: .15s;
}

.filter-links a:hover,
.filter-links a.active {
    color: var(--section);
    font-weight: 500;
}

.filter-links a .count {
    font-size: 0.828rem;
    color: var(--ink-faint);
    margin-left: 4px;
}







.filter-collapsible { position: relative; }

.filter-soon-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    pointer-events: all;
}

.filter-soon-box {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    text-align: center;
    height: fit-content;
    max-width: 85%;
}

.filter-soon-icon  { font-size: 32px; margin-bottom: 6px; }
.filter-soon-title { font-weight: 600; font-size: 1rem; color: #333; margin-bottom: 4px; }
.filter-soon-sub   { font-size: 0.85rem; color: #777; }




















/* ── MOBILE FILTER TOGGLE ──────────────────────────────── */
.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 0.9775rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    margin-bottom: 16px;
    text-align: left;
    transition: .2s;
}

.filter-toggle:hover {
    background: var(--bg);
}

.filter-toggle .ft-arrow {
    float: right;
    transition: .3s;
}

.filter-toggle.open .ft-arrow {
    transform: rotate(180deg);
}

.filter-collapsible {
    display: block;
}


/* ── SIDEBAR INFO BOXES ────────────────────────────────── */
.side-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 16px;
}

.side-info h4 {
    font-size: 0.897rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg);
}

.side-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 0.943rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: .15s;
    border-bottom: 1px solid var(--bg);
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link:hover {
    color: var(--section);
}

.side-link .sl-icon {
    font-size: 1.035rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.top-bestatter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg);
}

.top-bestatter:last-child {
    border-bottom: 0;
}

.top-bestatter .tb-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--section-light);
    color: var(--section);
    font-size: 0.782rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-bestatter .tb-info {
    flex: 1;
    min-width: 0;
}

.top-bestatter .tb-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bestatter .tb-meta {
    font-size: 0.805rem;
    color: var(--ink-muted);
}

/* ── RESULT CARD (unified: VIP + Standard) ────────────── */
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 12px;
    transition: .3s;
    overflow: hidden;
    position: relative;
}

.result-card:hover {
    box-shadow: var(--shh);
    border-color: #C8C3BA;
}

/* VIP Variante */
.result-card.is-vip {
    border: 2px solid #D4AF37;
    padding: 24px;
    margin-bottom: 16px;
}

.result-card.is-vip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F4D03F, #D4AF37);
}

.result-card-inner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rv-logo {
    width: 75px;
    background: var(--bg);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* VIP Logo größer */
.is-vip .rv-logo {
    width: 150px;
    height: 150px;
    background: var(--section);
    font-size: 1.61rem;
}

.rv-logo-footer {
    text-align: center;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.rv-logo-footer .stars-rating {
    font-size: 0.72rem;
}

.rv-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}


.rv-body {
    flex: 1;
    min-width: 0;
}

.rv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.is-vip .rv-header {
    gap: 12px;
    margin-bottom: 6px;
}

.rv-name {
    font-size: 1.0925rem;
    font-weight: 600;
}

.is-vip .rv-name {
    font-family: var(--serif);
    font-size: 1.38rem;
    font-weight: 500;
}

.rv-name a {
    color: var(--ink);
    text-decoration: none;
}

.rv-name a:hover {
    color: var(--section);
}

.rv-dist {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: #eef4ff;
    color: #1a73e8;
    border-radius: 4px;
    font-weight: 600;
}


.rv-badge-vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7475rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    background: #FFF8E1;
    color: #D4AF37;
    border: 1px solid #F4D03F;
}

.rv-badge-pp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7475rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--section-light);
    color: var(--section);
    border: 1px solid #B2DFDB;
}

.rv-meta {
    font-size: 0.897rem;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.is-vip .rv-meta {
    font-size: 0.943rem;
    margin-bottom: 8px;
}

.rv-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rv-tags span {
    font-size: 0.782rem;
    padding: 2px 7px;
    background: var(--bg);
    color: var(--ink-muted);
    border-radius: 4px;
}

.rv-tags-more {
    font-size: 0.75rem;
    color: var(--ink-faint);
    font-style: italic;
    padding: 2px 7px;
    background: none;
}




.is-vip .rv-tags {
    margin-bottom: 12px;
}

.is-vip .rv-tags span {
    font-size: 0.828rem;
    padding: 3px 8px;
    background: var(--section-light);
    color: var(--section);
}

.rv-desc {
    font-size: 0.943rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 14px;
}

.rv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.is-vip .rv-footer {
    gap: 10px;
}

.rv-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rv-btn-primary {
    background: var(--section);
    color: white;
    border: 0;
}

.rv-btn-primary:hover {
    background: var(--section-dark);
}

.rv-btn-outline {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
}

.rv-btn-outline:hover {
    background: var(--bg);
}

/* Contact person (Premium Plus / VIP) */
.rv-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-top: 12px;
}

.rv-contact-photo {
    /* width: 44px; */
    height: 100px;
    border-radius: 5%;
    background: var(--section-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    flex-shrink: 0;
}

.rv-contact-info {
    flex: 1;
    min-width: 0;
}

.rv-contact-name {
    font-size: 0.943rem;
    font-weight: 600;
    color: var(--ink);
}

.rv-contact-role {
    font-size: 0.828rem;
    color: var(--ink-muted);
}

.rv-contact-phone {
    display: block;
    font-size: 0.943rem;
    font-weight: 600;
    color: var(--section);
    text-decoration: none;
}

.rv-contact-phone:hover {
    text-decoration: underline;
}


.rv-contact-info a,
.rb-meta a,
.tb-meta a,
.rv-meta a {
    color: inherit;
    text-decoration: none;
}


/* Desktop: beide einzeilig */
.rv-contact-mit-bild .rv-phone-nr {
    display: block;
}

/* Mobile: nur bei mit-bild umbrechen */
@media (max-width: 480px) {
    .rv-contact-mit-bild .rv-contact-phone {
        white-space: normal;
    }
    .rv-contact-mit-bild .rv-phone-nr {
        display: block;
    }
}

@media (max-width: 480px) {
    .rv-contact-ohne-bild .rv-phone-nr {
        display: block;
    }
    .rv-contact-ohne-bild .rv-contact-phone {
        white-space: normal;
    }
}


/* rs-* Klassen entfernt – alles unified unter rv-* und result-card */


/* ── BASIS RESULT (2-spaltig) ──────────────────────────── */
.result-basis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* 3-spaltig Variante */
.result-basis-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.result-basis {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.result-basis:hover {
    box-shadow: var(--sh);
    border-color: #C8C3BA;
}

.result-basis .rb-name {
    font-size: 1.012rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.result-basis .rb-name a {
    color: var(--ink);
    text-decoration: none;
}

.result-basis .rb-name a:hover {
    color: var(--section);
}

.result-basis .rb-meta {
    font-size: 0.8625rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.result-basis .rb-rating {
    font-size: 0.8625rem;
    color: var(--ink-muted);
    margin-top: auto;
}

.result-basis .rb-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.897rem;
    color: var(--section);
    text-decoration: none;
    font-weight: 500;
}

.result-basis .rb-link:hover {
    text-decoration: underline;
}



/* Basis-Einträge: flexibel, 3 pro Zeile */
.result-basis-row.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.result-basis-row.flex .result-basis {
    flex: 1 1 calc(50% - 8px);
    /* flex: 1 1 calc(33.33% - 8px); */
    min-width: 250px;
}

@media (max-width: 600px) {
    .result-basis-row.flex .result-basis {
        flex: 1 1 100%;
    }
}




/* ── verifiziert ───────────────────────────────────── */
.badge-verifiziert {
    display: inline-block;
    font-size: 0.644rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: #E8F5E9;
    color: #2E7D32;
}
.badge-verifiziert::before {
    content: '✓ ';
}

.rv-logo-placeholder {
    font-family: var(--serif);
    font-style: italic;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d6a4f;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 8px;
}


.badge-landkreis {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
}
.badge-bundesland {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
}


.related-searches-grid a {
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    padding: 0.2rem 0.2rem;
    background: none;
    border: none;
}
.related-searches-grid a:hover {
    background: #e8f4ea;
    color: #2d6a4f;
}
.related-searches h3 {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 0.5rem;
}
.related-searches-grid {
    gap: 0.2rem 0.4rem;
    margin-bottom: 1.2rem;
}
@media (max-width: 480px) {
    .related-searches { padding: 1.5rem 0; }
    .related-searches-grid { gap: 0.35rem; }
    .related-searches-grid a { font-size: 0.78rem; padding: 0.25rem 0.5rem; }
}

/* ── SECTION DIVIDER ───────────────────────────────────── */
.results-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    font-size: 0.8625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
}

.results-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* ── PAGINATION ────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.943rem;
    color: var(--ink-muted);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
}

.pg-btn:hover {
    background: var(--bg);
    color: var(--ink);
}

.pg-btn.active {
    background: var(--section);
    color: white;
    border-color: var(--section);
    font-weight: 600;
}

.pg-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

.pg-dots {
    font-size: 0.943rem;
    color: var(--ink-faint);
    padding: 0 4px;
}


/* ── RESPONSIVE (Search) ───────────────────────────────── */
@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    .filter-sticky {
        position: static;
    }
    .filter-toggle {
        display: block;
    }
    .filter-collapsible {
        display: none;
    }
    .filter-collapsible.open {
        display: block;
    }
    .result-card-inner {
        flex-direction: column;
    }
    .result-basis-row {
        grid-template-columns: 1fr;
    }
    .result-basis-row.cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    .search-submit {
        padding: 14px;
        justify-content: center;
        border-radius: 0 0 10px 10px;
    }
    /* result-card-inner already handled in 900px breakpoint */
    .rv-contact {
        flex-direction: column;
        text-align: center;
    }
}

.rv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.rv-overlay.active { display: flex; }

.rv-overlay-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: rvFadeIn 0.25s ease;
}
@keyframes rvFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.rv-overlay-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}
.rv-overlay-close:hover { color: #333; }

/* Titel */
.rv-overlay-titel {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Content: Bild links, Daten rechts */
.rv-overlay-content {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
}

/* Bild */
.rv-overlay-bild img {
    width: 170px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.rv-overlay-bild-placeholder {
    width: 170px;
    height: 200px;
    border-radius: 12px;
    background: #f5f5f5;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Daten */
.rv-overlay-daten {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rv-overlay-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}
.rv-overlay-position {
    font-size: 1rem;
    color: #666;
}

/* Besinnlicher Text */
.rv-overlay-text {
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
    line-height: 1.5;

    /* margin-top: 0.4rem; */
    /* margin-bottom: 0.6rem; */ 
    /* padding-top: 0.6rem; */
    /* border-top: 1px solid #f0f0f0; */
}

/* Kontakt-Links */
.rv-overlay-info {
    display: block;
    font-size: 1.05rem;
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    background: #f8f8f8;
}
.rv-overlay-info:hover {
    background: #eef4ff;
    color: #1a73e8;
}

/* WhatsApp grün */
.rv-overlay-whatsapp {
    background: #25D366;
    color: #fff;
}
.rv-overlay-whatsapp:hover {
    background: #1fb855;
    color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .rv-overlay { padding: 0.4rem; }
    .rv-overlay-box { padding: 1rem; border-radius: 12px; }
    .rv-overlay-titel { font-size: 1.0rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem;  text-align: center; }
    .rv-overlay-content { flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
    .rv-overlay-bild img,
    .rv-overlay-bild-placeholder { width: 120px; height: 140px; border-radius: 8px; }
    .rv-overlay-name { font-size: 1.1rem; }
    .rv-overlay-position { font-size: 0.85rem; }
    .rv-overlay-text { font-size: 0.8rem; margin-top: 0.2rem; margin-bottom: 0.3rem; padding-top: 0.3rem; }
    .rv-overlay-info { font-size: 0.88rem; padding: 0.35rem 0.5rem; }
    .rv-overlay-daten { gap: 0.3rem; align-items: center; }
    .rv-overlay-close { top: 6px; right: 10px; font-size: 1.2rem; }
}


/* ══════════════════════════════════════════════════════════
   SEARCH STRIP (kompakt, für Unterseiten)
   ══════════════════════════════════════════════════════════ */

.search-strip {
    background: linear-gradient(135deg, #1a2e2a 0%, #2E7D6F 60%, #3a9485 100%);
    padding: 10px 0;
    width: 100%;
}
.search-strip-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.search-strip .search-form {
    border: 1.5px solid rgba(255,255,255,.2);
    background: var(--white);
    padding: 0;
    gap: 0;
    border-radius: 10px;
}
.search-strip .search-form:focus-within {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.search-strip .search-field label {
    font-size: 0.644rem;
    color: var(--ink-muted);
    padding: 6px 14px 0;
}
.search-strip .search-field input {
    font-size: 0.92rem;
    color: var(--ink);
    padding: 2px 14px 6px;
}
.search-strip .search-submit {
    padding: 0 22px;
    font-size: 0.897rem;
    border-radius: 0 9px 9px 0;
}

@media (max-width: 600px) {
    .search-strip { padding: 10px 0; }
    .search-strip .search-form {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 4px;
    }
    .search-strip .search-field { 
        flex: 1 1 40%;
        padding: 6px 10px;
    }
    .search-strip .search-submit {
        flex: 0 0 auto;
    }
}


/* ══════════════════════════════════════════════════════════
   STARTSEITE
   ══════════════════════════════════════════════════════════ */


/* ── HERO ──────────────────────────────────────────────── */
.hero-wrap {
    /* background: linear-gradient(180deg, #1a2e2a 0%, #2E7D6F 30%, #3a9485 70%, #6db3a6 88%, #a8d5cc 95%, var(--bg) 100%); */ 
    
    background: var(--section-light);
    padding-bottom: 48px;
}
.hero {
    padding: 56px 0 32px;
    color: rgb(0, 0, 0);
    position: relative;
}
.hero-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--pad);
    position: relative;
    z-index: 1;
}
.hero h1 {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 2.53rem;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
}
.hero p.hero-sub {
    color: var(--ink-soft);
    font-size: 1.0925rem;
    opacity: .8;
    margin-bottom: 28px;
    max-width: 520px;
}
.hero .search-form {
    border: 2px solid rgba(255,255,255,.25);
    background: var(--white);
}
.hero .search-form:focus-within {
    border-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.hero .search-field label { color: var(--ink-muted); }
.hero .search-field input { color: var(--ink); }
.hero .search-meta {     color: var(--ink-soft);}
.hero .search-meta strong { color: white; }



/* ── SECTION WRAPPER ───────────────────────────────────── */
.sec {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 48px var(--pad);
    /* padding: 20px 0px 20px 0px; */
}
.sec-title {
    font-family: var(--serif);
    font-size: 1.84rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}
.sec-sub {
    font-size: 1.012rem;
    color: var(--ink-muted);
    margin-bottom: 28px;
    max-width: 600px;
}
.sec-bg {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* ── HERO TOP (Titel links + SOS rechts) ───────────────── */
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 24px;
}
.hero-text { flex: 1; }

.sos-mini {
    flex-shrink: 0;
    width: 260px;
    background: rgba(183,28,28,.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 16px 18px;
    color: white;
}
.sos-mini-head {
    font-family: var(--serif);
    font-size: 1.058rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sos-mini-head i {
    font-size: 0.9775rem;
}
.sos-mini p {
    font-size: 0.828rem;
    opacity: .85;
    line-height: 1.4;
    margin-bottom: 10px;
}
.sos-mini-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sos-mini-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.828rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.3);
    transition: .2s;
}
.sos-mini-links a:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.6);
}
.sos-mini-links a i {
    width: 14px;
    text-align: center;
    font-size: 0.782rem;
}

/* ── BESTATTER-KARTEN im Hero-Wrap ─────────────────────── */
.hero-wrap .sec { padding-top: 20px; }
.hero-wrap .sec-title,
.hero-wrap .sec-sub { color: rgba(255,255,255,.85); }
.hero-wrap .sec-title { color: white; }

/* ── BESTATTER CARDS GRID ──────────────────────────────── */
.bestatter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.b-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    transition: .3s;
    display: flex;
    flex-direction: column;
}
.b-card:hover {
    box-shadow: var(--shh);
    border-color: #C8C3BA;
}
.b-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.b-card-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.035rem;
    color: white;
    flex-shrink: 0;
}
.b-card-info { flex: 1; min-width: 0; }
.b-card-name {
    font-size: 1.035rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.b-card-name a {
    color: var(--ink);
    text-decoration: none;
}
.b-card-name a:hover { color: var(--section); }
.b-card-loc {
    font-size: 0.8625rem;
    color: var(--ink-muted);
}
.b-card-badge {
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}
.badge-vip { background: #FFF8E1; color: #D4AF37; border: 1px solid #F4D03F; }
.badge-top { background: var(--section-light); color: var(--section); }
.badge-neu { background: #E3F2FD; color: #1565C0; }
.b-card-tags {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.b-card-tags span {
    font-size: 0.782rem;
    padding: 2px 7px;
    background: var(--bg);
    color: var(--ink-muted);
    border-radius: 4px;
}
.b-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.b-card-rating {
    font-size: 0.8625rem;
    color: var(--ink-muted);
}
.b-card-rating .stars { color: #D4AF37; }
.b-card-link {
    font-size: 0.897rem;
    color: var(--section);
    text-decoration: none;
    font-weight: 600;
}
.b-card-link:hover { text-decoration: underline; }

/* ── BESTATTUNGSARTEN GRID ─────────────────────────────── */
.arten-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.art-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    transition: .3s;
}
.art-card:hover {
    box-shadow: var(--shh);
    border-color: var(--section);
    transform: translateY(-2px);
}
.art-card .art-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--section-light);
    color: var(--section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    margin: 0 auto 12px;
}
.art-card h4 {
    font-size: 1.012rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.art-card p {
    font-size: 0.851rem;
    color: var(--ink-muted);
    line-height: 1.4;
}





/* ── LINK LISTS ────────────────────────────────────────── */
.link-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.link-box {
    border-radius: var(--r);
    padding: 24px;
}
.link-box h4 {
    font-size: 0.943rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
}
.link-box-teal { background: #E0F2EF; }
.link-box-teal h4 { color: #2E7D6F; border-bottom: 2px solid #B2DFDB; }
.link-box-amber { background: #FFF8E1; }
.link-box-amber h4 { color: #F57F17; border-bottom: 2px solid #FFE082; }
.link-box-blue { background: #E3F2FD; }
.link-box-blue h4 { color: #1565C0; border-bottom: 2px solid #90CAF9; }
.link-box-rose { background: #FCE4EC; }
.link-box-rose h4 { color: #AD1457; border-bottom: 2px solid #F48FB1; }
.link-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.link-pills a {
    font-size: 0.8625rem;
    padding: 5px 12px;
    background: rgba(255,255,255,.7);
    border-radius: 100px;
    text-decoration: none;
    color: var(--ink-soft);
    transition: .2s;
    white-space: nowrap;
}
.link-box-teal .link-pills a:hover { background: #2E7D6F; color: white; }
.link-box-amber .link-pills a:hover { background: #F57F17; color: white; }
.link-box-blue .link-pills a:hover { background: #1565C0; color: white; }
.link-box-rose .link-pills a:hover { background: #AD1457; color: white; }

/* ── KONFESSIONEN ──────────────────────────────────────── */
.konf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.konf-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 20px;
    text-decoration: none;
    transition: .3s;
    text-align: center;
}
.konf-card:hover {
    box-shadow: var(--shh);
    transform: translateY(-2px);
}
.konf-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.495rem;
    margin: 0 auto 10px;
}
.konf-card h4 {
    font-size: 1.012rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.konf-card p {
    font-size: 0.851rem;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* ── RATGEBER GRID ─────────────────────────────────────── */
.rat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    transition: .3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.rat-card:hover {
    box-shadow: var(--shh);
    border-color: var(--section);
}
.rat-card .rat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--section-light);
    color: var(--section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 14px;
}
.rat-card h4 {
    font-size: 1.035rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.rat-card p {
    font-size: 0.897rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.rat-card .rat-link {
    margin-top: auto;
    font-size: 0.897rem;
    color: var(--section);
    font-weight: 600;
}

/* ── KOSTEN MAP ────────────────────────────────────────── */
.kosten-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.kosten-map svg {
    width: 100%;
    height: auto;
}
.kosten-map path {
    fill: var(--section-light);
    stroke: var(--white);
    stroke-width: 1.5;
    cursor: pointer;
    transition: .2s;
}
.kosten-map path:hover { fill: var(--section); }
.kosten-map path.active { fill: var(--section); }
.kosten-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
}
.kosten-info h4 {
    font-size: 1.035rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.kosten-info .ki-sub {
    font-size: 0.897rem;
    color: var(--ink-muted);
    margin-bottom: 16px;
}
.kosten-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 0.943rem;
}
.kosten-row:last-child { border-bottom: 0; }
.kosten-row .kr-label { color: var(--ink-soft); }
.kosten-row .kr-value { font-weight: 600; color: var(--ink); }
.kosten-row .kr-range { font-size: 0.828rem; color: var(--ink-muted); margin-left: 6px; }
.kosten-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
.kosten-table th {
    font-size: 0.782rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
}
.kosten-table td {
    font-size: 0.897rem;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bg);
    color: var(--ink-soft);
}
.kosten-table tr:hover td { background: var(--section-light); }
.kosten-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.kosten-table tr.active td { background: var(--section-light); color: var(--section); }

/* ── STATISTIK ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 20px;
    text-align: center;
}
.stat-number {
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--section);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.897rem;
    color: var(--ink-muted);
    margin-bottom: 2px;
}
.stat-detail {
    font-size: 0.782rem;
    color: var(--ink-faint);
}
.stats-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.fact-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 24px;
}
.fact-box h4 {
    font-size: 0.943rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}
.fact-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--bg);
}
.fact-row:last-child { border-bottom: 0; }
.fact-row .fl { color: var(--ink-soft); }
.fact-row .fv { font-weight: 600; color: var(--ink); }

/* ── RESPONSIVE (Startseite) ──────────────────────────── */
@media (max-width: 900px) {
    .hero h1 { font-size: 1.955rem; }
    .hero-top { flex-direction: column; gap: 16px; }
    .sos-mini { width: 100%; }
    .bestatter-grid { grid-template-columns: repeat(2, 1fr); }
    .arten-grid { grid-template-columns: repeat(2, 1fr); }
    .konf-grid { grid-template-columns: repeat(2, 1fr); }
    .rat-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .link-sections { grid-template-columns: 1fr; }
    .kosten-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.61rem; }
    .hero { padding: 40px 0 36px; }
    .sos-mini-links { flex-direction: row; flex-wrap: wrap; }
    .bestatter-grid { grid-template-columns: 1fr; }
    .arten-grid { grid-template-columns: 1fr 1fr; }
    .konf-grid { grid-template-columns: 1fr 1fr; }
    .rat-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-facts { grid-template-columns: 1fr; }
    .sec { padding: 32px var(--pad); }
}


@media (max-width: 600px) {
    .arten-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .art-card {
        padding: 16px 10px;
        min-width: 0;
    }
    .art-card p {
        font-size: 0.72rem;
    }
}




/* ══════════════════════════════════════════════════════════
   PFORTE.DE – BESTATTER DETAIL
   Profilseite spezifische Klassen
   ══════════════════════════════════════════════════════════ */


/* ── PROFIL HEADER ─────────────────────────────────────── */
.profile-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.profile-address {
    font-size: 0.943rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.btn-sec a,
.crow a, 
.profile-address a {
    color: inherit;
    text-decoration: none;
}

.profile-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* rv-rating already defined in search results section */


/* ── KONTAKTPERSON & NOTFALL ───────────────────────────── */
.contact-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
    min-width: 280px;
}

    .contact-card img {
        width: 100px;
        height: auto;
    }

.contact-name {
    font-weight: 600;
}

.contact-rolle {
    font-size: 0.943rem;
    color: var(--ink-muted);
}

.contact-tel {
    font-size: 0.943rem;
    color: var(--section);
    margin-top: 4px;
}

.nbox-flex {
    flex: 1;
    min-width: 240px;
    margin-top: 0;
}

.nbox-tel {
    font-size: 1.265rem;
}

.nbox-hint {
    font-size: 0.897rem;
    color: var(--ink-muted);
    margin-top: 4px;
}


/* ── CONTAINER VARIANTEN ───────────────────────────────── */
.container-top {
    padding-top: 24px;
}

.container-main {
    padding-top: 28px;
    padding-bottom: 40px;
}


/* ── CARD VARIANTEN ────────────────────────────────────── */
.card-mb {
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--serif);
    font-size: 1.265rem;
    margin-bottom: 12px;
}

.card-title-lg {
    font-family: var(--serif);
    font-size: 1.265rem;
    margin-bottom: 16px;
}

.card-text {
    font-size: 0.943rem;
    color: var(--ink-soft);
    line-height: 1.8;
}


.dienst-intro {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}





/* ── DIENSTLEISTUNGEN ──────────────────────────────────── */
.dienst-group {
    margin-bottom: 20px;
}

.dienst-group:last-child {
    margin-bottom: 0;
}

.dienst-subhead {
    font-size: 0.897rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}


/* ── GALERIE ───────────────────────────────────────────── */
.galerie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.galerie-hint {
    font-size: 0.828rem;
    color: var(--ink-faint);
    margin-top: 6px;
    text-align: center;
}


.galerie-intro {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.galerie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .galerie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}





/* ── BEWERTUNGEN ÜBERSICHT ─────────────────────────────── */
.rating-overview {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.rating-score-block {
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid var(--border);
}

.rating-score-num {
    font-size: 2.53rem;
    font-weight: 700;
    color: var(--section);
    line-height: 1;
}

.rating-score-sub {
    font-size: 0.828rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.rating-score-count {
    font-size: 0.828rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* Balken-Histogram */
.rating-bars {
    flex: 1;
    min-width: 140px;
    max-width: 400px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.rating-bar-row:last-child {
    margin-bottom: 0;
}

.rating-bar-label {
    font-size: 0.828rem;
    color: var(--ink-muted);
    width: 14px;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--section);
    border-radius: 3px;
}

.rating-bar-fill.low {
    background: var(--ink-faint);
}

.rating-bar-count {
    font-size: 0.828rem;
    color: var(--ink-muted);
    width: 18px;
    text-align: right;
}

/* Empfehlen-Kreis */
.rating-recommend {
    text-align: center;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.rating-recommend-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--section);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.rating-recommend-pct {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--section);
}

.rating-recommend-label {
    font-size: 0.782rem;
    color: var(--ink-muted);
    margin-top: 4px;
    max-width: 80px;
}


/* ── BEWERTUNGS KRITERIEN ──────────────────────────────── */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.criteria-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.criteria-label {
    font-size: 0.897rem;
    color: var(--ink-soft);
}

.criteria-bar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.criteria-bar-track {
    width: 60px;
    height: 5px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.criteria-bar-fill {
    height: 100%;
    background: var(--section);
    border-radius: 3px;
}

.criteria-bar-score {
    font-size: 0.828rem;
    font-weight: 600;
    color: var(--section);
}


/* ── BEWERTUNGS EINTRÄGE ───────────────────────────────── */
.review-item {
    border-bottom: 1px solid var(--bg);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.review-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--section-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.782rem;
    font-weight: 600;
    color: var(--section);
}

.review-name {
    font-size: 0.943rem;
}

.review-text {
    font-size: 0.943rem;
    color: var(--ink-soft);
    margin-top: 6px;
    line-height: 1.6;
}

.review-meta {
    font-size: 0.805rem;
    color: var(--ink-faint);
    margin-top: 5px;
}

.review-reply {
    background: var(--bg);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
    border-left: 3px solid var(--section);
}

.review-reply-label {
    font-size: 0.828rem;
    color: var(--section);
    font-weight: 600;
    margin-bottom: 3px;
}

.review-reply-text {
    font-size: 0.897rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.review-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.review-footer a {
    font-size: 0.943rem;
    color: var(--section);
    text-decoration: none;
    font-weight: 500;
}

.review-platforms {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.review-platforms-label {
    font-size: 0.828rem;
    color: var(--ink-muted);
}

.review-platforms-list {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-platform-item {
    font-size: 0.828rem;
    color: var(--ink-soft);
    font-weight: 500;
}


/* ── SIDEBAR KONTAKT ───────────────────────────────────── */
.cbox-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--section);
    color: white;
    border: 0;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 0.943rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.cbox-btn:hover {
    filter: brightness(.9);
}

.map-placeholder {
    height: 300px;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    margin-bottom: 16px;
}

.nav-apps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.nav-apps-label {
    font-size: 0.82rem;
    color: var(--ink-muted);
    width: 100%;
}
.nav-app-link {
    font-size: 0.82rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 6px;
    transition: .2s;
}
.nav-app-link:hover {
    background: var(--section-light);
    color: var(--section);
}
.nav-app-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 2px;
}



.similar-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 0.977rem;
}

.similar-item:last-child {
    border-bottom: none;
}

.similar-meta {
    color: var(--ink-muted);
}

.sidebar-card-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.mb-16 { margin-bottom: 16px; }
















@media (max-width: 600px) {
    .profile-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .p-logo {
        max-width: 300px;
        height: auto;
        margin-bottom: 12px;
    }
    .p-logo img {
        width: 100%;
        height: auto;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-card img {
        width: 100px;
        height: auto;
    }
}









/* ══════════════════════════════════════════════════════════
   PFORTE.DE – BESTATTER STARTSEITE
   Zusätzliche CSS-Klassen
   (Basis aus pforte-firma-finden.css wird verwendet)
   ══════════════════════════════════════════════════════════ */


/* ── STÄDTE GRID ────────────────────────────────────────── */
.staedte-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.stadt-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    transition: .2s;
}

.stadt-card:hover {
    border-color: var(--section);
    background: var(--section-light);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}

.stadt-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}

.stadt-count {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.stadt-card:hover .stadt-count {
    color: var(--section);
}


/* ── CTA BESTATTER (Registrierung) ──────────────────────── */
.cta-firma-wrap {
    background: linear-gradient(135deg, var(--section-dark), var(--section));
    margin: 32px 0;
    color: #fff;
}

.cta-firma-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 24px 0;
}

.cta-firma-text { color: #fff; }

.cta-firma-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 12px;
}

.cta-firma-text h2 {
    font-family: var(--serif);
    font-size: 1.95rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.cta-firma-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .88);
    line-height: 1.6;
    margin-bottom: 18px;
}

.cta-firma-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.cta-firma-list li {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, .92);
}

.cta-firma-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: var(--section);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.cta-firma-btn:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.cta-firma-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-firma-stat {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 20px 24px;
    backdrop-filter: blur(8px);
}

.cta-firma-stat-num {
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.cta-firma-stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, .85);
}


/* ── FAQ ACCORDION ──────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: .2s;
}

.faq-item[open] {
    border-color: var(--section);
    box-shadow: var(--sh);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: .15s;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q:hover { background: var(--bg); }

.faq-item[open] .faq-q { background: var(--section-light); color: var(--section); }

.faq-arrow {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--ink-muted);
    transition: transform .2s;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--section);
}

.faq-a {
    padding: 4px 22px 20px;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--ink-soft);
    border-top: 1px solid var(--border);
}

.faq-a p { margin: 12px 0 0; }

.faq-a a {
    color: var(--section);
    font-weight: 500;
}


/* ── HERO-TOP Anpassung für Startseite ──────────────────── */
.hero h1 {
    font-size: 2.3rem;
    line-height: 1.25;
    color: var(--ink);
}

.hero-wrap .search-meta strong {  color: var(--ink-soft); }


/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .staedte-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-firma-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-firma-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .staedte-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stadt-card {
        padding: 12px 14px;
    }

    .stadt-name { font-size: 1rem; }

    .cta-firma-text h2 { font-size: 1.5rem; }

    .faq-q {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-a { padding: 4px 16px 16px; }
}



.related-searches .sec h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin: 16px 0 8px;
    letter-spacing: .02em;
}

.related-search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 12px;
}

.related-search-grid a {
    font-size: 0.82rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 2px 0;
    transition: color .15s;
}

.related-search-grid a:hover {
    color: var(--section);
    text-decoration: underline;
}