/*!
Theme Name: Paradise Ranch
Theme URI: https://paradiseranch.horse
Author: Josia Loos
Author URI: https://paradiseranch.horse
Description: WordPress-Theme für Paradise Ranch — Pferdehof in Lindow (Mark), Brandenburg. Basiert auf Underscores (_s).
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: paradise-ranch
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready

Paradise Ranch ist auf Basis von Underscores https://underscores.me/ entwickelt.
*/

/*--------------------------------------------------------------
# CSS Custom Properties (Design Tokens)
--------------------------------------------------------------*/
:root {
	/* Farben */
	--color-bg:           #141210;
	--color-bg-secondary: #1f1c18;
	--color-primary:      #7a9a4a;
	--color-primary-hover:#657f3d;
	--color-foreground:   #d9cebc;
	--color-muted:        #7a7060;
	--color-muted-light:  #a99f8e;
	--color-border:       #2e2a24;
	--color-accent:       #c8a96e;

	/* Typografie */
	--font-display: 'Bebas Neue', sans-serif;
	--font-body:    'Inter', sans-serif;

	--font-size-hero:  clamp(3.5rem, 10vw, 7rem);
	--font-size-h1:    clamp(2.5rem, 5vw, 4.5rem);
	--font-size-h2:    clamp(1.8rem, 3vw, 3rem);
	--font-size-h3:    1.5rem;
	--font-size-body:  1rem;
	--font-size-small: 0.875rem;

	--tracking-wide: 0.15em;

	/* Abstände & Layout */
	--section-padding:   6rem 1.5rem;
	--container-max:     1280px;
	--container-narrow:  900px;
	--container-wide:    1400px;
	--radius:            0.5rem;
	--radius-lg:         1rem;
	--gap-grid:          1.5rem;
	--transition:        0.3s ease;
}

/*--------------------------------------------------------------
# Box Sizing
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html {
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	line-height: 1.6;
}

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

embed,
iframe,
object {
	max-width: 100%;
}

figure {
	margin: 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

hr {
	background-color: var(--color-border);
	border: 0;
	height: 1px;
	margin: 2rem 0;
}

/*--------------------------------------------------------------
# Typografie
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--color-foreground);
	line-height: 1.1;
	margin: 0 0 0.5em;
	clear: both;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
	margin: 0 0 1.25em;
}

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

a:hover,
a:focus {
	color: var(--color-primary-hover);
}

a:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

strong, b {
	font-weight: 700;
}

ul, ol {
	margin: 0 0 1.5em 1.5em;
	padding: 0;
}

li {
	margin-bottom: 0.25em;
}

blockquote {
	border-left: 3px solid var(--color-primary);
	margin: 0 0 1.5em;
	padding-left: 1.5em;
	color: var(--color-muted);
	font-style: italic;
}

/*--------------------------------------------------------------
# Formular-Basisstyles
--------------------------------------------------------------*/
button,
input,
optgroup,
select,
textarea {
	font-family: var(--font-body);
	font-size: 100%;
	line-height: 1.5;
	margin: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-foreground);
	padding: 0.75rem 1rem;
	width: 100%;
	transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: var(--color-primary);
	outline: none;
}

textarea {
	resize: vertical;
	min-height: 160px;
}

/*--------------------------------------------------------------
# Screen Reader Text
--------------------------------------------------------------*/
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg-secondary);
	border-radius: var(--radius);
	clip: auto !important;
	clip-path: none;
	color: var(--color-foreground);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Ausrichtungen (WordPress-Kompatibilität)
--------------------------------------------------------------*/
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Weiteres (WordPress-Standard)
--------------------------------------------------------------*/
.sticky { display: block; }
.updated:not(.published) { display: none; }
.bypostauthor { display: block; }

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.5em 0;
	text-align: center;
	font-size: var(--font-size-small);
	color: var(--color-muted);
}

/* Jetpack Infinite Scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}
