.schlagseite-gastautor {
    --sg-wine: #813732;
    --sg-wine-dark: #6f2f2b;
    --sg-brown: #5a302d;
    --sg-cream: #fffaf6;
    --sg-soft: #f6ede7;
    --sg-border: rgba(129, 55, 50, .20);
    --sg-shadow: 0 8px 24px rgba(70, 35, 31, .065);
    margin: 1.75rem 0 0;
    border: 1px solid var(--sg-border);
    border-left: 5px solid var(--sg-wine);
    border-radius: 11px;
    background: linear-gradient(180deg, #fffdfb 0%, var(--sg-cream) 100%);
    box-shadow: var(--sg-shadow);
    color: var(--sg-brown);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.schlagseite-gastautor:hover {
    border-color: rgba(129, 55, 50, .27);
    box-shadow: 0 11px 30px rgba(70, 35, 31, .085);
}

/*
 * Visuelle Trennung zwischen Gastautoren-Modul und dem eigentlichen Beitrag.
 * Bewusst außerhalb der Karte, damit die Autoreninformation als eigene
 * redaktionelle Ebene wahrgenommen wird.
 */
.schlagseite-gastautor-trenner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 1.35rem 0 1.85rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.schlagseite-gastautor-trenner > span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 76% !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(
        90deg,
        rgba(129, 55, 50, 0) 0%,
        rgba(129, 55, 50, .30) 14%,
        rgba(129, 55, 50, .50) 50%,
        rgba(129, 55, 50, .30) 86%,
        rgba(129, 55, 50, 0) 100%
    ) !important;
    box-shadow: none !important;
}

.schlagseite-gastautor summary {
    list-style: none;
}

.schlagseite-gastautor summary::-webkit-details-marker {
    display: none;
}

.schlagseite-gastautor-summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 10px 15px 10px 13px;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease;
}

.schlagseite-gastautor-summary:hover {
    background: rgba(129, 55, 50, .028);
}

.schlagseite-gastautor[open] .schlagseite-gastautor-summary {
    background: rgba(129, 55, 50, .018);
}

.schlagseite-gastautor-summary:focus-visible {
    outline: 3px solid rgba(129, 55, 50, .22);
    outline-offset: -3px;
}

.schlagseite-gastautor-avatar {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--sg-soft);
    border: 2px solid rgba(129, 55, 50, .20);
    box-shadow: 0 3px 10px rgba(70, 35, 31, .10);
}

.schlagseite-gastautor-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schlagseite-gastautor-initial {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--sg-wine);
}

.schlagseite-gastautor-summarytext {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: .002em;
}

.schlagseite-gastautor-summaryprefix {
    color: rgba(90, 48, 45, .72);
    font-weight: 600;
}

.schlagseite-gastautor-summarytext strong {
    color: var(--sg-wine);
    font-weight: 800;
}

.schlagseite-gastautor-chevron {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(129, 55, 50, .42);
    background: #f5e8e4;
    box-shadow: 0 2px 7px rgba(90, 48, 45, .12);
    align-items: center;
    justify-content: center;
    transition: transform .24s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.schlagseite-gastautor-summary:hover .schlagseite-gastautor-chevron {
    border-color: #632c28;
    background: #632c28;
    box-shadow: 0 4px 12px rgba(90, 48, 45, .30);
}

.schlagseite-gastautor-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--sg-wine);
    border-bottom: 2px solid var(--sg-wine);
    transform: translateY(-2px) rotate(45deg);
}

.schlagseite-gastautor[open] .schlagseite-gastautor-chevron {
    transform: rotate(180deg);
    background: #f5e8e4;
}

.schlagseite-gastautor-summary:hover .schlagseite-gastautor-chevron::before {
    border-color: #fff;
}

.schlagseite-gastautor[open] .schlagseite-gastautor-summary:hover .schlagseite-gastautor-chevron {
    border-color: #632c28;
    background: #632c28;
}

.schlagseite-gastautor-body {
    position: relative;
    padding: 17px 22px 19px 80px;
    border-top: 1px solid rgba(129, 55, 50, .10);
    background: rgba(255, 255, 255, .24);
    animation: schlagGaReveal .2s ease-out;
}

.schlagseite-gastautor-head {
    margin: 0;
}

.schlagseite-gastautor-name {
    color: var(--sg-wine);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
}

.schlagseite-gastautor-role {
    margin-top: 2px;
    color: rgba(90, 48, 45, .64);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.schlagseite-gastautor-bio {
    max-width: 760px;
    margin-top: 9px;
    color: rgba(90, 48, 45, .92);
    font-size: .96rem;
    line-height: 1.64;
}

.schlagseite-gastautor-bio p {
    margin: 0 0 .65rem;
}

.schlagseite-gastautor-bio p:last-child {
    margin-bottom: 0;
}

.schlagseite-gastautor-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    max-width: 860px;
}

.schlagseite-gastautor-social,
.schlagseite-gastautor-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    box-sizing: border-box;
    text-decoration: none !important;
    line-height: 1.2;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.schlagseite-gastautor-social {
    padding: 7px 11px 7px 8px;
    border-radius: 999px;
    border: 1px solid rgba(129, 55, 50, .20);
    background: rgba(255, 255, 255, .82);
    color: var(--sg-wine) !important;
    font-size: .84rem;
    box-shadow: 0 2px 7px rgba(70, 35, 31, .055);
}

.schlagseite-gastautor-social:hover,
.schlagseite-gastautor-social:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(129, 55, 50, .37);
    background: var(--sg-soft);
    color: var(--sg-wine-dark) !important;
    box-shadow: 0 5px 14px rgba(70, 35, 31, .09);
}

