/*
Theme Name: Fairkaufladen
Description: Child-Theme von Twenty Twenty-Five für den Fairkaufladen Petershausen. Optik angelehnt an das frühere Theme "Earth".
Author: Fairkaufladen Petershausen
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 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: fairkaufladen
*/

/* ---------------------------------------------------------------------------
 * Grundlayout
 * ------------------------------------------------------------------------ */
body {
	background: #e0d6ca url("assets/img/bg.jpg") repeat;
}

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

.wp-site-blocks {
	padding: 0 0 30px;
}

/* Kopfbereich über dem Kasten: Logo, Fairtrade-Gemeinde, Claim */
.fk-masthead {
	max-width: 940px;
	margin: 0 auto;
	padding: 35px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.fk-masthead > * {
	margin: 0 !important;
}

.fk-masthead .fk-logo img {
	display: block;
	width: 250px;
}

.fk-masthead .fk-logo-gemeinde img {
	display: block;
	width: 110px;
}

.fk-masthead .fk-claim {
	flex-basis: 100%;
	margin-top: 10px !important;
	line-height: 1.3;
	color: #2c1c14;
}

/* Der helle Inhaltskasten, in dem Navigation, Inhalt und Fuß liegen */
.fk-wrapper {
	max-width: 940px;
	margin: 0 auto !important;
	padding: 0 20px;
	background: #fbf9f4;
	border-radius: 2px;
	box-shadow: 0 0 15px rgba(0, 0, 0, .3);
}

.fk-wrapper.fk-wrapper > * {
	margin-block-start: 0;
}

/* ---------------------------------------------------------------------------
 * Navigation
 * ------------------------------------------------------------------------ */
.fk-mainnav {
	margin: 0 -20px 20px;
	min-height: 51px;
	background: #5e483d url("assets/img/nav-gradient.png") repeat;
	border-top: 1px solid #775b4d;
	border-radius: 2px 2px 0 0;
}

.fk-mainnav .wp-block-navigation {
	--navigation-layout-justification-setting: flex-start;
	gap: 0;
	color: #e8e1ce;
}

.fk-mainnav .wp-block-navigation .wp-block-navigation__container {
	gap: 0;
}

.fk-mainnav .wp-block-navigation-item__content {
	display: block;
	line-height: 50px;
	padding: 0 17px !important;
	color: #e8e1ce;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .6);
}

.fk-mainnav .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.fk-mainnav .wp-block-navigation-item__content:hover,
.fk-mainnav .current-menu-item > .wp-block-navigation-item__content {
	background: #4f3b31;
	text-decoration: none;
}

/* Untermenüs */
.fk-mainnav .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #4f3b31 !important;
	color: #e8e1ce !important;
	border: 0 !important;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
	min-width: 220px !important;
}

.fk-mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #e8e1ce !important;
	line-height: 1.4;
	padding: 10px 17px !important;
}

.fk-mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: #3d2d25;
}

.fk-mainnav .wp-block-navigation__submenu-icon {
	margin-left: -12px;
	margin-right: 14px;
	color: #e8e1ce;
}

/* Menü-Button und ausgeklapptes Menü auf dem Handy */
.fk-mainnav .wp-block-navigation__responsive-container-open {
	margin: 13px 16px;
	color: #e8e1ce;
}

.fk-mainnav .wp-block-navigation__responsive-container.is-menu-open {
	background: #5e483d !important;
	color: #e8e1ce !important;
	padding: 20px;
}

.fk-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	line-height: 1.4;
	padding: 10px 0 !important;
}

.fk-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	box-shadow: none;
	padding-left: 16px !important;
}

/* ---------------------------------------------------------------------------
 * Seitentitel-Band
 * ------------------------------------------------------------------------ */
.fk-page-heading {
	margin: -20px -20px 25px !important;
	padding: 25px 20px;
	background: #f7f2e7 url("assets/img/cloth.png") repeat;
	border-bottom: 1px solid #dcd1c9;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, .4);
}

.fk-page-heading h1 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 400;
	color: #312820;
}

/* ---------------------------------------------------------------------------
 * Inhalt
 * ------------------------------------------------------------------------ */
.fk-content {
	padding-bottom: 30px;
}

.fk-content > .wp-block-post-content > :first-child {
	margin-top: 0;
}

/* Klassische Bildausrichtung aus alten Beiträgen */
.wp-block-post-content .alignleft {
	float: left;
	margin: 4px 20px 10px 0;
}

.wp-block-post-content .alignright {
	float: right;
	margin: 4px 0 10px 20px;
}

.wp-block-post-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	display: block;
}

.wp-caption-text {
	margin: 4px 0 0;
	font-size: 12px;
	font-style: italic;
}

.wp-block-post-content img,
.wp-block-post-featured-image img {
	border-radius: 2px;
}

/* Meta-Zeile (Datum, Kategorie) */
.fk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12px;
	color: #8a7666;
}

.fk-meta.fk-meta > * {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
}

.fk-meta a {
	color: #8a7666;
}

/* Trennlinie mit Titel (früher "vc_text_separator"), auch als Überschriften-Stil wählbar */
.fk-separator,
.wp-block-heading.is-style-fk-trenner {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 25px 0 18px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	color: #2c1c14;
	text-align: center;
}

.wp-block-post-content > :first-child .fk-separator:first-child,
.wp-block-post-content > .wp-block-heading.is-style-fk-trenner:first-child {
	margin-top: 0;
}

