@charset "utf-8";
/*!
Theme Name: Gipfelrunde
Theme URI: https://3wm.de
Author: 3WM
Author URI: https://3wm.de
Description: Theme für gipfelrun.de
Version: 1.0.0
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: gipfelrunde
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-json
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Fonts
# Base
	- Links
	- Headings
	- Paragraphs
	- Links
	- Navigation Elements
	- Forms
	- Images
# Layouts
	- General
	- Site
	- Header
# Components
	- Main Navigation Mobile
	- Main Navigation Desktop
	- Main
	- Footer
	- Footer Navigation
	- Columns
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
	- Cover Block
	- Custom Logo
	- Search Page
	- Search Results Page
# Blocks
	- Buttons
# 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 {
	--site-header-content-height: 110px;
	--site-header-z-index: 1000;
}

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

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

/* Headings & Paragraphs
--------------------------------------------- */
body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3,
body:not(.home) h4,
body:not(.home) h5,
body:not(.home) h6 {
	margin-top: 20px;
	margin-bottom: 10px;
}

body:not(.home) p {
	margin-top: 0;
	margin-bottom: 20px;
	line-height: 1.25;
}

/**
 * for container-type
 * @see: https://www.smashingmagazine.com/2023/12/new-css-viewport-units-not-solve-classic-scrollbar-problem/#avoiding-the-classic-scrollbar-problem
 */
html,
body {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	container-type: inline-size;
	overflow-x: hidden;
}

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

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

:focus {
	outline: 2px solid;
	outline-offset: 2px;
}

/* 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: transparent;
	border-radius: 0;
	background: #e6e6e6;
	color: #000;
	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: transparent;
}

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: transparent;
}

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: #000;
	border: 1px solid transparent;
	border-radius: 0;
	padding: 3px;
	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: #000;
}

select {
	border: 1px solid transparent;
}

textarea {
	width: 100%;
}

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

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

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

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

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

.site-header__content {
	display: flex;
	/*flex-wrap: wrap;*/
	gap: 20px;
}

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

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

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

body:not(.gipfelrunde-home) .main-navigation {
	align-items: center;
}

.menu-toggle {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	padding: 6px;
	background-color: transparent;
    border: none;
}

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

body:not(.gipfelrunde-home, .menu-opened) .menu-toggle .menu-icon {
	filter: invert(0);
}

.main-navigation__mobile {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	transform: translateY(-100%);
	height: 100%;
	flex-basis: 100%;
}

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

body.menu-opened .main-navigation .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--secondary);
}

.main-navigation__mobile .menu a {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--almost-large);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 10px;
}

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

body:not(.gipfelrunde-home) .site-main {
	padding-top: 40px;
}

/* Entry content
--------------------------------------------- */
body:not(.gipfelrunde-home) .entry-content {
	padding: 40px 0;
	word-break: break-word;
	hyphens: auto;
}

/* Footer
--------------------------------------------- */
.site-footer {
	background-color: var(--wp--preset--color--base);
	padding: 0 20px 100px 20px;
}

.site-footer,
.site-footer a {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.site-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.site-info__inner {
	display: flex;
	gap: 20px;
}

.gipfelrunde-social-links {
	list-style: none;
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.footer-nav,
.gipfelrunde-social-links,
.dreiwm-brand {
	display: flex;
	justify-content: center;
	align-items: center;
}

.site-footer__content,
.footer-content {
	display: grid;
}

.site-footer__content {
	gap: 60px;
}

.footer-content .custom-logo-link {
	display: inline-block;
	margin: 0 auto;
}

.footer-content .custom-logo {
	max-width: 190px;
}

.gipfelrunde-social-links a {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2.25rem;
	width: 75px;
	height: 75px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--base);
}

@media screen and (max-width: 1440px) {
	.site-footer {
		padding: 0 20px 50px 20px;
	}

	.site-footer__content {
		gap: 20px;
	}

	.footer-content .custom-logo {
		max-width: 150px;
	}

	.gipfelrunde-social-links a {
		width: 48px;
		height: 48px;
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 1024px) {
	.site-footer__content {
		/*grid-template-columns: 80px 1fr;*/
	}

	.site-info {
		align-items: flex-end;
		justify-content: center;
		font-size: var(--wp--preset--font-size--small);
	}

	.site-info__inner {
		align-items: flex-end;
	}

	.dreiwm-brand {
		align-items: flex-end;
	}

	.gipfelrunde-social-links a {
		width: 24px;
		height: 24px;
		font-size: 1rem;
		border: none;
	}

	.footer-content .custom-logo {
		max-width: 120px;
	}
}

@media screen and (max-width: 900px) {
	.footer-content .custom-logo {
		max-width: 80px;
	}
}

@media screen and (max-width: 800px) {
	.site-info__inner {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
}

/* Footer Navigation
--------------------------------------------- */
.footer-navigation .menu {
	display: flex;
	gap: 20px;
}

/* Columns
 *
 * Overwrites default column block media queries
--------------------------------------------- */
@media (max-width: 900px) {
	.wp-block-columns {
		flex-wrap: wrap !important;
	}
}

@media (max-width: 900px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
		flex-basis: 100% !important;
	}
}


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


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


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


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


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


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


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


/* Custom Logo
--------------------------------------------- */
.custom-logo-link {
	display: inline-block;
	font-size: 0;
}

.custom-logo {
	max-width: 100%;
	height: auto;
}

body:not(.gipfelrunde-home) .custom-logo {
	max-width: 200px;
}

@media (max-width: 600px) {
	body:not(.gipfelrunde-home) .custom-logo {
		max-width: 160px;
	}
}

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

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

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

/*--------------------------------------------------------------
# Blocks
--------------------------------------------------------------*/

/* Buttons
--------------------------------------------- */

/*--------------------------------------------------------------
# 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;
}

/**
 * @see: https://www.smashingmagazine.com/2023/12/new-css-viewport-units-not-solve-classic-scrollbar-problem/#avoiding-the-classic-scrollbar-problem
 */
.alignfull {
	max-width: 100%;
	width: 100vw; /* fallback for older browsers */
	width: 100cqw;
}

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

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

/* Our Services Button */
.our-services-button {
	background-color: var(--wp--preset--color--tertiary);
	color: #000 !important;
	border-width: 0;
	border-radius: 32px;
	padding: 20px 40px;
	font-size: var(--wp--preset--font-size--medium-large);
	width: 100%;
	text-align: center;
	max-width: 360px;
}