/*
Theme Name:   Rhöner Naturgärten
Theme URI:    https://rhoener-naturgaerten.de/
Description:  Schlankes, eigenes Theme für die Rhöner Naturgärten. Optisch an das bisherige Layout angelehnt, ohne Page-Builder und ohne Ballast.
Author:       softwerk
Version:      1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  rhoen-naturgaerten
*/

/* ==========================================================================
   1. Variablen
   ========================================================================== */
:root {
	--rng-accent: #43a047;
	--rng-accent-dark: #388e3c;
	--rng-text: #1e1e1e;
	--rng-heading: #313131;
	--rng-meta: #888;
	--rng-border: #dedede;
	--rng-border-light: #eee;
	--rng-bg: #fff;
	--rng-bg-soft: #f5f5f5;
	--rng-footer-bg: #111;
	--rng-footer-text: #999;
	--rng-font-body: "Trebuchet MS", Helvetica, sans-serif;
	--rng-font-head: Raleway, sans-serif;
	--rng-wrap: 1230px;
	--rng-container: 1170px;
}

html.rng-dark {
	--rng-text: #d6d6d6;
	--rng-heading: #f0f0f0;
	--rng-meta: #9a9a9a;
	--rng-border: #333;
	--rng-border-light: #2a2a2a;
	--rng-bg: #1a1a1a;
	--rng-bg-soft: #242424;
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--rng-font-body);
	font-size: 17px;
	line-height: 1.8;
	color: var(--rng-text);
	background-color: #ccef32;
	background-attachment: fixed;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--rng-accent); text-decoration: none; transition: color .2s, background-color .2s; }
a:hover { color: var(--rng-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rng-font-head);
	font-weight: 700;
	color: var(--rng-heading);
	line-height: 1.35;
	margin: 0 0 17px;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { color: var(--rng-accent); }

p { margin: 0 0 17px; line-height: 1.8; }

.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; z-index: 100000; top: 5px; left: 5px;
	background: #fff; padding: 10px 15px; color: var(--rng-heading);
}

/* Boxed Layout */
.rng-wrap {
	max-width: var(--rng-wrap);
	margin: 0 auto;
	background: var(--rng-bg);
	overflow: clip;
}

.rng-container {
	max-width: var(--rng-container);
	margin: 0 auto;
	padding: 0;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.rng-header {
	background-size: cover;
	background-position: 50% 50%;
	background-color: #6b8f3a;
}
.rng-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 290px;
	padding: 40px 0 40px 27px;
}
.rng-logo { line-height: 0; }
.rng-logo img { width: 340px; height: auto; max-height: 210px; }
.rng-logo__text { font-family: var(--rng-font-head); font-size: 40px; font-weight: 700; color: #fff; line-height: 1.1; }
.rng-banner { line-height: 0; }
.rng-banner img { width: 120px; height: auto; }

/* Navigation */
.rng-nav-holder { height: 60px; }
.rng-nav {
	position: relative;
	z-index: 50;
	background: var(--rng-bg);
	height: 60px;
	max-width: var(--rng-wrap);
	width: 100%;
	box-shadow: 0 1px 5px 0 rgba(190,190,190,.46);
}
.rng-nav.is-sticky { position: fixed; top: 0; }
.admin-bar .rng-nav.is-sticky { top: 32px; }
.rng-nav__inner { display: flex; align-items: center; height: 60px; }

.rng-menu, .rng-menu ul { list-style: none; margin: 0; padding: 0; }
.rng-menu { display: flex; flex-wrap: nowrap; flex: 1 1 auto; }
.rng-menu > li { position: relative; }
.rng-menu > li > a {
	display: flex; align-items: center; height: 60px;
	padding: 0 15px;
	font-family: var(--rng-font-head);
	font-size: 12px; font-weight: 600; text-transform: uppercase;
	color: var(--rng-heading);
	white-space: nowrap;
}
.rng-menu > li > a:hover,
.rng-menu > li:hover > a,
.rng-menu > li.current-menu-item > a,
.rng-menu > li.current-menu-ancestor > a,
.rng-menu > li.current_page_item > a,
.rng-menu > li.rng-home > a { background: var(--rng-accent); color: #fff; }
.rng-menu > li.rng-home > a { width: 47px; justify-content: center; padding: 0; }
.rng-menu > li.rng-home svg { width: 15px; height: 15px; fill: currentColor; }

.rng-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 7px; margin-top: -3px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
.rng-menu ul.sub-menu {
	position: absolute; top: 100%; left: 0; width: 240px;
	background: var(--rng-bg);
	border: 1px solid #ececec;
	box-shadow: 0 3px 3px 0 rgba(190,190,190,.6);
	padding: 0 20px;
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 60;
}
.rng-menu ul.sub-menu ul.sub-menu { top: -1px; left: 100%; }
.rng-menu li:hover > ul.sub-menu,
.rng-menu li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: none; }
.rng-menu ul.sub-menu li { position: relative; }
.rng-menu ul.sub-menu a {
	display: block; padding: 12px 0;
	font-family: var(--rng-font-head); font-size: 12px; font-weight: 600; text-transform: uppercase;
	line-height: 1.4;
	color: var(--rng-heading);
	border-bottom: 1px solid #e0e0e0;
}
.rng-menu ul.sub-menu li:last-child > a { border-bottom: 0; }
.rng-menu ul.sub-menu a:hover,
.rng-menu ul.sub-menu .current-menu-item > a { color: var(--rng-accent); }
.rng-menu ul.sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); float: right; margin-top: 6px; }

