@charset "utf-8";
/*!
Theme Name: DPL
Theme URI: https://3wm.de
Author: 3WM
Author URI: https://3wm.de
Description: Theme für DPL
Version: 1.0.2
Tested up to: 6.3
Requires PHP: 7.4
Text Domain: dpl
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Fonts
# Base
	- Links
	- Headings
	- Paragraphs
	- Links
	- Navigation Elements
	- Forms
	- Images
# Layouts
	- General
	- Site
	- Header
# Components
	- General Main Navigation
	- Main Navigation Mobile
	- Main Navigation Desktop
	- Main
	- Footer
	- Footer Navigation
	- DPL-Button
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
	- Cover Block
	- Custom Logo
	- Search Page
	- Search Results Page
# Plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
# Theme Customizations

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables
#
# The preset variables are extracted from the theme.json file
# and follow predefined naming conventions.
# Here are a few examples:
#
# For colors (generates 3 variables per color defined in theme.json):
# --wp--preset--color--<slug>: <value>;
# --wp--preset--background--color--<slug>: <value>;
# --wp--preset--border--color--<slug>: <value>;
#
# For typography:
# --wp--preset--font-size--<slug>: <value>;
# --wp--preset--font-family--<slug>: <value>;
#
# For gradients:
# --wp--preset--gradient--<slug>: <value>;
#
# For duotones:
# --wp--preset--duotone--<slug>: <value>;
#
# For values defined in the custom section:
# --wp--custom--<slug>: <value>;
--------------------------------------------------------------*/
:root {
    --doc-height: 100%;
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Links
--------------------------------------------- */
a:where(:not(.wp-element-button)) {
	transition: color 0.25s ease-in-out;
}

/* Navigation Elements
--------------------------------------------- */
nav ul {
	list-style: none;
}

nav ul.menu,
nav ul.sub-menu {
	list-style: none;
	gap: 1em;
	margin-top: 0;
	margin-bottom: 0;
}

nav ul.menu {
	padding-left: 0;
	display: flex;
}

nav ul.sub-menu,
nav ul.children {
	padding-left: 1em;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
	cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
    border-radius: 0 ;
    border: 1px solid #011C40;
    outline: none;
	max-width: 100%;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/* Images
--------------------------------------------- */
img {
	max-width: 100%;
	height: auto;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/* General
--------------------------------------------- */
html {
	scroll-behavior: smooth;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 90%;
}

body.menu-opened {
	overflow-y: hidden;
}

/* Site
--------------------------------------------- */
.site {
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

/* Header
--------------------------------------------- */
.site-header {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: 1em 0;
	overflow: hidden;
}

.site-header:has(.site-header__hero) {
	height: 100vh;
    height: var(--doc-height);
	max-height: 100%;
    position: relative;
}

.site-title {
	display: flex;
	align-items: center;
}

.site-title a {
	font-weight: bold;
}

.site-header__content {
	display: flex;
	flex-wrap: wrap;
	max-width: 1920px !important;
}

.site-header__content > * {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 160px;
}

.site-header__content .site-branding {
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	.site-header__content .site-branding {
		flex-direction: row;
		gap: 20px;
	}
}

.site-header__hero h1,
.site-header__hero h2,
.site-header__hero img {
	transition: all 0.8s ease-out;
	opacity: 0;
}

body:not(.loaded) .site-header__hero h1,
body:not(.loaded) .site-header__hero h2 {
	transform: translateY(-1000%);
}

body:not(.loaded) .site-header__hero img {
	transform: translateY(1000%);
}

body.loaded .site-header__hero h1,
body.loaded .site-header__hero img {
	opacity: 1;
	transform: translateY(0);
}

body.loaded .site-header__hero h2 {
	opacity: 1;
}

.site-header__hero h1 {
	text-align: center;
	color: var(--wp--preset--color--secondary);
	font-weight: 300;
}

.hero-content {
	margin-top: 2rem;
	position: relative;
}

.hero-content h2 {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1;
	text-align: center;
	color: var(--wp--preset--color--primary);
	font-size: 2rem;
	font-family: var(--wp--preset--font-family--decoration);
	font-weight: 300;
	letter-spacing: -0.1rem;
	position: absolute;
	width: 100%;
	transform: translateY(-50%);
	user-select: none;
}

body.loaded .hero-content h2 {
	transform: translateY(0);
	top: 0;
}

.hero-content img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	user-select: none;
}

.hero-content .dpl-button {
	width: 15rem;
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
}

@media (min-width: 375px) {
	.hero-content .dpl-button {
		bottom: 90px;
	}
}

@media (min-width: 500px) {
	.hero-content .dpl-button {
		width: 25rem;
	}
}

.hero-decoration {
	width: 100%;
	height: 108px;
	position: absolute;
	bottom: 0;
	z-index: 4;
}

.hero-decoration a {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--wp--preset--color--base);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.hero-decoration a span {
	font-size: 1rem;
	user-select: none;
}

@media (min-width: 550px) {
	.hero-content h2 {
		font-size: 3rem;
	}
}

@media (min-width: 768px) {
	.hero-content h2 {
		font-size: 4rem;
	}

	.hero-content .dpl-button {
		bottom: 180px;
	}
}

@media (min-width: 1120px) {
	.hero-content h2 {
		font-size: 6rem;
	}
}

@media (min-width: 1500px) {
	.hero-content {
		margin-top: 6rem;
	}

	body.loaded .hero-content h2 {
		font-size: 8rem;
		top: -80px;
		transform: translateY(0);
	}

	.hero-content img {
		z-index: 1;
	}
}

@media (min-width: 1676px) {
	.hero-content h2 {
		font-size: 18.75rem;
	}
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* General Main Navigation */
.main-navigation a {
	font-size: 1rem;
	display: grid;
	font-weight: bold;
}

.dpl-social-media {
	display: flex;
	gap: 30px;
}

.dpl-social-media svg {
	width: 1rem;
	height: 1rem;
}

/* Main Navigation (Mobile)
--------------------------------------------- */
.main-navigation {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 30px;
}

.main-navigation__desktop {
	display: none;
}

.menu-toggle {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
}

.menu-toggle .menu-text {
	font-size: 0;
	user-select: none;
}

.menu-toggle .menu-icon {
	display: inline-block;
	width: 26px;
	height: 26px;
	background-image: url("assets/icons/menu.svg");
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.25s ease-in-out;
}

.main-navigation__mobile {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	transform: translateY(-100%);
	transition: transform 0.25s ease-in-out;
	height: 100%;
	flex-basis: 100%;
	z-index: 99;
}

body.menu-opened .menu-toggle .menu-icon {
	background-image: url("assets/icons/menu-close.svg");
}

body.menu-opened .main-navigation__mobile {
	transform: translateY(0);
}

.main-navigation__mobile .menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: var(--wp--preset--color--base);
}

/* Main Navigation (Desktop)
--------------------------------------------- */
@media (min-width: 1120px) {
	.main-navigation__desktop {
		display: block;
	}

	.main-navigation__desktop > .menu {
		gap: 30px;
	}

	/* Hide mobile menu in case it is currently opened */
	.main-navigation__mobile {
		display: none;
	}

	.menu-toggle {
		display: none;
	}

	.main-navigation__desktop .menu > .menu-item {
		position: relative;
	}

	.main-navigation__desktop .sub-menu {
		position: absolute;
		top: 100%;
		padding: 0;
		left: 0;
		display: none;
		opacity: 0;
		transition: opacity 0.25s ease-in-out;
		background-color: #222;
		min-width: 200px;
		text-align: center;
	}

	.main-navigation__desktop .sub-menu .menu-item {
		padding: 0.5em 0;
	}

	.main-navigation__desktop .menu > .menu-item:hover .sub-menu {
		display: block;
		opacity: 1;
	}
}

/* Main
--------------------------------------------- */
.site-main {
	background-color: var(--wp--preset--color--base);
	padding: 1em 0;
}

body.home .site-main {
	padding: 0;
}

/* Footer
--------------------------------------------- */
.site-footer {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 64px 0 16px 0;
	position: relative;
}

.site-footer a {
	color: var(--wp--preset--color--base);
}

.footer-decoration {
	width: 100%;
	height: 64px;
	position: absolute;
	top: 0;
	z-index: 4;
}

.site-footer__content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-block-start: 4rem;
	margin-block-end: 4rem !important;
    font-size: 1rem;
}

.footer-content {
    order: 2;
    text-align: center;
}

.footer-content p {
	margin: 0;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    order: 1;
}

.site-footer__links a {
    font-weight: bold;
}

.site-footer__links .dpl-social-media {
    flex-basis: 64px;
}

@media (min-width: 1200px) {
    .site-footer__content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-content {
        order: 1;
        text-align: left;
    }

    .site-footer__links {
        order: 2;
        justify-content: flex-end;
    }
}

/* Footer Navigation
--------------------------------------------- */
.footer-navigation .menu {
	display: flex;
	flex-wrap: wrap;
    justify-content: flex-end;
    gap: 30px;
}

/* DPL-Button
--------------------------------------------- */
.dpl-button {
	width: 18rem;
	height: 4.5rem;
	background: var(--wp--preset--color--quaternary);
	background: linear-gradient(180deg, var(--wp--preset--color--quaternary) 0%, var(--wp--preset--color--tertiary) 100%);
	border: 2px solid var(--wp--preset--color--quaternary);
	color: var(--wp--preset--color--base);
	z-index: 1;
	box-shadow: 0 0 10px 0 rgba(0,0,0,1.0);
	padding: 10px;
	border-radius: 12px;
	cursor: pointer;
	user-select: none;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (min-width: 768px) {
	.dpl-button {
		width: 25rem;
	}
}

.dpl-button:hover,
.dpl-button:focus,
.dpl-button:active {
	color: var(--wp--preset--color--base);
}


/* Posts and pages
--------------------------------------------- */


/* Comments
--------------------------------------------- */


/* Widgets
--------------------------------------------- */


/* Media
--------------------------------------------- */


/* Captions
--------------------------------------------- */


/* Galleries
--------------------------------------------- */


/* Cover Block
--------------------------------------------- */


/* Custom Logo
--------------------------------------------- */
.custom-logo {
	max-width: 100%;
	height: auto;
}

/* Search Page
--------------------------------------------- */

/* Search Results Page
--------------------------------------------- */
body.search-results article {
	padding: 1em 0;
}

/* No results */
body.search-no-results section {
	padding: 1em 0;
}


/*--------------------------------------------------------------
# Plugins
# For WordPress plugins that have to be styled (e.g. CF7).
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.alignfull {
	max-width: none;
	width: 100%;
}

.alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/*--------------------------------------------------------------
# Theme Customizations
--------------------------------------------------------------*/