/*
Theme Name: WPbeyond
Theme URI: https://wpbeyond.net
Author: WPbeyond
Description: Schlankes, schnelles Theme – nur das Nötigste.
Version: 1.0.2
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 */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: auto; height: 64px; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--accent-dark); }
.site-nav .sub-menu { display: none; }

/* Inhalt */
.site-main { padding: 2rem 0 4rem; overflow-x: clip; } /* clip: 100vw-Blöcke ohne horizontalen Scrollbalken */
.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; }
	.site-logo img { height: 48px; }
}