.rng-nav__tools { display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.rng-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--rng-heading);
}
.rng-icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.rng-darktoggle span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--rng-bg-soft); box-shadow: 0 0 0 2px #ddd inset;
}
.rng-darktoggle svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.rng-menu-toggle { display: none; }
.rng-menu-toggle svg { width: 22px; height: 22px; stroke-width: 2.5; }

.rng-search-drop {
	position: absolute; right: 0; top: 100%; width: 300px; padding: 15px;
	background: var(--rng-bg); box-shadow: 0 3px 3px rgba(190,190,190,.6);
	display: none;
}
.rng-search-drop.is-open { display: block; }

/* ==========================================================================
   4. Abschnittsüberschriften
   ========================================================================== */
.rng-section-title {
	border-top: 3px solid var(--rng-heading);
	border-bottom: 1px solid var(--rng-border);
	margin: 0 0 30px;
	padding: 0;
}
.rng-section-title h2,
.rng-section-title h3 {
	font-size: 16px; margin: 0; padding: 8px 0 7px; line-height: 1.2;
}

.rng-center-title {
	display: flex; align-items: center; gap: 20px;
	font-size: 16px; text-transform: uppercase; text-align: center;
	margin: 0 0 25px;
}
.rng-center-title::before,
.rng-center-title::after { content: ""; flex: 1; border-top: 1px solid var(--rng-border); }

/* ==========================================================================
   5. Startseite – Slider
   ========================================================================== */
.rng-featured { padding-top: 4px; }
.rng-featured .rng-container { position: relative; }
.rng-slider { position: relative; overflow: hidden; }
.rng-slider__track { display: flex; transition: transform .6s ease; }
.rng-slider__slide { flex: 0 0 100%; }

