/* ============================================================
   HOLY FLOW – NEO KIRCHE STYLE A
   Final • Clean • Unified • Matching New Header
   ============================================================ */

/* ---------------------------------------
   Root Vars for Parallax
---------------------------------------- */
:root {
    --hf-mx: 50;
    --hf-my: 50;
}

/* Page Wrapper */
.holyflow-team-page {
    position: relative;
    overflow-x: hidden;
}

.team-full {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 20px 90px;
    position: relative;
    z-index: 0;
}

/* ============================================================
   HOLYFLOW – SACRED BACKGROUND (Kadence Safe, Centered, Limited Width)
   ============================================================ */

/* Der visuelle Hintergrund gehört an den äußeren Container */
.sacred-bg {
    position: relative;
    max-width: 1400px;      /* nie breiter als Kadence */
    margin: 0 auto;
    overflow: visible;
    z-index: 0;
}

/* Beide Ebenen absolut innerhalb des Containers */
.sacred-bg::before,
.sacred-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(960px, 90vw, 1400px); /* responsive, max = Kadence-Breite */
    height: 100%;
    pointer-events: none;
    z-index: -1;             /* sitzt sauber hinter allen Elementen */
}

/* ------------------------------------------------------------
   Layer 1: Soft Glow + Radials + Float Animation
------------------------------------------------------------- */
.sacred-bg::before {
    background:
        radial-gradient(circle at 15% 18%, rgba(255,245,235,0.9), transparent 60%),
        radial-gradient(circle at 82% 78%, rgba(243,222,197,0.9), transparent 65%),
        radial-gradient(circle at calc(var(--hf-mx)*1%) calc(var(--hf-my)*1%),
            rgba(255,255,255,0.45), transparent 60%),
        linear-gradient(135deg, #f5efe5 0%, #ecd9c3 45%, #f8f4ee 100%);
    opacity: 0.95;
    border-radius: 24px;
    animation: bgFloat 24s ease-in-out infinite alternate;
}

/* sanfte Bewegung */
@keyframes bgFloat {
    from { transform: translate(-50%, -10px); }
    to   { transform: translate(-50%, 20px); }
}


/* ------------------------------------------------------------
   Layer 2: Light Rays
------------------------------------------------------------- */
.sacred-bg::after {
    background-image:
        repeating-linear-gradient(
            115deg,
            rgba(255,255,255,0.15) 0px,
            rgba(255,255,255,0.0) 80px,
            rgba(255,255,255,0.0) 160px
        ),
        linear-gradient(120deg, rgba(255,255,255,0.18), transparent 75%);
    mix-blend-mode: soft-light;
    opacity: 0.55;
    animation: beamsMove 18s linear infinite;
}

/* horizontale Lichtbewegung */
@keyframes beamsMove {
    from { transform: translate(-50%, 0); }
    to   { transform: translate(-50%, 0) translateX(120px); }
}

/* ============================================================
   PREMIUM SECTION HEADER (LINIE – TITEL – LINIE)
============================================================ */

/*********************************************************
 * HOLYFLOW – Premium Section Header (Linie – Titel – Linie)
 *********************************************************/

.hf-section-header {
    margin: 0 auto 60px;
    text-align: center;
    max-width: 860px; /* enger wie im Gästebuch */
    padding-top: 40px;
}

.hf-section-title-wrap {
    position: relative;
    margin-bottom: 20px;
    padding: 0 24px;
    display: inline-block;
}

.hf-section-title-wrap::before,
.hf-section-title-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 140px;              /* statt Prozent: feste Länge wie im Gästebuch */
    height: 1px;
    background: #d5c7b4;
    opacity: 0.55;
}

.hf-section-title-wrap::before {
    right: 100%;
    margin-right: 18px;
}

.hf-section-title-wrap::after {
    left: 100%;
    margin-left: 18px;
}

.hf-section-title {
    display: inline-block;
    background: transparent;   
    padding: 0 30px;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: #2e2e2e;
    margin: 0;
    line-height: 1.2;
}


