/* ============================================
   PFARRER – PREMIUM CLEAN LAYOUT
   ============================================ */

:root {
    --pf-bg: #f7f3ec;
    --pf-card-bg: #ffffff;
    --pf-card-soft: #fdf8f1;
    --pf-line: #d5c1a2;
    --pf-accent: #b8945a;
    --pf-accent-soft: rgba(184, 148, 90, 0.25);
    --pf-text: #2d2924;
    --pf-text-soft: #6d6256;
    --pf-radius-lg: 26px;
    --pf-radius-md: 18px;
    --pf-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.09);
}

/* Gesamtseite */
.pfarrer-page {
    padding: 80px 18px 120px;
    background: radial-gradient(circle at top, #fffaf3 0%, #f7f3ec 45%, #f3ede4 100%);
}

/* ============================================
   HERO
   ============================================ */

.pfarrer-hero {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.pfarrer-hero-inner {
    position: relative;
    padding: 42px 22px 52px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fffaf4 0%, #fff5ea 48%, #fbeedd 100%);
    box-shadow: var(--pf-shadow-soft);
    overflow: hidden;
}

/* Glow */
.pfarrer-hero-glow {
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(circle at 80% 0, rgba(232, 205, 156, 0.6), transparent 65%),
        radial-gradient(circle at 50% 100%, rgba(218, 188, 149, 0.4), transparent 65%);
    opacity: 0.9;
    pointer-events: none;
}

/* Ornamente */
.pfarrer-ornament {
    position: absolute;
    top: 56%;
    width: 170px;
    opacity: 0.3;
    transform: translateY(-50%);
    pointer-events: none;
}

.pfarrer-ornament-left {
    left: 12px;
}

.pfarrer-ornament-right {
    right: 12px;
}

/* Titelzeile */
.pfarrer-hero-header {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pfarrer-hero-line {
    flex: 1 1 140px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(210, 188, 148, 0.8), transparent);
}

.pfarrer-hero-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pf-text);
    background: rgba(255, 250, 243, 0.96);
    padding: 6px 26px 8px;
    border-radius: 999px;
    border: 1px solid rgba(210, 188, 148, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* Kreuz */
.pfarrer-hero-cross {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.pfarrer-hero-cross img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.18));
}

/* Vers + Text */
.pfarrer-hero-text {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.pfarrer-hero-verse {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 26px);
    color: var(--pf-text);
    margin-bottom: 6px;
}

.pfarrer-hero-ref {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pf-text-soft);
    margin-bottom: 14px;
}

.pfarrer-hero-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pf-text-soft);
}

/* ============================================
   Bearbeiten-Toggle
   ============================================ */

.pfarrer-edit-toggle-wrap {
    max-width: 1100px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: flex-end;
}

