/*
Theme Name: Wanderreiter
Theme URI: https://wanderreiter.info
Author: Cyber-Connect GmbH
Author URI: https://cyber-connect.de
Description: Portierung der Website wanderreiter.info von Joomla 1.5 nach WordPress. Die Desktop-Darstellung entspricht dem bisherigen Erscheinungsbild (Artisteer-Layout von 2013); auf Tablets und Telefonen schaltet die Seite auf eine einspaltige Darstellung mit Hamburger-Menü um. Das Kontaktformular wird von Fluent Forms bereitgestellt; das Theme liefert die passende Gestaltung dafür.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wanderreiter
Tags: two-columns, right-sidebar, custom-menu, custom-header, custom-logo, translation-ready
*/

/* =============================================================================
   Aufbau dieser Datei

   1. WordPress-Grundlagen        (Klassen, die WordPress selbst erzeugt)
   2. Inhalte aus der alten Seite (Bilder, Tabellen, Listen)
   3. Formulare und Schaltflächen
   4. Kontaktformular (Fluent Forms)
   5. Suchfeld in der Kopfleiste
   6. Hamburger-Menü
   7. Responsive Darstellung

   Die eigentliche Gestaltung steht in assets/css/artisteer-base.css und wird
   vorher geladen. Diese Datei ergänzt und überschreibt sie.
   ============================================================================= */


/* =============================================================================
   1. WordPress-Grundlagen
   ============================================================================= */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.screen-reader-text:focus,
.wr-skip-link:focus {
	background-color: #fff;
	border: 2px solid #616831;
	border-radius: 3px;
	clip-path: none;
	color: #33271e;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Ausrichtung von Bildern und Blöcken */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide,
.alignfull {
	clear: both;
}

/* Bildunterschriften */
.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	display: block;
	height: auto;
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	color: #515729;
	font-size: 12px;
	margin: 4px 0 12px;
	text-align: center;
}

/* Galerien */
.wp-block-gallery img {
	height: auto;
	max-width: 100%;
}

/* Eingebettete Inhalte */
.wp-block-embed iframe,
.art-article iframe,
.art-article video {
	max-width: 100%;
}

/* "Weiterlesen"-Sprungmarke */
.art-article .more-link {
	white-space: nowrap;
}


/* =============================================================================
   2. Inhalte aus der alten Seite
   ============================================================================= */

/* Bilder skalieren mit, auch wenn im HTML feste Maße stehen. */
.art-article img,
.art-postcontent img,
.art-blockcontent-body img {
	height: auto;
	max-width: 100%;
}

/* Tabellen aus der alten Seite tragen teilweise feste Pixelbreiten. */
.art-article table {
	border-collapse: collapse;
	max-width: 100%;
}

.art-article td,
.art-article th {
	vertical-align: top;
}

/* PDF-Verweise sichtbar kennzeichnen. */
.art-article a[href$=".pdf"]::after {
	content: " (PDF)";
	font-size: 0.85em;
	font-weight: normal;
}


