/* ==========================================================================
   Wärme Express – Haupt-Styles
   Nur Systemschriften (keine externen Anfragen, DSGVO-konform).
   ========================================================================== */

:root {
	--ah-primary: #231f20;
	--ah-accent: #c8161d;
	--ah-bg: #f8f3ec;
	--ah-text: #24190f;
	--ah-surface: #ffffff;
	--ah-muted: color-mix(in srgb, var(--ah-text) 62%, var(--ah-bg));
	--ah-line: color-mix(in srgb, var(--ah-text) 12%, transparent);
	--ah-tint: color-mix(in srgb, var(--ah-primary) 7%, var(--ah-bg));
	--ah-primary-dark: color-mix(in srgb, var(--ah-primary) 80%, #000);
	--ah-radius: 14px;
	--ah-radius-sm: 8px;
	--ah-shadow: 0 1px 2px rgba(35, 22, 12, .05), 0 8px 24px rgba(35, 22, 12, .07);
	--ah-shadow-lg: 0 18px 50px rgba(35, 22, 12, .14);
	--ah-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ah-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--ah-container: 1280px;
	--ah-gutter: clamp(16px, 4vw, 32px);
	--ah-section: clamp(48px, 7vw, 96px);
	--ah-header-h: 76px;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--ah-bg);
	color: var(--ah-text);
	font-family: var(--ah-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ah-primary); text-underline-offset: 3px; }
a:hover { color: var(--ah-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ah-font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--ah-text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--ah-line); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7em .8em; border-bottom: 1px solid var(--ah-line); text-align: left; }
:focus-visible { outline: 3px solid var(--ah-accent); outline-offset: 2px; border-radius: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], input[type="date"], select, textarea {
	width: 100%;
	padding: .75em 1em;
	font: inherit;
	color: var(--ah-text);
	background: var(--ah-surface);
	border: 1px solid color-mix(in srgb, var(--ah-text) 20%, transparent);
	border-radius: var(--ah-radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ah-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ah-primary) 18%, transparent); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--ah-surface); color: var(--ah-text); border-radius: var(--ah-radius-sm); box-shadow: var(--ah-shadow);
}

.container { width: 100%; max-width: var(--ah-container); margin-inline: auto; padding-inline: var(--ah-gutter); }
.ah-narrow { max-width: 780px; }

/* Boutons ------------------------------------------------------------------ */
.ah-btn, .button, button.button, input[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.5em; font: inherit; font-weight: 600; line-height: 1.2;
	border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.ah-btn:active { transform: translateY(1px); }
.ah-btn-primary, input[type="submit"], .wp-block-button__link { background: var(--ah-primary); color: #fff; }
.ah-btn-primary:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--ah-primary-dark); color: #fff; }
.ah-btn-ghost { background: transparent; color: var(--ah-text); border-color: color-mix(in srgb, var(--ah-text) 25%, transparent); }
.ah-btn-ghost:hover { border-color: var(--ah-text); color: var(--ah-text); }
.ah-btn-light { background: #fff; color: var(--ah-primary); }
.ah-btn-light:hover { background: var(--ah-bg); color: var(--ah-primary); }
.ah-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.ah-btn-row.is-centered { justify-content: center; }
.ah-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; }
.ah-link .ah-icon { transition: transform .2s; }
.ah-link:hover .ah-icon { transform: translateX(3px); }
.ah-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--ah-text); cursor: pointer; transition: background-color .2s;
}
.ah-icon-btn:hover { background: var(--ah-tint); color: var(--ah-text); }

