/*
Theme Name:   WILSDORFF
Theme URI:    https://wilsdorff.biz
Author:       Ingo Wilsdorff
Author URI:   https://wilsdorff.biz
Description:  Eigenes Theme für wilsdorff.biz. Nachbau des bisherigen Layouts (Stockholm 3.4) auf aktuellem Stand: ohne Page Builder, ohne Slider-Plugins, ohne jQuery, Schriften lokal.
Version:      1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  wilsdorff
*/

/* ==========================================================================
   1. Schriften (lokal, keine Verbindung zu Google)
   ========================================================================== */
@font-face {
	font-family: "Raleway";
	src: url("assets/fonts/raleway-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Raleway";
	src: url("assets/fonts/raleway-italic-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   2. Design-Werte – hier lassen sich Farben und Maße zentral ändern
   ========================================================================== */
:root {
	/* Farben */
	--wd-accent: #00b1eb;          /* Cyan: aktiver Menüpunkt, Links, CTA-Band, Hover */
	--wd-accent-dark: #0093d3;     /* Button-Text beim Überfahren */
	--wd-dark: #393939;            /* Menü, Überschriften, Footer */
	--wd-text: #8d8d8d;            /* Fließtext */
	--wd-text-lead: #8e8d8d;       /* Intro-Absätze (h4), Menü-Hover */
	--wd-muted: #a6a6a6;           /* Filter, Pfeile Projekt-Navigation */
	--wd-label: #7f7f7f;           /* Filter-Beschriftung */
	--wd-icon: #5d5d5d;            /* Lupe, Menü-Symbol */
	--wd-footer-text: #a2a2a2;
	--wd-footer-line: #444444;
	--wd-band: #f5f5f5;            /* Graues Band */
	--wd-footer-bottom: #f6f6f6;
	--wd-line: #eaeaea;            /* Trennlinien Handy-Menü */
	--wd-selection: #a7a6a6;
	--wd-totop: #585858;
	--wd-button-hover: #e8e5e5;
	--wd-white: #ffffff;

	/* Schrift */
	--wd-font: "Raleway", "Helvetica Neue", Arial, sans-serif;

	/* Maße */
	--wd-box: 1150px;              /* Seitencontainer */
	--wd-grid: 1100px;             /* Inhaltsspalte */
	--wd-gutter: calc((var(--wd-box) - var(--wd-grid)) / 2);
	--wd-hh: 100px;                /* Header-Höhe (schrumpft beim Scrollen auf 57 px) */
	--wd-hh-min: 57px;
	--wd-row-gap: 24.2px;          /* Abstand der Portfolio-Kacheln vertikal (2,2 %) */
}

@media (max-width: 1200px) { :root { --wd-box: 1000px; --wd-grid: 950px; } }
@media (max-width: 1000px) { :root { --wd-box: 818px;  --wd-grid: 768px; --wd-row-gap: 21.5px; } }
@media (max-width: 768px)  { :root { --wd-box: 650px;  --wd-grid: 600px; --wd-row-gap: 20px; } }
@media (max-width: 600px)  { :root { --wd-box: 470px;  --wd-grid: 420px; --wd-row-gap: 21px; } }
@media (max-width: 480px)  { :root { --wd-box: 350px;  --wd-grid: 300px; --wd-row-gap: 15px; } }
@media (max-width: 420px)  { :root { --wd-box: 320px;  --wd-grid: 300px; } }
@media (max-width: 350px)  { :root { --wd-box: 100%;   --wd-grid: 95%; } }

/* ==========================================================================
   3. Grundlagen
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@view-transition { navigation: auto; }   /* weiche Seitenübergänge (ersetzt „ajax_fade“) */

body {
	margin: 0;
	background: var(--wd-white);
	color: var(--wd-text);
	font-family: var(--wd-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 23px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-y: scroll;
}

::selection { background: var(--wd-selection); }

img { max-width: 100%; height: auto; display: block; border: 0; }

a {
	color: var(--wd-accent);
	text-decoration: none;
	transition: color .3s ease-in-out;
}

h1, h2, h3, h4, h5, h6, p, blockquote, figure, ul, ol { margin: 0; }

h1, h2, h3, h5, h6 { color: var(--wd-dark); }
h1 { font-size: 30px; line-height: 1.4em; font-weight: 600; }
h2 { font-size: 30px; line-height: 50px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
h4 { font-size: 14px; line-height: 26px; font-weight: 500; color: var(--wd-text-lead); }
h5 { font-size: 18px; line-height: 32px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
h6 { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }

strong, b { font-weight: 700; }

ul, ol { padding: 0; list-style-position: inside; }

button { font: inherit; }

input, textarea, select { font: inherit; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	left: 10px; top: 10px; padding: 10px 16px; background: #fff; color: var(--wd-dark);
}

:focus-visible { outline: 2px solid var(--wd-accent); outline-offset: 2px; }

/* ==========================================================================
   4. Seitenrahmen
   ========================================================================== */
.site {
	width: var(--wd-box);
	margin: 0 auto;
	background: var(--wd-white);
	position: relative;
}

.site-content { padding-top: var(--wd-pt-desk, 100px); }

.wd-content { width: var(--wd-grid); margin: 0 auto; }

/* Standard-Seiten (Kontakt, Impressum, Datenschutz): Luft zwischen Text und Footer,
   optisch so groß wie der Abstand zwischen Überschrift und erstem Absatz. */
.wd-page { padding-bottom: 30px; }

/* Volle Breite: Blöcke auf Inhaltsbreite, Abschnitte (alignfull) über die ganze Box */
.wd-content--full { width: 100%; }
.wd-content--full > * { width: var(--wd-grid); margin-left: auto; margin-right: auto; }
.wd-content--full > .alignfull { width: 100%; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 110;
	height: var(--wd-hh);
	background: var(--wd-white);
	transition: height .2s;
}
.admin-bar .site-header { top: 32px; }

.site-header__inner {
	width: var(--wd-box);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--wd-gutter);
	display: flex;
	align-items: center;
}

.site-header__logo { height: 100%; flex: 0 0 auto; }
.site-logo { display: block; height: 100%; }
.site-logo img { height: 100%; width: auto; max-width: none; }

.main-nav { margin-left: auto; height: 100%; }
.main-nav ul { list-style: none; display: flex; height: 100%; }
.main-nav li { height: 100%; }
.main-nav a {
	display: block;
	padding: 0 24px;
	line-height: var(--wd-hh);
	height: 100%;
	color: var(--wd-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color .3s ease-in-out, line-height .2s;
}
.main-nav a:hover { color: var(--wd-text-lead); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--wd-accent); }

.search-toggle,
.menu-toggle {
	background: none;
	border: 0;
	padding: 0 12px;
	color: var(--wd-icon);
	cursor: pointer;
	display: flex;
	align-items: center;
	height: 100%;
	transition: color .3s ease-in-out;
}
.search-toggle svg { width: 13px; height: 14px; }
.search-toggle:hover,
.menu-toggle:hover { color: var(--wd-dark); }
.menu-toggle { display: none; padding: 0; }
.menu-toggle svg { width: 14px; height: 12px; }

.mobile-nav { display: none; }

/* Suchleiste, fährt von oben herein */
.wd-search {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 120;
	height: 50px;
	background: var(--wd-dark);
	color: #fff;
	transform: translateY(-100%);
	transition: transform .3s ease-in-out;
	visibility: hidden;
}
.admin-bar .wd-search { top: 32px; }
.wd-search.is-open { transform: none; visibility: visible; }
.wd-search form {
	width: var(--wd-box);
	height: 50px;
	margin: 0 auto;
	padding: 0 var(--wd-gutter);
	display: flex;
	align-items: center;
	gap: 10px;
}
.wd-search svg { width: 13px; height: 14px; flex: 0 0 auto; }
.wd-search input[type="search"] {
	flex: 1;
	background: transparent;
	border: 0;
	color: #fff;
	height: 20px;
	line-height: 20px;
	padding: 0 10px;
	font-size: 13px;
	outline: 0;
}
.wd-search input[type="search"]::placeholder { color: rgba(255, 255, 255, .6); }
.wd-search__close {
	background: none; border: 0; color: #fff; cursor: pointer; padding: 0; height: 50px;
	display: flex; align-items: center;
}
.wd-search__close svg { width: 14px; height: 14px; }

/* ==========================================================================
   6. Startseiten-Slider
   ========================================================================== */
.wd-slider {
	position: relative;
	height: 560px;
	overflow: hidden;
	background: var(--wd-white);
}
@media (min-width: 1601px) { .wd-slider { height: 700px; } }
@media (max-width: 1000px) { .wd-slider { height: 385px; } }
@media (max-width: 768px)  { .wd-slider { height: 300px; } }
@media (max-width: 480px)  { .wd-slider { height: 150px; } }

.wd-slider__track {
	position: absolute;
	inset: 0;
	will-change: transform;
}
.wd-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease-in-out;
}
.wd-slide.is-active { opacity: 1; z-index: 1; }
.wd-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 0;
}

.wd-slide__outer {
	position: relative;
	width: var(--wd-grid);
	height: 100%;
	margin: 0 auto;
}
.wd-slide__content {
	position: absolute;
	left: 10%;
	top: 25%;
	width: 30%;
	padding: 15px 0;
	will-change: opacity, transform;
}
.wd-slide__title,
.wd-slide__text {
	color: #fff;
	text-transform: uppercase;
	position: relative;
	opacity: 0;
	top: 70px;
}
.wd-slide__title {
	font-size: 50px;
	line-height: 50px;
	font-weight: 700;
	letter-spacing: 3px;
	margin: 0 0 14px;
}
.wd-slide__text {
	font-size: 22px;
	line-height: 28.2857px;
	font-weight: 600;
	letter-spacing: 2px;
	margin: 0 0 100px;
}
.wd-slide.is-active .wd-slide__title,
.wd-slide.is-active .wd-slide__text {
	animation: wd-text-in 1.2s cubic-bezier(.165, .84, .44, 1) forwards;
}
.wd-slide.is-active .wd-slide__title { animation-delay: .4s; }
.wd-slide.is-active .wd-slide__text  { animation-delay: .6s; }
@keyframes wd-text-in {
	from { opacity: 0; top: 70px; }
	to   { opacity: 1; top: 0; }
}

/* Bis 1300 px: Text vertikal mittig an der Inhaltskante */
@media (max-width: 1300px) {
	.wd-slide__outer { display: flex; align-items: center; }
	.wd-slide__content { position: static; }
	.wd-slide__title span { font-size: .825em; line-height: 1.2em; }
	.wd-slide__text span { font-size: .95em; }
}
@media (max-width: 1200px) {
	.wd-slide__title span { font-size: .725em; line-height: 1.1em; }
	.wd-slide__text span { font-size: .8em; }
}
/* Handy: Titel bleibt sichtbar (im alten Theme fiel er hier weg) */
@media (max-width: 768px) {
	.wd-slide__content { width: 60%; }
	.wd-slide__title { font-size: 34px; line-height: 38px; letter-spacing: 2px; margin-bottom: 8px; }
	.wd-slide__title span, .wd-slide__text span { font-size: inherit; line-height: inherit; }
	.wd-slide__text { font-size: 16px; line-height: 22px; letter-spacing: 1px; margin-bottom: 0; }
}
@media (max-width: 480px) {
	.wd-slide__content { width: 62%; }
	.wd-slide__title { font-size: 18px; line-height: 21px; letter-spacing: 1px; margin-bottom: 4px; }
	.wd-slide__text { font-size: 10px; line-height: 14px; letter-spacing: .5px; }
}

/* Pfeile */
.wd-slider__nav {
	position: absolute;
	top: 50%;
	margin-top: 25px;           /* mittig im sichtbaren Bereich unter dem Header */
	z-index: 5;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid transparent;
	background: var(--wd-dark);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .3s ease-in-out;
}
.wd-slider__nav svg { width: 18px; height: 18px; }
.wd-slider__nav--prev { left: 0; }
.wd-slider__nav--next { right: 0; }
@media (max-width: 1000px) { .wd-slider__nav { margin-top: -25px; } }
@media (max-width: 567px)  { .wd-slider__nav { display: none; } }

/* Punkte */
.wd-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 27px;
	z-index: 5;
	display: flex;
	justify-content: center;
	list-style: none;
	line-height: 0;
}
.wd-slider__dots button {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 3px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fff;
	opacity: .4;
	cursor: pointer;
	transition: opacity .3s ease-in-out;
}
.wd-slider__dots button[aria-current="true"] { opacity: 1; }

/* ==========================================================================
   7. Inhalts-Blöcke (ersetzen WPBakery)
   ========================================================================== */
.wp-block-group.alignfull {
	padding-left: calc((100% - var(--wd-grid)) / 2);
	padding-right: calc((100% - var(--wd-grid)) / 2);
}
.has-hellgrau-background-color { background-color: var(--wd-band); }
.has-weiss-background-color { background-color: var(--wd-white); }
.has-akzent-background-color { background-color: var(--wd-accent); }
.has-dunkel-background-color { background-color: var(--wd-dark); }
.has-akzent-color { color: var(--wd-accent); }
.has-dunkel-color { color: var(--wd-dark); }
.has-weiss-color { color: var(--wd-white); }
.has-text-color-color { color: var(--wd-text); }

.wp-block-spacer { clear: both; }

.wp-block-columns {
	display: flex;
	gap: 30px;
	margin: 0;
}
.wp-block-group,
.wp-block-buttons,
.wp-block-button { margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; flex-shrink: 0; }
.wp-block-columns.are-vertically-aligned-center,
.wp-block-column.is-vertically-aligned-center { align-self: center; }
@media (max-width: 768px) {
	.wp-block-columns { flex-direction: column; gap: 0; }
	.wp-block-column[style*="flex-basis"] { flex-basis: auto !important; }
}

.wp-block-image img { height: auto; }
.wp-block-image figcaption { font-size: 12px; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

.wp-block-button__link,
.wd-button {
	display: inline-block;
	height: 49px;
	line-height: 45px;
	padding: 0 25px;
	border: 2px solid var(--wd-white);
	background: var(--wd-white);
	color: var(--wd-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
}
.wp-block-button__link:hover,
.wd-button:hover {
	background: var(--wd-button-hover);
	color: var(--wd-accent-dark);
}

/* Cyan-Band (Call to Action) */
.wd-cta {
	background: var(--wd-accent);
	padding-top: 60px;
	padding-bottom: 60px;
	color: var(--wd-white);
}
.wd-cta,
.wd-cta h1, .wd-cta h2, .wd-cta h3, .wd-cta h4, .wd-cta h5, .wd-cta h6, .wd-cta p, .wd-cta a:not(.wp-block-button__link) { color: var(--wd-white); }
.wd-cta .wp-block-columns { gap: 0; align-items: center; }
@media (max-width: 768px) {
	.wd-cta .wp-block-buttons { justify-content: flex-start; margin-top: 20px; }
}

/* ==========================================================================
   8. Portfolio-Übersicht
   ========================================================================== */
.wd-filter {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 0 0 7px;
	margin: 0 0 36px;
}
.wd-filter li { height: 24px; }
.wd-filter__label,
.wd-filter button {
	display: block;
	font-size: 12px;
	line-height: 23px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color .3s ease-in-out;
}
.wd-filter__label { color: var(--wd-label); font-weight: 700; padding: 0 15px 0 0; }
.wd-filter button {
	background: none;
	border: 0;
	padding: 0 15px;
	font-weight: 600;
	color: var(--wd-muted);
	cursor: pointer;
}
.wd-filter button:hover,
.wd-filter button[aria-pressed="true"] { color: var(--wd-selection); }
@media (min-width: 769px) and (max-width: 1100px) { .wd-filter button { padding: 0 20px; } }
@media (max-width: 480px) { .wd-filter button { padding: 0 10px; } .wd-filter__label { padding-right: 10px; } }

.wd-projects {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 2%;
	row-gap: var(--wd-row-gap);
	list-style: none;
	padding: 0;
	margin: 0 0 var(--wd-row-gap);
}
@media (max-width: 768px) { .wd-projects { grid-template-columns: repeat(2, 1fr); column-gap: 3.3333%; } }
@media (max-width: 600px) { .wd-projects { grid-template-columns: 1fr; } }

.wd-projects > li[hidden] { display: none; }
.wd-projects > li { animation: wd-fade .4s ease both; }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }

.wd-tile {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--wd-band);
}
.wd-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wd-tile__shade {
	position: absolute;
	inset: 0;
	background: rgba(0, 177, 235, .5);
	opacity: 0;
	transition: opacity .3s ease-in-out;
}
.wd-tile__text {
	position: absolute;
	inset: 0;
	padding: 40px 45px 80px;
	opacity: 0;
	transition: opacity .3s ease-in-out;
}
.wd-tile:hover .wd-tile__shade,
.wd-tile:hover .wd-tile__text,
.wd-tile:focus-visible .wd-tile__shade,
.wd-tile:focus-visible .wd-tile__text { opacity: 1; }
.wd-tile__cat {
	display: block;
	margin: 0 0 6px;
	color: var(--wd-accent);
	font-size: 14px;
	line-height: 36px;
	font-weight: 500;
}
.wd-tile__title {
	color: #fff;
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
@media (max-width: 1000px) { .wd-tile__text { padding: 15px 20px 50px; } }

.wd-after-projects { height: 32px; }

/* ==========================================================================
   9. Projektseite
   ========================================================================== */
.wd-project { width: var(--wd-grid); margin: 0 auto; }

.wd-project__images img { width: 100%; margin: 0 0 18px; }

.wd-project__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 2%;
	row-gap: 22px;
	margin-top: 10px;
}
.wd-project__gallery img { width: 100%; }
@media (max-width: 600px) { .wd-project__gallery { grid-template-columns: 1fr; } }

/* Bildslider der Projektseite */
.wd-pslider { position: relative; overflow: hidden; }
.wd-pslider__track {
	display: flex;
	transition: transform .6s ease;
	will-change: transform;
}
.wd-pslider__track > * { flex: 0 0 100%; }
.wd-pslider__track img { width: 100%; }
.wd-pslider__nav {
	position: absolute;
	top: 50%;
	margin-top: -23px;
	z-index: 3;
	width: 47px;
	height: 47px;
	padding: 0;
	border: 1px solid transparent;
	background: var(--wd-dark);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wd-pslider__nav svg { width: 16px; height: 16px; }
.wd-pslider__nav--prev { left: 0; }
.wd-pslider__nav--next { right: 0; }

/* Beschreibung und Infos */
.wd-project__body {
	display: flex;
	gap: 40px;
	padding: 46px 0 26px;
	background: var(--wd-white);
}
.wd-project__main { flex: 1 1 auto; min-width: 0; padding-bottom: 20px; }
.wd-project__aside { flex: 0 0 255px; }
.wd-project__aside-inner { position: sticky; top: 120px; }
.wd-project__title {
	font-size: 30px;
	line-height: 50px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wd-dark);
	margin: 0 0 23px;
}
.wd-info { margin: 0 0 22px; }
.wd-info:last-child { margin-bottom: 18px; }
.wd-info h6 { margin: 0 0 4px; }
@media (max-width: 1000px) {
	.wd-project__aside { flex-basis: 200px; }
}
@media (max-width: 768px) {
	.wd-project__body { flex-direction: column; gap: 20px; }
	.wd-project__aside { flex-basis: auto; }
	.wd-project__title { font-size: 26px; line-height: 36px; }
}
@media (max-width: 480px) { .wd-project__title { font-size: 22px; line-height: 30px; } }

/* Vor / Übersicht / Weiter */
.wd-pnav {
	position: relative;
	height: 33px;
	margin: 40px 0 50px;
	text-align: center;
}
.wd-pnav a {
	display: inline-block;
	width: 33px;
	height: 33px;
	color: var(--wd-muted);
	transition: color .3s ease-in-out;
}
.wd-pnav a:hover { color: var(--wd-dark); }
.wd-pnav svg { width: 33px; height: 33px; }
.wd-pnav__prev { position: absolute; left: 0; top: 0; }
.wd-pnav__next { position: absolute; right: 0; top: 0; }

/* ==========================================================================
   10. Suche, 404
   ========================================================================== */
.wd-results { list-style: none; margin: 30px 0 60px; }
.wd-results li { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--wd-line); }
.wd-results h5 a { color: var(--wd-dark); }
.wd-results h5 a:hover { color: var(--wd-accent); }
.wd-page-end { height: 60px; }
.search-form { display: flex; gap: 10px; margin: 20px 0 0; max-width: 480px; }
.search-form input[type="search"] {
	flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--wd-line); color: var(--wd-dark);
}
.search-form button {
	height: 40px; padding: 0 20px; border: 0; background: var(--wd-accent); color: #fff; cursor: pointer;
	font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer-top {
	background: var(--wd-dark);
	padding: 82px calc((100% - var(--wd-grid)) / 2) 76px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.footer-top,
.footer-top a,
.footer-top p,
.footer-top li,
.footer-top .textwidget { color: var(--wd-footer-text); word-wrap: break-word; }
.footer-top a:hover { color: var(--wd-accent); }
.footer-col:nth-child(1) { padding: 0 30px 0 0; }
.footer-col:nth-child(2) { padding: 0 30px; border-left: 1px solid var(--wd-footer-line); }
.footer-col:nth-child(3) { padding: 0 0 0 30px; border-left: 1px solid var(--wd-footer-line); }
.footer-top ul { list-style: none; }
.footer-top .widget_nav_menu li a { display: block; line-height: 22px; margin-bottom: 10px; }
.footer-top .widget-title { color: #fff; font-size: 13px; line-height: 18px; margin: 0 0 15px; }
.footer-top p { margin: 0; }

.footer-bottom {
	background: var(--wd-footer-bottom);
	color: var(--wd-dark);
	text-align: center;
	padding: 25px 0 26px;
	font-size: 13px;
	line-height: 14px;
}
.footer-bottom .textwidget, .footer-bottom p { line-height: 14px; }

@media (max-width: 768px) {
	.footer-top { grid-template-columns: 1fr; row-gap: 30px; }
	.footer-col:nth-child(n) { padding: 0; border-left: 0; }
}

/* Nach oben */
.back-to-top {
	position: fixed;
	right: 25px;
	bottom: 65px;
	z-index: 100;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wd-totop);
	border: 1px solid transparent;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease-in-out, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   12. Tablet und Handy (bis 1000 px): Header steht über dem Inhalt
   ========================================================================== */
@media (max-width: 1000px) {
	.site-header {
		position: relative;
		top: auto;
		height: 100px;
		width: var(--wd-box);
		margin: 0 auto;
	}
	.admin-bar .site-header { top: auto; }
	.site-header__inner { width: 100%; position: relative; justify-content: space-between; }
	.site-header__logo {
		position: absolute;
		left: 50%;
		top: 10px;
		height: 80px;
		transform: translateX(-50%);
	}
	.main-nav { display: none; }
	.menu-toggle { display: flex; }
	.site-content { padding-top: var(--wd-pt, 0px); }

	.mobile-nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 109;
		background: var(--wd-white);
		padding: 0 var(--wd-gutter);
		max-height: 0;
		overflow: hidden;
		transition: max-height .4s ease-in-out;
	}
	.mobile-nav.is-open { max-height: 600px; }
	.mobile-nav ul { list-style: none; }
	.mobile-nav li { border-bottom: 1px solid var(--wd-line); }
	.mobile-nav li:last-child { border-bottom: 0; }
	.mobile-nav a {
		display: block;
		padding: 9px 0;
		font-size: 13px;
		line-height: 17px;
		color: var(--wd-text);
	}
	.mobile-nav a:hover,
	.mobile-nav .current-menu-item > a { color: var(--wd-selection); }

	.wd-search form { width: 100%; padding: 0 25px; }
}
@media (max-width: 420px) {
	.site-header__inner { padding: 0 25px; }
}

/* Weniger Bewegung, wenn im Betriebssystem so eingestellt */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
	@view-transition { navigation: none; }
}

/* Druck */
@media print {
	.site-header, .back-to-top, .wd-search, .wd-slider__nav, .wd-slider__dots, .wd-pnav { display: none !important; }
	.site-content { padding-top: 0 !important; }
	.site { width: auto; }
}
