/*
Theme Name: drucktipps3d Forumlook
Description: Classic theme for drucktipps3d.de in the look of the WoltLab forum. Uses the same menu locations, sidebar IDs and image sizes as Momentous, so nothing needs to be reassigned or regenerated.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Author: drucktipps3d.de
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dt3d
*/

/* ------------------------------------------------------------------
 * Design tokens (taken from the forum's WoltLab style, light scheme)
 * ------------------------------------------------------------------ */
:root {
	--dt-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
	--dt-font-logo: "Fjalla One", Tahoma, Verdana, Arial, sans-serif;
	--dt-font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", monospace;

	--dt-size: 15px;
	--dt-size-small: 12px;
	--dt-size-headline: 18px;
	--dt-size-section: 23px;
	--dt-size-title: 28px;
	--dt-line: 1.48;

	--dt-header-bg: #282828;
	--dt-header-text: #fff;
	--dt-menu-bg: #000;
	--dt-menu-link: #fff;
	--dt-dropdown-bg: #24425f;
	--dt-dropdown-bg-active: #4179ad;

	--dt-page-bg: #fafafa;
	--dt-band-bg: #eceff1;
	--dt-card-bg: #fff;
	--dt-card-shadow: rgb(0 0 0 / 10%) 0 1px 3px 0, rgb(0 0 0 / 6%) 0 1px 2px 0;
	--dt-card-shadow-hover: rgb(0 0 0 / 10%) 0 12px 28px 0, rgb(0 0 0 / 5%) 0 2px 4px 0;
	--dt-border: #e0e0e0;
	--dt-border-strong: #4179ad;

	--dt-text: #3a3a3d;
	--dt-text-dimmed: #71757a;
	--dt-link: #4179ad;
	--dt-link-active: #16517c;
	--dt-headline: #3a3a3d;

	--dt-sidebar-bg: #ecf1f7;

	--dt-button-bg: #cfd8dc;
	--dt-button-text: #212121;
	--dt-button-primary: #1d7ac5;
	--dt-button-primary-active: #1a6bad;

	--dt-footer-bg: #2a2d2f;
	--dt-footer-text: #d9dcde;
	--dt-footer-headline: #bdc3c7;
	--dt-copyright-bg: #000;

	--dt-radius: 4px;
	--dt-width: 1200px;
	--dt-gap: 20px;
}

/* ------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------ */
@font-face {
	font-family: "Fjalla One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/fjalla-one-latin-ext_latin-regular.woff2") format("woff2");
}

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

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

body {
	margin: 0;
	background: var(--dt-page-bg);
	color: var(--dt-text);
	font-family: var(--dt-font);
	font-size: var(--dt-size);
	line-height: var(--dt-line);
	overflow-wrap: break-word;
}

a { color: var(--dt-link); text-decoration: none; }
a:hover, a:focus { color: var(--dt-link-active); text-decoration: underline; }

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
	color: var(--dt-headline);
	font-weight: 400;
	line-height: 1.25;
	margin: 1.4em 0 .6em;
}
h1 { font-size: var(--dt-size-title); }
h2 { font-size: var(--dt-size-section); }
h3 { font-size: 20px; }
h4 { font-size: var(--dt-size-headline); }
h5, h6 { font-size: 16px; font-weight: 600; }

p, ul, ol, dl, table, pre, blockquote, figure { margin: 0 0 1.2em; }

code, kbd, pre, samp { font-family: var(--dt-font-mono); font-size: .9em; }
pre {
	background: var(--dt-band-bg);
	border-radius: var(--dt-radius);
	padding: 12px 15px;
	overflow-x: auto;
}

blockquote {
	border-left: 4px solid var(--dt-border-strong);
	background: var(--dt-sidebar-bg);
	margin-left: 0;
	padding: 12px 18px;
}
blockquote p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--dt-border); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--dt-band-bg); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--dt-border); margin: 2em 0; }

input, textarea, select, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	background: #f1f6fb;
	border: 1px solid #ccd6df;
	border-radius: var(--dt-radius);
	padding: 7px 10px;
	max-width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--dt-link); outline-offset: 0; background: #fff; }

