abkommen60jahre.de/styles.css

256 lines
4.2 KiB
CSS

* {
box-sizing: border-box;
}
*:focus {
outline: 2px dotted blue;
}
.page {
font-family: 'Overlock', sans-serif;
font-size: 18px;
line-height: 2em;
display: flex;
flex-direction: column;
padding: 0;
margin: 0;
--primary: #D02424;
--primary-font: #ffffff;
--side-padding: 8vw;
--max-content-width: 925px;
--border: #707070;
background-image: url(/img/bg-pattern.svg);
background-repeat: repeat-y;
background-position: right;
background-size: 50vw;
}
@media screen and (min-width: 768px) {
.page {
font-size: 24px;
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto auto auto auto;
--side-padding: 10vw;
}
}
.skip-to-content {
position: fixed;
top: 0;
left: 0;
width: auto;
z-index: -1;
background: white;
font-size: 2rem;
opacity: 0;
padding: 1rem 2rem;
}
.skip-to-content:focus {
opacity: 1;
z-index: 100000;
}
.page-header {
height: 100vh;
justify-content: center;
background-image: url(/img/header-1024.jpg);
background-size: cover;
background-position: bottom right;
background-repeat: no-repeat;
position: relative;
border-bottom: 5px solid var(--primary);
}
@media screen and (min-width: 768px) {
.page-header {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 1;
grid-row-end: 2;
}
}
@media screen and (min-width: 1025px) {
.page-header {
background-image: url(/img/header-1920.jpg);
background-position: center;
}
}
@media screen and (min-width: 1921px) {
.page-header {
background-image: url(/img/header-full.jpg);
}
}
.page-header::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(208,36, 36, 0.83);
mix-blend-mode: multiply;
}
.page-header > * {
z-index: 1;
color: var(--primary-font);
margin: 0;
margin-bottom: 1rem;
}
.page-header-headline {
font-size: 2rem;
line-height: 3rem;
}
@media screen and (min-width: 768px) {
.page-header-headline {
font-size: 3.5rem;
line-height: 4.5rem;
}
}
@media screen and (min-width: 1024) {
.page-header-headline {
font-size: 5rem;
line-height: 6rem;
}
}
.page-header-subheadline {
font-size: 1.5rem;
line-height: 2rem;
}
@media screen and (min-width: 768px) {
.page-header-subheadline {
font-size: 2.5rem;
line-height: 3.5rem;
}
}
@media screen and (min-width: 1024) {
.page-header-subheadline {
font-size: 3rem;
line-height: 4rem;
}
}
.page-header-cta {
color: var(--primary-font);
text-decoration: none;
}
.page-header-cta:hover {
text-decoration: underline;
}
.page-header,
.page-main {
width: 100%;
display: flex;
flex-direction: column;
padding-left: var(--side-padding);
padding-right: var(--side-padding);
}
.page-header > *,
.page-main > * {
max-width: var(--max-content-width);
}
.page-main {
padding-bottom: 10vh;
}
.page-main > *:first-child {
margin-top: 0;
}
@media screen and (min-width: 768px) {
.page-main {
grid-column-start: 1;
grid-column-end: 2;
grid-row-start: 3;
grid-row-end: 4;
}
}
.page-title {
font-size: 2rem;
line-height: 3rem;
padding-left: var(--side-padding);
padding-right: var(--side-padding);
}
@media screen and (min-width: 768px) {
.page-title {
padding-top: 10vh;
font-size: 3.5rem;
line-height: 4.5rem;
}
}
@media screen and (min-width: 1024) {
.page-title {
font-size: 5rem;
line-height: 6rem;
}
}
.navigation + .page-title,
.page-header + .page-main {
margin-top: 20vh;
}
@media screen and (min-width: 768px) {
.page-title {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 2;
grid-row-end: 3;
}
}
.footer {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 3rem var(--side-padding);
}
.footer-links {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
list-style: none;
padding: 0;
margin: 0;
}
.footer-link {
margin: 0 1rem;
text-decoration: none;
}
.footer-link:hover {
text-decoration: underline;
}
@media screen and (min-width: 768px) {
.footer {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 5;
}
}