/* Bratonien Adventskalender 2025 – Popup Design (bandbreitenoptimiert, hell & festlich) */ /* === Overlay === */ #popup-overlay { position: fixed; inset: 0; background: rgba(247, 243, 232, 0.88); backdrop-filter: blur(6px) brightness(1.05); -webkit-backdrop-filter: blur(6px) brightness(1.05); display: none; align-items: center; justify-content: center; z-index: 9999; } #popup-overlay.active { display: flex; animation: fadeIn 0.3s ease; } /* === Popup-Box === */ #popup-box { background: linear-gradient( 180deg, color-mix(in srgb, var(--ci-creamwhite) 80%, white), color-mix(in srgb, var(--ci-gold) 15%, #fff9e6) ); border: 2px solid var(--ci-gold); border-radius: 16px; box-shadow: 0 0 25px color-mix(in srgb, var(--ci-gold) 40%, transparent), inset 0 0 10px rgba(255, 255, 255, 0.4); width: clamp(320px, 94vw, 1600px); /* Default für sehr kleine Geräte */ max-height: 90vh; overflow-y: auto; padding: clamp(1.5rem, 2vw, 3rem); color: #333; text-align: center; animation: popIn 0.35s ease; position: relative; backdrop-filter: blur(3px); transition: width 0.3s ease, padding 0.3s ease; } /* === Inhalt === */ #popup-content { margin-top: 1rem; font-family: "Bratonien2025", cursive; font-size: clamp(1rem, 1.2vw, 1.5rem); line-height: 1.6; } /* === Close-Button === */ #popup-close { position: absolute; top: 12px; right: 16px; background: transparent; border: none; font-size: 2rem; color: var(--ci-gold); cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; } #popup-close:hover { transform: scale(1.2); color: color-mix(in srgb, var(--ci-blue) 35%, var(--ci-gold)); } /* === Animationen === */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } /* === Geräteoptimierungen === */ /* Smartphones bis 600 px */ @media (max-width: 600px) { #popup-box { width: 94vw; padding: 1.4rem; font-size: 1rem; } #popup-close { font-size: 1.6rem; } } /* Kleine Tablets (600–899 px) */ @media (min-width: 601px) and (max-width: 899px) { #popup-box { width: 90vw; padding: 1.6rem; } } /* Tablets & kleine Laptops (900–1279 px) */ @media (min-width: 900px) and (max-width: 1279px) { #popup-box { width: 85vw; padding: 2rem; } } /* Standard-Laptops & Desktops (1280–1599 px) */ @media (min-width: 1280px) and (max-width: 1599px) { #popup-box { width: 80vw; padding: 2.2rem 3rem; } } /* Große Monitore (1600–1919 px) */ @media (min-width: 1600px) and (max-width: 1919px) { #popup-box { width: 75vw; padding: 2.5rem 3.5rem; } } /* 4K und Ultrawide (≥1920 px) */ @media (min-width: 1920px) { #popup-box { width: 70vw; max-width: 1800px; padding: 3rem 4rem; } }