/*
Theme Name: FBH1982
Theme URI: https://buergerbad-loemuehle.de
Author:
Author URI:
Description: WordPress Theme für die Webseite des Bürgerbads an der Loemühle.
Version: 1.0.0
Requires at least: 6.0
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: fbh1982
*/

/* -------------------------------------------------- */
/* Design-Tokens                                       */
/* -------------------------------------------------- */

:root {
	--color-primary: #0077b6;
	--color-primary-dark: #023e8a;
	--color-primary-light: #48cae4;
	--color-aqua: #90e0ef;
	--color-sun: #ffb703;
	--color-sun-dark: #fb8500;
	--color-ink: #082032;
	--color-text: #1e293b;
	--color-muted: #5a6b7a;
	--color-bg: #f4fbfd;
	--color-card: #ffffff;
	--color-border: #e2eef2;
	--color-ampel-gruen: #2ecc71;
	--color-ampel-gelb: #f1c40f;
	--color-ampel-rot: #e74c3c;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(2, 62, 138, 0.08);
	--font-heading: 'Baloo 2', 'Segoe UI', sans-serif;
	--font-body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

/* -------------------------------------------------- */
/* Reset / Basics                                      */
/* -------------------------------------------------- */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	color: var(--color-primary-dark);
	line-height: 1.2;
	margin-top: 0;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

ul,
ol {
	padding-left: 1.25em;
}

.button,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-sun);
	color: var(--color-ink);
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	text-decoration: none;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--color-sun-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(251, 133, 0, 0.35);
	color: var(--color-ink);
	text-decoration: none;
}

.button.button--outline {
	background: transparent;
	border: 2px solid #ffffff;
	color: #ffffff;
}

.button.button--outline:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* -------------------------------------------------- */
/* Layout                                              */
/* -------------------------------------------------- */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-content {
	flex: 1 0 auto;
}

.site-content > .container {
	padding-top: 40px;
	padding-bottom: 40px;
}

.section {
	padding: 60px 0;
}

.section-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin-bottom: 8px;
}

.section-lead {
	color: var(--color-muted);
	margin-bottom: 32px;
	max-width: 640px;
}

.section--tinted {
	background: linear-gradient(180deg, #ffffff 0%, #eaf7fb 100%);
}

/* -------------------------------------------------- */
/* Statusleiste (Wassertemperatur / Ampel / Öffnung)   */
/* -------------------------------------------------- */

.status-strip {
	background: var(--color-primary-dark);
	color: #eaf7fb;
	font-size: 0.85rem;
}

.status-strip .container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
	justify-content: center;
}

.status-strip .status-item {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.status-strip .status-item strong {
	color: #ffffff;
}

.ampel-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-muted);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.ampel-dot.is-gruen {
	background: var(--color-ampel-gruen);
}

.ampel-dot.is-gelb {
	background: var(--color-ampel-gelb);
}

.ampel-dot.is-rot {
	background: var(--color-ampel-rot);
}

/* Große Status-Karten auf der Startseite */

.status-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: -70px;
	position: relative;
	z-index: 2;
}

.status-card {
	background: var(--color-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.status-card .status-card__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-aqua);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary-dark);
}

.status-card .status-card__icon svg {
	width: 26px;
	height: 26px;
}

