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

275 lines
6.6 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;
}
.door {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1 / 1;
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;
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.6s ease,
box-shadow 0.3s ease,
background 0.25s ease;
transform-style: preserve-3d;
perspective: 800px;
}
.door:hover,
.door.hover-proxy {
transform: scale(1.05);
background: linear-gradient(
180deg,
color-mix(in srgb, var(--ci-gold) 20%, var(--ci-darkgreen)),
color-mix(in srgb, var(--ci-creamwhite) 15%, var(--ci-blue))
);
box-shadow:
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
inset 0 0 10px rgba(255,255,255,0.25);
}
.door.hinge-left { transform-origin: left center; }
.door.hinge-right { transform-origin: right center; }
.door.double { transform-origin: center; }
.door.open.hinge-left {
--door-rotation: -115deg;
transform: rotateY(var(--door-rotation));
box-shadow:
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
inset 0 0 10px rgba(255,255,255,0.2);
}
.door.open.hinge-right {
--door-rotation: 115deg;
transform: rotateY(var(--door-rotation));
box-shadow:
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
inset 0 0 10px rgba(255,255,255,0.2);
}
.door.open:hover,
.door.open.hover-proxy {
transform: rotateY(var(--door-rotation)) scale(1.05);
box-shadow:
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
inset 0 0 10px rgba(255,255,255,0.25);
}
.door.double {
position: absolute;
display: flex;
align-items: stretch;
justify-content: space-between;
perspective: 800px;
border-radius: 12px;
overflow: visible;
}
.door.double .door-number {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: "Bratonien2025", cursive;
font-size: 2.3vw;
color: var(--ci-gold);
pointer-events: none;
z-index: 8;
text-shadow:
0 0 3px rgba(0, 0, 0, 0.6),
0 0 8px rgba(0, 0, 0, 0.4);
}
.openfield {
position: absolute;
display: block;
border-radius: 12px;
opacity: 0;
pointer-events: none;
cursor: pointer;
z-index: 1;
transition:
opacity 0.3s ease,
transform 0.25s ease,
box-shadow 0.25s ease,
background 0.4s ease;
}
.door.open + .openfield {
opacity: 1;
pointer-events: auto;
z-index: 6;
background:
linear-gradient(
130deg,
rgba(255, 255, 255, 0.35) 0%,
rgba(255, 255, 255, 0.15) 30%,
rgba(255, 255, 255, 0.05) 55%,
rgba(0, 0, 0, 0.25) 100%
),
rgba(0, 0, 0, 0.12);
backdrop-filter: blur(2px) brightness(1.08);
-webkit-backdrop-filter: blur(2px) brightness(1.08);
border: 2px solid color-mix(in srgb, var(--ci-gold) 85%, transparent);
box-shadow:
inset 0 4px 8px rgba(0, 0, 0, 0.6),
inset 0 -3px 6px rgba(0, 0, 0, 0.5),
0 0 10px rgba(0, 0, 0, 0.35),
0 0 14px color-mix(in srgb, var(--ci-gold) 15%, transparent);
transform: translateZ(-1px);
}
.door.open + .openfield:hover,
.openfield.hover-proxy {
transform: scale(1.05);
background:
linear-gradient(
130deg,
rgba(255, 255, 255, 0.45) 0%,
rgba(255, 255, 255, 0.15) 40%,
rgba(0, 0, 0, 0.25) 100%
),
rgba(0, 0, 0, 0.12);
box-shadow:
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
inset 0 0 10px rgba(255,255,255,0.25);
}
.door.open:hover + .openfield {
transform: scale(1.05);
background:
linear-gradient(
130deg,
rgba(255, 255, 255, 0.45) 0%,
rgba(255, 255, 255, 0.15) 40%,
rgba(0, 0, 0, 0.25) 100%
),
rgba(0, 0, 0, 0.12);
box-shadow:
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
inset 0 0 10px rgba(255, 255, 255, 0.25);
}
.fluegel {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1 / 1;
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);
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;
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.6s ease,
box-shadow 0.3s ease,
background 0.25s ease;
transform-style: preserve-3d;
perspective: 800px;
z-index: 5;
}
/* Positionierung + Öffnung */
.fluegel.left {
transform-origin: left center;
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
}
.fluegel.right {
transform-origin: right center;
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
}
.fluegel.open.left {
transform: rotateY(-115deg);
box-shadow:
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
inset 0 0 10px rgba(255,255,255,0.2);
}
.fluegel.open.right {
transform: rotateY(115deg);
box-shadow:
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
inset 0 0 10px rgba(255,255,255,0.2);
}
/* Hover */
.fluegel:hover,
.fluegel.hover-proxy {
transform: scale(1.05);
background: linear-gradient(
180deg,
color-mix(in srgb, var(--ci-gold) 20%, var(--ci-darkgreen)),
color-mix(in srgb, var(--ci-creamwhite) 15%, var(--ci-blue))
);
box-shadow:
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
inset 0 0 10px rgba(255,255,255,0.25);
}
.fluegel.open.left:hover,
.fluegel.open.right:hover {
transform: rotateY(var(--fluegel-rotation)) scale(1.05);
}
/* Für konsistentes Verhalten */
.fluegel.open.left { --fluegel-rotation: -115deg; }
.fluegel.open.right { --fluegel-rotation: 115deg; }
/* Speziell für Tür 24 beide Ziffern etwas zur Mitte schieben */
.fluegel[data-day="24"].left {
padding-left: 10%;
}
.fluegel[data-day="24"].right {
padding-right: 10%;
}