From d27cd26b5e8561597e441cf79d7aee05e0f04abf Mon Sep 17 00:00:00 2001 From: Thomas Dannenberg Date: Wed, 5 Nov 2025 17:32:16 +0000 Subject: [PATCH] =?UTF-8?q?adventskalender/2025/css/popup.css=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adventskalender/2025/css/popup.css | 92 ++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 adventskalender/2025/css/popup.css diff --git a/adventskalender/2025/css/popup.css b/adventskalender/2025/css/popup.css new file mode 100644 index 0000000..7d151eb --- /dev/null +++ b/adventskalender/2025/css/popup.css @@ -0,0 +1,92 @@ +/* Bratonien Adventskalender 2025 – Popup Design (hell & festlich) */ + +#popup-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(247, 243, 232, 0.88); /* leicht gold-creamiger Schleier */ + 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 { + 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 20px color-mix(in srgb, var(--ci-gold) 40%, transparent), + inset 0 0 10px rgba(255, 255, 255, 0.4); + max-width: 640px; + width: 90%; + max-height: 85%; + overflow-y: auto; + padding: 2.5rem 2rem; + color: #333; + text-align: center; + animation: popIn 0.35s ease; + position: relative; +} + +#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)); +} + +#popup-content { + margin-top: 1rem; + font-family: "Bratonien2025", cursive; + font-size: 1.3rem; + line-height: 1.6; +} + +/* === Animationen === */ + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes popIn { + 0% { transform: scale(0.9); opacity: 0; } + 100% { transform: scale(1); opacity: 1; } +} + +/* === Mobile Anpassung === */ + +@media (max-width: 600px) { + #popup-box { + width: 92%; + padding: 1.8rem 1.4rem; + font-size: 1rem; + } + #popup-close { + font-size: 1.6rem; + } +} \ No newline at end of file