/*
Theme Name: Familiengetümmel
Theme URI: https://familiengetuemmel.de/
Author: weddies family GmbH
Author URI: https://weddies.de/
Description: WordPress-Theme für den Familiengetümmel-Blog – Design und Komponenten aus der FG-Landingpage (index.tpl).
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: familiengetuemmel
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready

Familiengetümmel Theme – Design aus templates/familiengetuemmel/index.tpl
*/

/*--------------------------------------------------------------
# Design tokens (from FG Landingpage)
--------------------------------------------------------------*/
:root {
	--blue: #144a7f;
	--blue-dark: #0e3560;
	--blue-light: #e8f0f9;
	--yellow: #f7c133;
	--yellow-pale: #fef9ec;
	--cream: #f5f0ea;
	--cream-dark: #ede7de;
	--text: #1a2e45;
	--text-muted: #5a7191;
	--white: #ffffff;
	--radius-card: 1.5rem;
	--radius-btn: 999px;
	--content-width: 720px;
	--container-width: 1100px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Inter", system-ui, sans-serif;
	background: var(--cream);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display {
	font-family: "Lora", Georgia, serif;
	color: var(--blue);
	line-height: 1.2;
	font-weight: 700;
}

h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
}

p {
	color: var(--text);
}

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

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.fg-container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.fg-content {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site-main {
	padding: 3rem 0 5rem;
	min-height: 50vh;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Inter", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.85rem 2rem;
	border-radius: var(--radius-btn);
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 2px solid transparent;
	min-height: 48px;
	line-height: 1.2;
}

.btn:hover {
	text-decoration: none;
}

.btn--primary {
	background: var(--blue);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--blue-dark);
	color: var(--white);
}

.btn--outline {
	background: transparent;
	color: var(--blue);
	border-color: var(--blue);
}

.btn--outline:hover {
	background: var(--blue);
	color: var(--white);
}

.btn--yellow {
	background: var(--yellow);
	color: var(--blue);
}

.btn--yellow:hover {
	background: #e5b020;
	color: var(--blue);
}

.btn--lg {
	font-size: 1.15rem;
	padding: 1rem 2.4rem;
}

.cta-label-short {
	display: none;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	background: var(--cream);
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--cream-dark);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-logo {
	font-family: "Lora", Georgia, serif;
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--blue);
	text-decoration: none;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo:hover {
	text-decoration: none;
	color: var(--blue);
}

.site-logo img,
.site-logo .custom-logo {
	height: 56px;
	width: auto;
	display: block;
}

.site-logo .custom-logo-link {
	display: inline-flex;
	text-decoration: none;
}

.header-nav {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-shrink: 1;
	min-width: 0;
}

.header-nav .btn {
	white-space: nowrap;
}

.header-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.25rem;
	align-items: center;
}

.header-menu a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.header-menu a:hover,
.header-menu .current-menu-item > a {
	color: var(--blue);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--blue);
	color: var(--blue);
	border-radius: var(--radius-btn);
	padding: 0.45rem 0.9rem;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
}

@media (min-width: 900px) {
	.header-menu {
		display: flex;
	}
}

@media (max-width: 899px) {
	.menu-toggle {
		display: inline-flex;
	}

	.header-nav.is-open .header-menu {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--cream);
		border-bottom: 1px solid var(--cream-dark);
		padding: 1rem 1.5rem 1.25rem;
		gap: 0.85rem;
		align-items: flex-start;
	}

	.site-header {
		position: sticky;
	}

	.header-inner {
		flex-wrap: wrap;
	}

	.header-nav {
		position: static;
	}
}

/*--------------------------------------------------------------
# Page / Archive headers
--------------------------------------------------------------*/
.page-hero {
	background: var(--cream);
	padding: 3rem 1.5rem 2rem;
	border-bottom: 1px solid var(--cream-dark);
	text-align: center;
}

.page-hero .page-title,
.page-hero .entry-title {
	margin: 0 0 0.75rem;
}

.page-hero .archive-description,
.page-hero .page-subtitle {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 36rem;
	margin: 0 auto;
}

.page-hero .post-meta {
	margin-top: 1rem;
	color: var(--text-muted);
	font-size: 0.95rem;
}

/*--------------------------------------------------------------
# Blog cards / archive
--------------------------------------------------------------*/
.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media (min-width: 700px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.post-card {
	background: var(--white);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(20, 74, 127, 0.07);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(20, 74, 127, 0.1);
}

.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--cream-dark);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 1.35rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.post-card__meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.post-card__title {
	font-family: "Lora", Georgia, serif;
	font-size: 1.25rem;
	margin: 0 0 0.65rem;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--blue);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--blue-dark);
}

.post-card__excerpt {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 0 0 1.25rem;
	flex-grow: 1;
}

.post-card__excerpt p {
	margin: 0;
	color: var(--text-muted);
}

.post-card__more {
	align-self: flex-start;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Single / Page content
--------------------------------------------------------------*/
.entry-content,
.page-content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.page-content h2,
.page-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.entry-content p,
.page-content p {
	margin: 0 0 1.15rem;
}

.entry-content a,
.page-content a {
	font-weight: 500;
}

.entry-content img,
.page-content img,
.entry-content figure,
.page-content figure {
	border-radius: 0.75rem;
	margin: 1.75rem 0;
}

.entry-content figcaption,
.page-content figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
	font-family: "Lora", Georgia, serif;
	font-style: italic;
}

.entry-content blockquote,
.page-content blockquote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--blue-light);
	border-left: 4px solid var(--yellow);
	border-radius: 0 0.75rem 0.75rem 0;
	font-style: italic;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
	margin: 0 0 1.15rem;
}

