/*
Theme Name: Gipfelgrat
Theme URI: https://example.com/gipfelgrat
Author: Gipfelbuch
Description: Dunkles, mobiles Full-Width-Theme für eine Bergsteiger-Seite mit integrierter Gipfelbuch-Karten-App, AdSense-Auto-Ads und Affiliate-Platzierungen (Booking.com / CJ).
Version: 1.0.1
Requires at least: 6.2
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: gipfelgrat
Tags: dark, one-column, two-columns, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, editor-style
*/

/* Hinweis: Diese Datei wird NICHT auf der Gipfelbuch-App-Seite geladen.
   Dort kommt nur assets/css/shell.css zum Einsatz (Kopfzeile + Credits),
   damit das Theme-CSS nicht in die App hineinwirkt. Variablen siehe shell.css. */

/* ---------- Basis ------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--gg-header-total) + 12px);
}
body {
	margin: 0;
	background: var(--gg-bg);
	color: var(--gg-text);
	font-family: var(--gg-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--gg-accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #fff; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--gg-line); margin: 2.5rem 0; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
pre { background: var(--gg-bg-2); border: 1px solid var(--gg-line); border-radius: var(--gg-radius); padding: 1rem 1.25rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95em; }
th, td { padding: 0.6em 0.75em; border-bottom: 1px solid var(--gg-line); text-align: left; vertical-align: top; }
th { color: var(--gg-text-2); font-weight: 600; }
blockquote {
	margin: 1.75rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--gg-accent);
	color: var(--gg-text-2);
	font-size: 1.1em;
}
blockquote cite { font-size: 0.85em; font-style: normal; color: var(--gg-text-3); }

h1, h2, h3, h4, h5, h6 {
	margin: 2.2rem 0 0.8rem;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--gg-text);
	overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
p { margin: 0 0 1.25rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin-bottom: 0.3rem; }

:focus-visible { outline: 2px solid var(--gg-accent-2); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100000;
	padding: 10px 14px;
	background: var(--gg-accent);
	color: #fff;
	border-radius: var(--gg-radius);
}
.skip-link:focus { left: 8px; }

/* Buttons & Formulare */
button, .button, input[type="submit"], input[type="button"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.7em 1.2em;
	border: 1px solid var(--gg-accent);
	border-radius: var(--gg-radius);
	background: var(--gg-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}
button:hover, .button:hover, input[type="submit"]:hover { background: var(--gg-accent-2); border-color: var(--gg-accent-2); color: #fff; }
.button--ghost { background: transparent; color: var(--gg-text); border-color: var(--gg-line); }
.button--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--gg-text-3); }
.button--glow { background: var(--gg-glow); border-color: var(--gg-glow); color: #111; }
.button--glow:hover { background: #ebA05c; border-color: #ebA05c; color: #111; }
.button svg, button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="password"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg-2);
	color: var(--gg-text);
	font: inherit;
	font-size: 16px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gg-accent-2); }
label { display: block; margin-bottom: 0.35rem; color: var(--gg-text-2); font-size: 0.95rem; }

/* ---------- Layout ----------------------------------------------------- */

#site-content { min-height: 50vh; }

