/*
Theme Name: Fitness Farm Steiger
Theme URI: https://fitnessfarmsteiger.de/
Author: Fitness Farm Steiger GmbH
Description: Nachbau der bisherigen Website der Fitness Farm Steiger (Old School Studio in Bessenbach) als WordPress-Theme. Dunkles Design, Cyan-Akzente, Barlow-Schrift, großes Header-Bild.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitness-farm-steiger
*/

/* ---------- Schriften (lokal, keine Google-Server) ---------- */
@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/Barlow-Light.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Barlow-Regular.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/Barlow-Bold.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/Barlow-ExtraBold.woff") format("woff"); }

/* ---------- Farben ---------- */
:root {
	--ffs-cyan: #00ffff;
	--ffs-bg: #252525;
	--ffs-bg-dark: #131313;
	--ffs-text: #d7d7d7;
	--ffs-text-light: #f1f1f1;
	--ffs-white: #ffffff;
	--ffs-content: 1200px;
	--ffs-gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ffs-bg);
	color: var(--ffs-text);
	font-family: "Barlow", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ffs-cyan); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

strong, b { font-weight: 700; }

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

/* ---------- Header ---------- */
.ffs-header {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background-color: #000;
	background-size: cover;
	background-position: center;
	color: var(--ffs-white);
}
.ffs-header::before,
.ffs-header::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	pointer-events: none;
}
.ffs-header::before { top: 0; height: 220px; background: linear-gradient(rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%); }
.ffs-header::after  { bottom: 0; height: 160px; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 32px, rgba(0,0,0,.6) 100%); }

.ffs-topbar {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 3px 33px 0 33px;
}
.ffs-logo { flex: 0 0 auto; display: block; line-height: 0; }
.ffs-logo img, .ffs-logo .custom-logo { width: 157px; height: auto; display: block; }

/* Hauptmenü Desktop */
.ffs-nav { flex: 1 1 auto; }
.ffs-nav ul { list-style: none; margin: 0; padding: 0; }
.ffs-nav > ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 4px;
	padding-top: 16px;
}
.ffs-nav li { position: relative; }
.ffs-nav a {
	display: block;
	padding: 10px 6px;
	color: var(--ffs-text-light);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}
.ffs-nav a:hover, .ffs-nav a:focus { color: var(--ffs-cyan); text-decoration: none; }
.ffs-nav .current-menu-item > a,
.ffs-nav .current-menu-ancestor > a,
.ffs-nav .current_page_item > a,
.ffs-nav .current_page_ancestor > a { color: var(--ffs-cyan); }
.ffs-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 0 3px 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.ffs-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 6px 0;
	background: rgba(0,0,0,.9);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 30;
}
.ffs-nav .sub-menu.ffs-sub-right { left: auto; right: 0; }
html { overflow-x: clip; }
.ffs-nav .sub-menu a { padding: 8px 16px; }
.ffs-nav li:hover > .sub-menu,
.ffs-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.ffs-menu-toggle { display: none; }

/* Titel im Header */
.ffs-titles {
	position: relative;
	z-index: 10;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px var(--ffs-gutter);
}
.ffs-site-title {
	width: 100%;
	max-width: 1040px;
	margin: 0;
	font-weight: 800;
	font-size: 58.672px;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--ffs-white);
}
.ffs-site-title a { color: inherit; }
.ffs-site-title a:hover { text-decoration: none; }

.ffs-page-title {
	position: relative;
	z-index: 10;
	margin: 0;
	padding: 18px var(--ffs-gutter) 22px;
	text-align: center;
	font-weight: 300;
	font-size: 21.328px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--ffs-cyan);
}

/* ---------- Inhalt ---------- */
.ffs-main { padding: 8px 0 60px; }
.ffs-content {
	max-width: calc(var(--ffs-content) + 2 * var(--ffs-gutter));
	margin: 0 auto;
	padding: 0 var(--ffs-gutter);
}
.ffs-content > * { margin-top: 0; }

