/*
Theme Name: Stilla Bestattungen
Theme URI: https://stilla-bestattungen.de/
Author: Stilla UG (haftungsbeschränkt)
Description: Maßgeschneidertes WordPress-Theme für Stilla Bestattungen mit redaktionellem Aktuelles-Bereich und lokaler SEO-Grundstruktur.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: stilla
*/

:root {
  --aubergine: #513b43; --aubergine-deep: #3d2930; --sage: #8f9481;
  --rose: #c89a9d; --bronze: #a77c59; --ivory: #fbf8f3; --paper: #fffdf9;
  --ink: #352f31; --muted: #71696b; --line: #e2d5ca;
  --shadow: 0 22px 60px rgba(61, 41, 48, .09);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.7 var(--sans); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--aubergine); color: white; }
.skip-link:focus { top: 14px; }
.site-header { min-height: 94px; padding: 8px clamp(24px, 5vw, 76px); display: flex; align-items: center; gap: 32px; background: rgba(251, 248, 243, .95); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(167, 124, 89, .18); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 9px 30px rgba(61, 41, 48, .07); }
.brand { display: flex; width: 82px; height: 82px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.brand img, .footer-brand img, .custom-logo { width: 100%; height: 100%; object-fit: cover; }
.custom-logo-link { display: flex; width: 82px; height: 82px; border-radius: 50%; overflow: hidden; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); margin-left: auto; }
.site-header nav ul { list-style: none; display: flex; align-items: center; gap: inherit; margin: 0; padding: 0; }
.site-header nav a { position: relative; color: var(--aubergine); text-decoration: none; font-size: 15px; letter-spacing: .01em; }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--bronze); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.header-cta { padding: 10px 20px; border: 1px solid var(--aubergine); color: var(--aubergine); text-decoration: none; font-size: 14px; transition: .2s ease; }
.header-cta:hover, .header-cta:focus-visible { color: white; background: var(--aubergine); }
.menu { display: none; }
.hero { min-height: min(780px, calc(100vh - 94px)); position: relative; display: flex; align-items: center; background: url('assets/web-bg-desktop.webp') center / cover no-repeat; padding: clamp(70px, 9vw, 130px) clamp(24px, 8vw, 140px); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(251,248,243,.65)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(650px, 52vw); margin-left: 38%; padding: clamp(30px, 4vw, 54px); background: rgba(255, 253, 249, .84); backdrop-filter: blur(8px); border-left: 3px solid var(--bronze); box-shadow: var(--shadow); }
.hero-copy::before { content: ''; position: absolute; width: 52px; height: 1px; left: -28px; top: 60px; background: var(--bronze); }
.region-note { position: absolute; z-index: 2; left: clamp(24px, 8vw, 140px); bottom: 25px; margin: 0; color: var(--aubergine); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin: 0 0 17px; color: var(--bronze); font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow-light { color: #d8b998; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); color: var(--aubergine); font-weight: 400; line-height: 1.12; }
h1 { max-width: 680px; margin-bottom: 25px; font-size: clamp(43px, 5.3vw, 74px); letter-spacing: -.035em; }
h2 { margin-bottom: 26px; font-size: clamp(36px, 4.3vw, 59px); letter-spacing: -.025em; }
h3 { margin-bottom: 12px; font-size: 26px; }
p { margin-top: 0; }
.lead { max-width: 560px; color: #51484b; font-size: clamp(18px, 1.5vw, 21px); }
.large-copy { color: var(--aubergine); font: 26px/1.45 var(--serif); }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; padding: 13px 22px; text-decoration: none; }
.button-primary { background: var(--aubergine); color: white; border: 1px solid var(--aubergine); transition: .2s ease; }
.button-primary:hover, .button-primary:focus-visible { background: var(--aubergine-deep); transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--aubergine); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(81,59,67,.35); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(5px); }
.section { padding: clamp(80px, 10vw, 140px) clamp(24px, 10vw, 170px); }
.promise { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.2fr); gap: clamp(50px, 10vw, 150px); }
.promise-copy { max-width: 690px; }
.promise-copy blockquote { position: relative; margin: 45px 0 0; padding: 28px 0 0 38px; color: var(--aubergine); font: italic 24px/1.5 var(--serif); border-top: 1px solid var(--line); }
.promise-copy blockquote::before { content: '“'; position: absolute; left: 0; top: 14px; color: var(--rose); font: 56px/1 var(--serif); }
.first-steps { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.3fr); gap: clamp(60px, 9vw, 140px); padding: clamp(85px, 9vw, 130px) clamp(24px, 10vw, 170px); color: rgba(255,255,255,.78); background: var(--aubergine); }
.first-steps h2, .first-steps h3 { color: white; }
.steps-intro p:last-child { max-width: 420px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.steps-list li:first-child { padding-top: 0; }
.steps-list li > span { color: #d8b998; font-size: 12px; letter-spacing: .18em; }
.steps-list h3 { margin-bottom: 8px; font-size: 25px; }
.steps-list p { margin: 0; }
.services { display: grid; grid-template-columns: .9fr 1.5fr; gap: clamp(50px, 8vw, 120px); }
.services-head { position: sticky; top: 135px; align-self: start; }
.services-head > p:last-child { max-width: 430px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-card { min-height: 285px; padding: 34px; background: var(--paper); border-top: 3px solid var(--rose); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:nth-child(2), .service-card:nth-child(3) { border-color: var(--sage); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 28px 70px rgba(61, 41, 48, .13); }
.service-number { display: block; margin-bottom: 28px; color: var(--bronze); font-size: 12px; letter-spacing: .18em; }
.service-card p { margin-bottom: 0; color: var(--muted); }
.farewell { min-height: 680px; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.farewell-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vw, 140px) clamp(24px, 8vw, 120px); }
.farewell-copy > p:not(.eyebrow) { max-width: 640px; }
.farewell-image { min-height: 620px; background: url('assets/web-bg-content.webp') center / cover no-repeat; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 15px 0 15px 27px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ''; position: absolute; left: 3px; top: 25px; width: 10px; height: 6px; border-left: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); transform: rotate(-45deg); }
.vorsorge { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(55px, 10vw, 150px); align-items: center; background: #f2ebe5; }
.vorsorge-mark { justify-self: center; width: clamp(220px, 28vw, 380px); aspect-ratio: 1; display: grid; place-items: center; color: var(--aubergine); border: 1px solid rgba(167,124,89,.6); border-radius: 50%; font: italic clamp(110px, 16vw, 220px)/1 var(--serif); opacity: .68; }
.vorsorge-copy { max-width: 720px; }
.news { background: var(--ivory); }
.news-head { max-width: 790px; margin-bottom: 46px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow); border-top: 3px solid var(--sage); }
.post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee6df; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-copy { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.post-meta { color: var(--bronze); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.post-card h3 { font-size: 28px; }
.post-card h3 a { text-decoration: none; }
.post-card .text-link { margin-top: auto; align-self: flex-start; }
.news-empty { max-width: 700px; padding: 32px; background: var(--paper); border-left: 3px solid var(--rose); }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 140px); align-items: center; padding: clamp(85px, 10vw, 140px) clamp(24px, 10vw, 170px); color: rgba(255,255,255,.82); background: var(--aubergine-deep); }
.contact h2, .contact h3 { color: white; }
.contact-copy p:last-child { max-width: 600px; }
.contact-panel { padding: clamp(30px, 4vw, 48px); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); }
.contact-panel a { color: white; }
.status-label { display: flex; align-items: center; gap: 9px; color: #d8b998; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.status-label span { width: 8px; height: 8px; border-radius: 50%; background: #d8b998; box-shadow: 0 0 0 5px rgba(216,185,152,.12); }
.contact-divider { height: 1px; margin: 28px 0; background: rgba(255,255,255,.18); }
.contact-note { margin-bottom: 0; font-size: 14px; color: rgba(255,255,255,.62); }
footer { min-height: 170px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px clamp(24px, 8vw, 140px); background: var(--paper); border-top: 1px solid var(--line); }
.footer-brand { width: 100px; height: 100px; display: block; overflow: hidden; border-radius: 50%; }
.footer-copy, .footer-legal { display: flex; flex-direction: column; gap: 3px; }
.footer-copy strong { color: var(--aubergine); font: 24px var(--serif); }
.footer-copy span, .footer-legal { color: var(--muted); font-size: 13px; }
.footer-legal { text-align: right; }
.content-shell { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: clamp(70px, 9vw, 120px) 0; }
.content-shell.wide { width: min(1240px, calc(100% - 48px)); }
.page-hero { padding: 70px 24px; text-align: center; background: #f2ebe5; }
.page-hero h1 { margin-left: auto; margin-right: auto; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.2em; font-size: clamp(32px, 4vw, 48px); }
.entry-content a { color: var(--aubergine); text-decoration-color: var(--bronze); }
.entry-featured { margin: 0 auto 45px; }
.entry-featured img { width: 100%; max-height: 620px; object-fit: cover; }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--aubergine); color: white; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 1050px) {
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 14px; }
  .hero-copy { margin-left: 26%; width: min(680px, 68vw); }
  .services { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .services-head > p:last-child { max-width: 620px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 76px; padding: 6px 18px; }
  .brand, .custom-logo-link { width: 64px; height: 64px; }
  .header-cta { display: none; }
  .menu { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--aubergine); background: transparent; border: 0; font: 14px var(--sans); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 1px; background: currentColor; transition: .2s ease; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .site-header nav { position: fixed; inset: 76px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 38px 25px; background: var(--ivory); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .25s ease; }
  .site-header nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .site-header nav ul { width: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
  .site-header nav li { width: 100%; }
  .site-header nav a { display: block; width: 100%; padding: 17px 0; font: 27px var(--serif); border-bottom: 1px solid var(--line); }
  .site-header nav a::after { display: none; }
  .hero { min-height: 720px; align-items: flex-end; padding: 80px 18px 65px; background-image: url('assets/web-bg-mobile.webp'); }
  .hero-copy { width: 100%; margin: 0; padding: 30px 24px; }
  .hero-copy::before { display: none; }
  .region-note { left: 20px; bottom: 20px; font-size: 10px; }
  .promise, .first-steps, .farewell, .vorsorge, .contact { grid-template-columns: 1fr; }
  .promise, .first-steps, .vorsorge, .contact { padding: 78px 24px; gap: 42px; }
  .service-grid, .post-grid { grid-template-columns: 1fr; }
  .farewell-copy { order: 2; padding: 75px 24px; }
  .farewell-image { order: 1; min-height: 420px; }
  .vorsorge-mark { width: 240px; }
  footer { grid-template-columns: auto 1fr; padding: 25px 24px; }
  .footer-brand { width: 80px; height: 80px; }
  .footer-legal { grid-column: 1 / -1; text-align: left; padding-top: 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  body { font-size: 16px; } h1 { font-size: 42px; } h2 { font-size: 38px; }
  .hero { min-height: 690px; } .hero-copy { padding: 26px 20px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .first-steps { padding-left: 20px; padding-right: 20px; }
  .steps-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 28px; }
  .farewell-image { min-height: 330px; }
  .large-copy { font-size: 23px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin: auto; }
  .footer-legal { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
