/*
Theme Name: Seidel-Hof
Theme URI: https://www.seidel-hof.de
Author: Arno Seidel
Description: Individuelles Theme für den Seidel-Hof in Sachsenburg. Warmer Landhof-Charakter mit handschriftlichen Überschriften und goldgelben Akzenten, neu umgesetzt als schlankes, responsives WordPress-Theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: seidel-hof
*/

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/caveat-500-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/caveat-700-latin.woff2') format('woff2');
}

/* ---------- Farb- und Maß-Token ---------- */
:root {
	--papier: #FBF6EC;      /* Hintergrund, heller Kalkputz */
	--putz: #F2E8D5;        /* abgesetzte Flächen */
	--lehm: #3A2E23;        /* Text, dunkles Fachwerkbraun */
	--lehm-hell: #6B5B49;   /* Nebentext */
	--gold: #E4B33C;        /* Akzent, vom alten Template */
	--gold-tief: #96690E;   /* Links, kontraststark */
	--linie: #E3D6BC;
	--radius: 10px;
	--inhalt: 44rem;
	--breit: 64rem;
	font-size: 103%;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	background: var(--papier);
	color: var(--lehm);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-tief); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lehm); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
	font-family: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
	font-weight: 700;
	line-height: 1.12;
	color: var(--lehm);
	margin: 0 0 .4em;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.4em; }
p { margin: 0 0 1.1em; }

.nur-vorlesen {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sprunglink {
	position: absolute; left: -999px; top: 0; z-index: 100;
	background: var(--lehm); color: #fff; padding: .6em 1em; border-radius: 0 0 var(--radius) 0;
}
.sprunglink:focus { left: 0; }

/* ---------- Pinselstrich unter Überschriften ---------- */
.strich {
	display: block;
	width: 130px;
	height: 12px;
	margin: .1em 0 1.2em;
	color: var(--gold);
}
.zentriert .strich, .strich.mittig { margin-left: auto; margin-right: auto; }

/* ---------- Kopfbereich ---------- */
.seitenkopf {
	background: var(--papier);
	border-bottom: 3px solid var(--gold);
	position: relative;
	z-index: 20;
}
.kopf-innen {
	max-width: var(--breit);
	margin: 0 auto;
	padding: .7rem 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.hoftitel {
	font-family: 'Caveat', cursive;
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1;
	color: var(--lehm);
	text-decoration: none;
}
.hoftitel:hover { color: var(--gold-tief); }
.hoftitel small {
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 400;
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--lehm-hell);
	margin-top: .25rem;
}

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.hauptnav a {
	display: block;
	padding: .55rem .9rem;
	text-decoration: none;
	color: var(--lehm);
	font-weight: 600;
	border-radius: var(--radius);
}
.hauptnav a:hover { background: var(--putz); color: var(--lehm); }
.hauptnav .current-menu-item > a,
.hauptnav .current_page_item > a {
	background: var(--gold);
	color: var(--lehm);
}

.nav-schalter {
	display: none;
	background: none;
	border: 2px solid var(--lehm);
	border-radius: var(--radius);
	padding: .45rem .7rem;
	font: inherit;
	font-weight: 600;
	color: var(--lehm);
	cursor: pointer;
}

@media (max-width: 720px) {
	.nav-schalter { display: inline-block; }
	.hauptnav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--papier);
		border-bottom: 3px solid var(--gold);
		box-shadow: 0 12px 24px rgba(58, 46, 35, .12);
	}
	.nav-offen .hauptnav { display: block; }
	.hauptnav ul { flex-direction: column; padding: .5rem .8rem 1rem; }
	.hauptnav a { padding: .8rem 1rem; font-size: 1.05rem; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
	position: relative;
	min-height: min(72vh, 620px);
	display: flex;
	align-items: flex-end;
	background: var(--lehm) url('assets/img/hero.jpg') center / cover no-repeat;
}
.hero::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(38, 29, 20, .78) 0%, rgba(38, 29, 20, .25) 45%, rgba(38, 29, 20, 0) 70%);
}
.hero-text {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--breit);
	margin: 0 auto;
	padding: 3rem 1.2rem 2.6rem;
	color: #fff;
	text-align: center;
}
.hero-text h1 {
	color: #fff;
	font-size: clamp(3rem, 8vw, 5.2rem);
	text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
	margin-bottom: .1em;
}
.hero-text .strich { color: var(--gold); width: 170px; margin: 0 auto .8em; }
.hero-unterzeile {
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	margin: 0;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
@media (max-width: 640px) {
	.hero { background-image: url('assets/img/hero-hoch.jpg'); min-height: 68vh; }
}

/* ---------- Fotostreifen ---------- */
.fotostreifen {
	max-width: var(--breit);
	margin: -2.2rem auto 0;
	padding: 0 1.2rem;
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .9rem;
}
.fotostreifen img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
	border: 4px solid var(--papier);
	box-shadow: 0 10px 22px rgba(58, 46, 35, .22);
}
@media (max-width: 640px) {
	.fotostreifen { grid-template-columns: repeat(2, 1fr); margin-top: -1.6rem; }
}

