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

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Fonts
# Base
	- Headings
	- Links
	- 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
	- Google Reviews

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

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

html:has(body.menu-opened) {
	overflow-y: hidden;
}

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

body.menu-opened {
	overflow: hidden;
}

b, strong {
	font-weight: 700;
}

p {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	margin-block-end: 1.5em !important;
	margin-bottom: 1.5em !important;
}

/* Headings
--------------------------------------------- */
h1 {
	margin-block-end: 32px !important;
	margin-bottom: 32px !important;
}

h1, h2 {
	color: var(--wp--preset--color--primary);
}

:is(h1, h2, h3, h4, h5, h6) {
	font-weight: 400;
}

:is(h2, h3, h4, h5, h6) {
	margin-block-end: 20px !important;
	margin-bottom: 20px !important;
}

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

:focus {
	outline: double;
}

/* 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
--------------------------------------------- */

/* optional: for pushing the footer down even when content is not sufficient */
.site {
	/*display: flex;*/
	/*flex-direction: column;*/
	/*min-height: 100vh;*/

	/*.main {*/
	/*	flex: 1;*/
	/*	min-width: 0;*/
	/*}*/
}

/* Header
--------------------------------------------- */
.site-header {
	background-color: transparent;
	color: var(--wp--preset--color--secondary);
	padding: 20px 0 0 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

body.home .site-header {
	height: 800px;
	display: flex;
	flex-direction: column;
	position: relative;
}

@media (max-width: 1200px) {
	body.home .site-header {
		height: 600px;
	}
}

@media (max-width: 800px) {
	body.home .site-header {
		height: 400px;
	}
}

.site-header-content {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

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

.site-branding {
	position: relative;
	z-index: 2;
}

/* dehnern tag-line */
.dehner-tagline {
	display: flex;
	flex-direction: column;
	font-size: 5rem;
	font-weight: 300;
	line-height: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding-bottom: 100px;
}

@media (max-width: 1200px) {
	.dehner-tagline {
		font-size: var(--wp--preset--font-size--x-large);
	}
}

.dehner-tagline .tag-red {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* header facts */
.dehner-header-facts {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
}

.dehner-header-facts .fact {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	padding: 20px 40px;
	border-radius: 8px;
	flex-grow: 1;
	flex-basis: 20%;
	text-align: center;
}

.fact .fact-count {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.fact .fact-name {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
}

@media (max-width: 1200px) {
	.dehner-header-facts {
		background-color: var(--wp--preset--color--secondary);
		border-radius: 8px;
		grid-template-columns: 1fr;
		padding: 10px 20px;
		gap: 0;
	}

	.dehner-header-facts .fact {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 4px 0;
		border-bottom: 1px solid var(--wp--preset--color--base);
		border-radius: 0;
	}

	.dehner-header-facts .fact:last-child {
		border-bottom: none;
	}

	.fact .fact-count,
	.fact .fact-name {
		font-size: var(--wp--preset--font-size--large);
	}
}

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

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

.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-text {
	font-size: 1.2em;
	user-select: none;
}

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

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

.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: 1;
}

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: 100vh;
	background-color: var(--wp--preset--color--tertiary);
}

.main-navigation__mobile .menu a {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-large);
}

.main-navigation__mobile .menu .current-menu-item a {
	color: var(--wp--preset--color--primary);
}

.main-navigation__mobile .menu li:hover a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

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

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

.site-main article p {
	line-height: 2.0;
}

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

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

.site-footer h2 {
	font-size: var(--wp--preset--font-size--medium);
	margin-block-start: 0;
	margin-top: 0;
}

.site-footer a:hover {
	text-decoration: underline;
}

.footer-contact {
	font-size: var(--wp--preset--font-size--small);
}

.footer-contact address {
	display: inline-block;
	font-style: normal;
}

.footer-contact .footer-icon {
	margin-right: 8px;
}

.site-info {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-block-start: 40px;
	font-size: 0.75rem;
}

.site-info a {
	font-size: inherit;
}

@media (max-width: 800px) {
	.site-info {
		flex-direction: column;
		gap: 40px;
	}

	.dreiwm-copyright {
		order: 2;
	}

	.footer-navigation {
		order: 1;
	}
}

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

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

/* 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: 100%;
}

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

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

/* Google Reviews
--------------------------------------------- */
.dehner-reviews {
	padding: 40px 0;
	background-color: #f0ece5;
}

.dehner-reviews h2 {
	color: var(--wp--preset--color--secondary);
	margin-bottom: 40px;
}

.dehner-reviews .reviews-inner {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	justify-content: center;
}

@media (max-width: 900px) {
	.dehner-reviews .reviews-inner {
		grid-template-columns: 1fr;
	}
}

.dehner-reviews .review-item {
	background-color: var(--wp--preset--color--base);
	border-radius: 10px;
	padding: 20px;
}

.dehner-reviews .review-attribution {
	font-size: var(--wp--preset--font-size--small);
	text-align: right;
	margin-block-start: 40px;
}

.dehner-reviews .review-author {
	display: flex;
	gap: 20px;
	align-items: center;
}

.dehner-reviews .review-author a {
	color: inherit;
	font-weight: 700;
}

.dehner-reviews .review-author time {
	font-size: var(--wp--preset--font-size--x-small);
	display: block;
}

.dehner-reviews .review-author-photo {
	object-fit: contain;
}

.dehner-reviews .review-rating {
	margin-block-start: 12px;
	margin-block-end: 12px;
}

.dehner-reviews .review-link {
	color: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 300;
	display: block;
	margin-block-start: 10px;
	width: fit-content;
}

.dehner-reviews .review-link:hover {
	text-decoration: underline;
}

.grc-wrap { margin: 24px 0; }
.grc-summary { margin-bottom: 16px; }
.grc-summary__title { font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.grc-summary__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #4b5563; font-size: 14px; }
.grc-summary__attr { margin-left: auto; font-size: 12px; color: #6b7280; }

.grc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grc-grid { grid-template-columns: 1fr; } }

.grc-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.grc-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.grc-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.grc-avatar--placeholder { background: #e5e7eb; display: inline-block; }
.grc-card__name { font-weight: 700; line-height: 1.2; }
.grc-card__date { color: #6b7280; font-size: 12px; margin-top: 2px; }

.grc-card__stars { margin: 6px 0 10px; }
.grc-stars { display: inline-flex; gap: 2px; font-size: 24px; }
.grc-star--full { color: #f5b301; }
.grc-star--half { color: #f5b301; opacity: .65; }
.grc-star--empty { color: #d1d5db; }

.grc-card__text { color: #374151; font-size: 14px; line-height: 1.5; min-height: 72px; }
.grc-card__more { display: inline-block; margin-top: 10px; color: #6b7280; font-size: 13px; text-decoration: none; }
.grc-card__more:hover { text-decoration: underline; }