/*
Theme Name: Naturstein Reinhardt
Description: Eigenes Theme für Naturstein Reinhardt (Naturstein Rastatt), nach Entwurf 03 „Familienbetrieb mit Weltklasse-Kunden". Warm, fotografisch, Startseite als Onepager, Unterseiten (z. B. Impressum) in derselben Gestaltung. Schriften und Skripte liegen lokal im Theme, ohne Anfragen an Google oder CDNs.
Author: Atlas
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naturstein-reinhardt
*/

@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url('assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
	--bg: #f8f2e8; --panel: #fffaf1; --ink: #2b2318; --ink-dim: #6c6050; --line: #e5dac7;
	--accent: #b2543a; --accent-ink: #fff8ef;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 6vw; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 0.5rem; left: 0.5rem; width: auto; height: auto; clip: auto; z-index: 100; background: var(--panel); padding: 0.6rem 1rem; border-radius: 0.4rem; }

.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 6vw; background: rgba(248, 242, 232, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { height: 56px; width: auto; }
.brand small { font-size: 0.68rem; color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; line-height: 1.4; max-width: 20ch; }
@media (max-width: 600px) { .brand img { height: 42px; } .brand small { display: none; } }
.call-chip { background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1.2rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }

.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43, 35, 24, 0.82) 0%, rgba(43, 35, 24, 0.45) 55%, rgba(43, 35, 24, 0.15) 100%), url('assets/img/werkstatt-4.jpg') center / cover; }
.hero-bg { background-image: linear-gradient(100deg, rgba(43, 35, 24, 0.82) 0%, rgba(43, 35, 24, 0.45) 55%, rgba(43, 35, 24, 0.15) 100%), image-set(url('assets/img/werkstatt-4.webp') type('image/webp'), url('assets/img/werkstatt-4.jpg') type('image/jpeg')); }
/* Handy: mittlerer Ausschnitt 840 x 1071 px, genau der Teil, den "cover" dort ohnehin zeigt */
@media (max-width: 600px) {
	.hero-bg { background-image: linear-gradient(100deg, rgba(43, 35, 24, 0.82) 0%, rgba(43, 35, 24, 0.45) 55%, rgba(43, 35, 24, 0.15) 100%), url('assets/img/werkstatt-4-mobil.jpg'); }
	.hero-bg { background-image: linear-gradient(100deg, rgba(43, 35, 24, 0.82) 0%, rgba(43, 35, 24, 0.45) 55%, rgba(43, 35, 24, 0.15) 100%), image-set(url('assets/img/werkstatt-4-mobil.webp') type('image/webp'), url('assets/img/werkstatt-4-mobil.jpg') type('image/jpeg')); }
}
.hero-inner { position: relative; color: #fdf8f0; padding-top: 7rem; padding-bottom: 7rem; }
.hero-inner .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: #e9c9ab; margin-bottom: 1.2rem; display: block; }
.hero-inner h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; max-width: 16ch; }
.hero-inner p { max-width: 40ch; margin-top: 1.3rem; color: #e7ddce; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.9rem 1.7rem; border-radius: 999px; font-weight: 600; }
.btn-outline { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; padding: 0.9rem 1.7rem; border-radius: 999px; font-weight: 500; }

.front section { padding: 6rem 0; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; display: block; margin-bottom: 0.8rem; }
.section-head { max-width: 50ch; margin-bottom: 2.8rem; }
.section-head.center { margin: 0 auto 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--ink-dim); margin-top: 0.8rem; line-height: 1.6; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story img { border-radius: 0.8rem; }
.story p { line-height: 1.7; color: var(--ink-dim); margin-top: 1rem; }

.slider { position: relative; border-radius: 0.8rem; overflow: hidden; aspect-ratio: 16 / 9; max-width: 820px; margin: 0 auto; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider .after { clip-path: inset(0 0 0 50%); }
.slider .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; pointer-events: none; }
.slider .handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.slider .tag { position: absolute; bottom: 1rem; padding: 0.4rem 0.9rem; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.78rem; border-radius: 999px; pointer-events: none; }
.slider .tag.left { left: 1rem; }
.slider .tag.right { right: 1rem; }
.slider .slider-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--panel); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1.8rem; }
.service h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.service p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; }

.gallery { margin-top: 4rem; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.gallery-head h3 { font-size: 1.6rem; }
.gallery-nav { display: flex; gap: 0.6rem; }
.gallery-nav button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.gallery-nav button:hover { border-color: var(--accent); color: var(--accent); }
.gallery-track { list-style: none; display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.6rem; scrollbar-width: thin; }
.gallery-track li { flex: 0 0 auto; width: min(78vw, 420px); scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.8rem; }
.gallery-track figcaption, .quarry figcaption { font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.5rem; }

.quarry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .quarry { grid-template-columns: repeat(2, 1fr); } }
.quarry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.8rem; }