.gg-wrap {
	max-width: var(--gg-max);
	margin: 0 auto;
	/* Im Querformat liegt der Notch links/rechts: Gutter mindestens so groß wie die Safe-Area */
	padding: 0 max(var(--gg-gutter), var(--gg-safe-right)) 0 max(var(--gg-gutter), var(--gg-safe-left));
}
.gg-section { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Artikel + Sidebar */
.gg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.gg-layout--sidebar { grid-template-columns: minmax(0, 1fr) 336px; }
@media (max-width: 1099px) {
	.gg-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
}
.gg-main { min-width: 0; }
.gg-sidebar {
	position: sticky;
	top: calc(var(--gg-header-total) + 20px);
	display: grid;
	gap: 28px;
}
@media (max-width: 1099px) {
	/* Unter 1100px rutscht die Sidebar unter den Beitrag: die doppelte
	   Unterkunft-Box verschwindet, das Sidebar-Anzeigenfeld wird zu einem
	   normalen responsiven Block (zusätzliche Impression auf Mobilgeräten). */
	.gg-sidebar { position: static; }
	.gg-sidebar .gg-stay { display: none; }
	.gg-ad--sidebar { min-height: 280px; margin: 1rem 0 2rem; }
}
.gg-measure { max-width: var(--gg-measure); }
/* Textspalte: Fließtext, Banner, Unterkunft-Box, Navigation, Kommentare teilen
   eine Lesebreite; Galerie und Hero nutzen die volle Breite. */
.gg-layout--sidebar .gg-main > .entry-content,
.gg-layout--sidebar .gg-main > .gg-affiliate,
.gg-layout--sidebar .gg-main > .gg-stay,
.gg-layout--sidebar .gg-main > .entry-footer,
.gg-layout--sidebar .gg-main > .post-nav,
.gg-layout--sidebar .gg-main > .comments { max-width: var(--gg-measure); }

/* ---------- Hero (Startseite / Archiv) --------------------------------- */

.gg-hero {
	position: relative;
	min-height: min(72vh, 680px);
	display: flex;
	align-items: flex-end;
	background: var(--gg-bg-2) center / cover no-repeat;
	isolation: isolate;
}
.gg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(11,13,16,0.35) 0%, rgba(11,13,16,0.05) 35%, rgba(11,13,16,0.75) 75%, var(--gg-bg) 100%);
}
.gg-hero__inner {
	width: 100%;
	max-width: var(--gg-max);
	margin: 0 auto;
	padding: clamp(5rem, 14vh, 9rem) max(var(--gg-gutter), var(--gg-safe-right)) clamp(2rem, 6vh, 3.5rem) max(var(--gg-gutter), var(--gg-safe-left));
}
.gg-hero__title {
	margin: 0 0 0.4rem;
	font-family: var(--gg-display);
	font-weight: 700;
	font-size: clamp(3.2rem, 11vw, 7.5rem);
	line-height: 0.92;
	letter-spacing: 0.005em;
	text-wrap: balance;
}
.gg-hero__tagline {
	max-width: 48ch;
	margin: 0.6rem 0 1.5rem;
	color: var(--gg-text-2);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.5;
}
.gg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gg-hero__actions .gg-search { flex: 1 1 280px; max-width: 460px; display: flex; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--gg-radius); background: rgba(11,13,16,0.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.gg-hero__actions .gg-search__field { flex: 1; border: 0; background: transparent; padding: 0 14px; height: 46px; }
.gg-hero__actions .gg-search__submit { border-radius: 0; padding: 0 16px; }
.gg-hero__actions .gg-search__submit svg { width: 18px; height: 18px; }

/* Höhenlinien-Band hinter Abschnitten */
.gg-topo {
	position: relative;
	isolation: isolate;
}
.gg-topo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("assets/images/topo.svg") center / 800px 800px repeat;
	opacity: 0.06;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

/* Abschnitts-Kopf */
.gg-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--gg-line);
}
.gg-section__head h2, .gg-section__head h1 { margin: 0; font-family: var(--gg-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1; }
.gg-section__head a { font-size: 0.95rem; white-space: nowrap; }
.archive-description { color: var(--gg-text-2); max-width: 70ch; margin: -0.5rem 0 1.5rem; }

/* ---------- Beitragskarten --------------------------------------------- */

.gg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 32px 28px;
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--gg-radius);
	background: var(--gg-bg-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty {
	display: flex; align-items: center; justify-content: center;
	background: var(--gg-bg-2) url("assets/images/topo.svg") center / 600px repeat;
	background-blend-mode: soft-light;
}
.card__media--empty svg { width: 42px; height: 42px; fill: none; stroke: var(--gg-text-3); stroke-width: 1.5; stroke-linejoin: round; }
.card__body { padding: 14px 2px 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; color: var(--gg-text-3); font-size: 0.85rem; }
.card__meta a { color: var(--gg-text-3); text-decoration: none; }
.card__meta a:hover { color: var(--gg-accent-2); }
.card__title { margin: 0; font-family: var(--gg-display); font-size: 1.65rem; font-weight: 600; line-height: 1.05; }
.card__title a { color: var(--gg-text); text-decoration: none; }
.card__title a:hover { color: var(--gg-accent-2); }
.card__excerpt { margin: 8px 0 0; color: var(--gg-text-2); font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--sticky .card__title::before { content: "★ "; color: var(--gg-glow); }

@media (min-width: 1500px) {
	.gg-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 40px 32px; }
	.gg-gallery .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* In-Feed-Anzeige in der Kartenliste */
.gg-grid .gg-ad--infeed { grid-column: 1 / -1; }

/* Seitennummerierung */
.pagination { margin: 3rem 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--gg-line); border-radius: var(--gg-radius);
	color: var(--gg-text-2); text-decoration: none; font-weight: 500;
}
.pagination .page-numbers.current { background: var(--gg-accent); border-color: var(--gg-accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--gg-text-3); color: var(--gg-text); }
.pagination .screen-reader-text { position: absolute !important; }
.infinite-scroll .pagination { display: none; }
#infinite-handle span { font: inherit; background: var(--gg-bg-2); border: 1px solid var(--gg-line); color: var(--gg-text); border-radius: var(--gg-radius); padding: 0.7em 1.2em; }
.infinite-loader { margin: 2rem auto; }

/* ---------- Einzelbeitrag ---------------------------------------------- */

.entry-hero {
	position: relative;
	min-height: min(62vh, 620px);
	display: flex;
	align-items: flex-end;
	background: var(--gg-bg-2) center / cover no-repeat;
	isolation: isolate;
}
.entry-hero--noimage { min-height: 0; background-image: url("assets/images/band.jpg") !important; }
.entry-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11,13,16,0.25) 0%, rgba(11,13,16,0) 30%, rgba(11,13,16,0.8) 78%, var(--gg-bg) 100%);
}
.entry-hero__inner {
	width: 100%;
	max-width: var(--gg-max);
	margin: 0 auto;
	padding: clamp(5rem, 12vh, 8rem) max(var(--gg-gutter), var(--gg-safe-right)) clamp(1.5rem, 4vh, 2.5rem) max(var(--gg-gutter), var(--gg-safe-left));
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 16px 32px;
}
.entry-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 0.5rem; color: var(--gg-text-2); font-size: 0.9rem; }
.entry-hero__meta a { color: var(--gg-text-2); text-decoration: none; }
.entry-hero__meta a:hover { color: #fff; }
.entry-hero__title {
	margin: 0;
	font-family: var(--gg-display);
	font-weight: 700;
	font-size: clamp(2.5rem, 8vw, 5.5rem);
	line-height: 0.95;
	letter-spacing: 0.005em;
	text-wrap: balance;
}
.entry-hero__elev {
	font-family: var(--gg-display);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1;
	color: var(--gg-text-2);
	padding-left: 24px;
	border-left: 2px solid var(--gg-accent);
	white-space: nowrap;
}
.entry-hero__elev small { display: block; font-family: var(--gg-font); font-size: 0.8rem; font-weight: 500; color: var(--gg-text-3); letter-spacing: 0.02em; margin-bottom: 4px; }
@media (max-width: 640px) {
	.entry-hero__inner { grid-template-columns: 1fr; }
	.entry-hero__elev { border-left: 0; padding-left: 0; }
}

.entry-content { font-size: 1.0625rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:first-of-type { font-size: 1.1em; }
.entry-content img { border-radius: var(--gg-radius); }
.entry-content .alignwide { margin-left: calc(-1 * var(--gg-gutter)); margin-right: calc(-1 * var(--gg-gutter)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 50%; }
.entry-content .aligncenter { display: block; margin: 1.5rem auto; }
.entry-content figcaption, .wp-caption-text { color: var(--gg-text-3); font-size: 0.85rem; margin-top: 0.5rem; }
.entry-content .wp-block-image, .entry-content .wp-block-gallery, .entry-content figure { margin: 1.75rem 0; }
.entry-content .wp-block-embed iframe { width: 100%; }
.entry-content .wp-block-button__link { background: var(--gg-accent); color: #fff; border-radius: var(--gg-radius); }
.gg-layout--sidebar .entry-content .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }

/* Galerie (Anhänge, WP-Shortcode) */
.gg-gallery { margin: 0 0 2rem; }
.gg-gallery .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; }
.gg-gallery .gallery-item { margin: 0; }
.gg-gallery .gallery-item a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--gg-bg-2); }
.gg-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.gg-gallery .gallery-caption { display: none; }
.tiled-gallery { width: 100% !important; max-width: 100% !important; }