/* ---------- Inhalt ---------- */
.hauptinhalt { padding: 2.6rem 1.2rem 3.5rem; }
.seitentitel-bereich { max-width: var(--inhalt); margin: 0 auto; }
.beitragsbild {
	max-width: var(--breit);
	margin: 0 auto 2rem;
}
.beitragsbild img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--radius);
}
.inhaltstext { max-width: var(--inhalt); margin: 0 auto; }
.inhaltstext > .alignwide,
.inhaltstext > .wp-block-gallery,
.inhaltstext > figure.wp-block-image.gross {
	max-width: var(--breit);
	margin-left: calc(50% - min(50vw - 1.2rem, var(--breit) / 2));
	margin-right: calc(50% - min(50vw - 1.2rem, var(--breit) / 2));
}
.startseite-intro { text-align: center; font-size: 1.06rem; }

.inhaltstext figure { margin: 1.8rem 0; }
.inhaltstext img { border-radius: var(--radius); }
.inhaltstext figcaption {
	font-size: .88rem;
	color: var(--lehm-hell);
	text-align: center;
	margin-top: .5rem;
}
.wp-block-gallery.columns-2, .galerie-2 {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: .9rem;
}
.wp-block-gallery.columns-2 figure, .galerie-2 figure { margin: 0; }
.wp-block-gallery.columns-2 img, .galerie-2 img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
@media (max-width: 560px) {
	.wp-block-gallery.columns-2, .galerie-2 { grid-template-columns: 1fr; }
}
.wp-block-separator, hr {
	border: 0;
	border-top: 2px dashed var(--linie);
	margin: 2.4rem auto;
	max-width: 240px;
}
blockquote {
	margin: 1.6rem 0;
	padding: .2rem 1.2rem;
	border-left: 4px solid var(--gold);
	background: var(--putz);
	border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Fußbereich ---------- */
.seitenfuss {
	background: var(--lehm);
	color: #EFE6D8;
	margin-top: 3rem;
}
.fuss-innen {
	max-width: var(--breit);
	margin: 0 auto;
	padding: 2.4rem 1.2rem 1.6rem;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
}
.seitenfuss h2 {
	color: var(--gold);
	font-size: 2rem;
	margin: 0 0 .3em;
}
.seitenfuss a { color: #fff; }
.seitenfuss a:hover { color: var(--gold); }
.fuss-adresse { font-style: normal; line-height: 1.8; }
.fussnav ul { list-style: none; margin: 0; padding: 0; }
.fussnav a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.fussnav a:hover { text-decoration: underline; }
.fusszeile {
	border-top: 1px solid rgba(255, 255, 255, .18);
	max-width: var(--breit);
	margin: 0 auto;
	padding: .9rem 1.2rem 1.1rem;
	font-size: .85rem;
	color: #C9BBA6;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
@media (max-width: 640px) {
	.fuss-innen { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* Hochformat-Bilder nicht über die volle Breite aufblasen */
.inhaltstext figure.wp-block-image:not(.alignwide) img {
	max-height: 720px;
	width: auto;
	margin-left: auto;
	margin-right: auto;
}
