/* Seehaus Störer – dezente Hinweis-Karte, fährt seitlich herein */

.stoerer[hidden] { display: none !important; }

.stoerer {
    position: fixed;
    z-index: 9000;
    width: min(360px, calc(100vw - 2rem));
    background: rgba(255, 255, 255, var(--stoerer-bg-alpha, 0.9));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #2a2a2a;
  /*  border-left: 4px solid var(--stoerer-accent, #7a6a3a); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.1rem 2.4rem 1.1rem 1.25rem;
    font-family: inherit;
    line-height: 1.5;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-fill-mode: both;
}

/* Positionen – jeweils mit Einfahr-Richtung von der zugehörigen Seite */
.stoerer--top-left     { left: 1.25rem;  top: 10.25rem;    animation-name: stoerer-in-left; }
.stoerer--bottom-left  { left: 1.25rem;  bottom: 1.25rem; animation-name: stoerer-in-left; }
.stoerer--top-right    { right: 1.25rem; top: 10.25rem;    animation-name: stoerer-in-right; }
.stoerer--bottom-right { right: 1.25rem; bottom: 1.25rem; animation-name: stoerer-in-right; }

.stoerer--hiding {
    animation-duration: 0.3s;
    animation-timing-function: ease-in;
}
.stoerer--top-left.stoerer--hiding,
.stoerer--bottom-left.stoerer--hiding   { animation-name: stoerer-out-left; }
.stoerer--top-right.stoerer--hiding,
.stoerer--bottom-right.stoerer--hiding  { animation-name: stoerer-out-right; }

.stoerer__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0.35rem;
    transition: color 0.15s;
}
.stoerer__close:hover { color: #2a2a2a; }

.stoerer__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stoerer-accent, #7a6a3a);
    font-weight: 600;
}

.stoerer__headline {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2a2a2a;
}

.stoerer__body {
    margin: 0;
    font-size: 0.875rem;
    color: #444;
}

.stoerer__link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stoerer-accent, #7a6a3a);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.stoerer__link:hover { color: #2a2a2a; }

@keyframes stoerer-in-left {
    from { transform: translateX(calc(-100% - 2rem)); }
    to   { transform: translateX(0); }
}
@keyframes stoerer-out-left {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(calc(-100% - 2rem)); opacity: 0; }
}
@keyframes stoerer-in-right {
    from { transform: translateX(calc(100% + 2rem)); }
    to   { transform: translateX(0); }
}
@keyframes stoerer-out-right {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(calc(100% + 2rem)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .stoerer, .stoerer--hiding { animation: none; }
}

/* Mobile: immer als Streifen am unteren Rand, von unten einfahrend –
   oben würde er Navigation und Hero überdecken. */
@media (max-width: 640px) {
    .stoerer--top-left,
    .stoerer--top-right,
    .stoerer--bottom-left,
    .stoerer--bottom-right {
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: 0.75rem;
        width: auto;
        padding: 0.9rem 2.2rem 0.9rem 1rem;
        animation-name: stoerer-in-up;
    }
    .stoerer--hiding { animation-name: stoerer-out-down !important; }
    .stoerer__headline { font-size: 0.95rem; }
    .stoerer__body { font-size: 0.82rem; }
}
@keyframes stoerer-in-up {
    from { transform: translateY(calc(100% + 1rem)); }
    to   { transform: translateY(0); }
}
@keyframes stoerer-out-down {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(calc(100% + 1rem)); opacity: 0; }
}