/* Topbar & header ------------------------------------------------------------ */
.ah-topbar { background: var(--ah-primary); color: #fff; font-size: .82rem; text-align: center; padding: 8px 0; letter-spacing: .01em; }
.site-header { background: color-mix(in srgb, var(--ah-surface) 94%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--ah-line); z-index: 90; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: var(--ah-shadow); }
.header-main { display: flex; align-items: center; gap: 20px; min-height: var(--ah-header-h); }
.site-branding { flex-shrink: 0; }
.site-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ah-font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ah-primary); text-decoration: none; letter-spacing: -.01em; }
.site-title:hover { color: var(--ah-primary); }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { display: block; max-height: 72px; width: auto; height: auto; }
.footer-logo { display: inline-block; margin-bottom: 16px; line-height: 0; }
.footer-logo img { display: block; max-height: 80px; width: auto; }
.header-search { flex: 1; max-width: 520px; margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-toggle, .search-toggle { display: none; }
.ah-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--ah-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.ah-cart-count.is-empty { display: none; }

.ah-search-form { position: relative; display: flex; }
.ah-search-form input[type="search"] { padding-right: 52px; border-radius: 999px; background: var(--ah-bg); border-color: transparent; }
.ah-search-form input[type="search"]:focus { background: var(--ah-surface); }
.ah-search-form button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ah-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* Navigation principale */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .container > .menu, .main-nav > .container > ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.main-nav a { display: block; padding: 12px 0; color: var(--ah-text); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.main-nav > .container > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--ah-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav li:hover > a::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.main-nav li { position: relative; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 240px; padding: 10px;
	background: var(--ah-surface); border-radius: var(--ah-radius); box-shadow: var(--ah-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 20;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 12px; border-radius: var(--ah-radius-sm); }
.main-nav .sub-menu a:hover { background: var(--ah-tint); }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }

/* Tiroir mobile */
.ah-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.ah-drawer.is-open { visibility: visible; }
.ah-drawer-backdrop { position: absolute; inset: 0; background: rgba(34, 20, 10, .45); opacity: 0; transition: opacity .3s; }
.ah-drawer.is-open .ah-drawer-backdrop { opacity: 1; }
.ah-drawer-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw);
	background: var(--ah-surface); transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto;
}
.ah-drawer.is-open .ah-drawer-panel { transform: none; }
.ah-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--ah-line); }
.ah-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.ah-drawer-nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--ah-line); color: var(--ah-text); text-decoration: none; font-weight: 500; }
.ah-drawer-nav .sub-menu a { padding-left: 36px; font-weight: 400; font-size: .95rem; }
body.ah-locked { overflow: hidden; }

/* Seitenköpfe --------------------------------------------------------- */
.ah-page-header { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.ah-page-title { margin: .2em 0 .2em; }
.ah-page-subtitle { color: var(--ah-muted); max-width: 680px; }
.ah-breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: .85rem; color: var(--ah-muted); margin: 0 0 .6em; }
.ah-breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--ah-muted); text-decoration: none; }
.ah-breadcrumb a:hover { color: var(--ah-primary); }
.ah-breadcrumb .sep { margin: 0 .5em; opacity: .5; }
.ah-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-accent); margin-bottom: .9em; }