.pfarrer-edit-toggle-btn {
    border: 1px solid rgba(207, 186, 150, 0.95);
    border-radius: 999px;
    padding: 6px 16px 7px;
    font-size: 13px;
    background: linear-gradient(to bottom, #fffaf3, #f7ebd8);
    color: var(--pf-text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.pfarrer-edit-toggle-btn:hover {
    background: linear-gradient(to bottom, #fffdf8, #f8eedf);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* ============================================
   PFARRER-KARTEN
   ============================================ */

.pfarrer-section {
    max-width: 1100px;
    margin: 0 auto 70px;
}

.pfarrer-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

/* Karte */
.pfarrer-card {
    background: var(--pf-card-bg);
    border-radius: var(--pf-radius-lg);
    box-shadow: var(--pf-shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Bildbereich mit Auto-Crop */
.pfarrer-image-wrap {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.pfarrer-image-inner {
    width: 100%;
    aspect-ratio: 16 / 9; /* harmonische einheitliche Höhe */
    overflow: hidden;
    background: #f3e4cc;
}

.pfarrer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spezielles Cropping für Pfarrer Melchert (Gesicht sichtbar) */
.pfarrer-image-melchert {
    object-position: 50% 20%;
}

/* Inhalt der Karte */
.pfarrer-card-body {
    padding: 20px 22px 22px;
}

/* Name + Linie */
.pfarrer-header {
    margin-bottom: 10px;
}

.pfarrer-nameblock {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pfarrer-name-pill-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(210, 188, 148, 0.9), transparent);
}

.pfarrer-name-pill {
    padding: 6px 16px 8px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf8, #f8efe1);
    border: 1px solid rgba(211, 189, 153, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pfarrer-name-main {
    font-size: 17px;
    font-weight: 700;
    color: var(--pf-text);
}

.pfarrer-name-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pf-text-soft);
}

/* Kontakt-Accordion */
.pfarrer-contact-accordion {
    margin-top: 10px;
    border-radius: var(--pf-radius-md);
    border: 1px solid rgba(214, 193, 157, 0.9);
    background: linear-gradient(to bottom, #fffdf8, #f8f1e4);
    overflow: hidden;
}

.pfarrer-contact-toggle-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.pfarrer-contact-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pfarrer-contact-icon {
    font-size: 18px;
}

.pfarrer-contact-title {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pf-text-soft);
}

.pfarrer-contact-toggle-symbol {
    font-size: 18px;
    color: var(--pf-accent);
    transition: transform 0.18s ease;
}

/* wenn offen, drehen */
.pfarrer-contact-toggle-btn.is-open .pfarrer-contact-toggle-symbol {
    transform: rotate(45deg);
}

.pfarrer-contact-panel {
    display: none;
    padding: 0 14px 10px;
    border-top: 1px solid rgba(214, 193, 157, 0.8);
}

/* Textblock */
.pfarrer-text-block {
    margin-top: 14px;
    padding: 10px 12px 12px;
    border-radius: var(--pf-radius-md);
    background: var(--pf-card-soft);
    border: 1px solid rgba(222, 206, 176, 0.9);
}

/* Toolbar */
.pfarrer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.pfarrer-toolbar button {
    border: 1px solid rgba(208, 187, 152, 0.9);
    background: linear-gradient(to bottom, #fffaf3, #f6ebd9);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: var(--pf-text-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.pfarrer-toolbar button:hover {
    background: linear-gradient(to bottom, #fffdf8, #f8eedf);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Editierbare Inhalte */
.pfarrer-editable {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pf-text-soft);
    outline: none;
    min-height: 60px;
}

.pfarrer-editable-contact {
    margin-top: 4px;
}

.pfarrer-editable-main {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 6px 8px;
}

.pfarrer-editable:focus {
    box-shadow: 0 0 0 2px var(--pf-accent-soft);
}

/* Speichern-Indikator */
.pfarrer-save-indicator {
    margin-top: 4px;
    font-size: 11px;
    color: var(--pf-text-soft);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pfarrer-save-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pfarrer-save-indicator::before {
    content: "✓ ";
    color: var(--pf-accent);
}

/* ============================================
   FUSIONS-ABSCHNITT
   ============================================ */

.pfarrer-fusion {
    max-width: 900px;
    margin: 0 auto;
}

.pfarrer-fusion-inner {
    border-radius: 999px;
    padding: 16px 26px 18px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), #faefe0);
    border: 1px solid rgba(211, 188, 149, 0.95);
    box-shadow: var(--pf-shadow-soft);
    text-align: center;
}

.pfarrer-fusion-verse {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 15px;
    color: var(--pf-text);
    margin-bottom: 4px;
}

.pfarrer-fusion-ref {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pf-text-soft);
    margin-bottom: 7px;
}

.pfarrer-fusion-text {
    font-size: 13px;
    color: var(--pf-text-soft);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .pfarrer-cards {
        grid-template-columns: 1fr;
    }

    .pfarrer-ornament {
        display: none;
    }
}

@media (max-width: 768px) {
    .pfarrer-page {
        padding: 60px 12px 90px;
    }

    .pfarrer-hero-inner {
        border-radius: 26px;
        padding-inline: 16px;
    }

    .pfarrer-nameblock {
        flex-direction: column;
    }

    .pfarrer-name-pill-line {
        display: none;
    }

    .pfarrer-fusion-inner {
        border-radius: 28px;
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .pfarrer-card {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .pfarrer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   VIEW VS EDIT MODE
   ============================================ */

/* Im normalen View-Modus Toolbars verstecken */
.pfarrer-page:not(.pfarrer-edit-mode-on) .pfarrer-toolbar {
    display: none;
}
.pfarrer-image-inner {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3e4cc;
}
