/*
Theme Name: Von den Styrumer Ruhrauen
Theme URI: https://stichelhaar-ruhrauen.de/
Author: Von den Styrumer Ruhrauen
Description: Individuelles, schlankes Theme fuer den Deutsch-Stichelhaar-Zwinger von den Styrumer Ruhrauen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: ruhrauen-zwinger
*/

:root {
	--color-ink: #26352d;
	--color-muted: #657168;
	--color-forest: #344b3c;
	--color-forest-dark: #24372b;
	--color-moss: #78846a;
	--color-sand: #f3f0e7;
	--color-paper: #fbfaf6;
	--color-clay: #b87950;
	--color-line: #deddd2;
	--font-body: "Segoe UI", "Helvetica Neue", sans-serif;
	--font-display: Georgia, "Times New Roman", serif;
	--content-width: 1180px;
	--page-gutter: clamp(1.25rem, 5vw, 5rem);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--color-clay);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--color-clay);
	outline-offset: 4px;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	color: var(--color-forest-dark);
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.8rem, 6vw, 5.8rem);
	letter-spacing: -0.045em;
}

h2 {
	font-size: clamp(2.1rem, 4vw, 3.65rem);
	letter-spacing: -0.035em;
}

h3 {
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.skip-link {
	position: absolute;
	z-index: 10;
	top: 1rem;
	left: 1rem;
	padding: 0.75rem 1rem;
	transform: translateY(-200%);
	background: #fff;
	color: var(--color-ink);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid rgb(38 53 45 / 8%);
	background: var(--color-paper);
}

.header-inner {
	display: flex;
	width: min(100%, var(--content-width));
	min-height: 96px;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-inline: auto;
	padding: 1rem var(--page-gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	color: var(--color-forest-dark);
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid rgb(52 75 60 / 35%);
	border-radius: 50%;
	color: var(--color-forest);
	font-family: var(--font-display);
	font-size: 1.4rem;
}

.brand-copy {
	display: grid;
	line-height: 1.25;
}

.brand-copy strong {
	font-family: var(--font-display);
	font-size: 1.13rem;
	font-weight: 400;
}

.brand-copy span {
	margin-top: 0.2rem;
	color: var(--color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--color-ink);
	font-size: 0.94rem;
	text-decoration: none;
}

.site-nav a:hover {
	color: var(--color-clay);
}

.site-nav .nav-contact {
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--color-forest);
	border-radius: 999px;
}

.site-main {
	min-height: 60vh;
}

.wrap {
	width: min(100%, var(--content-width));
	margin-inline: auto;
	padding-inline: var(--page-gutter);
}

.eyebrow {
	margin-bottom: 1rem;
	color: var(--color-clay);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero {
	position: relative;
	overflow: hidden;
	display: grid;
	min-height: min(720px, 77vh);
	align-items: center;
	background-color: var(--color-forest-dark);
	color: #fff;
}

.hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(90deg, rgb(23 35 28 / 82%) 0%, rgb(23 35 28 / 62%) 44%, rgb(23 35 28 / 8%) 100%);
	content: "";
}

.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 46%;
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--content-width));
	margin-inline: auto;
	padding: 6rem var(--page-gutter);
}

.hero .eyebrow {
	color: #e0bd98;
}

.hero .text-link {
	color: #fff;
}

.hero .text-link:hover {
	color: #e0bd98;
}

.hero h1 {
	max-width: 770px;
	margin-bottom: 1.25rem;
	color: #fff;
}

.hero-copy {
	max-width: 570px;
	margin-bottom: 2rem;
	color: rgb(255 255 255 / 86%);
	font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.2rem;
}

.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.25rem;
	border: 1px solid var(--color-forest);
	border-radius: 999px;
	background: var(--color-forest);
	color: #fff;
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
	background: var(--color-forest-dark);
	color: #fff;
}

.button-light {
	border-color: rgb(255 255 255 / 75%);
	background: transparent;
	color: #fff;
}

.button-light:hover {
	background: #fff;
	color: var(--color-forest-dark);
}

.text-link {
	font-weight: 600;
}

.intro-section {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	align-items: center;
	gap: clamp(2rem, 7vw, 7rem);
	padding-block: clamp(5rem, 10vw, 9rem);
}

.intro-copy p:not(.eyebrow) {
	max-width: 610px;
	color: var(--color-muted);
}

.intro-photo {
	position: relative;
	margin: 0;
}

.intro-photo img {
	width: 100%;
	aspect-ratio: 1.12;
	border-radius: 46% 46% 8px 8px;
	object-fit: cover;
	object-position: center;
}

.photo-note {
	position: absolute;
	right: -0.6rem;
	bottom: 1.4rem;
	max-width: 210px;
	padding: 1rem 1.25rem;
	background: var(--color-sand);
	color: var(--color-forest-dark);
	font-family: var(--font-display);
	font-size: 1.05rem;
	line-height: 1.35;
}

.breed-section {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--color-sand);
}

.breed-inner {
	display: grid;
	grid-template-columns: minmax(180px, 0.65fr) 1.35fr;
	gap: clamp(2rem, 8vw, 8rem);
}

.breed-inner h2 {
	max-width: 400px;
}

.breed-copy p {
	max-width: 680px;
	color: #4d5d52;
}

.breed-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.breed-facts li {
	padding-top: 0.8rem;
	border-top: 1px solid rgb(52 75 60 / 25%);
	color: var(--color-forest-dark);
	font-size: 0.88rem;
	font-weight: 600;
}