.status-card__label {
	margin: 0 0 2px;
	font-size: 0.85rem;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.status-card__value {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.6rem;
	color: var(--color-primary-dark);
}

.status-card__value .unit {
	font-size: 1rem;
	color: var(--color-muted);
	font-family: var(--font-body);
}

.status-card--ampel .status-card__icon {
	background: transparent;
}

.status-card--ampel .ampel-dot {
	width: 22px;
	height: 22px;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------- */
/* Header / Navigation                                 */
/* -------------------------------------------------- */

.site-header {
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(2, 62, 138, 0.06);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-branding .site-title {
	margin: 0;
	font-size: 1.5rem;
	font-family: var(--font-heading);
}

.site-branding .site-title a {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.site-branding .site-description {
	margin: 2px 0 0;
	font-size: 0.85rem;
	color: var(--color-muted);
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.main-navigation a {
	color: var(--color-primary-dark);
	font-weight: 700;
	font-family: var(--font-heading);
	padding: 8px 14px;
	border-radius: 999px;
	display: inline-block;
	transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
	background: var(--color-aqua);
	color: var(--color-primary-dark);
	text-decoration: none;
}

.main-navigation .current-menu-item > a {
	background: var(--color-primary);
	color: #ffffff;
}

.menu-toggle {
	display: none;
}

@media (max-width: 780px) {
	.menu-toggle {
		display: inline-flex;
		margin-left: auto;
		background: var(--color-primary);
		color: #ffffff;
		border: none;
		border-radius: var(--radius-sm);
		padding: 10px 16px;
		font-size: 0.95rem;
		cursor: pointer;
	}

	.menu-toggle:hover {
		background: var(--color-primary-dark);
		transform: none;
		box-shadow: none;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 4px;
		padding-top: 10px;
	}

	.main-navigation.is-open ul {
		display: flex;
	}

	.main-navigation a {
		display: block;
	}

	.status-cards {
		margin-top: 24px;
	}
}

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */

.hero {
	position: relative;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	color: #ffffff;
	padding: 70px 0 130px;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0, transparent 45%),
		radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.1) 0, transparent 40%);
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 30px;
	align-items: center;
	grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 900px) {
	.hero .container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-actions {
		justify-content: center;
	}
}

.hero-eyebrow {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
}

.hero h1 {
	color: #ffffff;
	font-size: clamp(2rem, 5vw, 3.2rem);
	margin-bottom: 16px;
}

.hero p {
	font-size: 1.15rem;
	max-width: 46ch;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
}

.hero-visual svg {
	width: 100%;
	max-width: 360px;
}

.hero-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	line-height: 0;
}

.hero-wave svg {
	width: 100%;
	height: 90px;
	display: block;
}

.hero-wave path {
	fill: var(--color-bg);
}

/* -------------------------------------------------- */
/* Teaser-Grid (Kachelübersicht der Bereiche)          */
/* -------------------------------------------------- */

.teaser-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.teaser-card {
	background: var(--color-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.teaser-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(2, 62, 138, 0.14);
}

.teaser-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.teaser-card__icon svg {
	width: 26px;
	height: 26px;
}

.teaser-card h3 {
	margin: 0;
	font-size: 1.2rem;
}

.teaser-card p {
	margin: 0;
	color: var(--color-muted);
	flex: 1 0 auto;
}

.teaser-card .teaser-card__link {
	font-weight: 700;
	color: var(--color-primary);
}

/* -------------------------------------------------- */
/* Beitrags-/Karten-Listen (Neuigkeiten, Jobs, Termine)*/
/* -------------------------------------------------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.entry-card {
	background: var(--color-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.entry-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.entry-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 0 auto;
}

.entry-card__meta {
	font-size: 0.8rem;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.entry-card h2,
.entry-card h3 {
	margin: 0;
	font-size: 1.15rem;
}

.entry-card h2 a,
.entry-card h3 a {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.entry-card p {
	color: var(--color-muted);
	margin: 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-aqua);
	color: var(--color-primary-dark);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 700;
	align-self: flex-start;
}

.termin-date {
	background: var(--color-primary-dark);
	color: #ffffff;
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	text-align: center;
	font-family: var(--font-heading);
	min-width: 64px;
}

.termin-date .day {
	display: block;
	font-size: 1.4rem;
	line-height: 1;
}

.termin-date .month {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.entry-card--termin .entry-card__body {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}

.entry-card--termin .entry-card__body > div {
	flex: 1;
}

/* -------------------------------------------------- */
/* Standard-Seiteninhalt                               */
/* -------------------------------------------------- */

.entry-header {
	margin-bottom: 24px;
}

.entry-title {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.entry-content {
	max-width: 75ch;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.page-header {
	margin-bottom: 32px;
}

/* -------------------------------------------------- */
/* Kontakt-/Info-Boxen                                 */
/* -------------------------------------------------- */

.info-box {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
}

.price-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

.price-table th {
	background: var(--color-primary);
	color: #ffffff;
	font-family: var(--font-heading);
}

.price-table tr:last-child td {
	border-bottom: none;
}

/* Tabellen mit Zeilen-Beschriftung (th[scope="row"]), z. B. Bankverbindung. */
.price-table td[scope="row"],
.price-table th[scope="row"] {
	background: var(--color-bg);
	color: var(--color-primary-dark);
	font-family: var(--font-heading);
	white-space: nowrap;
}

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */

.site-footer {
	background: var(--color-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	position: relative;
	padding-top: 50px;
}

.footer-wave {
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	line-height: 0;
	transform: rotate(180deg);
}

.footer-wave svg {
	width: 100%;
	height: 60px;
	display: block;
}

.footer-wave path {
	fill: var(--color-bg);
}

.site-footer .container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding-bottom: 30px;
}

.site-footer h2,
.site-footer .widget-title {
	color: #ffffff;
	font-size: 1.05rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
	color: #ffffff;
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 18px 20px;
	text-align: center;
	font-size: 0.85rem;
}

/* -------------------------------------------------- */
/* Widgets / Sidebar                                   */
/* -------------------------------------------------- */

.widget {
	margin-bottom: 30px;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 10px;
}

/* -------------------------------------------------- */
/* Alignments (Gutenberg support)                      */
/* -------------------------------------------------- */

.alignwide {
	max-width: 1140px;
}

.alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0 20px 20px 0;
}

.alignright {
	float: right;
	margin: 0 0 20px 20px;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* -------------------------------------------------- */
/* Unterseiten-Kacheln (Bereichs-Übersicht)             */
/* -------------------------------------------------- */

.teaser-grid--unterseiten {
	margin-top: 40px;
}

.teaser-card__icon--image {
	overflow: hidden;
	padding: 0;
}

.teaser-card__icon--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------- */
/* Kontaktseite                                        */
/* -------------------------------------------------- */

.kontakt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	margin-top: 32px;
}

.info-box h2 {
	margin-top: 0;
	font-size: 1.3rem;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
}

.site-footer .social-links a {
	font-weight: 700;
}

.site-info__zusatz {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
}

form p {
	margin: 0 0 16px;
}

form label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--color-primary-dark);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="date"],
form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	background: #ffffff;
	color: var(--color-text);
}

form input:focus,
form textarea:focus {
	outline: 2px solid var(--color-primary-light);
	outline-offset: 1px;
}

.fbh1982-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.formular-hinweis {
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
}

.formular-hinweis--erfolg {
	background: rgba(46, 204, 113, 0.15);
	color: #1e7e42;
}

.formular-hinweis--fehler {
	background: rgba(231, 76, 60, 0.15);
	color: #a93226;
}

/* -------------------------------------------------- */
/* Galerie + Lightbox                                  */
/* -------------------------------------------------- */

.fbh1982-galerie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.fbh1982-galerie-grid a {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: var(--shadow);
}

.fbh1982-galerie-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.fbh1982-galerie-grid a:hover img {
	transform: scale(1.05);
}

.fbh1982-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(8, 32, 50, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	padding: 30px;
}

.fbh1982-lightbox.is-active {
	display: flex;
}

.fbh1982-lightbox__image {
	max-width: 100%;
	max-height: 90vh;
	border-radius: var(--radius-sm);
}

.fbh1982-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.fbh1982-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
}