button, .button, input[type="submit"], input[type="button"], .more-link {
	display: inline-block;
	background: var(--dt-button-primary);
	border: 0;
	border-radius: var(--dt-radius);
	color: #fff;
	cursor: pointer;
	padding: 7px 14px;
	line-height: 1.4;
}
button:hover, .button:hover, input[type="submit"]:hover, .more-link:hover, .more-link:focus {
	background: var(--dt-button-primary-active);
	color: #fff;
	text-decoration: none;
}

.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, .skip-link:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--dt-link);
	display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000;
}

.container {
	width: 100%;
	max-width: var(--dt-width);
	margin: 0 auto;
	padding: 0 16px;
}

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; margin-bottom: 1.2em; }
.wp-caption-text, figcaption { color: var(--dt-text-dimmed); font-size: 13px; padding-top: 4px; text-align: center; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin-bottom: 1.2em; }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-4 { --cols: 4; }
.gallery-columns-5 { --cols: 5; } .gallery-columns-6 { --cols: 6; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; }
.sticky, .bypostauthor { }

/* ------------------------------------------------------------------
 * Top menu bar (black bar, like the forum)
 * ------------------------------------------------------------------ */
.dt-menubar {
	background: var(--dt-menu-bg);
	color: var(--dt-menu-link);
	position: relative;
	z-index: 50;
}
.dt-menubar .container {
	display: flex;
	align-items: stretch;
	min-height: 50px;
}

.main-navigation { flex: 1 1 auto; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; }

.main-navigation > div > ul,
.main-navigation > ul {
	display: flex;
	flex-wrap: wrap;
	height: 100%;
}

.main-navigation li { position: relative; }

.main-navigation a {
	color: var(--dt-menu-link);
	display: block;
	padding: 0 12px;
	line-height: 50px;
	white-space: nowrap;
}
.main-navigation a:hover, .main-navigation a:focus { text-decoration: none; background: #1b1b1b; color: #fff; }

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--dt-dropdown-bg-active); }

.main-navigation .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	border: 4px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
}

.main-navigation .sub-menu {
	background: var(--dt-dropdown-bg);
	box-shadow: var(--dt-card-shadow-hover);
	display: none;
	left: 0;
	min-width: 220px;
	padding: 4px 0;
	position: absolute;
	top: 100%;
	z-index: 60;
}
.main-navigation .sub-menu .sub-menu { left: 100%; top: -4px; }
.main-navigation .sub-menu a { line-height: 1.4; padding: 8px 16px; white-space: normal; }
.main-navigation .sub-menu a:hover, .main-navigation .sub-menu a:focus { background: var(--dt-dropdown-bg-active); }
.main-navigation .sub-menu .menu-item-has-children > a::after { border: 4px solid transparent; border-left-color: currentColor; border-right: 0; float: right; margin-top: 7px; }

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }

.dt-menubar-tools { display: flex; align-items: center; margin-left: auto; }

