Files
Bratonien-Adventskalender/adventskalender/shared/style.css

69 lines
1.3 KiB
CSS

/* === Bratonien CI-Farben === */
:root {
--ci-darkgreen: #104f3a;
--ci-gold: #c8aa49;
--ci-blue: #1a3765;
--ci-beige: #d9c27f;
--ci-creamwhite: #f7f3e8;
}
/* === Reset & Grundlayout === */
*,
*::before,
*::after {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
height: 100dvh;
width: 100vw;
overflow: hidden;
font-family: sans-serif;
color: var(--ci-creamwhite);
background: linear-gradient(180deg, var(--ci-darkgreen), var(--ci-blue));
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
display: flex;
flex-direction: column;
}
/* === Hauptbereich === */
main {
flex: 1 1 auto;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* === Überschrift oben === */
main > h1 {
flex: 0 0 auto;
margin: 1rem 0;
font-size: 2rem;
text-align: center;
}
/* === Bildcontainer passt sich an === */
.kalenderbild {
flex: 1 1 auto;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
/* === Bild passt sich dem verfügbaren Platz an === */
.kalenderbild img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
aspect-ratio: 16 / 9;
border: 4px solid var(--ci-gold);
border-radius: 12px;
object-fit: contain;
display: block;
}