/*
Theme Name: Toner Druckerpatronen Berlin
Theme URI: https://toner-druckerpatronen-berlin.de
Author: Listandsell
Author URI: https://listandsell.de
Description: Schnelles, schlankes Theme für Toner, Druckerpatronen und Drucker in Berlin. Enthält das Seiten-Template "Toner Landing Berlin" mit animiertem 3-Schritt-Anfrageformular, Sparrechner und FAQ. Kontaktdaten unter Design → Customizer → Geschäftsdaten.
Version: 2.10.0
Requires at least: 6.0
Tested up to: 7.1
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: toner-berlin
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce
*/

/* Self-hosted fonts (no Google connection) */
@font-face { font-family: "Manrope"; src: url(assets/toner-landing/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/toner-landing/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
	--tb-ink: #0f1419;
	--tb-ink-2: #1a222c;
	--tb-text: #2b3440;
	--tb-mute: #5b6573;
	--tb-line: #e3e6ea;
	--tb-tint: #f3f4f6;
	--tb-c: #3792cf;
	--tb-m: #ed0a7a;
	--tb-m-dark: #c4056a;
	--tb-y: #fdda00;
	--tb-radius: 16px;
	--tb-shadow: 0 14px 34px -14px rgba(25, 21, 56, .22);
	--tb-ease: cubic-bezier(.22, 1, .36, 1);
	--tb-wrap: 1398px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--tb-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--tb-c); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tb-m); }
h1, h2, h3, h4, h5, h6 { font-family: "Manrope", system-ui, sans-serif; color: var(--tb-ink); line-height: 1.2; letter-spacing: -.015em; margin: 1.6em 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.2em; }
blockquote { border-left: 4px solid var(--tb-m); padding: .4em 0 .4em 1.2em; color: var(--tb-ink-2); font-style: italic; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--tb-line); text-align: left; }
pre, code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--tb-tint); border-radius: 6px; }
pre { padding: 1em; overflow-x: auto; }
code { padding: .1em .35em; }
hr { border: 0; border-top: 1px solid var(--tb-line); margin: 2em 0; }
:focus-visible { outline: 3px solid var(--tb-c); outline-offset: 2px; }

.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 { background: #fff; clip: auto !important; clip-path: none; color: var(--tb-ink); display: block; font-weight: 700; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; border-radius: 8px; box-shadow: var(--tb-shadow); }

.tb-wrap { width: 100%; max-width: var(--tb-wrap); margin: 0 auto; padding: 0 20px; }
.tb-wrap--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.tb-btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border: 0; border-radius: 12px; cursor: pointer;
	background: var(--tb-m); color: #fff; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
	box-shadow: none;
	transition: transform .25s var(--tb-ease), background .25s;
}
.tb-btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--tb-m-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; padding: .75em 1em; font: inherit; color: var(--tb-ink);
	border: 1.5px solid var(--tb-line); border-radius: 12px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--tb-c); box-shadow: 0 0 0 4px rgba(0, 163, 224, .12); }

/* ---------- Header ---------- */
.tb-topbar { background: var(--tb-ink); color: #cbd5e1; font-size: .82rem; }
.tb-topbar .tb-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.tb-topbar a { color: #fff; text-decoration: none; }
.tb-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--tb-line); }
.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tb-header { top: 0; } }
.tb-header__in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.tb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.tb-brand img { width: 140px; height: auto; }
.tb-brand .custom-logo { width: auto; max-height: 52px; }
.tb-brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.tb-brand__txt strong { font-family: "Manrope", system-ui, sans-serif; color: var(--tb-ink); font-size: 1.05rem; font-weight: 700; }
.tb-brand__txt em { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-m-dark); margin-top: 2px; }

.tb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tb-nav li { position: relative; }
.tb-nav a { display: block; padding: 8px 12px; color: var(--tb-ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 8px; }
.tb-nav a:hover, .tb-nav .current-menu-item > a, .tb-nav .current_page_item > a { color: var(--tb-m); }
.tb-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; display: block; padding: 8px; background: #fff; border: 1px solid var(--tb-line); border-radius: 12px; box-shadow: var(--tb-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--tb-ease); z-index: 10; }
.tb-nav li:hover > .sub-menu, .tb-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tb-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.tb-header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--tb-ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.tb-header__phone svg { width: 20px; height: 20px; color: var(--tb-c); }
.tb-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--tb-line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; box-shadow: none; color: var(--tb-ink); }
.tb-menu-toggle:hover { background: var(--tb-tint); transform: none; color: var(--tb-ink); }
.tb-menu-toggle span, .tb-menu-toggle span::before, .tb-menu-toggle span::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--tb-ease), background .3s; }
.tb-menu-toggle span::before, .tb-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.tb-menu-toggle span::before { top: -6px; }
.tb-menu-toggle span::after { top: 6px; }
.tb-menu-toggle[aria-expanded="true"] span { background: transparent; }
.tb-menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.tb-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.tb-menu-toggle { display: block; }
	.tb-header__phone span { display: none; }
	.tb-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--tb-line); box-shadow: var(--tb-shadow); max-height: 0; overflow: hidden; transition: max-height .4s var(--tb-ease); }
	.tb-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.tb-nav ul { flex-direction: column; padding: 10px 20px 18px; }
	.tb-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.tb-topbar__hours { display: none; }
}

