#load-more {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    display: block;
}

* { box-sizing: border-box; }

#post-container {
    /*background: #DDD;*/
    height: 75%; /* inherit height from body */

}






/*YouTube*/


/* --- Banner (Consent-Hinweis) --- */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 1rem;
    display: none; /* Standard: ausgeblendet, wird später eingeblendet */
    z-index: 9999;
}
#consent-banner p {
    margin-top: 0;
}
#consent-banner button {
    margin-right: 0.5em;
}

/* --- Video-Container (Responsiv) --- */
.youtube-video {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: #000;
    overflow: hidden;
    margin: 1em 0;
}
.youtube-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
    text-align: center;
    padding: 0 1em;
}
.youtube-overlay:hover {
    background: rgba(0,0,0,0.7);
}
.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Zahnrad-Button (Einstellungen) --- */
#settings-button {
    display: none; /* Wird nur gezeigt, wenn consent = accepted */
    position: fixed;
    top: 1em;
    right: 1em;
    font-size: 1.5em;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 9999; /* über allem */
}
#settings-button:hover {
    color: #000;
}

/* --- Panel für Widerruf --- */
#video-settings-panel {
    display: none;
    position: fixed;
    top: 3.5em;
    right: 1em;
    padding: 1em;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 220px;
    z-index: 9999;
}
#video-settings-panel label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
#video-settings-panel input[type="checkbox"] {
    margin-right: 0.5em;
}



.grid-t3social {
    height: 80%;
    height: 480px;
}

.sm-item-container {
    padding: 10px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
}

/* Desktop: 4 columns */
.grid-sizer,
.grid-item {
    width: 25%; /* 4 columns for larger screens */
}

/* 2 columns wide on tablets (optional) */
@media (max-width: 1024px) {
    .grid-sizer,
    .grid-item {
        width: 33.33%; /* 3 columns for tablets */
    }
}


/* 2 columns wide on mobile devices */
@media (max-width: 767px) {
    .grid-sizer,
    .grid-item {
        width: 100%; /* 2 columns for small screens */
    }
}




.t3social-remaining   { display: none; }
.t3social-expanded .t3social-remaining { display: inline; }
.t3social-expanded .t3social-ellipsis  { display: none; }

.t3social-toggle {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}





/* YouTube Consent */
.customer-post__youtube {
    position: relative;
    overflow: hidden;
}

.customer-post__youtube-consent {
    position: relative;
}

.customer-post__youtube-thumb {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.5);
}

.customer-post__youtube-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}

.customer-post__youtube-notice {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 90%;
}

.customer-post__youtube-privacy-link {
    color: #fff;
    text-decoration: underline;
}

.customer-post__youtube-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 220px;
}

.customer-post__youtube-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.customer-post__youtube-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.customer-post__youtube-btn--all {
    background: rgba(255, 0, 0, 0.85);
    border-color: rgba(255, 0, 0, 0.85);
}

.customer-post__youtube-btn--all:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

/* Play-Icon vor "Video laden" */
.js-youtube-accept-one::before {
    content: '▶';
    font-size: 0.75rem;
}

/* YouTube Player */
.customer-post__youtube-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}



.t3social-hidden {
    display: none !important;
}

/*
 * Post-Content: <p>-Wrap (Import & CKEditor) optisch neutralisieren.
 * Aussenrand entfaellt -> wie zuvor ohne <p>; Mehrfach-Absaetze (BE-Edit)
 * behalten ihren natuerlichen Zwischenabstand.
 */
.customer-post__content > p:first-child {
    margin-top: 0;
}

.customer-post__content > p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * Bild-Slider (multiImage-Posts, z. B. LinkedIn MULTI_IMAGE)
 * Dependency-frei: scroll-snap + minimaler Vanilla-JS-Enhancer.
 * ------------------------------------------------------------------------ */
.t3social-slider {
    position: relative;
    margin-bottom: 1rem;
}
.t3social-slider__viewport {
    overflow: hidden;
    border-radius: 4px;
}
.t3social-slider__track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.t3social-slider__track::-webkit-scrollbar {
    display: none; /* WebKit */
}
.t3social-slider__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
}
.t3social-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Navigations-Pfeile (nur mit JS sichtbar) */
.t3social-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}
.t3social-slider__nav:hover {
    background: rgba(0, 0, 0, 0.75);
}
.t3social-slider__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.t3social-slider__nav--prev { left: 0.5rem; }
.t3social-slider__nav--next { right: 0.5rem; }
.t3social-slider__nav[disabled] {
    opacity: 0.3;
    cursor: default;
}

/* Punkte-Indikator */
.t3social-slider__dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.t3social-slider__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.t3social-slider__dot--active {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
}
.t3social-slider__counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    z-index: 2;
}

.filter-button-group {
  justify-content: center;
  gap: 8px;
}
.filter-button-group button {
  background-color: #007acc;
  border-color: #007acc;
  transition: 0.3s ease;
}
.filter-button-group button:hover {
  opacity: 0.8;
  box-shadow: 0px 0px 11px #007acc;
}