.dt-search-toggle, .dt-menu-toggle {
	background: transparent;
	border-radius: 0;
	color: #fff;
	height: 50px;
	padding: 0 12px;
}
.dt-search-toggle:hover, .dt-menu-toggle:hover, .dt-search-toggle:focus, .dt-menu-toggle:focus { background: #1b1b1b; }
.dt-search-toggle svg, .dt-menu-toggle svg { display: block; fill: currentColor; height: 22px; width: 22px; }

.dt-menu-toggle { display: none; }

.main-navigation .dt-mobile-secondary { display: none; }

/* Mobile only: prominent forum button in the black bar */
.dt-forum-button { display: none; }

.dt-search-panel {
	background: var(--dt-menu-bg);
	border-top: 1px solid #222;
	display: none;
	padding: 10px 0;
}
.dt-search-panel.is-open { display: block; }
.dt-search-panel .search-form { display: flex; gap: 8px; }
.dt-search-panel .search-field { flex: 1 1 auto; background: #fff; border: 0; }

/* ------------------------------------------------------------------
 * Header (dark area with the logo)
 * ------------------------------------------------------------------ */
.site-header {
	background-color: var(--dt-header-bg);
	background-position: center;
	background-size: cover;
	color: var(--dt-header-text);
}
.site-header .container {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	min-height: 126px;
	padding-bottom: 20px;
	padding-top: 20px;
}

.site-branding { min-width: 0; }

.site-title {
	font-family: var(--dt-font-logo);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.1;
	margin: 0;
	text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
.site-title a, .site-title a:hover { color: #fff; text-decoration: none; }
.site-description { color: #c4c7c9; font-size: 14px; margin: 4px 0 0; }
.custom-logo { max-height: 90px; width: auto; }

.header-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.header-navigation a { color: #fff; display: block; padding: 6px 12px; border-radius: var(--dt-radius); }
.header-navigation a:hover, .header-navigation a:focus { background: rgb(255 255 255 / 10%); text-decoration: none; }
.header-navigation .sub-menu { display: none; }

.social-navigation ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social-navigation a { color: #fff; display: block; padding: 6px; }

/* Light band below the header (the forum's navigation strip) */
.dt-band {
	background: var(--dt-band-bg);
	border-bottom: 1px solid #dde3e7;
	min-height: 34px;
}
.dt-band .container { padding-bottom: 8px; padding-top: 8px; }
.dt-band-title { color: var(--dt-text-dimmed); font-size: 13px; margin: 0; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; font-size: 13px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { color: var(--dt-text-dimmed); }
.breadcrumbs li + li::before { color: #a0a4a8; content: "›"; margin: 0 7px; }
.breadcrumbs a { color: var(--dt-content-dimmed-link, #34495e); }
.breadcrumbs a:hover { color: var(--dt-link); }
.breadcrumbs [aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------ */
.site-content { padding: 30px 0 40px; }

.dt-layout {
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
}
.dt-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* Section header, like the forum's category headers */
.content-title, .archive-header {
	border-bottom: 2px solid var(--dt-border-strong);
	color: var(--dt-headline);
	font-size: var(--dt-size-headline);
	font-weight: 400;
	margin: 0 0 20px;
	padding-bottom: 6px;
}
.archive-header .archive-title { font-size: var(--dt-size-headline); margin: 0; }
.archive-description { color: var(--dt-text-dimmed); font-size: 14px; margin-top: 4px; }
.archive-description p { margin: 0; }

/* ------------------------------------------------------------------
 * Post cards (two-column grid like Momentous)
 * ------------------------------------------------------------------ */
.post-grid {
	display: grid;
	gap: var(--dt-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
	background: var(--dt-card-bg);
	border-radius: var(--dt-radius);
	box-shadow: var(--dt-card-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow .2s;
}
.post-card:hover { box-shadow: var(--dt-card-shadow-hover); }

/* Masonry like Momentous: cards keep their natural height (js/masonry.js sets the row spans).
   Without JS the grid simply shows cards top-aligned. */
.post-grid { align-items: start; }
.post-grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.post-grid.is-masonry .post-card { margin-bottom: var(--dt-gap); }

.post-card .post-thumbnail { display: block; aspect-ratio: 3 / 2; background: var(--dt-band-bg); overflow: hidden; }
.post-card .post-thumbnail img { height: 100%; object-fit: cover; object-position: left top; width: 100%; }

.post-card .post-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 16px 20px 20px; }
.post-card .entry-title { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.post-card .entry-title a { color: var(--dt-headline); }
.post-card .entry-title a:hover { color: var(--dt-link); }
.post-card .entry-content { flex: 1 1 auto; }
.post-card .entry-content > :last-child { margin-bottom: 0; }

.entry-meta { color: var(--dt-text-dimmed); font-size: 13px; margin-bottom: 12px; }
.entry-meta a { color: var(--dt-text-dimmed); }
.entry-meta a:hover { color: var(--dt-link); }
.entry-meta > span + span::before { content: "·"; margin: 0 6px; }

.more-link { font-size: 14px; margin-top: 6px; }

/* ------------------------------------------------------------------
 * Single posts and pages
 * ------------------------------------------------------------------ */
.single-card {
	background: var(--dt-card-bg);
	border-radius: var(--dt-radius);
	box-shadow: var(--dt-card-shadow);
	overflow: hidden;
}
.single-card .post-thumbnail img { width: 100%; }
.single-card .post-body { padding: 24px 30px 30px; }
.single-card .entry-title, .page-title { font-size: var(--dt-size-title); font-weight: 400; margin: 0 0 8px; }

.entry { font-size: 16px; line-height: 1.6; }
.entry ul, .entry ol { padding-left: 1.5em; }
.entry li { margin-bottom: .3em; }
.entry h2, .entry h3, .entry h4 { margin-top: 1.6em; }

.entry-footer { border-top: 1px solid var(--dt-border); color: var(--dt-text-dimmed); font-size: 13px; margin-top: 24px; padding-top: 12px; }
.entry-footer .tags-links a {
	background: var(--dt-button-bg);
	border-radius: var(--dt-radius);
	color: var(--dt-button-text);
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 1px 8px;
}
.entry-footer .tags-links a:hover { background: var(--dt-link); color: #fff; text-decoration: none; }

.page-links { clear: both; margin: 1.5em 0; }

/* Previous / next post */
.post-navigation, .posts-navigation {
	display: grid;
	gap: var(--dt-gap);
	grid-template-columns: 1fr 1fr;
	margin-top: var(--dt-gap);
}
.post-navigation .nav-links, .posts-navigation .nav-links { display: contents; }
.post-navigation a {
	background: var(--dt-card-bg);
	border-radius: var(--dt-radius);
	box-shadow: var(--dt-card-shadow);
	display: block;
	height: 100%;
	padding: 14px 18px;
}
.post-navigation a:hover { box-shadow: var(--dt-card-shadow-hover); text-decoration: none; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { color: var(--dt-text-dimmed); display: block; font-size: 12px; text-transform: uppercase; }

/* Numbered pagination */
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pagination .page-numbers {
	background: var(--dt-button-bg);
	border-radius: var(--dt-radius);
	color: var(--dt-button-text);
	min-width: 34px;
	padding: 5px 10px;
	text-align: center;
}
.pagination a.page-numbers:hover { background: var(--dt-button-primary); color: #fff; text-decoration: none; }
.pagination .current { background: var(--dt-button-primary); color: #fff; }
.pagination .dots { background: transparent; }

/* ------------------------------------------------------------------
 * Sidebar (light-blue boxes like the forum)
 * ------------------------------------------------------------------ */
.widget-area .widget {
	background: var(--dt-sidebar-bg);
	border-radius: var(--dt-radius);
	margin-bottom: var(--dt-gap);
	padding: 18px 20px;
}
.widget-area .widget-title, .widget-area .widgettitle, .widget-area .widget h2 {
	color: var(--dt-headline);
	font-size: var(--dt-size-headline);
	font-weight: 400;
	margin: 0 0 12px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 4px 0; }
.widget li + li { border-top: 1px solid rgb(0 0 0 / 5%); }
.widget ul ul { padding-left: 14px; }
.widget .post-date, .widget .rss-date { color: var(--dt-text-dimmed); display: block; font-size: 12px; }
.widget .wp-block-rss { padding: 0; }
.widget .wp-block-rss__item { padding: 4px 0; }
.widget .tagcloud a, .widget .wp-block-tag-cloud a { display: inline-block; margin: 0 4px 4px 0; }
.widget select { width: 100%; }
.widget-area .search-form { display: flex; gap: 6px; }
.widget-area .search-field { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------------------
 * Comments
 * ------------------------------------------------------------------ */
/* Comment list and comment form are separate cards, like the prev/next boxes */
.comments-card,
.comments-area > .comment-respond {
	background: var(--dt-card-bg);
	border-radius: var(--dt-radius);
	box-shadow: var(--dt-card-shadow);
	margin-top: var(--dt-gap);
	padding: 24px 30px;
}
.comments-title, .comment-reply-title { font-size: var(--dt-size-headline); margin: 0 0 16px; }
/* Reply form opened under a comment ("Antworten") */
.comment-list .comment-respond {
	background: var(--dt-sidebar-bg);
	border-left: 3px solid var(--dt-border-strong);
	border-radius: var(--dt-radius);
	margin: 12px 0 20px;
	padding: 18px 20px;
}
.comment-list .comment-respond textarea { background: #fff; }
.comment-reply-title small { display: block; font-size: 13px; margin-top: 4px; }
.comment-reply-title small a {
	background: var(--dt-button-bg);
	border-radius: var(--dt-radius);
	color: var(--dt-button-text);
	display: inline-block;
	padding: 2px 10px;
}
.comment-reply-title small a:hover { background: var(--dt-button-primary); color: #fff; text-decoration: none; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 30px; }
.comment-body { border-top: 1px solid var(--dt-border); padding: 16px 0; }
.comment-author { font-weight: 600; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; margin-bottom: 8px; }
.comment-metadata a { color: var(--dt-text-dimmed); }
.comment-content { clear: both; padding-top: 6px; }
.reply { font-size: 13px; }
.bypostauthor > .comment-body .comment-author .fn::after { content: " ✓"; color: var(--dt-link); }
.comment-form label { display: block; font-size: 13px; margin-bottom: 2px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }
.comment-form p:has(> input[type="checkbox"]) { align-items: center; display: flex; gap: 8px; margin-bottom: .6em; }
.comment-form input[type="checkbox"] { flex: 0 0 auto; margin: 0; }
.comment-form input[type="checkbox"] + label, .comment-form-cookies-consent label { display: inline; font-size: 14px; margin: 0; }
.comment-navigation { display: flex; justify-content: space-between; margin: 12px 0; }

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.site-footer { background: var(--dt-footer-bg); color: var(--dt-footer-text); font-size: 14px; }
.site-footer a { color: #fff; }
.footer-widgets { padding: 30px 0 10px; }
.footer-widgets .container { display: grid; gap: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-widgets .widget { margin-bottom: 20px; }
.footer-widgets .widget-title, .footer-widgets .widget h2 { color: var(--dt-footer-headline); font-size: 16px; font-weight: 400; margin: 0 0 10px; }
.footer-widgets .widget li + li { border-top-color: rgb(255 255 255 / 8%); }
.site-info { background: var(--dt-copyright-bg); color: var(--dt-footer-text); font-size: 13px; padding: 14px 0; }
.site-info .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------
 * Plugins
 * ------------------------------------------------------------------ */
.glossary-container, .cmtt-glossary-index { background: var(--dt-card-bg); }
.sharedaddy, .jp-relatedposts { clear: both; }
.sl-wrapper .sl-close, .sl-wrapper .sl-counter { top: 50px; }
.admin-bar .dt-menubar { }

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.dt-layout { grid-template-columns: minmax(0, 1fr); }
	.footer-widgets .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.dt-menu-toggle { display: block; }
	.dt-menubar .container { flex-wrap: wrap; }
	.main-navigation { display: none; flex-basis: 100%; order: 3; }
	.main-navigation.is-open { display: block; }
	.main-navigation > div > ul, .main-navigation > ul { display: block; height: auto; }
	.main-navigation a { line-height: 1.4; padding: 10px 12px; }
	.main-navigation .sub-menu, .main-navigation .sub-menu .sub-menu {
		box-shadow: none; display: none; left: auto; min-width: 0; padding-left: 14px; position: static;
	}
	.main-navigation li:hover > .sub-menu { display: none; }
	.main-navigation li.is-open > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: block; }
	.main-navigation .menu-item-has-children > a::after { float: right; margin-top: 8px; }
	.dt-menubar-tools { margin-left: auto; }

	.header-navigation { display: none; }
	.main-navigation .dt-mobile-secondary { border-top: 1px solid #333; display: block; margin-top: 6px; padding-top: 6px; }

	.dt-forum-button {
		background: var(--dt-button-primary);
		border-radius: var(--dt-radius);
		color: #fff;
		display: inline-block;
		font-weight: 600;
		margin-right: 6px;
		padding: 7px 16px;
	}
	.dt-forum-button:hover, .dt-forum-button:focus { background: var(--dt-button-primary-active); color: #fff; text-decoration: none; }
	/* The button replaces both forum links inside the mobile menu */
	.main-navigation li:has(> a[href*="forum.drucktipps3d.de"]) { display: none; }
}

@media (max-width: 700px) {
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.site-header .container { min-height: 0; }
	.site-title { font-size: 30px; }
	.single-card .post-body, .comments-card, .comments-area > .comment-respond { padding: 18px; }
	.comment-list .children { padding-left: 14px; }
	.comment-list .comment-respond { padding: 14px; }
	.single-card .entry-title, .page-title { font-size: 23px; }
	.post-navigation, .posts-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.footer-widgets .container { grid-template-columns: minmax(0, 1fr); }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

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

@media print {
	.dt-menubar, .site-header, .dt-band, .widget-area, .site-footer, .post-navigation, .comments-area { display: none; }
	.dt-layout { display: block; }
}