.rng-mag {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 238px 238px;
	gap: 4px;
	height: 480px;
}
.rng-mag__item { position: relative; overflow: hidden; background: var(--rng-bg-soft); }
.rng-mag__item:first-child { grid-row: 1 / span 2; }
.rng-mag__img {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transition: transform .5s ease;
}
.rng-mag__item:hover .rng-mag__img { transform: scale(1.06); }
.rng-mag__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%);
	display: flex; align-items: flex-end;
	padding: 18px 16px;
	color: #fff;
}
.rng-mag__item:first-child .rng-mag__overlay { padding: 24px 25px; }
.rng-mag__link { position: absolute; inset: 0; z-index: 1; }
.rng-mag__content { position: relative; z-index: 2; pointer-events: none; }
.rng-mag__content a { pointer-events: auto; color: #fff; }
.rng-mag__cat { font-size: 13px; margin-bottom: 4px; }
.rng-mag__title { font-size: 15px; color: #fff; margin: 0 0 6px; line-height: 1.3; }
.rng-mag__item:first-child .rng-mag__title { font-size: 24px; }
.rng-mag__meta { font-size: 12px; color: rgba(255,255,255,.85); }
.rng-mag__meta span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; background: rgba(255,255,255,.6); margin: 0 8px; }

.rng-slider__nav {
	position: absolute; top: 50%; z-index: 5;
	width: 38px; height: 38px; margin-top: -19px;
	border: 0; border-radius: 0; cursor: pointer;
	background: rgba(0,0,0,.35); color: #fff;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .2s, background .2s;
}
.rng-slider:hover .rng-slider__nav { opacity: 1; }
.rng-slider__nav:hover { background: var(--rng-accent); }
.rng-slider__nav--prev { left: 10px; }
.rng-slider__nav--next { right: 10px; }
.rng-slider__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ==========================================================================
   6. Startseite – Beliebte Beiträge (Karussell)
   ========================================================================== */
.rng-popular { padding: 45px 0 30px; }
.rng-carousel { overflow: hidden; margin: 0 -10px; }
.rng-carousel__track { display: flex; transition: transform .5s ease; }
.rng-carousel__item { flex: 0 0 25%; padding: 0 10px; text-align: center; }
.rng-carousel__thumb {
	display: block; position: relative; padding-top: 66.6%;
	background: var(--rng-bg-soft) center / cover no-repeat;
	margin-bottom: 15px;
}
.rng-carousel__item h3 {
	font-size: 14px; text-transform: uppercase; margin: 0 0 5px; line-height: 1.3;
}
.rng-carousel__item .rng-date { font-size: 13px; }
.rng-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.rng-dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
	background: #ddd; cursor: pointer;
}
.rng-dots button.is-active { background: var(--rng-accent); width: 10px; height: 10px; margin-top: -1px; }

/* ==========================================================================
   7. Inhalt + Sidebar
   ========================================================================== */
.rng-main-wrap {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 20px 0 60px;
}
.rng-main { flex: 0 0 780px; max-width: 780px; margin-right: 50px; }
.rng-sidebar {
	flex: 0 0 340px; max-width: 340px;
	border: 1px solid var(--rng-border-light);
	padding: 20px;
}
.rng-main-wrap--full .rng-main { flex: 1 1 auto; max-width: none; margin-right: 0; }

.rng-meta, .rng-date { font-size: 13px; color: var(--rng-meta); }
.rng-cat { font-size: 13px; }
.rng-cat a { color: var(--rng-accent); }

.rng-btn,
.rng-btn:visited {
	display: inline-block;
	padding: 10px 15px;
	background: var(--rng-accent);
	color: #fff;
	font-family: var(--rng-font-head);
	font-size: 12px; font-weight: 700; text-transform: uppercase;
	line-height: 1.2;
	border: 0; cursor: pointer;
}
.rng-btn:hover { background: var(--rng-accent-dark); color: #fff; }

/* Kategorie-Blöcke (Aktion / Ratgeber) */
.rng-catblock { margin-bottom: 50px; }
.rng-catblock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rng-catblock__big-thumb { display: block; padding-top: 66.6%; background: var(--rng-bg-soft) center / cover; margin-bottom: 20px; }
.rng-catblock__big h3 { font-size: 18px; margin: 0 0 6px; }
.rng-catblock__big .rng-excerpt { margin-top: 15px; }
.rng-catblock__list { list-style: none; margin: 0; padding: 0; }
.rng-catblock__list li { display: flex; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rng-border); }
.rng-catblock__list li:last-child { border-bottom: 0; margin-bottom: 0; }
.rng-small-thumb { flex: 0 0 120px; height: 80px; background: var(--rng-bg-soft) center / cover; display: block; }
.rng-catblock__list h4 { font-size: 14px; margin: 0 0 6px; line-height: 1.45; }

