Files
Bratonien-Adventskalender/adventskalender/2025/css/main.css

98 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.

@font-face {
font-family: "Bratonien2025";
src: url("../../shared/fonts/PinyonScript-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* === Adventskalender Türchen (finale Version mit Glitzern) === */
.door {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1 / 1;
/* Basis-Verlauf CI-Farben mit Transparenz */
background: linear-gradient(
180deg,
color-mix(in srgb, var(--ci-darkgreen) 35%, transparent),
color-mix(in srgb, var(--ci-blue) 35%, transparent)
);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border: 2px solid var(--ci-gold);
border-radius: 12px;
box-shadow:
0 0 10px color-mix(in srgb, var(--ci-gold) 40%, transparent),
inset 0 0 6px rgba(255,255,255,0.18);
font-family: "Bratonien2025", cursive;
font-size: 2.3vw;
font-weight: 400;
color: var(--ci-gold);
text-shadow:
0 0 3px rgba(0,0,0,0.6),
0 0 8px rgba(0,0,0,0.4);
cursor: pointer;
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
background 0.2s ease;
}
/* === Keyframes === */
@keyframes glitter-sheen {
0% { background-position: -200% 0; opacity: 0.0; }
30% { opacity: 1; }
70% { opacity: 1; }
100% { background-position: 200% 0; opacity: 0.0; }
}
@keyframes sparkle {
0%,100% { opacity: 0; }
40%,60% { opacity: 1; }
}
/* === Hover Effekte === */
.door:hover {
transform: scale(1.05);
box-shadow:
0 0 16px color-mix(in srgb, var(--ci-gold) 60%, transparent),
inset 0 0 10px rgba(255,255,255,0.35);
}
/* Goldener Schimmer über dem Türchen */
.door:hover::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background: linear-gradient(
120deg,
transparent 0%,
color-mix(in srgb, var(--ci-gold) 60%, transparent) 45%,
transparent 90%
);
background-size: 200% 100%;
animation: glitter-sheen 1.8s ease-in-out 1;
}
/* Kleine Glitzerpunkte */
.door:hover::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background-image:
radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%),
radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
background-size: 10% 10%, 8% 8%;
background-position: 40% 30%, 70% 65%;
animation: sparkle 1.8s ease-in-out 1;
}