.news-section {
	padding-block: clamp(5rem, 9vw, 8rem);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.section-heading h2 {
	margin-bottom: 0;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.news-card {
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: 4px;
	background: #fff;
}

.news-card img {
	width: 100%;
	aspect-ratio: 1.4;
	object-fit: cover;
}

.news-card-copy {
	padding: 1.35rem 1.45rem 1.5rem;
}

.news-date {
	margin-bottom: 0.65rem;
	color: var(--color-muted);
	font-size: 0.82rem;
}

.news-card h3 {
	margin-bottom: 0.6rem;
	font-size: 1.5rem;
}

.news-card h3 a {
	color: inherit;
	text-decoration: none;
}

.news-card-copy > p:last-child {
	margin-bottom: 0;
	color: var(--color-muted);
	font-size: 0.93rem;
}

.news-empty {
	grid-column: 1 / -1;
	padding: 1.5rem;
	border: 1px solid var(--color-line);
	color: var(--color-muted);
}

.contact-section {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--color-forest-dark);
	color: rgb(255 255 255 / 82%);
}

.contact-inner {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: center;
	gap: 3rem;
}

.contact-section h2 {
	max-width: 640px;
	margin-bottom: 1rem;
	color: #fff;
}

.contact-section .eyebrow {
	color: #e0bd98;
}

.contact-details {
	display: grid;
	gap: 0.45rem;
	padding-left: 1.4rem;
	border-left: 1px solid rgb(255 255 255 / 25%);
	font-style: normal;
}

.contact-details a {
	color: #fff;
}

.contact-address {
	margin-bottom: 0.6rem;
}

.page-intro {
	padding-block: clamp(4rem, 8vw, 7rem) 2rem;
}

.page-intro h1 {
	margin-bottom: 1rem;
	font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.page-intro-copy {
	max-width: 650px;
	color: var(--color-muted);
	font-size: 1.08rem;
}

.gallery-section {
	padding-block: 1rem clamp(5rem, 9vw, 8rem);
}

.gallery-section .entry-content {
	width: 100%;
}

.gallery-section .wp-block-gallery,
.gallery-section .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
}

.gallery-section .wp-block-gallery figure,
.gallery-section .gallery-item {
	width: 100%;
	margin: 0;
}

.gallery-section .wp-block-gallery img,
.gallery-section .gallery-item img {
	width: 100%;
	aspect-ratio: 0.95;
	border-radius: 3px;
	object-fit: cover;
}

.gallery-section .wp-block-gallery figcaption,
.gallery-section .gallery-caption {
	padding-top: 0.65rem;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.content-page {
	width: min(100%, 850px);
	margin-inline: auto;
	padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter) clamp(5rem, 9vw, 8rem);
}

.content-page h1 {
	margin-bottom: 2rem;
	font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.entry-content {
	color: #46544a;
}

.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.7rem;
}

.entry-content h3 {
	margin-top: 1.7rem;
	font-size: 1.3rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.post-list {
	display: grid;
	gap: 2rem;
	padding-block: 1rem 6rem;
}

.post-list article {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--color-line);
}

.post-list h2 {
	margin-bottom: 0.5rem;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.post-list .entry-summary {
	color: var(--color-muted);
}

.site-footer {
	padding-block: 3rem 1.25rem;
	background: #202e25;
	color: rgb(255 255 255 / 72%);
}

.footer-main {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 2rem;
	padding-bottom: 2rem;
}

.footer-brand {
	margin-bottom: 0.6rem;
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.5rem;
}

.footer-address {
	margin-bottom: 0;
	font-size: 0.92rem;
	font-style: normal;
}

.footer-address a,
.footer-links a {
	color: #fff;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgb(255 255 255 / 16%);
	font-size: 0.78rem;
}

.footer-bottom p {
	margin: 0;
}

@media (max-width: 760px) {
	.header-inner {
		min-height: auto;
		flex-wrap: wrap;
		gap: 1rem;
		padding-block: 0.85rem;
	}

	.site-nav {
		width: 100%;
	}

	.site-nav ul {
		justify-content: space-between;
		gap: 0.7rem;
	}

	.site-nav a {
		font-size: 0.88rem;
	}

	.site-nav .nav-contact {
		padding: 0.48rem 0.8rem;
	}

	.hero {
		min-height: 650px;
	}

	.hero::before {
		background: linear-gradient(90deg, rgb(23 35 28 / 78%) 0%, rgb(23 35 28 / 48%) 100%);
	}

	.hero-image {
		object-position: 58% center;
	}

	.hero-inner {
		padding-block: 5rem;
	}

	.intro-section,
	.breed-inner,
	.contact-inner {
		grid-template-columns: 1fr;
	}

	.intro-photo {
		max-width: 540px;
	}

	.photo-note {
		right: 0;
	}

	.breed-inner {
		gap: 1.5rem;
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.gallery-section .wp-block-gallery,
	.gallery-section .gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.section-heading {
		align-items: start;
		flex-direction: column;
		gap: 1rem;
	}

	.contact-details {
		padding-left: 1rem;
	}
}

@media (max-width: 480px) {
	.brand-mark {
		width: 42px;
		height: 42px;
	}

	.brand-copy strong {
		font-size: 1rem;
	}

	.brand-copy span {
		font-size: 0.66rem;
	}

	.news-grid,
	.breed-facts {
		grid-template-columns: 1fr;
	}

	.gallery-section .wp-block-gallery,
	.gallery-section .gallery {
		grid-template-columns: 1fr;
	}

	.gallery-card img {
		aspect-ratio: 1.2;
	}

	.footer-main,
	.footer-bottom {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
