abkommen60jahre.de/styles.css
2021-10-13 13:54:17 +02:00

271 lines
4.3 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: #B5060D;
--primary-font: #ffffff;
--side-padding: 8vw;
--max-content-width: 925px;
--border: #707070;
--border-radius: 5px;
--mobile-side-margin: 2vw;
background-image: url(/img/bg-pattern.svg);
background-repeat: repeat-y;
background-position: right;
background-size: 33vw;
}
@media screen and (min-width: 768px) {
.page {
font-size: 24px;
--side-padding: 10vw;
}
}
@media screen and (min-width: 1024px) {
.page {
font-size: 24px;
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto 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 {
justify-content: center;
position: relative;
border-bottom: 5px solid var(--primary);
margin-top: 20vh;
height: 70vh;
}
.page-header_hero {
margin-top: 0;
height: 100vh;
}
@media screen and (min-width: 768px) {
.page-header {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 1;
grid-row-end: 2;
}
}
.page-header-image::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(181, 6, 13, 0.83);
mix-blend-mode: multiply;
}
.page-header > *:not(.page-header-image) {
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 {
color: var(--primary-font);
text-decoration: underline;
}
.page-header-cta:visited {
color: var(--primary-font);
}
.page-header-image {
z-index: -1;
margin: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
.page-header-image-tag {
z-index: -1;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
}
.page-header-image-description {
padding: 0 var(--side-padding);
color: var(--primary-font);
font-size: 0.8rem;
z-index: 10;
}
.page-header,
.page-main {
width: 100%;
display: flex;
flex-direction: column;
padding-left: var(--side-padding);
padding-right: var(--side-padding);
}
.page-header > *:not(.page-header-image),
.page-main > * {
max-width: var(--max-content-width);
}
.page-main {
padding-bottom: 10vh;
}
.page-main > *:first-child {
margin-top: 0;
}
.page-main a {
text-decoration: none;
color: rgb(0, 102, 204);
}
.page-main a:hover {
text-decoration: underline;
}
.page-main a:visited {
color: rgb(0, 102, 204);
}
@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;
}
}