/*
Theme Name: Flying Circus Mainz-Finthen
Theme URI: https://www.flyingcircus-mainz.de
Description: Vereins-Theme des Modell-Sport-Club Flying Circus Mainz-Finthen e.V. – Nachbau des bisherigen Redaxo-Layouts.
Author: Flying Circus e.V.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: flyingcircus
License: GPL-2.0-or-later
*/

/* ------------------------------------------------------------ Schriften (lokal) */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/open-sans-v36-latin-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/open-sans-v36-latin-normal-700.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/open-sans-v36-latin-italic-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url('assets/fonts/open-sans-v36-latin-italic-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/montserrat-v26-latin-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/montserrat-v26-latin-normal-700.woff2') format('woff2'); }

/* ------------------------------------------------------------ Vereinsfarben */
:root {
	--fc-gruen: #00ba00;
	--fc-gelb: #ebf2d1;      /* zartes Gelb, Hauptmenue */
	--fc-rot: #f11000;
	--fc-hover: #dddddd;
	--fc-titel: #dedede;     /* Ueberschriften-Kasten */
	--fc-box: #f2f2f2;       /* Inhalts-Kasten */
	--fc-footer: #cccccc;
	--fc-text: #000000;
	--fc-breite: 800px;
	--fc-sans: 'Open Sans', Arial, Helvetica, sans-serif;
	--fc-nav: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

/* ------------------------------------------------------------ Grundlayout */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; }
body {
	margin: 8px;
	color: var(--fc-text);
	font-family: var(--fc-sans);
	font-size: 16px;
	line-height: 1.45;
	background-color: #e9e9e9;
	background-attachment: fixed;
	background-size: cover;
	background-position: center top;
}
body:not(.custom-background) { background-image: url('assets/img/background.jpg'); }
img { max-width: 100%; height: auto; }
p { font-size: 14px; }
.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 { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	background: #fff; padding: 10px 15px; left: 10px; top: 10px; }

/* ------------------------------------------------------------ Kopfbereich */
.fc-header { position: relative; }
.fc-header-image {
	position: relative;
	height: 270px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.fc-site-title {
	position: absolute;
	left: 100px;
	right: 310px;
	top: 0;
	margin: 0.67em 0 0;
	font-family: var(--fc-sans);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--fc-gruen);
	text-shadow: 1px 1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff, -1px -1px 1px #fff;
}
.fc-site-title a { color: inherit; text-decoration: none; }
.fc-logo {
	position: absolute;
	top: 10px;
	right: 50px;
	z-index: 5;
	width: 240px;
	line-height: 0;
}
.fc-logo img { width: 100%; height: auto; }

/* ------------------------------------------------------------ Hauptmenue */
.fc-mainnav { position: relative; margin-top: -55px; z-index: 3; }
.fc-mainnav ul {
	margin: 0;
	padding: 10px 0;
	list-style: none;
	text-align: center;
	background: var(--fc-gelb);
}
.fc-mainnav li { display: inline; margin-right: 10px; }
.fc-mainnav a {
	font-family: var(--fc-nav);
	font-size: 18px;
	color: #000;
	text-decoration: none;
	padding: 0 10px;
	line-height: 1.6;
}
.fc-mainnav a:hover,
.fc-mainnav a:focus-visible,
.fc-mainnav .current-menu-item > a,
.fc-mainnav .current-menu-ancestor > a,
.fc-mainnav .current_page_parent > a,
.fc-mainnav .current-page-ancestor > a {
	color: var(--fc-rot);
	font-weight: 700;
	background-color: var(--fc-hover);
	padding: 16px 10px;
}
.fc-menu-toggle {
	display: none;
	width: 100%;
	border: 0;
	padding: 12px 15px;
	background: var(--fc-gelb);
	font-family: var(--fc-nav);
	font-size: 18px;
	text-align: left;
	cursor: pointer;
	color: #000;
}
.fc-menu-toggle .fc-burger { display: inline-block; width: 22px; vertical-align: middle; margin-right: 8px; }
.fc-menu-toggle .fc-burger span { display: block; height: 3px; margin: 4px 0; background: #000; border-radius: 1px; }

/* ------------------------------------------------------------ Untermenue (gruener Balken) */
.fc-subnav { margin-top: 25px; }
.fc-subnav ul {
	margin: 0;
	padding: 5px 0;
	list-style: none;
	text-align: center;
	background: var(--fc-gruen);
	min-height: 28px;
}
.fc-subnav li { display: inline-block; margin-right: 10px; }
.fc-subnav a {
	font-family: var(--fc-nav);
	font-size: 13px;
	color: #000;
	text-decoration: none;
	padding: 0 10px;
	line-height: 18px;
}
.fc-subnav a:hover,
.fc-subnav a:focus-visible,
.fc-subnav .current_page_item > a,
.fc-subnav .current-menu-item > a {
	color: var(--fc-gruen);
	font-weight: 700;
	background-color: var(--fc-hover);
	padding: 5px 10px;
}

/* ------------------------------------------------------------ Inhalt */
.fc-content { padding-top: 2.4em; }
.fc-section, .fc-news-box, .fc-plain {
	max-width: var(--fc-breite);
	margin: 0 auto 2.4em;
}
.fc-section-title, .entry-content .fc-section-title {
	margin: 0;
	padding: 0.67em 0.5em;
	background: var(--fc-titel);
	text-align: center;
	font-family: var(--fc-sans);
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
}
.fc-section-body {
	background: var(--fc-box);
	padding: 20px;
}
.fc-section-body > :first-child { margin-top: 0; }
.fc-section-body > :last-child { margin-bottom: 0; }
.fc-section.fc-raw { text-align: center; }
.fc-section h3, .fc-section h4, .fc-news-item h3 { font-family: var(--fc-sans); }
.fc-section li, .fc-news-item li { font-size: 14px; }
.fc-section .wp-block-columns { margin-bottom: 1.5em; gap: 1.5em; }
.fc-section .wp-block-image { margin: 0 0 1em; }
.fc-section .wp-block-image img, .fc-news-item .wp-block-image img { height: auto; }
.fc-section .wp-block-button__link {
	background: var(--fc-gruen);
	color: #fff;
	font-family: var(--fc-nav);
	font-size: 15px;
	border-radius: 3px;
	padding: .55em 1.2em;
}
.fc-section .wp-block-button__link:hover { background: #009600; }

/* ------------------------------------------------------------ Neuigkeiten */
.fc-news-box { background: var(--fc-box); padding: 20px; }
.fc-news-heading { background: var(--fc-titel); text-align: center; margin: 0 0 1.2em; }
.fc-news-heading h1, .fc-news-heading h2 {
	margin: 0;
	padding: 0.83em 0.5em;
	font-family: var(--fc-sans);
	font-size: 1.5em;
	font-weight: 700;
}
.fc-news-item { margin-bottom: 2.4em; }
.fc-news-item h3 { font-size: 1.17em; margin: 1em 0; }
.fc-news-item h3 a { color: inherit; text-decoration: none; }
.fc-news-item h3 a:hover { text-decoration: underline; }
.fc-news-item time { display: block; font-size: 15px; margin-bottom: 1em; }
.fc-news-item .wp-block-image { margin: 0 0 1em; }
.fc-news-more { margin: 0; font-size: 14px; }
.fc-pagination { display: flex; justify-content: space-between; gap: 1em; font-size: 14px; }
.fc-pagination a { font-family: var(--fc-nav); }

/* ------------------------------------------------------------ Externe Inhalte erst nach Klick (Windfinder) */
.fc-consent { max-width: 630px; margin: 0 auto 1.5em; }
.fc-consent-box {
	background: var(--fc-gelb);
	border: 1px solid #cdd8a8;
	padding: 20px;
	text-align: center;
	font-size: 14px;
}
.fc-consent-box p { margin: 0 0 .8em; }
.fc-consent-box .fc-consent-title { font-weight: 700; font-size: 16px; }
.fc-consent-btn {
	display: inline-block;
	border: 0;
	border-radius: 3px;
	padding: .55em 1.2em;
	background: var(--fc-gruen);
	color: #fff;
	font-family: var(--fc-nav);
	font-size: 15px;
	cursor: pointer;
}
.fc-consent-btn:hover, .fc-consent-btn:focus-visible { background: #009600; }
.fc-consent-remember { display: block; margin-top: .8em; font-size: 13px; cursor: pointer; }
.fc-consent iframe { display: block; width: 100%; height: 407px; border: 0; background: #fff; }
.fc-consent-revoke { text-align: center; font-size: 13px; }
.fc-consent-revoke button { background: none; border: 0; padding: 0; color: #0000ee; text-decoration: underline; cursor: pointer; font: inherit; }

/* ------------------------------------------------------------ Fusszeile */
.fc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 20px;
	min-height: 50px;
	margin-top: 90px;
	padding: 6px 2px;
	background: var(--fc-footer);
	font-family: var(--fc-sans);
	font-size: 12px;
}
.fc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fc-footer a { color: #000; text-decoration: none; padding-right: 20px; }
.fc-footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Kleinere Bildschirme */
@media (max-width: 1100px) {
	.fc-logo { width: 180px; right: 25px; }
	.fc-site-title { left: 30px; right: 230px; font-size: 30px; }
}
@media (max-width: 760px) {
	body { margin: 0; }
	.fc-header-image { height: 150px; }
	.fc-site-title { left: 12px; right: 128px; font-size: 19px; margin-top: 10px; }
	.fc-logo { width: 105px; top: 6px; right: 8px; }
	.fc-mainnav { margin-top: 0; }
	.fc-menu-toggle { display: block; }
	.fc-mainnav ul { display: none; padding: 0 0 8px; text-align: left; }
	.fc-mainnav.is-open ul { display: block; }
	.fc-mainnav li { display: block; margin: 0; }
	.fc-mainnav a,
	.fc-mainnav a:hover,
	.fc-mainnav .current-menu-item > a,
	.fc-mainnav .current-menu-ancestor > a,
	.fc-mainnav .current_page_parent > a,
	.fc-mainnav .current-page-ancestor > a { display: block; padding: 10px 15px; }
	.fc-subnav { margin-top: 0; }
	.fc-subnav li { margin: 2px 0; }
	.fc-content { padding: 1.2em 8px 0; }
	.fc-section-title, .entry-content .fc-section-title { font-size: 1.45em; }
	.fc-section-body, .fc-news-box { padding: 14px; }
	.fc-footer { margin-top: 40px; padding: 10px; }
}