.testi { border: 1px solid var(--line); background: var(--panel); border-radius: 0.8rem; padding: 2.4rem; text-align: center; color: var(--ink-dim); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.testi p + p { margin-top: 1rem; }

.trust { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; opacity: 0.85; }
.trust img { height: 32px; width: auto; filter: grayscale(1); }

.final-cta { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 3.6rem 2.5rem; text-align: center; }
.final-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 24ch; margin: 0 auto 1.2rem; }
.final-cta .address { color: var(--ink-dim); margin-bottom: 1.4rem; }
.final-cta .address a { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0.6rem auto 0; }
@media (max-width: 700px) { .contact-ways { grid-template-columns: 1fr; } }
.contact-ways .big { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.contact-form { max-width: 560px; margin: 2.4rem auto 0; text-align: left; }
.contact-form input:not([type=submit]):not([type=checkbox]), .contact-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; font: inherit; color: var(--ink); margin-top: 0.3rem; }
.contact-form input[type=submit] { background: var(--accent); color: var(--accent-ink); border: 0; padding: 0.9rem 1.7rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.contact-form p { margin-bottom: 1rem; }

.site-footer { padding: 3rem 0 6rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-dim); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer .area { margin-top: 0.6rem; font-size: 0.76rem; }
.site-footer ul { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { text-decoration: underline; text-underline-offset: 0.2em; }

.floating-call { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 60; background: var(--accent); color: var(--accent-ink); padding: 0.9rem 1.3rem; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 24px rgba(178, 84, 58, 0.35); font-size: 0.9rem; }

/* Unterseiten (Impressum, Beiträge) */
.content-area { padding: 0 0 5rem; }
.content-area > .wrap:first-child { padding-top: 4.5rem; }
.entry { max-width: 760px; margin: 0 auto; }
.entry + .entry { margin-top: 4rem; }
.entry-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: 2rem; }
.entry-content { line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 2.4rem; }
.entry-content h3, .entry-content h4 { font-size: 1.35rem; margin-top: 2rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content img { border-radius: 0.6rem; }
.pagination { max-width: 760px; margin: 3rem auto 0; display: flex; gap: 1rem; }

/* Hauptmenü */
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; align-items: center; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink); padding: 0.3rem 0; border-bottom: 1.5px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a { border-color: var(--accent); }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 15rem; background: var(--panel); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; box-shadow: 0 12px 30px rgba(43, 35, 24, 0.12); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.site-header { gap: 1.5rem; }
.site-header .main-nav { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 0.5rem; width: 2.6rem; height: 2.6rem; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 0.65rem; right: 0.65rem; height: 2px; background: var(--ink); content: ''; transition: transform 0.2s; }
.nav-toggle .bars { top: 50%; }
.nav-toggle .bars::before { top: -6px; left: 0; right: 0; }
.nav-toggle .bars::after { top: 6px; left: 0; right: 0; }
@media (max-width: 1020px) {
	.nav-toggle { display: block; margin-left: auto; }
	.site-header .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 1rem 6vw 1.4rem; margin: 0; }
	body.nav-open .site-header .main-nav { display: block; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0.3rem 0 0 1rem; min-width: 0; background: none; }
	.main-nav a { font-size: 1rem; }
}
@media (max-width: 600px) { .site-header .call-chip { padding: 0.5rem 0.8rem; font-size: 0.8rem; } }

/* Unterseiten */
.page-head { padding: 3.2rem 0 2.4rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; max-width: 22ch; }
.page-head .lead { color: var(--ink-dim); margin-top: 1rem; max-width: 62ch; line-height: 1.6; font-size: 1.05rem; }
.page-head .meta { color: var(--ink-dim); margin-top: 0.9rem; font-size: 0.88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 1.2rem; }
.crumbs li + li::before { content: '›'; margin-right: 0.4rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 0.2em; }
.content-area .page-head + .wrap { padding-top: 3rem; }
.entry-image { margin: 0 0 2rem; }
.entry-image img { border-radius: 0.8rem; width: 100%; max-height: 460px; object-fit: cover; }
.entry-content details { border: 1px solid var(--line); border-radius: 0.6rem; background: var(--panel); padding: 0.9rem 1.2rem; }
.entry-content details + details { margin-top: 0.8rem; }
.entry-content summary { cursor: pointer; font-weight: 600; }
.entry-content details[open] summary { margin-bottom: 0.6rem; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; overflow-wrap: normal; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content td:first-child, .entry-content th:first-child { white-space: nowrap; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.4rem; text-align: left; vertical-align: top; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--ink-dim); }
.entry-children { max-width: 1140px; margin: 3.5rem auto 0; }
.more-title { font-size: 1.8rem; margin-bottom: 1.4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.4rem 1.5rem; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.card-text { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; }
.card-more { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: auto; padding-top: 0.4rem; }
.service-link { display: flex; flex-direction: column; transition: border-color 0.2s; }
.service-link:hover { border-color: var(--accent); }
.service-link .card-more { margin-top: 0.8rem; }
.section-more { margin-top: 2rem; }
.section-more a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

.cta-box { max-width: 760px; margin: 4rem auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 2.4rem 2rem; text-align: center; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-box p { color: var(--ink-dim); margin: 0.7rem 0 1.4rem; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost { display: inline-block; border: 1px solid var(--line); color: var(--ink); padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 500; overflow-wrap: anywhere; }
.btn-ghost:hover { border-color: var(--accent); }
