/* Schilcher Announcements — Header-attached Carousel */

/* Bar — absolutely positioned at header bottom, centered */
.schilcher-announcements-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    z-index: 100;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e0d5c3;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s ease, max-width 0.4s ease, opacity 0.3s ease;
}

/* Solid on hover */
.schilcher-announcements-bar:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Expanded state — wider to show full text */
.schilcher-announcements-bar.is-expanded {
    max-width: 700px;
}

/* Slide track */
.schilcher-announcements-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Individual slide */
.schilcher-announcement-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Slide inner content */
.schilcher-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 12px;
    gap: 8px;
}

/* Thumbnail container */
.schilcher-announcement-thumb {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* Thumbnail image */
.schilcher-announcement-thumb img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

/* Message text — single line, ellipsis overflow */
.schilcher-announcement-text {
    flex: 1;
    min-width: 0;
    color: #49391b;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expanded text */
.schilcher-announcement-text.is-expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* "Mehr" toggle */
.schilcher-announcement-more-toggle {
    background: none;
    border: none;
    margin: 0;
    color: #876c4b;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    cursor: pointer;
    padding: 0 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}

.schilcher-announcement-more-toggle:hover {
    color: #49391b;
}

/* Dismiss button */
.schilcher-announcement-dismiss {
    background: none;
    border: none;
    margin: 0;
    color: #bda77f;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.schilcher-announcement-dismiss:hover {
    color: #49391b;
}

/* Dot navigation */
.schilcher-announcements-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 1px 0 5px;
}

/* Individual dot */
.schilcher-dot {
    display: block;
    border: none;
    outline: none;
    background: #bda77f;
    opacity: 0.35;
    border-radius: 50%;
    width: 5px;
    height: 5px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: width 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

/* Active dot — stretched pill */
.schilcher-dot.is-active {
    width: 16px;
    border-radius: 2.5px;
    opacity: 1;
    background: #49391b;
}