/* Beitragsende */
.entry-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gg-line); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--gg-text-3); font-size: 0.9rem; }
.entry-footer a { display: inline-block; padding: 4px 10px; border: 1px solid var(--gg-line); border-radius: 999px; color: var(--gg-text-2); text-decoration: none; font-size: 0.85rem; }
.entry-footer a:hover { border-color: var(--gg-accent-2); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.5rem 0 0; }
.post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); text-decoration: none; color: var(--gg-text); min-width: 0; }
.post-nav a:hover { border-color: var(--gg-accent-2); }
.post-nav small { display: block; color: var(--gg-text-3); font-size: 0.8rem; margin-bottom: 4px; }
.post-nav span { display: block; font-family: var(--gg-display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .post-nav__next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

/* Ähnliche Beiträge */
.related { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Monetarisierung -------------------------------------------- */

/* Anzeigen-Container: reservierte Mindesthöhe gegen Layout-Sprünge (CLS) */
.gg-ad { margin: 2rem 0; text-align: center; clear: both; }
.gg-ad--inarticle { min-height: 250px; }
.gg-ad--sidebar { min-height: 600px; margin: 0; }
.gg-ad--multiplex { min-height: 300px; }
.gg-ad--infeed { min-height: 120px; margin: 0; }
.gg-ad ins.adsbygoogle { display: block; }
.gg-ad__label { display: block; margin-bottom: 4px; color: var(--gg-text-3); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Affiliate-Banner (CJ) – responsiv, mittig, mit Kennzeichnung */
.gg-affiliate { margin: 1.5rem 0 2rem; text-align: center; clear: both; }
.gg-affiliate a { display: inline-block; max-width: 100%; line-height: 0; }
.gg-affiliate img { max-width: 100%; height: auto; border-radius: var(--gg-radius); }
.gg-affiliate__note { display: block; margin-top: 6px; color: var(--gg-text-3); font-size: 0.72rem; letter-spacing: 0.04em; }

/* Unterkunft-Box (Booking.com) – das warme Gegenstück zum kühlen Blau */
.gg-stay {
	margin: 2.5rem 0;
	padding: 20px 22px 22px;
	border: 1px solid var(--gg-line);
	border-left: 4px solid var(--gg-glow);
	border-radius: var(--gg-radius);
	background: linear-gradient(135deg, var(--gg-glow-soft), transparent 55%), var(--gg-bg-2);
	clear: both;
}
.gg-stay__head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.gg-stay__head svg { width: 26px; height: 26px; fill: none; stroke: var(--gg-glow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.gg-stay__head h2, .gg-stay__head h3 { margin: 0; font-family: var(--gg-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.gg-stay__text { margin: 0 0 14px; color: var(--gg-text-2); font-size: 0.95rem; }
.gg-stay__widget { margin: 0 0 12px; }
.gg-stay__widget > *:last-child { margin-bottom: 0; }
.gg-stay__cta { display: inline-flex; }
.gg-stay__note { margin: 12px 0 0; color: var(--gg-text-3); font-size: 0.72rem; letter-spacing: 0.04em; }
.gg-sidebar .gg-stay { margin: 0; }
.gg-sidebar .gg-stay__head h3 { font-size: 1.35rem; }

/* ---------- Sidebar / Widgets ------------------------------------------ */

.widget { margin: 0; }
.widget-title, .widget .wp-block-heading { margin: 0 0 0.75rem; font-family: var(--gg-display); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--gg-line); margin: 0; font-size: 0.95rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--gg-text-2); }
.widget a:hover { color: var(--gg-text); }
.widget .search-form, .widget .gg-search { display: flex; }
.widget .gg-search__field { border-radius: var(--gg-radius) 0 0 var(--gg-radius); }
.widget .gg-search__submit { border-radius: 0 var(--gg-radius) var(--gg-radius) 0; padding: 0 14px; }
.widget .gg-search__submit svg { width: 18px; height: 18px; }
.tagcloud a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--gg-line); border-radius: 999px; font-size: 0.85rem !important; }

/* ---------- Fußbereich -------------------------------------------------- */

.site-footer {
	margin-top: clamp(3rem, 8vw, 6rem);
	border-top: 1px solid var(--gg-line);
	background: var(--gg-bg-2);
}
.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 36px;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.site-footer__widgets .widget + .widget { margin-top: 1.75rem; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	justify-content: space-between;
	/* Letzte Zeile nicht unter Home-Indikator / Safari-Leiste: Safe-Area unten + Reserve */
	padding: 18px 0 calc(18px + var(--gg-safe-bottom));
	border-top: 1px solid var(--gg-line);
	color: var(--gg-text-3);
	font-size: 0.85rem;
}
.site-footer__bottom a { color: var(--gg-text-2); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom p { margin: 0; }
.site-footer .social-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-footer .social-menu a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--gg-line); border-radius: 999px; }
.site-footer .social-menu a:hover { border-color: var(--gg-accent-2); }
.site-footer .social-menu svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .footer-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-menu li { margin: 0; }

/* ---------- Kommentare -------------------------------------------------- */

.comments { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: var(--gg-measure); }
.comments__title { font-family: var(--gg-display); font-size: 1.8rem; margin: 0 0 1.25rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(16px, 4vw, 40px); }
.comment { padding: 16px 0; border-top: 1px solid var(--gg-line); }
.comment__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.comment__author { font-weight: 600; }
.comment__date { color: var(--gg-text-3); font-size: 0.85rem; text-decoration: none; }
.comment__byauthor { font-size: 0.8rem; color: var(--gg-accent-2); }
.comment__body p:last-child { margin-bottom: 0.5rem; }
.comment__actions { display: flex; gap: 14px; font-size: 0.85rem; }
.comment__actions a { text-decoration: none; }
.comment-awaiting-moderation { color: var(--gg-glow); font-size: 0.85rem; }
.comment-respond { margin-top: 2rem; }
.comment-respond .comment-reply-title { font-family: var(--gg-display); font-size: 1.6rem; margin: 0 0 1rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; }
.comment-form textarea { min-height: 140px; }
.comment-form-comment textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { max-width: 100%; }

/* ---------- 404 / Suche ------------------------------------------------- */

.gg-empty { padding: clamp(3rem, 10vh, 6rem) 0; max-width: 640px; }
.gg-empty h1 { font-family: var(--gg-display); font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 0.95; margin: 0 0 1rem; }
.gg-empty p { color: var(--gg-text-2); }
.gg-empty .gg-search { display: flex; margin-top: 1.5rem; }
.gg-empty .gg-search__field { border-radius: var(--gg-radius) 0 0 var(--gg-radius); }
.gg-empty .gg-search__submit { border-radius: 0 var(--gg-radius) var(--gg-radius) 0; }
.gg-empty .gg-search__submit svg { width: 18px; height: 18px; }

/* ---------- Allgemeine Seite ------------------------------------------- */

.page-title { font-family: var(--gg-display); font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 0.95; margin: 0 0 1.5rem; }

/* ---------- Bewegung ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ------------------------------------------------------- */

@media print {
	.site-header, .mobile-nav, .gg-ad, .gg-affiliate, .gg-sidebar, .site-footer, .post-nav, .related, .comments { display: none !important; }
	body { background: #fff; color: #000; }
	.entry-hero { min-height: 0; background: none !important; }
	.entry-hero::after { display: none; }
	a { color: #000; }
}