/* ---------- Page hero & content ---------- */
.tb-pagehead { background: linear-gradient(180deg, var(--tb-tint), #fff); padding: 56px 0 36px; }
.tb-pagehead h1 { margin: 0; }
.tb-pagehead p { margin: 10px 0 0; color: var(--tb-mute); }
.tb-main { padding: 40px 0 80px; }
.tb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.tb-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .tb-layout { grid-template-columns: minmax(0, 1fr); } }

.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-meta { font-size: .9rem; color: var(--tb-mute); margin-bottom: 1.2em; }
.entry-meta a { color: inherit; }
.entry-thumb img { border-radius: var(--tb-radius); margin-bottom: 1.5em; width: 100%; object-fit: cover; }
.entry-footer { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--tb-line); font-size: .9rem; color: var(--tb-mute); }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.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 { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption { font-size: .88rem; color: var(--tb-mute); }
.wp-caption-text { text-align: center; }
.gallery-caption, .bypostauthor, .sticky { display: block; }
.sticky { position: relative; }

/* ---------- Post cards ---------- */
.tb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tb-card { display: flex; flex-direction: column; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; background: #fff; transition: transform .35s var(--tb-ease), box-shadow .35s; }
.tb-card:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow); }
.tb-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.tb-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tb-card__body h2 { font-size: 1.25rem; margin: 0 0 .4em; }
.tb-card__body h2 a { color: var(--tb-ink); text-decoration: none; }
.tb-card__body h2 a:hover { color: var(--tb-m); }
.tb-card__body p { font-size: .95rem; flex: 1; }
.tb-card__more { font-weight: 700; color: var(--tb-m); text-decoration: none; font-size: .92rem; }

/* ---------- Pagination ---------- */
.navigation.pagination, .posts-navigation, .post-navigation { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--tb-line); border-radius: 10px; text-decoration: none; color: var(--tb-ink); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { text-decoration: none; font-weight: 700; }

/* ---------- Sidebar & widgets ---------- */
.tb-sidebar .widget { margin-bottom: 28px; padding: 22px; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: #fff; }
.tb-sidebar .widget-title, .tb-sidebar h2 { font-size: 1.05rem; margin: 0 0 .8em; }
.tb-sidebar ul { list-style: none; padding: 0; margin: 0; }
.tb-sidebar li { padding: 6px 0; border-bottom: 1px solid var(--tb-line); }
.tb-sidebar li:last-child { border-bottom: 0; }
.tb-sidebar a { color: var(--tb-ink-2); text-decoration: none; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--tb-line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px; margin-bottom: 16px; border: 1px solid var(--tb-line); border-radius: 12px; }
.comment-meta { font-size: .88rem; color: var(--tb-mute); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin-bottom: 1em; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- 404 ---------- */
.tb-404 { text-align: center; padding: 80px 0; }
.tb-404__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1; margin: 0; color: var(--tb-ink); letter-spacing: -.06em; }
.tb-404 .search-form { max-width: 480px; margin: 24px auto; }

/* ---------- Footer ---------- */
.tb-footer { background: #07152a; color: #94a3b8; font-size: .94rem; padding: 56px 0 0; }
.tb-footer a { color: #cbd5e1; text-decoration: none; }
.tb-footer a:hover { color: #fff; }
.tb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.tb-footer__h { color: #fff; font-weight: 700; margin: 0 0 10px; }
.tb-footer .tb-brand img { width: 150px; }
.tb-footer ul { list-style: none; padding: 0; margin: 0; }
.tb-footer li { margin-bottom: 6px; }
.tb-footer .widget { margin-bottom: 20px; }
.tb-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.tb-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.tb-footer__bottom li { margin: 0; }
@media (max-width: 800px) { .tb-footer__grid { grid-template-columns: 1fr; } }