/* Beitrags-Raster („… auch lesenswert“) */
.rng-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 50px 30px; }
.rng-card__thumb { display: block; position: relative; padding-top: 66.6%; background: var(--rng-bg-soft) center / cover; }
.rng-card__cat {
	position: relative; display: inline-block; margin-top: -22px;
	background: var(--rng-bg); padding: 4px 18px 0 0; min-width: 60%;
	font-size: 13px;
}
.rng-card h2 { font-size: 18px; margin: 6px 0 8px; }
.rng-card .rng-date { display: block; margin-bottom: 14px; }
.rng-card .rng-excerpt { margin-bottom: 20px; word-wrap: break-word; }
.rng-card .rng-excerpt p { margin: 0; }
.rng-loadmore { text-align: center; margin-top: 50px; }
.rng-loadmore .rng-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 400px; max-width: 100%; padding: 12px 15px;
	border: 1px solid var(--rng-border); background: none; cursor: pointer;
	font-family: var(--rng-font-head); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--rng-meta);
}
.rng-loadmore .rng-btn-outline:hover { border-color: var(--rng-accent); color: var(--rng-accent); }

.rng-pagination { margin-top: 50px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rng-pagination .page-numbers {
	display: inline-block; min-width: 38px; padding: 7px 10px; text-align: center;
	border: 1px solid var(--rng-border); color: var(--rng-heading); font-size: 13px;
}
.rng-pagination .page-numbers.current,
.rng-pagination a.page-numbers:hover { background: var(--rng-accent); border-color: var(--rng-accent); color: #fff; }

/* Archiv-Kopf */
.rng-archive-head { text-align: center; padding: 30px 0 10px; }
.rng-archive-head h1 { font-size: 24px; text-transform: uppercase; margin: 0 0 8px; }
.rng-archive-head .rng-archive-desc { color: var(--rng-meta); font-size: 15px; }

/* ==========================================================================
   8. Breadcrumb, Einzelbeitrag, Seite
   ========================================================================== */
.rng-breadcrumb { font-size: 13px; color: var(--rng-meta); padding: 20px 0 0; line-height: 1.6; }
.rng-breadcrumb a { color: var(--rng-meta); }
.rng-breadcrumb a:hover { color: var(--rng-accent); }
.rng-breadcrumb .sep { display: inline-block; margin: 0 10px; font-size: 11px; }

.rng-single-head { text-align: center; padding-bottom: 25px; }
.rng-single-head .rng-breadcrumb { padding-bottom: 18px; }
.rng-single-head h1 { font-size: 24px; margin: 0 0 6px; }
.rng-single-meta { font-size: 13px; color: var(--rng-meta); }
.rng-single-meta span + span::before,
.rng-single-meta span:first-child::before { content: ""; display: inline-block; width: 1px; height: 10px; background: #ccc; margin: 0 10px; vertical-align: middle; }

.rng-single-image {
	position: relative; overflow: hidden;
	height: 585px; background: var(--rng-bg-soft);
}
.rng-single-image img {
	position: absolute; left: 0; top: -15%; width: 100%; height: 130%;
	object-fit: cover; will-change: transform;
}
.rng-single .rng-main-wrap { padding-top: 0; }
.rng-single .rng-sidebar { margin-top: 25px; }
.rng-article {
	background: var(--rng-bg);
	margin: -220px 0 60px 40px;
	padding: 40px 40px 0;
	position: relative; z-index: 2;
}
.rng-single--noimage .rng-article { margin-top: 0; }

.rng-entry { word-wrap: break-word; }
.rng-entry::after { content: ""; display: table; clear: both; }
.rng-entry h2 { font-size: 22px; margin-top: 30px; }
.rng-entry h3 { font-size: 19px; margin-top: 25px; }
.rng-entry h4 { font-size: 17px; }
.rng-entry ul, .rng-entry ol { padding-left: 22px; margin: 0 0 17px; }
.rng-entry li { margin-bottom: 4px; }
.rng-entry blockquote {
	margin: 25px 0; padding: 5px 0 5px 25px;
	border-left: 3px solid var(--rng-accent);
	font-style: italic; color: var(--rng-heading);
}
.rng-entry figure { margin: 0 0 20px; }
.rng-entry figcaption, .rng-entry .wp-element-caption { font-size: 13px; color: var(--rng-meta); text-align: center; margin-top: 6px; }
.rng-entry table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.rng-entry th, .rng-entry td { border: 1px solid var(--rng-border); padding: 8px 10px; text-align: left; }
.rng-entry hr, .rng-entry .wp-block-separator { border: 0; border-top: 1px solid var(--rng-border); margin: 30px 0; }
.rng-entry .alignleft { float: left; margin: 5px 25px 15px 0; }
.rng-entry .alignright { float: right; margin: 5px 0 15px 25px; }
.rng-entry .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.rng-entry .wp-block-button__link { background: var(--rng-accent); color: #fff; border-radius: 0; }
.rng-entry .wp-block-file__button { background: var(--rng-accent); color: #fff; border-radius: 0; padding: 6px 14px; font-size: 13px; }
.rng-entry .wp-block-file a:not(.wp-block-file__button) { margin-right: 10px; }
.rng-entry iframe { max-width: 100%; }

.rng-tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rng-tags a,
.rng-sidebar .wp-block-tag-cloud a,
.rng-sidebar .tagcloud a {
	display: inline-block; border: 1px solid var(--rng-border);
	padding: 4px 8px; line-height: 1.3;
	font-family: var(--rng-font-head); font-size: 9px !important; font-weight: 500; text-transform: uppercase;
	color: var(--rng-heading);
}
.rng-tags a:hover,
.rng-sidebar .wp-block-tag-cloud a:hover,
.rng-sidebar .tagcloud a:hover { border-color: var(--rng-accent); background: var(--rng-accent); color: #fff; }

.rng-share {
	display: flex; justify-content: center; gap: 12px;
	margin: 30px 0 0; padding: 12px 0;
	border-top: 1px solid var(--rng-border); border-bottom: 1px solid var(--rng-border);
}
.rng-share a { color: var(--rng-heading); line-height: 0; }
.rng-share a:hover { color: var(--rng-accent); }
.rng-share svg { width: 14px; height: 14px; fill: currentColor; }

.rng-author { display: flex; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--rng-border); }
.rng-author__img { flex: 0 0 55px; }
.rng-author__img img { border-radius: 50%; }
.rng-author h5 { font-size: 14px; text-transform: uppercase; margin: 0 0 6px; }
.rng-author p { font-size: 15px; margin-bottom: 6px; }
.rng-author svg { width: 13px; height: 13px; fill: var(--rng-heading); }

.rng-postnav { display: flex; justify-content: space-between; gap: 30px; padding: 15px 0 30px; }
.rng-postnav > div { flex: 1 1 50%; }
.rng-postnav__next { text-align: right; }
.rng-postnav small { display: block; font-size: 15px; color: var(--rng-meta); }
.rng-postnav a { font-family: var(--rng-font-head); font-weight: 700; font-size: 13px; line-height: 1.5; display: inline-block; color: var(--rng-heading); }
.rng-postnav a:hover { color: var(--rng-accent); }

.rng-related { padding: 10px 0 30px; }
.rng-related h4 { text-align: center; text-transform: uppercase; font-size: 15px; margin-bottom: 25px; }
.rng-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
.rng-related__item { text-align: center; }
.rng-related__item .rng-carousel__thumb { margin-bottom: 15px; }
.rng-related__item h3 { font-size: 13px; margin: 0 0 4px; line-height: 1.3; }

/* Beitrag in voller Breite (ohne Seitenleiste) */
.rng-fullwidth .rng-article { margin: -220px 40px 60px; padding: 40px 60px 0; }
.rng-fullwidth.rng-no-thumb .rng-article { margin-top: 0; }

/* Seiten */
.rng-page-head { padding: 0 0 30px; }
.rng-page-head h1 { text-align: center; text-transform: uppercase; font-size: 24px; margin: 15px 0 0; }
.rng-page .rng-main-wrap { padding-top: 0; }

/* Kommentare */
.rng-comments { padding: 20px 0 40px; }
.rng-comments ol { list-style: none; padding: 0; }
.rng-comments .children { padding-left: 40px; }
.rng-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--rng-border); font-size: 15px; }
.rng-comments .comment-meta { font-size: 13px; color: var(--rng-meta); }
.rng-comments input[type=text], .rng-comments input[type=email], .rng-comments input[type=url], .rng-comments textarea { width: 100%; }

/* ==========================================================================
   9. Formulare
   ========================================================================== */
input[type=text], input[type=search], input[type=email], input[type=url], textarea {
	font: inherit; font-size: 14px; color: var(--rng-text);
	border: 1px solid var(--rng-border); background: var(--rng-bg);
	padding: 9px 12px; border-radius: 0;
}
.rng-searchform { position: relative; }
.rng-searchform input[type=search] { width: 100%; padding-right: 42px; font-size: 13px; height: 41px; }
.rng-searchform button {
	position: absolute; right: 0; top: 0; height: 41px; width: 41px;
	border: 0; background: none; cursor: pointer; color: var(--rng-heading);
}
.rng-searchform button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================================
   10. Sidebar-Widgets
   ========================================================================== */
.rng-sidebar .widget { margin-bottom: 50px; }
.rng-sidebar .widget:last-child { margin-bottom: 0; }
.rng-widget-title {
	display: flex; align-items: center; gap: 12px;
	font-size: 15px; margin: 0 0 25px; line-height: 1.3;
}
.rng-widget-title::after { content: ""; flex: 1; border-top: 1px solid var(--rng-border); }
.rng-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.rng-sidebar .widget_block figure { margin: 0; }

/* Neue Beiträge (Slider) */
.rng-wslider { position: relative; overflow: hidden; }
.rng-wslider__track { display: flex; transition: transform .6s ease; }
.rng-wslider__item { flex: 0 0 100%; position: relative; height: 199px; display: block; color: #fff; }
.rng-wslider__item .rng-mag__img { position: absolute; inset: 0; }
.rng-wslider__item::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.rng-wslider__text {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 15px 20px;
}
.rng-wslider__text h4 { color: #fff; font-size: 17px; margin: 0 0 4px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.rng-wslider__text time { font-size: 12px; }

/* Neueste Beiträge (Liste) */
.rng-wlist li { display: flex; gap: 15px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rng-border); }
.rng-wlist li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rng-wlist .rng-small-thumb { flex: 0 0 110px; height: 73px; }
.rng-wlist h4 { font-size: 15px; margin: 0 0 4px; line-height: 1.45; }

/* Wetter */
.rng-weather__head { display: flex; justify-content: space-between; align-items: flex-start; }
.rng-weather__loc { font-family: var(--rng-font-head); font-size: 22px; font-weight: 700; color: var(--rng-heading); line-height: 1.2; }
.rng-weather__desc { font-size: 13px; color: var(--rng-heading); }
.rng-weather__pin svg { width: 22px; height: 22px; fill: none; stroke: #888; stroke-width: 1.5; }
.rng-weather__stats {
	display: flex; justify-content: center; gap: 18px;
	font-size: 11px; color: var(--rng-heading);
	border-top: 1px solid var(--rng-border); border-bottom: 1px solid var(--rng-border);
	margin: 12px 0 15px; padding: 6px 0;
}
.rng-weather__stats svg { width: 11px; height: 11px; fill: #888; vertical-align: -1px; margin-right: 3px; }
.rng-weather__now { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 15px; }
.rng-weather__now .rng-wicon svg { width: 72px; height: 56px; }
.rng-weather__temp { font-family: var(--rng-font-head); font-size: 42px; line-height: 1; color: var(--rng-heading); }
.rng-weather__temp sup { font-size: 13px; vertical-align: top; }
.rng-weather__minmax { font-size: 11px; color: var(--rng-heading); line-height: 2.4; }
.rng-weather__days {
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: #eef7ee; padding: 10px 0; text-align: center;
}
html.rng-dark .rng-weather__days { background: #223322; }
.rng-weather__days .rng-wicon svg { width: 30px; height: 22px; }
.rng-weather__days b { display: block; font-family: var(--rng-font-head); font-size: 14px; color: var(--rng-heading); line-height: 1.3; }
.rng-weather__days small { display: block; font-size: 9px; text-transform: uppercase; color: var(--rng-meta); }
.rng-wicon .c { fill: var(--rng-accent); }
.rng-wicon .c2 { fill: #ccc; }
.rng-wicon .s { fill: none; stroke: #f5a623; stroke-width: 1.5; }
.rng-wicon .d { fill: #5aa0d8; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.rng-footer { background: var(--rng-footer-bg); color: var(--rng-footer-text); padding: 40px 0 30px; text-align: center; }
.rng-footer__logo img { width: 720px; max-width: 100%; height: auto; }
.rng-footer__menu { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 40px; }
.rng-footer__menu a { color: var(--rng-footer-text); font-size: 17px; }
.rng-footer__menu a:hover { color: #fff; }
.rng-footer__copy { font-size: 13px; margin-top: 15px; }

.rng-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	width: 38px; height: 38px; border: 0; cursor: pointer;
	background: var(--rng-accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.rng-totop.is-visible { opacity: 1; visibility: visible; }
.rng-totop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* 404 / Suche */
.rng-notfound { text-align: center; padding: 40px 0 60px; }
.rng-notfound .rng-searchform { max-width: 400px; margin: 25px auto 0; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1250px) {
	.rng-container { padding: 0 20px; }
	.rng-main { flex: 1 1 auto; max-width: none; margin-right: 40px; }
	.rng-menu > li > a { padding: 0 10px; }
}

@media (max-width: 1023px) {
	.rng-header__inner { flex-direction: column; justify-content: center; gap: 20px; padding: 30px 20px; min-height: 0; }
	.rng-logo img { width: 300px; }
	.rng-menu-toggle { display: inline-flex; margin-left: 10px; }
	.rng-nav__inner { justify-content: space-between; }
	.rng-menu {
		display: none; position: absolute; top: 60px; left: 0; right: 0;
		flex-direction: column; background: var(--rng-bg);
		box-shadow: 0 6px 10px rgba(0,0,0,.12);
		max-height: calc(100vh - 60px); overflow-y: auto;
	}
	.rng-nav.menu-open .rng-menu { display: flex; }
	.rng-menu > li > a { height: auto; padding: 14px 20px; border-bottom: 1px solid var(--rng-border-light); }
	.rng-menu > li.rng-home > a { width: auto; justify-content: flex-start; padding: 14px 20px; }
	.rng-menu ul.sub-menu {
		position: static; width: auto; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 20px 0 35px; display: none;
	}
	.rng-menu li.sub-open > ul.sub-menu { display: block; }
	.rng-menu .menu-item-has-children > a::after { margin-left: auto; width: 7px; height: 7px; }

	.rng-main-wrap { flex-direction: column; }
	.rng-main { margin-right: 0; width: 100%; }
	.rng-sidebar { width: 100%; max-width: none; flex: 1 1 auto; margin-top: 40px; }
	.rng-single .rng-sidebar { margin-top: 0; }

	.rng-mag { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; height: auto; }
	.rng-mag__item:first-child { grid-column: 1 / span 2; grid-row: auto; }
	.rng-carousel__item { flex-basis: 50%; }

	.rng-single-image { height: 400px; }
	.rng-article, .rng-fullwidth .rng-article { margin: -120px 20px 40px; padding: 30px 25px 0; }
}

@media (max-width: 767px) {
	body { font-size: 16px; }
	.rng-catblock__grid, .rng-grid { grid-template-columns: 1fr; }
	.rng-related__grid { grid-template-columns: 1fr 1fr; }
	.rng-mag { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
	.rng-mag__item:first-child { grid-column: auto; }
	.rng-mag__item:first-child .rng-mag__title { font-size: 19px; }
	.rng-carousel__item { flex-basis: 100%; }
	.rng-single-image { height: 260px; }
	.rng-article, .rng-fullwidth .rng-article { margin: -60px 0 30px; padding: 20px 15px 0; }
	.rng-postnav { flex-direction: column; gap: 15px; }
	.rng-postnav__next { text-align: left; }
	.rng-entry .alignleft, .rng-entry .alignright { float: none; margin: 0 0 15px; }
	.rng-footer__menu { gap: 5px 20px; }
}

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