/* ============================================================
   Socialboard 4.3 – Final Styles
   ============================================================ */

.socialboard-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: inherit;
}

/* ------------------------------------------------------------
   Gruppen
------------------------------------------------------------ */
.socialboard-group {
    margin-bottom: 50px;
}

.socialboard-group-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------
   Cards – Masonry Grid Layout (KEIN Equal-Height!)
------------------------------------------------------------ */
.socialboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    grid-auto-flow: dense;       /* Masonry-ähnliches Verhalten */
    gap: 20px;
    align-items: start;          /* WICHTIG: verhindert Equal-Height */
}

.socialboard-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: visible;           /* WICHTIG: kein hidden, Masonry mag visible */
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    padding: 18px 18px 25px;

    /* Masonry-Fix in allen Browsern */
    break-inside: avoid;
    page-break-inside: avoid;
    -moz-column-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.socialboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   SOCIAL-ITEM TITEL + CONTENT (größer & harmonisch)
------------------------------------------------------------ */
/* Social-Item Titel – deutlich größer */
.social-item-title {
    font-size: 1.65rem;      /* vorher 1.35 */
    font-weight: 300;
    margin-bottom: 14px;
    color: #000;
}

/* Content – größer als vorher */
.social-item-content {
    font-size: 1.45rem;      /* vorher 1.20 */
    line-height: 1.75;
color: #0092ff;
	font-style: italic;
	 font-weight: 500;
	/* ohne bg aber kursiv */
    margin-bottom: 20px;
    padding: .3em .6em;      /* etwas Luft, optional */
    border-radius: .25rem;   /* optional, weiche Ecken */
}



/* ------------------------------------------------------------
   KOMMENTAR (kursiv differenziert)
------------------------------------------------------------ */
/* Kommentar – klar sichtbar, aber kleiner + kursiv */
.socialboard-comment,
.linkbox-text {
    font-size: 1.45rem;      /* vorher 1.05 */
    line-height: 1.65;
    color: #444;
	font-style: normal;
	   background: #e6f4ff;        /* hellblaiu */
    margin-bottom: 20px;
    padding: .3em .6em;      /* etwas Luft, optional */
    border-radius: .25rem;   /* optional, weiche Ecken */
    opacity: 0.95;
    margin-top: 14px;
}

/* ------------------------------------------------------------
   Medien-Elemente
------------------------------------------------------------ */
/* Bilder */
.socialboard-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Videos */
.socialboard-video,
.socialboard-video-wrapper iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
    background: #000;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* YouTube/Vimeo Wrapper (16:9) */
.socialboard-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.socialboard-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

/* Audio */
.socialboard-audio {
    width: 100%;
    margin: 0 0 15px 0;
    display: block;
}

/* PDF (eingebettet) */
.socialboard-pdf {
    width: 100%;
    border: none;
    border-radius: 10px;
    margin: 10px 0 20px;
    background: #fafafa;
}

/* ------------------------------------------------------------
   Webseiten (iFrame)
------------------------------------------------------------ */
.socialboard-website iframe {
    width: 100%;
    height: 520px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ------------------------------------------------------------
   Instagram / LinkedIn
------------------------------------------------------------ */

.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.socialboard-card .instagram-media {
    display: block !important;
}

.socialboard-card iframe {
    max-width: 100% !important;
}


.socialboard-linkedin iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
}

/* ------------------------------------------------------------
   Link-Box (für externe URLs) & Interne Link-Preview
------------------------------------------------------------ */
.socialboard-linkbox {
    padding: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.socialboard-linkbox .linkbox-url {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.socialboard-linkbox .linkbox-url:hover {
    text-decoration: underline;
}

/* optional: interne Link-Preview-Box */
.internal-link-preview {
    padding: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.internal-link-preview .ilp-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.internal-link-preview .ilp-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.internal-link-preview .ilp-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #444;
    color: #fff;
    text-decoration: none;
}

/* ------------------------------------------------------------
   Error Boxes
------------------------------------------------------------ */
.socialboard-error {
    padding: 20px;
    background: #ffecec;
    border-left: 4px solid #ff4a4a;
    color: #b00000;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Lazy Load – sanfter Fade-In
------------------------------------------------------------ */
.socialboard-image,
.socialboard-video,
.socialboard-video-wrapper iframe,
.socialboard-website iframe,
.socialboard-linkedin iframe,
.socialboard-audio,
.socialboard-pdf {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.socialboard-loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ------------------------------------------------------------
   Lightbox – Basis
------------------------------------------------------------ */
.socialboard-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease forwards;
}

.socialboard-lightbox-content img,
.socialboard-lightbox-content video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
}

.socialboard-lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ------------------------------------------------------------
   Responsive Tweaks
------------------------------------------------------------ */
@media (max-width: 900px) {
    .social-item-title { font-size: 1.28rem; }
    .social-item-content { font-size: 1.12rem; }