.hf-section-sub {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 16px;
    color: #6d6356;
    line-height: 1.55;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .hf-section-title-wrap::before,
    .hf-section-title-wrap::after {
        width: 72px;
    }
}


/* ============================================================
   FILTER BUTTONS (Hostien-Stil)
============================================================ */

.team-filter-wrap {
    text-align: center;
    margin: 30px 0 32px;
}

.team-filter-btn {
    background: rgba(251,244,236,0.9);
    border: none;
    padding: 9px 22px;
    margin: 0 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    font-weight: 600;
    font-size: 14px;
    color: #4f4333;
    box-shadow: 0 5px 14px rgba(0,0,0,.08);
}

.team-filter-btn:hover {
    background: #f0e2cf;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.team-filter-btn.active {
    background: #cdb89b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* ============================================================
   GRID
============================================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

/* ============================================================
   TEAM CARDS (Glass 3D)
============================================================ */

.team-card {
    position: relative;
    border-radius: 22px;
    padding: 18px 18px 20px;
    background: radial-gradient(circle at 0 0,
                rgba(255,255,255,0.9),
                rgba(255,255,255,0.80) 45%,
                rgba(255,255,255,0.86) 100%);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.8);
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

/* Hover Glow */
.team-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at var(--hf-card-x, 50%) var(--hf-card-y, 0%),
            rgba(255,255,255,0.65), transparent 55%);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.35),
        0 0 22px rgba(255,255,255,0.5);
    opacity: 0;
    transition: opacity .3s ease;
}

/* Hover Effects */
.team-card:hover::before { opacity: 1; }
.team-card:hover::after { opacity: 0.9; }

.team-card:hover {
    box-shadow:
        0 26px 70px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.9);
}

/* Card Image */
.team-img {
    width: 100%;
    height: 220px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 12px;
    background: #d5d5d5;
    box-shadow: 0 10px 26px rgba(0,0,0,.20);
}

/* Text */
.team-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.team-role {
    font-size: 14px;
    color: #8f7a63;
    margin-top: 2px;
    margin-bottom: 8px;
}

.team-short {
    font-size: 14px;
    opacity: .9;
}

/* ============================================================
   CONSTELLATION GRID
============================================================ */

.team-constellation {
    margin-top: 40px;
    margin-bottom: 45px;
}

.team-section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.team-constellation-sub {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 18px;
}

/* Node Cards */
.team-constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.const-node {
    background: radial-gradient(circle at 0 0,
                rgba(255,255,255,0.92),
                rgba(255,255,255,0.86) 50%,
                rgba(255,255,255,0.95) 100%);
    border-radius: 18px;
    padding: 12px 16px 14px;
    box-shadow: 0 16px 38px rgba(0,0,0,.18);
    position: relative;
    font-size: 14px;
}

.const-node-title {
    font-weight: 700;
}

.const-node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.const-tag {
    font-size: 11px;
    background: #eee3d5;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ============================================================
   TABS & PLANS
============================================================ */

.team-divider {
    border: none;
    border-top: 1px solid rgba(224,215,207,0.9);
    margin: 40px 0 26px;
}

.team-plans {
    margin-bottom: 20px;
}

.team-plan-title {
    font-size: 22px;
    font-weight: 700;
}

.team-plan-sub {
    font-size: 14px;
    opacity: .8;
}

/* Tabs */
.team-tabs {
    display: flex;
    gap: 18px;
    position: relative;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(231,223,215,0.95);
}

.team-tabs button {
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #7a6a58;
}

.team-tabs button.active {
    color: #4a3f31;
}

/* Sliding Indicator */
.team-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg,#f7e2b9,#c9b596,#b9a489);
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
    transition: width .25s ease, transform .25s ease;
}

/* Fade */
.fade-pane { opacity: 0; transform: translateY(6px); transition: .25s; }
.fade-pane.active { opacity: 1; transform: translateY(0); display: block; }

