Files
Bratonien-Adventskalender/adventskalender/2025/css/day.css
2025-11-10 17:39:11 +01:00

129 lines
2.4 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Bratonien Adventskalender 2025 day.css
Voll responsive Darstellung der Türcheninhalte
*/
/* === POPUP-BASIS === */
.popup-day {
width: 100%;
max-width: clamp(320px, 85vw, 1800px);
margin: 0 auto;
padding: clamp(1rem, 2vw, 3rem);
text-align: center;
color: var(--ci-darkgreen);
font-family: "Bratonien2025", cursive;
box-sizing: border-box;
}
.popup-day h3 {
font-size: clamp(1.2rem, 2vw, 2.2rem);
color: var(--ci-gold);
margin-bottom: clamp(1rem, 2vw, 2rem);
letter-spacing: 0.05em;
text-shadow:
0 0 4px rgba(0, 0, 0, 0.4),
0 0 8px rgba(0, 0, 0, 0.3);
}
/* === BILDER === */
.image-wrapper {
position: relative;
width: 100%;
margin: 0 auto clamp(1.2rem, 2vw, 2.5rem);
overflow: hidden;
border-radius: 12px;
box-shadow:
0 0 12px rgba(0, 0, 0, 0.25),
0 0 20px color-mix(in srgb, var(--ci-gold) 25%, transparent);
}
.image-wrapper picture,
.image-wrapper img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
}
/* === VIDEOS === */
.video-wrapper {
position: relative;
width: 100%;
max-width: 100%;
margin: 0 auto clamp(1rem, 2vw, 2rem);
background: #000;
border-radius: 12px;
overflow: hidden;
box-shadow:
0 0 16px rgba(0, 0, 0, 0.4),
0 0 24px color-mix(in srgb, var(--ci-blue) 20%, transparent);
}
/* verhindert Layoutsprung beim Laden */
.video-wrapper::before {
content: "";
display: block;
padding-top: 56.25%; /* 16:9 */
}
.video-wrapper video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
outline: none;
object-fit: cover;
border-radius: 12px;
}
/* === AUDIO === */
audio {
display: none;
}
/* === RESPONSIVE FEINANPASSUNG === */
/* Smartphones (bis ca. 480 px) */
@media (max-width: 480px) {
.popup-day {
padding: 1rem 0.5rem 1.5rem;
}
.popup-day h3 {
font-size: 1.1rem;
}
}
/* Tablets (7681024 px) */
@media (min-width: 768px) and (max-width: 1024px) {
.popup-day {
max-width: 92vw;
}
}
/* Kleine Laptops / Standard-Desktops (10251599 px) */
@media (min-width: 1025px) and (max-width: 1599px) {
.popup-day {
max-width: 80vw;
}
}
/* Große Monitore (16002559 px) */
@media (min-width: 1600px) and (max-width: 2559px) {
.popup-day {
max-width: 72vw;
}
}
/* Ultrawide / 4K */
@media (min-width: 2560px) {
.popup-day {
max-width: 65vw;
padding: 3rem 2rem 4rem;
}
.popup-day h3 {
font-size: 2.4rem;
}
}