/* 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); /* Dynamisch skalierendes Layout */ width: min(90vw, 1800px); max-height: 90vh; overflow-y: auto; overflow-x: hidden; padding: clamp(1.5rem, 2vw, 3rem); color: #333; text-align: center; position: relative; backdrop-filter: blur(3px); transition: width 0.3s ease, padding 0.3s ease; animation: popIn 0.35s ease; box-sizing: border-box; } /* === Inhalt === */ #popup-content { margin-top: 1rem; font-family: "Bratonien2025", cursive; font-size: clamp(1rem, 1.2vw, 1.5rem); line-height: 1.6; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: center; justify-items: center; gap: clamp(1rem, 2vw, 3rem); } /* === Medien (Video, Bild etc.) === */ #popup-content video, #popup-content img { max-width: 100%; height: auto; display: block; border-radius: 8px; background: #000; object-fit: contain; } /* === Titel & Text === */ #popup-content h2 { font-size: clamp(1.4rem, 2vw, 2.6rem); color: var(--ci-darkgreen); margin-bottom: 1rem; } #popup-content p { font-size: clamp(1rem, 1.1vw, 1.4rem); line-height: 1.6; color: #333; max-width: 65ch; } /* === Close-Button === */ #popup-close { position: absolute; top: 12px; right: 16px; background: transparent; border: none; font-size: clamp(1.8rem, 2vw, 2.4rem); color: var(--ci-gold); cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; z-index: 10; } #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äteübergreifende Anpassung === */ @media (max-height: 600px) { #popup-box { max-height: 85vh; padding: 1rem; } } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0s !important; transition: none !important; } }