/*
 Theme Name:   Divi Child
 Theme URI:    https://example.com
 Description:  Child Theme für Divi 5
 Author:       Christoph Schade
 Author URI:   https://webdesigner-halle-saale.de
 Template:     Divi
 Version:      1.0.0
*/

/* Hier kommt später unser eigenes CSS rein */

/* === Autorbox Styling === */

.custom-author-box {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc; /* leichtes Grau/Blau */
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.custom-author-box__avatar img {
    border-radius: 999px;
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.custom-author-box__content {
    flex: 1;
}

.custom-author-box__name {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.custom-author-box__name a {
    text-decoration: none;
    color: #0f172a;
}

.custom-author-box__name a:hover {
    text-decoration: underline;
}

.custom-author-box__role {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.custom-author-box__bio {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
}

/* Responsiv für kleinere Screens */
@media (max-width: 768px) {
    .custom-author-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-author-box__avatar img {
        width: 64px;
        height: 64px;
    }
}

/* === Autorbox – Boxlayout im Stil deiner Seite === */

.custom-author-box {
    margin-top: 3rem;
    padding: 2.25rem 2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0; /* dezente Rahmenfarbe */
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    position: relative;
}

/* farbiger Balken oben – an deine Akzentfarbe anpassen */
.custom-author-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: #0ea5e9; /* HIER ggf. deine Markenfarbe verwenden */
}

.custom-author-box__avatar img {
    border-radius: 999px;
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.custom-author-box__content {
    flex: 1;
}

.custom-author-box__name {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.custom-author-box__name a {
    text-decoration: none;
    color: #0f172a;
}

.custom-author-box__name a:hover {
    text-decoration: underline;
}

.custom-author-box__role {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.custom-author-box__bio {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
}

/* LinkedIn-Button */
.custom-author-box__social {
    margin-top: 1.25rem;
}

.custom-author-box__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #0ea5e9; /* gleiche Akzentfarbe wie oben */
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.custom-author-box__social a:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 18px 35px rgba(14, 165, 233, 0.4);
}

.custom-author-box__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.custom-author-box__social-svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Responsive für mobiles Layout */
@media (max-width: 768px) {
    .custom-author-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
    }

    .custom-author-box__avatar img {
        width: 64px;
        height: 64px;
    }
}


/* === Sticky Post Styling mit Pinnadel === */

/* Grundlayout für angepinnte Beiträge */
.cs-sticky-post {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* farbiger Balken oben (optional) */
.cs-sticky-post::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0ea5e9; /* Akzentfarbe an dein Design anpassen */
}

/* Pinnadel-Badge oben links */
.cs-sticky-post::after {
    content: "Angepinnt";
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 0.25rem 0.7rem 0.25rem 2.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* kleine Pinnadel-„Iconform“ im Badge */
.cs-sticky-post::after {
    /* wir kombinieren Text + pseudo-icon in einem Element */
}

/* eigentliche Pinnadel durch weiteres Pseudo-Element auf dem Badge */
.cs-sticky-post::after {
    /* bleibt wie oben; jetzt zusätzlich: */
}

/* Pinnadel-Kopf + Nadel neben dem Text – mit einem extra Element */
.cs-sticky-post::after {
    /* wir können die Pinnadel mit einem Hintergrund-Icon simulieren */
}

/* Bessere, explizite Variante – wir arbeiten mit einem separaten Element im inneren Layout: */

/* === Sticky Post Styling mit Pinnadel für Divi-Blog-Karten === */

.cs-sticky-post {
    position: relative;
}

/* Wrapper (Divi setzt meist .et_pb_post) – optisch hervorheben */
.cs-sticky-post.et_pb_post {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Farbiger Balken oben */
.cs-sticky-post.et_pb_post::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0ea5e9; /* Deine Akzentfarbe */
}

/* Pinnadel-Badge */
.cs-sticky-post .cs-sticky-badge {
    position: absolute;
    top: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    z-index: 5;
}

/* Pinnadel-Icon (rein mit CSS) */
.cs-sticky-post .cs-sticky-badge::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px 999px 999px 999px;
    border: 2px solid #0ea5e9;
    background: #f9fafb;
    position: relative;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

/* „Nadel“ */
.cs-sticky-post .cs-sticky-badge::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: -6px;
    width: 2px;
    height: 8px;
    background: #0f172a;
    transform: rotate(10deg);
}

/* === Sticky Post Card + Badge === */

/* Grund-Card für angepinnte Beiträge */
.blog .cs-sticky-post,
.archive .cs-sticky-post {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background-color: #ffffff;
    padding: 1.5rem 1.75rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* sicherstellen, dass Header relativ eine eigene „Zeile“ bietet */
.blog .cs-sticky-post .entry-header,
.archive .cs-sticky-post .entry-header {
    position: relative;
    padding-top: 0.4rem;
}

/* Badge über dem Titel – eigene Zeile */
.blog .cs-sticky-post .entry-header::before,
.archive .cs-sticky-post .entry-header::before,
.cs-sticky-post::after  {
    content: "📌 Angepinnt";
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(67, 101, 179, 0.95);
    color: #f9fafb;
}

/* optional: Titel ein bisschen enger an den Text rücken */

.blog .cs-sticky-post .entry-title, .archive .cs-sticky-post .entry-title {
    margin-top: 30px;
}

/* === TECHNISCHER TRENNER ZWISCHEN BLOGPOSTS (ohne Sticky-Post) === */

.blog article,
.archive article,
.et_pb_blog_grid .et_pb_post {
    position: relative;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

/* Divider nur bei NICHT-Sticky-Posts */
.blog article:not(.cs-sticky-post):not(:last-of-type)::after,
.archive article:not(.cs-sticky-post):not(:last-of-type)::after,
.et_pb_blog_grid .et_pb_post:not(.cs-sticky-post):not(:last-of-type)::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 2rem;

    background: linear-gradient(
        90deg,
        rgba(148,163,184,0.05) 0%,
        rgba(148,163,184,0.35) 40%,
        rgba(148,163,184,0.35) 60%,
        rgba(148,163,184,0.05) 100%
    );

    position: relative;
}