.ffs-content p { margin: 0 0 1em; }
.ffs-content h1, .ffs-content h2, .ffs-content h3,
.ffs-content h4, .ffs-content h5, .ffs-content h6 {
	color: var(--ffs-text-light);
	font-weight: 700;
	margin: 0 0 .6em;
}
.ffs-content h1, .ffs-content h2.ffs-h1 { font-size: 28.8px; line-height: 1.35; }
.ffs-content h2 { font-size: 24px; line-height: 1.4; }
.ffs-content h3 { font-size: 20.8px; line-height: 1.35; }
.ffs-content h5 { font-size: 16px; line-height: 1.4; }
.ffs-content ul, .ffs-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.ffs-content li { margin: 0 0 .5em; }

.ffs-content mark.has-inline-color { background: transparent; padding: 0; }

.ffs-anchor { display: block; position: relative; top: -20px; visibility: hidden; height: 0; }

/* Spalten etwas mehr Luft */
.ffs-content .wp-block-columns { gap: 1em 24px; margin-bottom: 1em; }
.ffs-content .wp-block-group { margin-bottom: 0; }

/* Volle Breite für Abschnitte mit Hintergrundbild */
.ffs-content .wp-block-cover.ffs-section {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 0;
	padding: 8px var(--ffs-gutter);
	color: var(--ffs-text-light);
	margin-top: -8px;
	margin-bottom: 1em;
}
.ffs-content .wp-block-cover.ffs-section .wp-block-cover__inner-container {
	max-width: var(--ffs-content);
	margin: 0 auto;
	width: 100%;
	color: var(--ffs-text-light);
}
.ffs-content .wp-block-cover.ffs-section .has-background-dim { background-color: #000; opacity: .5; }

/* Bilder & Galerie */
.ffs-content .wp-block-image { margin: 0 0 1em; }
.ffs-content .wp-block-image figcaption,
.ffs-content .wp-block-gallery figcaption { color: var(--ffs-text-light); }
.ffs-content .wp-block-gallery { margin-bottom: 1.5em; }

/* Videos */
.ffs-content .wp-block-embed { margin: 0 0 1.5em; }

/* Häufige Fragen (aufklappbar) */
.ffs-content .wp-block-details {
	border-bottom: 1px solid #3a3a3a;
	padding: 14px 0;
	margin: 0;
}
.ffs-content .wp-block-details summary {
	cursor: pointer;
	color: var(--ffs-cyan);
	font-weight: 700;
	font-size: 18px;
	list-style-position: outside;
}
.ffs-content .wp-block-details[open] summary { margin-bottom: 10px; }
.ffs-content .wp-block-details > :last-child { margin-bottom: 0; }

/* Videos und Karte erst nach Klick laden */
.ffs-consent-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	background: #111 radial-gradient(circle at 50% 40%, #2c2c2c, #0b0b0b);
	border: 1px solid #333;
	text-align: center;
}
.ffs-consent-maps { aspect-ratio: 4 / 3; max-height: 500px; }
.ffs-consent-embed.is-loaded { padding: 0; border: 0; background: #000; }
.ffs-consent-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ffs-consent-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	background: var(--ffs-cyan);
	color: #000;
	border: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ffs-consent-btn:hover, .ffs-consent-btn:focus { background: #fff; }
.ffs-consent-icon { width: 0; height: 0; border-left: 12px solid #000; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ffs-consent-maps .ffs-consent-icon { width: 12px; height: 12px; border: 3px solid #000; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.ffs-consent-note { margin: 0 !important; font-size: 13px; color: #aaa; max-width: 420px; }
.ffs-consent-note a { color: var(--ffs-cyan); }

/* Karte */
.ffs-map iframe { display: block; width: 100%; max-width: 100%; height: 450px; border: 0; }

/* ---------- Kontaktformular ---------- */
.ffs-form { max-width: 700px; margin: 0 0 1.5em; }
.ffs-form label { display: block; margin: 0 0 6px; color: var(--ffs-text-light); }
.ffs-form .ffs-field { margin-bottom: 18px; }
.ffs-form input[type="text"],
.ffs-form input[type="email"],
.ffs-form textarea {
	width: 100%;
	padding: 10px 12px;
	background: #1b1b1b;
	border: 1px solid #555;
	color: var(--ffs-text-light);
	font: inherit;
}
.ffs-form textarea { min-height: 140px; resize: vertical; }
.ffs-form input:focus, .ffs-form textarea:focus { outline: 2px solid var(--ffs-cyan); outline-offset: 0; border-color: var(--ffs-cyan); }
.ffs-form .ffs-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ffs-form .ffs-consent input { margin-top: 3px; }
.ffs-form .ffs-hp { position: absolute; left: -9999px; }
.ffs-form button {
	padding: 10px 28px;
	background: var(--ffs-cyan);
	color: #000;
	border: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ffs-form button:hover { background: #fff; }
.ffs-form-msg { padding: 12px 16px; margin-bottom: 18px; border-left: 4px solid var(--ffs-cyan); background: #1b1b1b; color: var(--ffs-text-light); }
.ffs-form-msg.is-error { border-color: #ff6b6b; }

/* ---------- Footer ---------- */
.ffs-footer {
	background: var(--ffs-bg-dark);
	color: var(--ffs-text-light);
	text-align: center;
	padding: 40px var(--ffs-gutter) 50px;
}
.ffs-footer .ffs-nap { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--ffs-text); margin: 0 auto 28px; max-width: 700px; }
.ffs-footer .ffs-nap strong { color: var(--ffs-text-light); }
.ffs-footer ul { list-style: none; margin: 0; padding: 0; }
.ffs-footer li { margin: 0 0 12px; }
.ffs-footer a { color: var(--ffs-cyan); }

/* Nach oben */
.ffs-back-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 50;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.8);
	border: 0;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.ffs-back-top.is-visible { opacity: 1; visibility: visible; }
.ffs-back-top::before {
	content: "";
	width: 9px; height: 9px;
	margin-top: 4px;
	border-left: 2px solid #fff;
	border-top: 2px solid #fff;
	transform: rotate(45deg);
}

/* ---------- Tablet & Handy ---------- */
@media (max-width: 1100px) {
	.ffs-site-title { font-size: 46px; }
}

@media (max-width: 834px) {
	.ffs-topbar { padding: 3px 16px 0; }
	.ffs-logo img, .ffs-logo .custom-logo { width: 120px; }

	.ffs-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 16px;
		right: 16px;
		z-index: 60;
		width: 44px;
		height: 44px;
		padding: 0;
		background: #000;
		border: 0;
		cursor: pointer;
	}
	.ffs-menu-toggle span,
	.ffs-menu-toggle span::before,
	.ffs-menu-toggle span::after {
		display: block;
		width: 22px;
		height: 2px;
		background: #fff;
		position: relative;
		transition: transform .2s, background .2s;
	}
	.ffs-menu-toggle span::before,
	.ffs-menu-toggle span::after { content: ""; position: absolute; left: 0; }
	.ffs-menu-toggle span::before { top: -7px; }
	.ffs-menu-toggle span::after { top: 7px; }
	.ffs-nav-open .ffs-menu-toggle span { background: transparent; }
	.ffs-nav-open .ffs-menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
	.ffs-nav-open .ffs-menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

	.ffs-nav {
		position: fixed;
		inset: 0;
		z-index: 55;
		background: rgba(0,0,0,.95);
		overflow-y: auto;
		padding: 80px 24px 40px;
		display: none;
	}
	.ffs-nav-open .ffs-nav { display: block; }
	.ffs-nav-open { overflow: hidden; }
	.ffs-nav > ul { display: block; padding: 0; }
	.ffs-nav a { font-size: 20px; padding: 10px 0; white-space: normal; }
	.ffs-nav .menu-item-has-children > a::after { display: none; }
	.ffs-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: none;
		padding: 0 0 0 18px;
		min-width: 0;
	}
	.ffs-nav .sub-menu a { font-size: 17px; padding: 6px 0; }

	.ffs-titles { padding: 30px 20px; }
	.ffs-site-title { font-size: 34px; }
	.ffs-page-title { font-size: 19px; }

	.ffs-mobile-center .ffs-content { text-align: center; }
	.ffs-mobile-center .ffs-content ul,
	.ffs-mobile-center .ffs-content ol { list-style-position: inside; padding-left: 0; }
	.ffs-mobile-center .ffs-content .wp-block-image img { margin-left: auto; margin-right: auto; }
	.ffs-mobile-center .ffs-content .wp-block-image.is-resized img { display: block; }
	.ffs-mobile-center .ffs-form { text-align: left; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
	.ffs-site-title { font-size: 26px; }
	.ffs-logo img, .ffs-logo .custom-logo { width: 96px; }
}
