/*
Spins
*/

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
	
/*
Adsense
*/

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

#adsense-container, 
.adsense-container,
.google-auto-placed {
    display: block !important;
    position: relative !important;
    margin: 25px auto !important;
    width: 95% !important; 
    max-width: 1200px !important;
    background-color: #fafafa !important;
    border: 1px solid #efefef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

#adsense-container::before,
.adsense-container::before,
.google-auto-placed::before {
    content: "ANZEIGE / ADSENSE" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #000 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    height: 25px !important;
    width: 100% !important;
    border-bottom: 1px solid #efefef !important;
    box-sizing: border-box !important;
}

.google-auto-placed ins,
.google-auto-placed iframe,
ins.adsbygoogle iframe {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
}

@media screen and (max-width: 600px) {
    #adsense-container,
    .adsense-container,
    .google-auto-placed {
        width: 98% !important; 
        margin: 15px auto !important;
        padding-top: 0 !important;
    }
}

/*
AdBlocker
*/
.lang-wrapper {
    text-align: center;
    margin-bottom: 12px;
}

.lang-label {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
Dropdown
*/
.lang-select {
    position: relative;
    display: inline-block;
    width: fit-content; /* 🔑 */
    font-family: inherit;
}

.lang-selected {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 22px 6px 8px; /* kompakt + Platz für Pfeil */
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.lang-selected img,
.lang-options img {
    width: 18px;
    height: 13px;
}

.lang-text {
    font-size: 20px;
    white-space: nowrap;
}

.arrow {
    position: absolute;
    right: 8px;
    font-size: 10px;
    opacity: .6;
    pointer-events: none;
}

.lang-options {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    list-style: none;
    padding: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 999;
    width: max-content; /* 🔑 */
}

.lang-options li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 20px;
    white-space: nowrap;
}

.lang-options li:not(.disabled):hover {
    background: #f2f2f2;
    cursor: pointer;
}

.lang-options .disabled {
    opacity: .5;
    cursor: default;
}

@media (prefers-color-scheme: dark) {
    .lang-selected,
    .lang-options {
        background: #1f1f1f;
        border-color: #444;
        color: #f1f1f1;
    }

    .lang-options li:not(.disabled):hover {
        background: #2a2a2a;
    }
}

/*
Textticker
*/
.custom-ticker {
    position: relative;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 10px;
    border-radius: 12px;
    font-family: "Arial", sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.custom-ticker-item {
    display: none;
    font-weight: bold;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3em;
    margin: 0 auto;
    max-width: 95%;
    text-align: center;
}

.custom-ticker-item.active {
    display: block;
}

.ticker-dots {
    margin-top: 5px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ticker-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.ticker-dots span.active {
    background: #000;
    transform: scale(1.3);
}

.js-warning {
    width: 100%;
    text-align: center;
    font-size: 0.95em;
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .custom-ticker {
        padding-left: 10px;
        padding-right: 10px;
    }
    .custom-ticker-item {
        line-height: 1.4em;
    }
}