/* Heat Legend */
.heat-low  { background: #e8f0df; }
.heat-mid  { background: #f6e3b8; }
.heat-high { background: #f0c0a0; }

/* Tables */
.heat-table {
    width: 100%;
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.heat-table th, .heat-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2d9cf;
}

/* ============================================================
   MODAL PORTAL
============================================================ */

.team-modal-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.95), rgba(0,0,0,0.94));
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 999999;
    opacity: 0;
    transition: opacity .25s ease;
}

.team-modal-bg.active {
    display: flex;
    opacity: 1;
}

/* Modal Core */
.team-modal {
    background: radial-gradient(circle at 0 0,
                rgba(255,255,255,0.98),
                rgba(255,255,255,0.92) 55%,
                rgba(248,243,236,0.96) 100%);
    border-radius: 26px;
    padding: 34px 40px 28px;
    max-width: 780px;
    width: 100%;
    position: relative;
    animation: portalIn .42s cubic-bezier(0.16, 0.9, 0.24, 1.1);
    box-shadow:
        0 40px 90px rgba(0,0,0,.6),
        0 0 0 1px rgba(255,255,255,0.9);
}

@keyframes portalIn {
    0% { transform: scale(0.7) translateY(20px); opacity: 0; }
    60% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

.team-modal-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .6;
    color: #6b5a46;
}

/* Modal Header */
.team-modal-header {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-bottom: 16px;
}

.team-modal-portrait-wrap {
    position: relative;
    width: 180px;
    height: 180px;
}

.team-modal-portrait-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.9), transparent 55%),
        radial-gradient(circle at 50% 70%, rgba(200,182,158,0.55), transparent 70%);
    filter: blur(4px);
}

.team-modal-header img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.6);
}

.team-modal-header h3 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
}

.team-modal-header p {
    color: #8f7a63;
    font-weight: 600;
}

.team-modal-contact {
    font-weight: 600;
    color: #8f7a63;
}

/* Audio Button */
.team-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #d8c9b5;
    padding: 6px 16px;
    background: #faf4eb;
}

/* ============================================================
   GÄSTEBUCH (Team-Seite)
============================================================ */

.team-guestbook {
    margin-top: 50px;
}

.guestbook-wrapper {
    margin-top: 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Closed Box */
.guestbook-closed-box {
    background: #ffffffd9;
    border-radius: 18px;
    padding: 34px 40px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    text-align: center;
    max-width: 820px;
    margin: 26px auto 60px;
    border: 1px solid #f0e7dc;
    animation: fadeInBox .4s ease;
}

@keyframes fadeInBox {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.guestbook-open-btn-alt {
    display: inline-block;
    padding: 12px 26px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4b08c 0%, #c0956a 100%);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

@media(max-width: 720px){
    .team-modal { padding: 26px 22px 22px; }
    .team-modal-header { flex-direction: column; text-align: center; }
    .team-modal-portrait-wrap { margin: 0 auto; }
}
/* ==========================================================
   HOLYFLOW – PREMIUM LEITUNGSVERS-BLOCK
   ========================================================== */

.hf-verse-block {
    text-align: center;
    margin: 40px auto 60px;
    max-width: 760px;
    padding: 0 20px;
}

.hf-verse-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(193,168,134,0.0) 0%,
        rgba(193,168,134,0.55) 50%,
        rgba(193,168,134,0.0) 100%
    );
    margin: 20px 0;
}

.hf-verse-text {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.55;
    color: #5b4c3d;
    margin: 0;
}

.hf-verse-ref {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #a08a73;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sacred-bg {
    position: relative;
    max-width: 1400px; /* gleiche Breite wie Theme */
    margin: 0 auto;    /* zentriert */
    overflow: visible;
}

/* Die Lichtstrahlen bleiben innerhalb dieses Bereichs */
.sacred-bg::before,
.sacred-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* exakt mittig */
    width: 100%;
    height: 100%;
    max-width: 1400px; /* exakt wie oben */
    pointer-events: none;
    z-index: -3;
}
.sacred-bg::before {
    border-radius: 32px;
}