.entry-featured {
	max-width: var(--container-width);
	margin: 0 auto 2.5rem;
	padding: 0 1.5rem;
}

.entry-featured img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: var(--radius-card);
	box-shadow: 0 4px 20px rgba(20, 74, 127, 0.12);
}

.post-tags {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cream-dark);
}

.post-tags .tag-links a {
	display: inline-flex;
	padding: 0.35rem 0.85rem;
	margin: 0.25rem 0.35rem 0.25rem 0;
	background: var(--blue-light);
	color: var(--blue);
	border-radius: var(--radius-btn);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.post-tags .tag-links a:hover {
	background: var(--blue);
	color: var(--white);
}

.post-navigation {
	max-width: var(--content-width);
	margin: 3rem auto 0;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-navigation a {
	display: block;
	padding: 1.15rem 1.25rem;
	background: var(--white);
	border-radius: 0.75rem;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(20, 74, 127, 0.07);
	color: var(--text);
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.35rem;
}

.post-navigation .nav-title {
	font-family: "Lora", Georgia, serif;
	font-weight: 700;
	color: var(--blue);
}

.post-navigation .nav-next {
	text-align: right;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 3rem auto 0;
	padding: 0 1.5rem;
	flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers,
.pagination a,
.nav-previous a,
.nav-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--radius-btn);
	background: var(--white);
	color: var(--blue);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid var(--cream-dark);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
	background: var(--blue);
	color: var(--white);
	border-color: var(--blue);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
	background: var(--blue);
	color: var(--white);
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-area {
	max-width: var(--content-width);
	margin: 3rem auto 0;
	padding: 2rem 1.5rem 0;
	border-top: 1px solid var(--cream-dark);
}

.comments-title {
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.comment-body {
	background: var(--white);
	border-radius: 0.75rem;
	padding: 1.25rem 1.4rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 12px rgba(20, 74, 127, 0.06);
}

.comment-author {
	font-weight: 600;
	color: var(--blue);
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cream-dark);
	border-radius: 0.75rem;
	background: var(--white);
	font-family: inherit;
	font-size: 1rem;
	color: var(--text);
}

.comment-form input[type="submit"],
.comment-form .submit {
	background: var(--blue);
	color: var(--white);
	border: none;
	border-radius: var(--radius-btn);
	padding: 0.85rem 2rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.comment-form input[type="submit"]:hover {
	background: var(--blue-dark);
}

/*--------------------------------------------------------------
# 404 / empty
--------------------------------------------------------------*/
.empty-state {
	text-align: center;
	padding: 4rem 1.5rem;
	max-width: 32rem;
	margin: 0 auto;
}

.empty-state h1,
.empty-state h2 {
	margin-bottom: 1rem;
}

.empty-state p {
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.search-form {
	display: flex;
	gap: 0.75rem;
	max-width: 28rem;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}

.search-form .search-field {
	flex: 1 1 12rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cream-dark);
	border-radius: var(--radius-btn);
	font-family: inherit;
	font-size: 1rem;
	background: var(--white);
}

.search-form .search-submit {
	background: var(--blue);
	color: var(--white);
	border: none;
	border-radius: var(--radius-btn);
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

/*--------------------------------------------------------------
# Final CTA strip
--------------------------------------------------------------*/
.blog-cta {
	background: var(--blue-dark);
	padding: 3.5rem 1.5rem;
	text-align: center;
	margin-top: 2rem;
}

.blog-cta h2 {
	color: var(--white);
	margin: 0 0 0.75rem;
}

.blog-cta p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.1rem;
	margin: 0 auto 1.75rem;
	max-width: 32rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--cream);
	border-top: 1px solid var(--cream-dark);
	padding: 2.5rem 1.5rem;
}

.footer-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
}

.footer-brand {
	text-align: left;
}

.footer-logo a {
	display: inline-flex;
	text-decoration: none;
}

.footer-logo img {
	display: block;
	height: 100px;
	width: auto;
}

.footer-tagline {
	font-size: 0.85rem;
	color: var(--text-muted);
	text-align: left;
	margin-top: 0.5rem;
}

.footer-col h4 {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--blue);
	margin: 0 0 0.75rem;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 0.4rem;
}

.footer-col a {
	font-size: 0.85rem;
	color: var(--text-muted);
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--blue);
}

.footer-bottom {
	max-width: var(--container-width);
	margin: 1.5rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--cream-dark);
	text-align: center;
	font-size: 0.8rem;
	color: var(--text-muted);
}

/*--------------------------------------------------------------
# WordPress / alignment helpers
--------------------------------------------------------------*/
.alignwide {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
}

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

.wp-block-image img {
	border-radius: 0.75rem;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 900px) {
	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

@media (max-width: 700px) {
	.cta-label-full {
		display: none;
	}

	.cta-label-short {
		display: inline;
	}
}

@media (max-width: 600px) {
	.site-header {
		padding: 0.65rem 1rem;
	}

	.site-logo img,
	.site-logo .custom-logo-link img {
		height: 44px;
	}

	.header-nav {
		gap: 0.5rem;
	}

	.header-nav .btn {
		padding: 0.6rem 1.1rem;
		font-size: 0.9rem;
		min-height: 42px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-logo img {
		height: 72px;
	}

	.site-main {
		padding: 2rem 0 3.5rem;
	}
}

@media (max-width: 400px) {
	.site-logo img,
	.site-logo .custom-logo-link img {
		height: 38px;
	}

	.header-nav .btn--outline {
		display: none;
	}

	.header-nav .btn {
		padding: 0.55rem 0.9rem;
		font-size: 0.85rem;
	}
}