.schlagseite-gastautor-social-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--sg-wine);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.schlagseite-gastautor-social-instagram .schlagseite-gastautor-social-icon,
.schlagseite-gastautor-social-youtube .schlagseite-gastautor-social-icon,
.schlagseite-gastautor-social-telegram .schlagseite-gastautor-social-icon {
    font-size: .82rem;
}

.schlagseite-gastautor-social-arrow {
    opacity: .7;
    font-size: .78rem;
}

.schlagseite-gastautor-original-wrap {
    margin-top: 12px;
}

.schlagseite-gastautor-original {
    min-height: 37px;
    padding: 8px 13px;
    border-radius: 7px;
    border: 1px solid var(--sg-wine);
    background: var(--sg-wine);
    color: #fff !important;
    font-size: .87rem;
    box-shadow: 0 2px 6px rgba(70, 35, 31, .08);
}

.schlagseite-gastautor-original:hover,
.schlagseite-gastautor-original:focus-visible {
    transform: translateY(-1px);
    background: var(--sg-wine-dark);
    border-color: var(--sg-wine-dark);
    box-shadow: 0 5px 14px rgba(70, 35, 31, .13);
}

.schlagseite-gastautor-note {
    display: grid;
    gap: 3px;
    max-width: 860px;
    margin-top: 17px;
    padding-top: 11px;
    border-top: 1px solid rgba(129, 55, 50, .09);
    color: rgba(90, 48, 45, .67);
    font-size: .79rem;
    line-height: 1.48;
}

.schlagseite-gastautor-note span {
    display: block;
}

@keyframes schlagGaReveal {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .schlagseite-gastautor {
        margin: 1.25rem 0 0;
        border-radius: 10px;
    }

    .schlagseite-gastautor-trenner {
        width: 100% !important;
        margin: 1.05rem 0 1.55rem !important;
    }

    .schlagseite-gastautor-trenner > span {
        width: 72% !important;
    }

    .schlagseite-gastautor-summary {
        grid-template-columns: 46px minmax(0, 1fr) 32px;
        gap: 10px;
        min-height: 64px;
        padding: 8px 10px 8px 9px;
    }

    .schlagseite-gastautor-avatar {
        width: 46px;
        height: 46px;
    }

    .schlagseite-gastautor-summarytext {
        font-size: .94rem;
    }

    .schlagseite-gastautor-chevron {
        width: 30px;
        height: 30px;
    }

    .schlagseite-gastautor-body {
        padding: 14px 13px 15px 13px;
    }

    .schlagseite-gastautor-name {
        font-size: 1.06rem;
    }

    .schlagseite-gastautor-bio {
        font-size: .94rem;
        line-height: 1.58;
    }

    .schlagseite-gastautor-socials {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schlagseite-gastautor-social,
    .schlagseite-gastautor-original {
        width: 100%;
        min-height: 43px;
    }

    .schlagseite-gastautor-original-wrap {
        display: block;
    }

    .schlagseite-gastautor-note {
        margin-top: 15px;
        font-size: .78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .schlagseite-gastautor,
    .schlagseite-gastautor-summary,
    .schlagseite-gastautor-chevron,
    .schlagseite-gastautor-social,
    .schlagseite-gastautor-original,
    .schlagseite-gastautor-body {
        transition: none !important;
        animation: none !important;
    }
}

/*
 * Globale Externlink-Pfeile innerhalb des Gastautoren-Moduls unterdrücken.
 * Das Plugin zeigt seine eigenen, kontrollierten Pfeile als echte Elemente.
 */
.schlagseite-gastautor-social::after,
.schlagseite-gastautor-original::after {
    content: none !important;
    display: none !important;
}


/*
 * Dezenter Autorenabschluss am Ende eines Gastbeitrags.
 * Keine zweite Karte: nur eine ruhige redaktionelle Signatur vor den Quellen.
 */
.schlagseite-gastautor-abschluss {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2.25rem 0 3.25rem;
    padding: 1rem 0 .15rem;
    border-top: 1px solid rgba(129, 55, 50, .22);
    color: var(--sg-brown, #5a302d);
}

.schlagseite-gastautor-abschluss-avatar {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(129, 55, 50, .20);
    background: #f6ede7;
    box-shadow: 0 2px 8px rgba(70, 35, 31, .08);
}

.schlagseite-gastautor-abschluss-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schlagseite-gastautor-abschluss-initial {
    color: #813732;
    font-size: 1rem;
    font-weight: 800;
}

.schlagseite-gastautor-abschluss-text {
    min-width: 0;
    line-height: 1.45;
}

.schlagseite-gastautor-abschluss-title {
    color: rgba(90, 48, 45, .82);
    font-size: .93rem;
    font-weight: 600;
}

.schlagseite-gastautor-abschluss-title strong {
    color: #813732;
    font-weight: 800;
}

.schlagseite-gastautor-abschluss-role {
    color: rgba(90, 48, 45, .54);
    font-size: .84rem;
    font-weight: 600;
}

.schlagseite-gastautor-abschluss-note {
    margin-top: 2px;
    color: rgba(90, 48, 45, .58);
    font-size: .76rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .schlagseite-gastautor-abschluss {
        gap: 9px;
        margin: 1.9rem 0 2.5rem;
        padding-top: .9rem;
    }

    .schlagseite-gastautor-abschluss-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .schlagseite-gastautor-abschluss-title {
        font-size: .89rem;
    }

    .schlagseite-gastautor-abschluss-role {
        display: none;
    }

    .schlagseite-gastautor-abschluss-note {
        font-size: .73rem;
    }
}