.fk-separator::before,
.fk-separator::after,
.wp-block-heading.is-style-fk-trenner::before,
.wp-block-heading.is-style-fk-trenner::after {
	content: "";
	flex: 1;
	height: 6px;
	background: url("assets/img/divider.png") center repeat-x;
}

/* Hinweis-Box (Gruppen-Stil "Hinweis") */
.wp-block-group.is-style-fk-hinweis {
	padding: 14px 18px;
	background: #fff8dc;
	border: 1px solid #f9b653;
	border-left: 5px solid #f9b653;
	border-radius: 2px;
	color: #5e483d;
}

.wp-block-group.is-style-fk-hinweis > * {
	margin-block: 0;
}

.wp-block-group.is-style-fk-hinweis > * + * {
	margin-block-start: .5em;
}

/* Listen-Stil "Zeiten" (z. B. Öffnungszeiten) */
.wp-block-list.is-style-fk-zeiten {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-fk-zeiten li {
	padding: 6px 0;
	border-bottom: 1px dashed #dcd1c9;
}

.wp-block-list.is-style-fk-zeiten li:last-child {
	border-bottom: 0;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid #dcd1c9;
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Beitragslisten (Kategorien, Suche, Archiv)
 * ------------------------------------------------------------------------ */
.fk-postlist .wp-block-post-template {
	margin: 0;
	padding: 0;
}

.fk-postlist .wp-block-post {
	padding: 0 0 22px;
	margin: 0 0 22px;
	border-bottom: 1px dashed #dcd1c9;
}

.fk-entry {
	gap: 20px;
}

.fk-entry-thumb {
	flex: 0 0 200px;
	margin: 0 !important;
}

.fk-entry-thumb img {
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.fk-entry-body {
	flex: 1 1 auto;
	min-width: 0;
}

.fk-entry-body > * {
	margin-block: 0;
}

.fk-entry-body > * + * {
	margin-block-start: 6px;
}

.fk-entry-body .wp-block-post-title {
	font-size: 18px;
}

.fk-entry-body .wp-block-post-title a {
	color: #2c1c14;
}

.wp-block-post-excerpt__more-link,
.fk-more {
	font-weight: 700;
}

.wp-block-query-pagination {
	margin-top: 10px;
	gap: 6px;
	font-size: 13px;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
	min-width: 28px;
	padding: 2px 6px;
	text-align: center;
	border: 1px solid #dcd1c9;
	border-radius: 2px;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: #5e483d;
	border-color: #5e483d;
	color: #e8e1ce;
}

/* Beitragsbild im Einzelbeitrag: Höhe begrenzen, nicht zuschneiden */
.fk-single-thumb img {
	width: auto !important;
	max-width: 100%;
	max-height: 450px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* Vor-/Zurück-Links unter einem Beitrag */
.fk-postnav {
	margin-top: 30px !important;
	padding-top: 15px;
	border-top: 1px solid #dcd1c9;
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * Fuß
 * ------------------------------------------------------------------------ */
.fk-footer {
	margin: 0 -20px !important;
	padding: 0 20px;
	background: #432b1f;
	color: #c7b7ab;
	border-radius: 0 0 3px 3px;
	font-size: 13px;
}

.fk-footer-widgets {
	gap: 0 20px !important;
	margin: 0 !important;
	padding: 20px 0;
	border-bottom: 1px solid #1c1713;
}

.fk-footer-widgets a {
	color: #cda793;
}

.fk-footer-widgets a:hover {
	color: #f1d9a8;
}

.fk-footer h4 {
	margin: 0 0 10px;
	padding-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #e6b85f;
	background: url("assets/img/footer-header-border.png") left bottom repeat-x;
}

.fk-footer p {
	margin: 0 0 8px;
}

.fk-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	margin: 0 -20px !important;
	padding: 12px 20px;
	font-size: 11px;
	color: #beb3a2;
	background: #342117;
	border-top: 1px solid #4f4135;
	border-radius: 0 0 3px 3px;
}

.fk-footer-bottom p {
	margin: 0;
}

.fk-footer-bottom a {
	color: #cda793;
}

.fk-footer-bottom a:hover {
	color: #f1d9a8;
	text-decoration: none;
}

.fk-footer-bottom .sep {
	opacity: .6;
	margin: 0 6px;
}

/* ---------------------------------------------------------------------------
 * Handy
 * ------------------------------------------------------------------------ */
@media (max-width: 600px) {
	.fk-masthead {
		padding: 24px 16px;
	}

	.fk-masthead .fk-logo img {
		width: 200px;
	}

	.fk-masthead .fk-logo-gemeinde img {
		width: 90px;
	}

	.fk-masthead .fk-claim {
		font-size: 18px !important;
	}

	.fk-wrapper {
		margin: 0 8px !important;
		padding: 0 16px;
	}

	.fk-mainnav,
	.fk-footer,
	.fk-footer-bottom {
		margin-left: -16px !important;
		margin-right: -16px !important;
	}

	.fk-page-heading {
		margin: -20px -16px 20px !important;
		padding: 20px 16px;
	}

	.fk-page-heading h1 {
		font-size: 20px;
	}

	.fk-footer,
	.fk-footer-bottom {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fk-entry {
		flex-wrap: wrap !important;
	}

	.fk-entry-thumb {
		flex-basis: 100%;
	}

	.wp-block-post-content .alignleft,
	.wp-block-post-content .alignright {
		float: none;
		margin: 0 0 10px;
	}
}
