/* =========================================================
   Grabblume – Theme Stylesheet
   Der Blumenstand am Waldfriedhof
   ========================================================= */

:root {
    --green-900: #1f3b27;
    --green-800: #284b32;
    --green-700: #355f41;
    --green-600: #4a7a57;
    --green-300: #9bbfa3;
    --sage-100: #eef3ec;
    --cream: #f6f3ec;
    --cream-dark: #ece6d8;
    --gold: #b08d57;
    --gold-dark: #8f6f3e;
    --ink: #25302a;
    --ink-soft: #4c5a51;
    --white: #ffffff;
    --line: #ddd8cb;
    --shadow-sm: 0 2px 10px rgba(31, 59, 39, .06);
    --shadow-md: 0 14px 40px rgba(31, 59, 39, .12);
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --space: clamp(3.5rem, 7vw, 6.5rem);
    --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--green-900); margin: 0 0 .5em; letter-spacing: .2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.container--narrow { max-width: 760px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; }
.skip-link:focus {
    left: 1rem; top: 1rem; width: auto; height: auto; background: var(--green-900);
    color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: all .2s ease; line-height: 1; text-align: center;
}
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246, 243, 236, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; gap: 1.2rem;
    min-height: 78px; padding-top: .5rem; padding-bottom: .5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--green-900); margin-right: auto; }
.brand:hover { color: var(--green-900); }
.brand__mark { color: var(--gold); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; color: var(--green-900); }
.brand__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.custom-logo { max-height: 56px; width: auto; }

.nav { display: flex; }
.nav__list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: inline-block; padding: .55rem .85rem; border-radius: 8px;
    font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav__link:hover, .nav__link--active { color: var(--green-800); background: var(--sage-100); }

.header-cta {
    display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    font-weight: 700; color: var(--green-800); padding: .5rem .9rem; border-radius: 999px;
    border: 1.5px solid var(--green-300); background: #fff;
}
.header-cta:hover { color: #fff; background: var(--green-700); border-color: var(--green-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .55rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 1.6rem; }
.mobile-nav .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
.mobile-nav .nav__link { padding: .8rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.mobile-nav .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--green-900);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--hero-image, none);
    background-size: cover; background-position: center; transform: scale(1.02);
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(20,38,25,.92) 0%, rgba(31,59,39,.78) 45%, rgba(31,59,39,.45) 100%);
}
.hero__inner { position: relative; padding: clamp(4.5rem, 11vw, 8.5rem) 0; max-width: 760px; }
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700;
    color: var(--green-300); margin: 0 0 1.1rem;
}
.hero__title { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 0 0 1.2rem; }
.hero__title span { color: var(--green-300); font-style: italic; }
.hero__lead { font-size: 1.18rem; line-height: 1.65; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- USPs ---------- */
.usps { background: var(--green-800); }
.usps__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: rgba(255,255,255,.12); border-radius: 0;
}
.usp { background: var(--green-800); color: #fff; padding: 1.6rem 1.2rem; text-align: center; }
.usp strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.usp span { font-size: .9rem; color: var(--green-300); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section--alt { background: var(--sage-100); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.section__eyebrow {
    text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 700;
    color: var(--gold-dark); margin: 0 0 .8rem;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
.section__intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.1rem;
    background: var(--sage-100); color: var(--green-700);
}
.card__title { font-size: 1.4rem; margin: 0 0 .5rem; }
.card__text { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Tasklist ---------- */
.tasklist {
    margin-top: clamp(2.4rem, 5vw, 3.4rem);
    background: var(--green-900); color: #fff;
    border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem);
}
.tasklist__title { color: #fff; text-align: center; font-size: 1.7rem; margin: 0 0 1.6rem; }
.tasklist__items {
    list-style: none; margin: 0 auto; padding: 0; max-width: 880px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 2rem;
}
.tasklist__items li { position: relative; padding-left: 1.7rem; color: rgba(255,255,255,.92); }
.tasklist__items li::before {
    content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
    border-radius: 50%; background: var(--gold);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    background: #fff; width: 100%; object-fit: cover;
}
.about__body p { color: var(--ink-soft); font-size: 1.08rem; }
.about__sign { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--green-800); margin-top: 1.4rem; }

/* ---------- Contact CTA ---------- */
.contact-cta { background: var(--green-700); color: #fff; padding: var(--space) 0; }
.contact-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-cta__text h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-cta__text p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 460px; }
.contact-cta__card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.contact-cta__card ul { list-style: none; margin: 0; padding: 0; }
.contact-cta__card li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-cta__card li:last-child { border-bottom: 0; }
.contact-cta__label { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .15rem; }
.contact-cta__card a, .contact-cta__card span:not(.contact-cta__label) { color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.contact-cta__card a:hover { color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.82); }
.site-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.6rem;
}
.site-footer__brand { color: #fff; font-size: 1.6rem; margin: 0 0 .5rem; }
.site-footer__sub { color: var(--green-300); margin: 0; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; margin: 0 0 .9rem; }
.site-footer__address { font-style: normal; line-height: 1.8; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer__contact span { display: inline-block; width: 42px; color: var(--green-300); font-size: .85rem; }
.site-footer__contact a { color: #fff; }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.3rem 0; font-size: .88rem; }
.site-footer__bar-inner p { margin: 0; color: rgba(255,255,255,.6); }
.footer__menu { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer__menu a { color: rgba(255,255,255,.75); font-size: .88rem; }
.footer__menu a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--green-700); color: #fff; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-800); color: #fff; }

/* ---------- Page / Rich text ---------- */
.page__head { text-align: center; margin-bottom: 2.4rem; }
.page__title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.rich-text { font-size: 1.05rem; color: var(--ink); }
.rich-text h2 { font-size: 1.7rem; margin: 1.8rem 0 .7rem; }
.rich-text h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.rich-text p, .rich-text ul, .rich-text ol { margin: 0 0 1.1rem; }
.rich-text a { text-decoration: underline; }
.rich-text ul, .rich-text ol { padding-left: 1.3rem; }

.post-list__item { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.post-list__title { font-size: 1.6rem; margin: 0 0 .3rem; }
.post-list__meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .usps__grid { grid-template-columns: repeat(2, 1fr); }
    .tasklist__items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .about, .contact-cta__inner, .site-footer__grid { grid-template-columns: 1fr; }
    .about__media { order: 2; max-width: 460px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .cards, .usps__grid, .tasklist__items { grid-template-columns: 1fr; }
    .brand__name { font-size: 1.12rem; }
    .hero__actions .btn { flex: 1 1 auto; }
}

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