/* =============================================================================
   3. Formulare und Schaltflächen
   ============================================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
	background-color: #fff;
	border: 1px solid #b9c08a;
	border-radius: 3px;
	box-sizing: border-box;
	color: #33271e;
	font-family: inherit;
	font-size: 14px;
	max-width: 100%;
	padding: 8px 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: #616831;
	outline: 2px solid rgba(97, 104, 49, 0.35);
	outline-offset: 1px;
}

textarea {
	line-height: 1.5;
	resize: vertical;
	width: 100%;
}

/* Schaltfläche im Stil der alten Seite (nutzt button.png aus dem Template). */
.art-button,
button.art-button,
input[type="submit"],
button[type="submit"] {
	background-color: #7d8a3c;
	background-image: linear-gradient(to bottom, #97a44f, #6c7733);
	border: 1px solid #5c6529;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.2;
	padding: 10px 22px;
	text-decoration: none;
}

.art-button:hover,
button.art-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background-image: linear-gradient(to bottom, #a7b45c, #7b8740);
	color: #fff;
	text-decoration: none;
}

.art-button:focus-visible,
button[type="submit"]:focus-visible {
	outline: 3px solid #dc541e;
	outline-offset: 2px;
}


/* =============================================================================
   4. Kontaktformular (Fluent Forms)

   Das Formular liefert Fluent Forms; hier steht nur die Gestaltung, damit es
   wie der Rest der Seite aussieht. Contact Form 7 ist mit abgedeckt, falls
   später darauf gewechselt wird. Greift nur, wenn das jeweilige Plugin aktiv
   ist – stört sonst nicht.
   ============================================================================= */

.art-article .fluentform,
.art-article .wpcf7 {
	max-width: 640px;
}

.art-article .fluentform .ff-el-group,
.art-article .wpcf7 p {
	margin: 0 0 18px;
}

.art-article .fluentform .ff-el-input--label label,
.art-article .wpcf7 label {
	color: #33271e;
	font-family: inherit;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
}

.art-article .fluentform .ff-el-is-required.asterisk-right label::after,
.art-article .wpcf7 .wpcf7-not-valid-tip {
	color: #dc541e;
}

.art-article .fluentform input[type="text"],
.art-article .fluentform input[type="email"],
.art-article .fluentform input[type="tel"],
.art-article .fluentform input[type="url"],
.art-article .fluentform input[type="number"],
.art-article .fluentform textarea,
.art-article .fluentform select,
.art-article .wpcf7 input[type="text"],
.art-article .wpcf7 input[type="email"],
.art-article .wpcf7 input[type="tel"],
.art-article .wpcf7 textarea,
.art-article .wpcf7 select {
	background-color: #fff;
	border: 1px solid #b9c08a;
	border-radius: 3px;
	box-shadow: none;
	box-sizing: border-box;
	color: #33271e;
	font-family: inherit;
	font-size: 14px;
	padding: 8px 10px;
	width: 100%;
}

.art-article .fluentform .ff-el-form-control:focus,
.art-article .wpcf7 input:focus,
.art-article .wpcf7 textarea:focus {
	border-color: #616831;
	box-shadow: none;
	outline: 2px solid rgba(97, 104, 49, 0.35);
	outline-offset: 1px;
}

/* Absenden-Schaltfläche im Stil der Seite */
.art-article .fluentform .ff-btn-submit,
.art-article .wpcf7 input[type="submit"] {
	background-color: #7d8a3c;
	background-image: linear-gradient(to bottom, #97a44f, #6c7733);
	border: 1px solid #5c6529;
	border-radius: 4px;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: bold;
	padding: 10px 22px;
	text-shadow: none;
}

.art-article .fluentform .ff-btn-submit:hover,
.art-article .wpcf7 input[type="submit"]:hover {
	background-image: linear-gradient(to bottom, #a7b45c, #7b8740);
	color: #fff;
}

/* Zustimmungs-Kästchen: Kästchen bündig zur ersten Textzeile, Folgezeilen
   auf gleicher Höhe eingerückt statt unter dem Kästchen. */
.art-article .fluentform .ff-el-form-check {
	margin-bottom: 6px;
}

.art-article .fluentform .ff-el-form-check-label {
	align-items: flex-start;
	display: flex;
	font-weight: normal;
	gap: 10px;
	line-height: 1.45;
}

.art-article .fluentform .ff-el-form-check-input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

/* Der Text steht in einem span neben dem Kästchen. */
.art-article .fluentform .ff-el-form-check-label > span {
	display: block;
}

.art-article .fluentform .ff_gdpr_field + span a,
.art-article .fluentform .ff-el-form-check-label a {
	color: #dc541e;
	font-weight: bold;
	text-decoration: underline;
}

/* Meldungen nach dem Absenden */
.art-article .ff-message-success,
.art-article .wpcf7 form.sent .wpcf7-response-output {
	background-color: #eef3e0;
	border: 0;
	border-left: 4px solid #616831;
	border-radius: 3px;
	color: #3f4620;
	margin: 0 0 20px;
	padding: 12px 16px;
}

.art-article .ff-errors-in-stack,
.art-article .fluentform .error,
.art-article .wpcf7 form.invalid .wpcf7-response-output,
.art-article .wpcf7 form.failed .wpcf7-response-output {
	background-color: #fbeae5;
	border: 0;
	border-left: 4px solid #b3320d;
	border-radius: 3px;
	color: #8c2709;
	margin: 0 0 20px;
	padding: 12px 16px;
}

.art-article .fluentform .text-danger,
.art-article .fluentform .error-text {
	color: #b3320d;
	font-size: 13px;
	font-weight: bold;
}

/* Auf schmalen Geräten volle Breite */
@media (max-width: 700px) {

	.art-article .fluentform .ff-t-cell {
		padding-left: 0;
		padding-right: 0;
	}
}


/* =============================================================================
   5. Suchfeld in der Kopfleiste
   ============================================================================= */

.wr-searchform {
	align-items: center;
	display: flex;
	gap: 4px;
	height: 33px;
	margin: 0;
	padding: 0 6px;
}

.wr-searchform .search {
	margin: 0;
}

.wr-searchform input[type="search"] {
	border: 1px solid #8fa0aa;
	font-size: 13px;
	height: 23px;
	padding: 2px 8px;
	width: 150px;
}

.wr-search-submit {
	background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23192E3E' stroke-width='2'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='M12.5 12.5 L17 17'/%3E%3C/svg%3E") no-repeat center;
	border: 0;
	cursor: pointer;
	height: 22px;
	padding: 0;
	width: 22px;
}

.wr-search-submit:focus-visible {
	outline: 2px solid #dc541e;
}

/* Suchformular im Inhalt darf breiter sein. */
.art-article .wr-searchform,
.wr-mobile-search .wr-searchform {
	height: auto;
	padding: 0;
}

.art-article .wr-searchform input[type="search"],
.wr-mobile-search .wr-searchform input[type="search"] {
	flex: 1 1 auto;
	height: auto;
	padding: 8px 10px;
	width: auto;
}


/* =============================================================================
   6. Hamburger-Menü
   ============================================================================= */

.wr-menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #192e3e;
	cursor: pointer;
	display: none; /* Erst ab der Umbruchbreite sichtbar. */
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
	gap: 9px;
	height: 33px;
	padding: 0 12px;
}

.wr-menu-toggle-bars,
.wr-menu-toggle-bars::before,
.wr-menu-toggle-bars::after {
	background-color: currentColor;
	border-radius: 2px;
	display: block;
	height: 3px;
	transition: transform 0.2s ease, opacity 0.2s ease;
	width: 24px;
}

.wr-menu-toggle-bars {
	position: relative;
}

.wr-menu-toggle-bars::before,
.wr-menu-toggle-bars::after {
	content: "";
	left: 0;
	position: absolute;
}

.wr-menu-toggle-bars::before {
	top: -8px;
}

.wr-menu-toggle-bars::after {
	top: 8px;
}

.wr-nav-open .wr-menu-toggle-bars {
	background-color: transparent;
}

.wr-nav-open .wr-menu-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.wr-nav-open .wr-menu-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.wr-menu-toggle:focus-visible {
	outline: 2px solid #dc541e;
	outline-offset: 2px;
}

/* Aufklappbereich – als Schublade über der Seite.
   Sie liegt bewusst außerhalb von #art-main: dieser Container bringt aus dem
   alten Template "overflow: hidden" und einen eigenen Stapelkontext mit, in
   dem eine überlagernde Schublade abgeschnitten würde. */
.wr-mobile-nav {
	background-color: #f7f6ea;
	border-right: 3px solid #616831;
	bottom: 0;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.28);
	display: none; /* Erst ab der Umbruchbreite genutzt. */
	left: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	position: fixed;
	top: 0;
	transform: translateX(-100%);
	transition: transform 0.24s ease;
	width: min(86vw, 360px);
	z-index: 1000;
}

.wr-nav-open .wr-mobile-nav {
	transform: translateX(0);
}

.wr-mobile-nav-inner {
	padding: 6px 16px 24px;
}

.wr-mobile-nav-head {
	align-items: center;
	border-bottom: 2px solid #ddd9bc;
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
}

.wr-mobile-nav-title {
	color: #616831;
	font-size: 17px;
	font-weight: bold;
}

.wr-mobile-nav-close {
	background: transparent;
	border: 0;
	color: #33271e;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	padding: 6px 10px;
}

.wr-mobile-nav-close:focus-visible {
	outline: 2px solid #dc541e;
}

.wr-mobile-nav-backdrop {
	background-color: rgba(0, 0, 0, 0.45);
	bottom: 0;
	left: 0;
	opacity: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity 0.24s ease;
	z-index: 990;
}

.wr-nav-open .wr-mobile-nav-backdrop {
	opacity: 1;
}

/* Seite hinter der offenen Schublade nicht mitscrollen lassen. */
.wr-nav-open {
	overflow: hidden;
}

.wr-mobile-menu,
.wr-mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wr-mobile-menu li {
	background: none;
	border-bottom: 1px solid #ddd9bc;
	margin: 0;
	padding: 0;
	position: relative;
}

.wr-mobile-menu a {
	color: #33271e;
	display: block;
	font-size: 16px;
	font-weight: bold;
	padding: 13px 52px 13px 4px;
	text-decoration: none;
}

.wr-mobile-menu a:hover,
.wr-mobile-menu a:focus {
	color: #616831;
	text-decoration: underline;
}

.wr-mobile-menu .current-menu-item > a,
.wr-mobile-menu .current_page_item > a {
	color: #dc541e;
}

/* Untermenüs */
.wr-mobile-menu ul {
	display: none;
	margin-left: 16px;
}

.wr-mobile-menu .wr-open > ul {
	display: block;
}

.wr-mobile-menu ul a {
	font-size: 15px;
	font-weight: normal;
	padding-top: 11px;
	padding-bottom: 11px;
}

.wr-mobile-menu ul ul a {
	font-size: 14px;
}

.wr-mobile-menu li:last-child {
	border-bottom: 0;
}

/* Aufklapp-Schaltfläche neben dem Menüpunkt */
.wr-submenu-toggle {
	background: transparent;
	border: 0;
	border-left: 1px solid #ddd9bc;
	cursor: pointer;
	height: 46px;
	position: absolute;
	right: 0;
	top: 0;
	width: 48px;
}

.wr-submenu-toggle::before {
	border-bottom: 2px solid #616831;
	border-right: 2px solid #616831;
	content: "";
	display: block;
	height: 9px;
	margin: -3px auto 0;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	width: 9px;
}

.wr-submenu-toggle[aria-expanded="true"]::before {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.wr-submenu-toggle:focus-visible {
	outline: 2px solid #dc541e;
	outline-offset: -2px;
}

.wr-mobile-section--secondary {
	border-top: 2px solid #ddd9bc;
	margin-top: 14px;
	padding-top: 6px;
}

.wr-mobile-section--secondary .wr-mobile-menu a {
	font-size: 15px;
	font-weight: normal;
}

.wr-mobile-search {
	margin-top: 16px;
}


/* =============================================================================
   7. Responsive Darstellung
   -----------------------------------------------------------------------------
   Bis 980 px bleibt alles so wie auf der bisherigen Seite.
   Ab 980 px abwärts: eine Spalte, Navigation im Hamburger-Menü.
   ============================================================================= */

/* Aufklapp-Menü der oberen Leiste auch per Tastatur erreichbar. */
ul.art-hmenu li:focus-within > ul {
	top: 100%;
	visibility: visible;
}

ul.art-hmenu li li:focus-within > ul {
	left: 100%;
	top: 0;
}

/* ---------- bis 1200 px: Seitenränder verkleinern ---------- */
@media (max-width: 1200px) {

	.art-sheet,
	.art-nav,
	.art-header-wrapper {
		width: 96%;
	}
}

/* ---------- bis 980 px: einspaltig, Hamburger-Menü ---------- */
@media (max-width: 980px) {

	body {
		background-attachment: scroll;
	}

	.art-sheet,
	.art-nav,
	.art-header-wrapper {
		width: 100%;
	}

	/* --- Kopfbereich --- */
	div.art-header {
		height: auto;
		margin-top: 0;
		z-index: auto;
	}

	.art-header-position {
		position: static;
	}

	.art-header-inner {
		padding: 0;
	}

	div.art-headerobject {
		aspect-ratio: 1300 / 200;
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		height: auto;
		position: static;
		top: auto;
		width: 100%;
	}

	div.art-logo {
		margin: 0;
		padding: 10px 14px 4px;
		position: static;
		right: auto;
		top: auto;
	}

	/* Weiß wäre auf dem hellen Verlauf unlesbar. */
	.art-logo-name,
	.art-logo-name a,
	.art-logo-name a:link,
	.art-logo-name a:visited,
	.art-logo-name a:hover {
		color: #4c5327 !important;
		font-size: 22px;
		text-align: center;
	}

	.art-logo-text {
		color: #5d6337;
		text-align: center;
	}

	/* --- Menüleiste --- */
	.art-nav-outer {
		position: relative;
	}

	.art-nav-inner {
		align-items: center;
		display: flex;
		justify-content: space-between;
		margin: 0;
		padding: 0 6px;
	}

	.wr-menu-toggle {
		display: flex;
		order: 1;
	}

	.art-hmenu-extra2 {
		float: none;
		order: 2;
	}

	/* Obere Leiste und rechte Spalte wandern ins Hamburger-Menü. */
	ul.art-hmenu {
		display: none;
	}

	.wr-mobile-nav {
		display: block;
	}

	.wr-mobile-nav[hidden] {
		display: none;
	}

	/* --- Layout: eine Spalte --- */
	.art-content-layout,
	.art-content-layout-row,
	.art-layout-cell {
		display: block;
		width: auto;
	}

	.art-content-layout .art-sidebar1 {
		width: auto;
	}

	.art-sheet-body {
		padding: 6px;
	}

	.art-post {
		margin: 6px 0;
	}

	.art-post-body {
		padding: 14px 12px;
	}

	.art-block,
	.art-vmenublock {
		margin: 6px 0;
	}

	/* Hauptmenü und Infos stehen bereits im Hamburger-Menü. */
	.art-sidebar1 .art-vmenublock,
	.art-sidebar1 .art-block:not(.widget) {
		display: none;
	}

	/* --- Inhalte --- */
	.art-article table {
		display: block;
		height: auto !important;
		overflow-x: auto;
		width: auto !important;
	}

	.art-article table[style*="width"] {
		max-width: 100% !important;
	}

	.art-postcontent h1,
	.art-postcontent h1 a {
		font-size: 26px;
	}

	.art-postcontent h2,
	.art-postcontent h2 a,
	.art-postheader,
	.art-postheader a {
		font-size: 24px;
	}

	.art-postcontent h3,
	.art-postcontent h3 a {
		font-size: 20px;
	}
}

/* ---------- bis 700 px ---------- */
@media (max-width: 700px) {

	.wr-searchform input[type="search"] {
		width: 118px;
	}

	.art-post-body {
		padding: 12px 10px;
	}

	.art-blockcontent-body {
		padding: 10px;
	}

	.art-footer-body {
		padding: 12px 10px;
	}

	/* Umflossene Bilder stehen auf schmalen Geräten besser allein. */
	.art-article img[style*="float"],
	.art-article img[align] {
		display: block;
		float: none !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.art-article p[style*="text-align: center"] img,
	.art-article img {
		height: auto;
	}
}

/* ---------- bis 480 px ---------- */
@media (max-width: 480px) {

	#art-main,
	table {
		font-size: 15px;
	}

	.art-logo-name,
	.art-logo-name a {
		font-size: 18px;
	}

	.art-postheader,
	.art-postheader a {
		font-size: 21px;
	}

	.art-postcontent h1,
	.art-postcontent h1 a {
		font-size: 22px;
	}

	.art-postcontent h2,
	.art-postcontent h2 a {
		font-size: 20px;
	}

	.art-nav-inner {
		flex-wrap: wrap;
		padding: 4px 6px;
	}

	.wr-menu-toggle {
		padding: 0 6px;
	}

	.wr-searchform {
		padding: 0;
	}

	.wr-searchform input[type="search"] {
		width: 105px;
	}
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {

	.wr-menu-toggle-bars,
	.wr-menu-toggle-bars::before,
	.wr-menu-toggle-bars::after,
	.wr-submenu-toggle::before,
	.wr-mobile-nav,
	.wr-mobile-nav-backdrop {
		transition: none;
	}
}

/* ---------- Druckansicht ---------- */
@media print {

	.art-nav,
	.wr-mobile-nav,
	.wr-menu-toggle,
	.art-sidebar1,
	.fluentform,
	.wpcf7,
	.art-header {
		display: none !important;
	}

	body {
		background: none;
		color: #000;
	}

	.art-sheet,
	.art-sheet-body,
	.art-post,
	.art-post-body {
		box-shadow: none;
		margin: 0;
		padding: 0;
		width: auto;
	}

	.art-article a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 11px;
	}
}