/* Hero ------------------------------------------------------------------------ */
.ah-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ah-tint), var(--ah-bg) 60%); }
.ah-hero.has-image { background: linear-gradient(90deg, rgba(34, 20, 10, .74), rgba(34, 20, 10, .15)), var(--ah-hero-img) center / cover no-repeat; color: #fff; }
.ah-hero.has-image .ah-hero-title, .ah-hero.has-image .ah-hero-text { color: #fff; }
.ah-hero.has-image .ah-eyebrow { color: #fff; opacity: .85; }
.ah-hero.has-image .ah-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.ah-hero.has-image .ah-btn-primary { background: var(--ah-accent); border-color: var(--ah-accent); color: #fff; }
.ah-hero.has-image .ah-btn-primary:hover { background: color-mix(in srgb, var(--ah-accent) 82%, #000); }
.ah-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: clamp(440px, 62vh, 640px); padding-block: 56px; }
.ah-hero.has-image .ah-hero-inner { grid-template-columns: minmax(0, 640px); }
.ah-hero-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin-bottom: .35em; }
.ah-hero-text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ah-muted); max-width: 540px; }
.ah-hero-art { color: var(--ah-primary); }
.ah-hero-art svg { width: 100%; filter: drop-shadow(0 30px 40px rgba(40, 20, 10, .15)); }
.ah-hero-art .ah-flame { fill: var(--ah-accent); }

/* USP ------------------------------------------------------------------------ */
.ah-usp { background: var(--ah-surface); border-block: 1px solid var(--ah-line); }
.ah-usp-list { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.ah-usp-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .93rem; }
.ah-usp-list .ah-icon { color: var(--ah-primary); flex-shrink: 0; }

/* Sections ------------------------------------------------------------------- */
.ah-section { padding-block: var(--ah-section); }
.ah-section + .ah-section:not(.is-tinted) { padding-top: 0; }
.ah-section.is-tinted { background: var(--ah-tint); }
.ah-section.is-tinted + .ah-section { padding-top: var(--ah-section); }
.ah-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ah-section-head.is-centered { justify-content: center; text-align: center; }
.ah-section-title { margin: 0; }

/* Kategorien */
.ah-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ah-cat-card a { display: flex; flex-direction: column; height: 100%; background: var(--ah-surface); border-radius: var(--ah-radius); overflow: hidden; text-decoration: none; color: var(--ah-text); box-shadow: var(--ah-shadow); transition: transform .25s, box-shadow .25s; }
.ah-cat-card a:hover { transform: translateY(-4px); box-shadow: var(--ah-shadow-lg); color: var(--ah-text); }
.ah-cat-media { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.ah-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ah-cat-card a:hover .ah-cat-media img { transform: scale(1.05); }
.ah-cat-initial { font-family: var(--ah-font-serif); font-size: 3.4rem; color: #fff; opacity: .95; }
.ah-tone-0 .ah-cat-media { background: linear-gradient(140deg, #8a5a3b, #5a3520); }
.ah-tone-1 .ah-cat-media { background: linear-gradient(140deg, #c98a5a, #9b5b33); }
.ah-tone-2 .ah-cat-media { background: linear-gradient(140deg, #6e6a5e, #45413a); }
.ah-tone-3 .ah-cat-media { background: linear-gradient(140deg, #c4561f, #8a3210); }
.ah-tone-4 .ah-cat-media { background: linear-gradient(140deg, #b08d57, #7a5c30); }
.ah-tone-5 .ah-cat-media { background: linear-gradient(140deg, #5c4033, #3a2418); }
.ah-cat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.ah-cat-body small { color: var(--ah-muted); }

/* Aktionsbanner */
.ah-promo { display: grid; grid-template-columns: 1fr 1fr; border-radius: calc(var(--ah-radius) * 1.5); overflow: hidden; background: var(--ah-primary); color: #fff; }
.ah-promo-media { min-height: 360px; background: color-mix(in srgb, var(--ah-primary) 70%, #fff); display: grid; place-items: center; }
.ah-promo-media img { width: 100%; height: 100%; object-fit: cover; }
.ah-promo-placeholder { color: rgba(255, 255, 255, .7); }
.ah-promo-body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.ah-promo-body h2 { color: #fff; }
.ah-promo-body p { color: rgba(255, 255, 255, .85); }
.ah-promo-body .ah-eyebrow { color: #f2c9a9; }

/* Avis clients */
.ah-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ah-testimonial { margin: 0; background: var(--ah-surface); padding: 28px; border-radius: var(--ah-radius); box-shadow: var(--ah-shadow); display: flex; flex-direction: column; gap: 14px; }
.ah-stars { display: flex; gap: 2px; color: #d39b2a; }
.ah-stars .ah-icon { fill: currentColor; }
.ah-testimonial blockquote { margin: 0; font-family: var(--ah-font-serif); font-size: 1.1rem; line-height: 1.5; flex: 1; }
.ah-testimonial blockquote p:last-child { margin: 0; }
.ah-testimonial figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.ah-testimonial figcaption span { color: var(--ah-muted); }

/* Newsletter */
.ah-newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--ah-radius) * 1.5); background: linear-gradient(120deg, var(--ah-accent), color-mix(in srgb, var(--ah-accent) 70%, #000)); color: #fff; }
.ah-newsletter h2 { color: #fff; }
.ah-newsletter p { margin: 0; color: rgba(255, 255, 255, .88); }
.ah-newsletter-form { justify-self: end; }
.ah-admin-hint { margin-top: 12px !important; font-size: .8rem; opacity: .8; }

/* Layout mit Seitenleiste ------------------------------------------- */
.ah-layout { padding-bottom: var(--ah-section); }
.ah-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.ah-shop-layout.has-sidebar { grid-template-columns: 260px minmax(0, 1fr); }
.ah-sidebar .widget, .ah-shop-filters .widget { margin-bottom: 32px; }
.widget-title { font-family: var(--ah-font); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ah-muted); margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.widget a { color: var(--ah-text); text-decoration: none; }
.widget a:hover { color: var(--ah-primary); }

/* Blog */
.ah-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ah-post-card { background: var(--ah-surface); border-radius: var(--ah-radius); overflow: hidden; box-shadow: var(--ah-shadow); display: flex; flex-direction: column; }
.ah-post-thumb { aspect-ratio: 16 / 10; display: block; background: var(--ah-tint); overflow: hidden; }
.ah-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ah-post-card:hover .ah-post-thumb img { transform: scale(1.04); }
.ah-thumb-placeholder { height: 100%; display: grid; place-items: center; color: var(--ah-primary); opacity: .4; }
.ah-post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ah-post-body p { color: var(--ah-muted); flex: 1; }
.ah-post-title { font-size: 1.3rem; margin: .3em 0 .5em; }
.ah-post-title a { color: var(--ah-text); text-decoration: none; }
.ah-meta { font-size: .82rem; color: var(--ah-muted); }
.ah-single-thumb img { width: 100%; border-radius: var(--ah-radius); margin-bottom: 40px; }
.ah-single-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ah-line); }
.ah-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--ah-tint); font-size: .85rem; text-decoration: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-navigation a { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm); text-decoration: none; color: var(--ah-text); }
.post-navigation small { color: var(--ah-muted); }
.post-navigation .nav-next { text-align: right; }
.pagination, .woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 2px; border-radius: 999px; text-decoration: none; color: var(--ah-text); }
.nav-links .page-numbers.current { background: var(--ah-primary); color: #fff; }

/* Seiteninhalt */
.ah-page-content { background: var(--ah-surface); padding: clamp(24px, 5vw, 56px); border-radius: var(--ah-radius); box-shadow: var(--ah-shadow); margin-bottom: var(--ah-section); }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 3px solid var(--ah-accent); font-family: var(--ah-font-serif); font-size: 1.15rem; }
.entry-content .alignwide { max-width: calc(var(--ah-container) - 2 * var(--ah-gutter)); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.is-full-width > *:not(.alignfull) { max-width: var(--ah-container); margin-inline: auto; padding-inline: var(--ah-gutter); }
.ah-notice { padding: 14px 18px; background: #fff7e6; border-left: 4px solid #d39b2a; border-radius: var(--ah-radius-sm); font-size: .92rem; }
.ah-company-block { line-height: 1.8; }

/* FAQ (Details-Blöcke) */
.entry-content details { border-bottom: 1px solid var(--ah-line); padding: 16px 0; }
.entry-content summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.entry-content summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ah-primary); }
.entry-content details[open] summary::after { content: "−"; }
.entry-content details > *:not(summary) { margin-top: 12px; color: var(--ah-muted); }

/* 404 & vide */
.ah-404 { text-align: center; padding-block: var(--ah-section); }
.ah-404-code { font-family: var(--ah-font-serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ah-primary); opacity: .2; margin: 0; }
.ah-404 .ah-search-form { max-width: 460px; margin: 24px auto 0; }
.ah-empty { padding: 40px; background: var(--ah-surface); border-radius: var(--ah-radius); }

/* Commentaires */
.ah-comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--ah-line); }

/* Fußzeile ---------------------------------------------------------------- */
.site-footer { background: #1d1a19; color: rgba(255, 255, 255, .72); margin-top: var(--ah-section); font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .site-title { color: #fff; margin-bottom: 16px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-block: 48px 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .footer-logo, .footer-brand .site-title { margin-bottom: 0; }
.footer-brand .footer-about { flex: 1 1 320px; max-width: 560px; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 40px; padding-block: 40px 48px; }
.footer-subtitle { font-family: var(--ah-font); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 22px 0 8px; }
.ah-hours { list-style: none; margin: 0; padding: 0; }
.ah-hours li { padding: 2px 0; }
.ah-contact address { font-style: normal; }
.footer-title { font-family: var(--ah-font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { padding: 5px 0; }
.ah-contact li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.ah-contact .ah-icon { flex-shrink: 0; margin-top: 3px; opacity: .7; }
.ah-social { display: flex; gap: 8px; margin-top: 16px; }
.ah-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.ah-social a:hover { background: rgba(255, 255, 255, .1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: .85rem; }
.footer-bottom .copyright { margin: 0; }
.legal-nav .menu { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ah-payments { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-payments li { padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .75rem; font-weight: 600; color: #fff; }

.ah-to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--ah-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--ah-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 80; }
.ah-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ah-to-top:hover { color: #fff; background: var(--ah-primary-dark); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.ah-cat-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 900px) {
	:root { --ah-header-h: 64px; }
	.menu-toggle, .search-toggle { display: inline-flex; }
	.main-nav { display: none; }
	.header-main { gap: 4px; }
	.site-branding { margin-right: auto; }
	.site-title { font-size: 1.25rem; }
	.custom-logo { max-height: 48px; }
	.header-search { display: none; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 12px var(--ah-gutter); background: var(--ah-surface); border-bottom: 1px solid var(--ah-line); box-shadow: var(--ah-shadow); }
	.header-search.is-open { display: block; }
	.site-header { position: relative; }
	.has-sticky-header .site-header { position: sticky; }
	.ah-hero-inner { grid-template-columns: 1fr; text-align: left; min-height: 0; padding-block: 48px; }
	.ah-hero-art { max-width: 380px; }
	.ah-usp-list { grid-template-columns: repeat(2, 1fr); }
	.ah-promo, .ah-newsletter { grid-template-columns: 1fr; }
	.ah-promo-media { min-height: 220px; }
	.ah-newsletter-form { justify-self: start; }
	.ah-testimonials { grid-template-columns: 1fr; }
	.ah-layout.has-sidebar, .ah-shop-layout.has-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 15px; }
	.ah-cat-grid { grid-template-columns: 1fr; gap: 12px; }
	.ah-usp-list { grid-template-columns: 1fr; gap: 10px; padding-block: 16px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 32px; }
	.footer-grid .footer-col:first-child, .footer-grid .footer-contact { grid-column: 1 / -1; }
	.footer-brand { padding-block: 36px 24px; }
	.footer-bottom-inner { flex-direction: column; align-items: flex-start; }
	.ah-btn-row .ah-btn { flex: 1 1 100%; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.ah-topbar { font-size: .75rem; }
}

/* Widerrufsformular (Widerrufsbutton) ------------------------ */
.ah-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ah-withdrawal-form { max-width: 560px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-withdrawal-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ah-withdrawal-form input[type="text"], .ah-withdrawal-form input[type="email"], .ah-withdrawal-form textarea { width: 100%; }
.ah-withdrawal-done { max-width: 560px; }

/* Mobil: Das Hero-Bild wird auf den linken Bildbereich (Textbereich) ausgerichtet. */
@media (max-width: 900px) {
	.ah-hero.has-image { background-position: left center; }
}

/* Kontaktseite ([ah_kontakt] des Plugins) --------------------------------- */
.ah-kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 48px); margin-top: 8px; align-items: start; }
.ah-kontakt h2 { margin: 0 0 18px; font-size: 1.45rem; }
.ah-kontakt-info { display: grid; gap: 14px; }
.ah-kontakt-card { display: flex; gap: 16px; padding: 18px 20px; background: var(--ah-tint); border-radius: var(--ah-radius); }
.ah-kontakt-card h3 { margin: 0 0 4px; font-family: var(--ah-font); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-muted); }
.ah-kontakt-card p { margin: 4px 0 0; font-size: .88rem; color: var(--ah-muted); }
.ah-kontakt-card address { font-style: normal; line-height: 1.55; margin-bottom: 6px; }
.ah-kontakt-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ah-surface); color: var(--ah-accent); box-shadow: var(--ah-shadow); }
.ah-kontakt-big { font-size: 1.15rem; font-weight: 700; color: var(--ah-text); text-decoration: none; word-break: break-word; }
.ah-kontakt-big:hover { color: var(--ah-accent); }
.ah-kontakt-hours { list-style: none; margin: 0; padding: 0; min-width: 220px; }
.ah-kontakt-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed var(--ah-line); }
.ah-kontakt-hours li:last-child { border-bottom: 0; }
.ah-kontakt-form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--ah-line); border-radius: var(--ah-radius); background: var(--ah-surface); }
.ah-kontakt-lead { color: var(--ah-muted); margin-top: -6px; }
.ah-kontakt-privacy { margin: 14px 0 0; font-size: .8rem; color: var(--ah-muted); }
.ah-kontakt-slot { padding: 20px; border: 2px dashed color-mix(in srgb, var(--ah-accent) 45%, transparent); border-radius: var(--ah-radius-sm); background: color-mix(in srgb, var(--ah-accent) 5%, #fff); }
.ah-kontakt-slot p { margin: 8px 0 14px; font-size: .9rem; }
.ah-kontakt-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
.ah-kontakt-link { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm); text-decoration: none; color: var(--ah-text); transition: border-color .2s, transform .2s; }
.ah-kontakt-link span { font-size: .85rem; color: var(--ah-muted); }
.ah-kontakt-link:hover { border-color: var(--ah-accent); transform: translateY(-2px); color: var(--ah-text); }

/* Contact Form 7 (Kontakt und Newsletter) ---------------------------------- */
.wpcf7 form { margin: 0; }
.ah-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ah-field { margin: 0 0 14px; }
.ah-field label, .ah-field > .ah-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea { width: 100%; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.wpcf7 .wpcf7-acceptance input { margin-top: 4px; flex-shrink: 0; }
.wpcf7 input[type="submit"] { min-width: 200px; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .82rem; margin-top: 4px; color: #b3261e; }
.wpcf7 .wpcf7-not-valid { border-color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--ah-radius-sm); font-size: .9rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2f7a4f; background: #edf7f0; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #b3261e; background: #fdf0ef; }
.ah-field-required { color: var(--ah-accent); }
.ah-form-hint { font-size: .8rem; color: var(--ah-muted); margin: -6px 0 14px; }
/* Newsletter-Formular in der farbigen Startseiten-Sektion */
.ah-newsletter .wpcf7 { color: #fff; }
.ah-newsletter .ah-nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ah-newsletter .ah-nl-row .wpcf7-form-control-wrap { flex: 1 1 220px; }
.ah-newsletter .wpcf7 input[type="email"] { border-color: transparent; }
.ah-newsletter .wpcf7 input[type="submit"] { background: #fff; color: var(--ah-text); min-width: 0; }
.ah-newsletter .wpcf7 .wpcf7-acceptance label { color: rgba(255, 255, 255, .9); margin-top: 12px; }
.ah-newsletter .wpcf7 .wpcf7-acceptance a { color: #fff; }
.ah-newsletter .wpcf7 form .wpcf7-response-output { color: var(--ah-text); }

@media (max-width: 900px) {
	.ah-kontakt { grid-template-columns: 1fr; }
	.ah-kontakt-links { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ah-form-row { grid-template-columns: 1fr; }
	.wpcf7 input[type="submit"] { width: 100%; }
	.ah-kontakt-card { padding: 16px; }
}

/* Diagnose der Startseite (nur Administratoren) ---------------------------- */
.ah-admin-check { padding-block: 24px 0; }
.ah-admin-check-box { padding: 18px 22px; border: 2px dashed color-mix(in srgb, var(--ah-accent) 50%, transparent); border-radius: var(--ah-radius); background: #fffaf0; font-size: .92rem; }
.ah-admin-check-box ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ah-admin-check-box li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; border-top: 1px solid var(--ah-line); }
.ah-admin-check-box li span { flex: 1 1 420px; }
.ah-admin-check-box .button { padding: .45em 1em; font-size: .85rem; }
