/*
Theme Name: WPbeyond
Theme URI: https://wpbeyond.net
Author: WPbeyond
Description: Schlankes, schnelles Theme – nur das Nötigste.
Version: 1.4.1
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: wpbeyond
*/

:root {
	--accent: #ffa560;
	--accent-dark: #b85a14;
	--text: #222;
	--muted: #6b6b6b;
	--bg: #fff;
	--line: #eee;
	--width: 720px;
	--wide: 1100px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font: 18px/1.7 var(--font);
	color: var(--text);
	background: var(--bg);
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--accent-dark); text-underline-offset: .15em; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { line-height: 1.25; margin: 2em 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

blockquote {
	margin: 1.5em 0;
	padding-left: 1em;
	border-left: 4px solid var(--accent);
	color: var(--muted);
}

pre { overflow-x: auto; padding: 1em; background: #f6f6f6; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	padding: .5em 1em;
	background: var(--bg);
}

/* Layout */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.content { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* Header: fixiert oben, nimmt keinen Platz ein, halbtransparent mit Weichzeichner (Glas). */
:root { --header-h: 80px; --header-top: 0px; }
.admin-bar { --header-top: 32px; }
@media (max-width: 782px) { .admin-bar { --header-top: 46px; } }

.site-header {
	position: fixed;
	z-index: 1000;
	top: var(--header-top);
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, .62);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid rgba(255, 255, 255, .45);
	transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, .85);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--header-h);
}
.site-logo { display: block; flex: none; line-height: 0; }
.site-logo img { width: auto; height: 50px; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0; }
.site-nav a {
	display: block;
	padding: .45em .9em;
	color: var(--text);
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: rgba(255, 165, 96, .18); color: var(--text); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background: var(--accent); color: #fff; }
.site-nav .sub-menu { display: none; }

/* Menü-Knopf (nur auf schmalen Bildschirmen) */
.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border-radius: 8px;
	color: var(--text);
}
.nav-toggle:hover { background: rgba(255, 165, 96, .18); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 782px) {
	:root { --header-h: 64px; }
	.site-logo img { height: 40px; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: .5rem 20px 1rem;
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
	}
	.site-header.is-open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
	.site-nav a { padding: .7em 1em; border-radius: 8px; }
}

/* Inhalt: Der Header schwebt – normale Seiten bekommen oben Abstand, damit nichts verdeckt wird.
   Seiten, die mit einem Block in voller Breite beginnen (Klasse has-hero), laufen bis ganz nach oben. */
.site-main { padding: calc(var(--header-h) + 2rem) 0 4rem; overflow-x: clip; } /* clip: 100vw-Blöcke ohne horizontalen Scrollbalken */
.has-hero .site-main { padding-top: 0; }
/* Header aus dem Plugin (Bereich), der über dem Inhalt liegt: gleiche Logik – Höhe misst das Plugin (--wpb-header-h). */
.has-wpb-header-overlay .site-main { padding-top: calc(var(--wpb-header-h, 80px) + 2rem); }
.has-wpb-header-overlay.has-hero .site-main { padding-top: 0; }
html { scroll-padding-top: calc(var(--header-h) + var(--header-top) + 1rem); }
.entry { margin-bottom: 3rem; }
.entry-title { margin-top: 0; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--accent-dark); }
.entry-meta { color: var(--muted); font-size: .9rem; margin: -.4em 0 1.2em; }
.entry-thumb { margin-bottom: 1.5rem; }
.archive-title { margin-top: 0; }

.entry-content > .alignwide { max-width: var(--wide); margin-left: calc(50% - min(50vw, var(--wide) / 2) + 10px); margin-right: calc(50% - min(50vw, var(--wide) / 2) + 10px); }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .875rem; }

.pagination { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .3em .8em; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Formulare */
input, textarea, select, button { font: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%;
	padding: .6em .8em;
	border: 1px solid #ccc;
	border-radius: 4px;
}
button, input[type="submit"], .wp-block-button__link {
	padding: .6em 1.4em;
	border: 0;
	border-radius: 4px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--accent-dark); }

/* Kommentare */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { margin-bottom: 1.5rem; }
.comment-meta { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
	body { font-size: 17px; }
	h1 { font-size: 1.8rem; }
}
