/*
Theme Name: Höfl Family
Theme URI: https://hoefl.net
Author: Familie Höfl
Description: Ruhiges, naturverbundenes WordPress-Theme für hoefl.net – Familie Höfl, Königsfeld im Siegelbezirk Wolnzach, Hallertau und PVMT-Tagesproduktion.
Version: 0.11.10
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: hoefl-family
*/

:root {
  --hoefl-ink: #182018;
  --hoefl-green: #283420;
  --hoefl-green-2: #465b2f;
  --hoefl-hop: #768d4b;
  --hoefl-cream: #f5f2e8;
  --hoefl-paper: #fbfaf6;
  --hoefl-sand: #d8c8a9;
  --hoefl-gold: #d0ad68;
  --hoefl-line: rgba(29, 42, 24, .13);
  --hoefl-shadow: 0 24px 70px rgba(23, 31, 20, .10);
  --hoefl-radius: 22px;
  --hoefl-max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hoefl-ink);
  background: var(--hoefl-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(208,173,104,.75); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.site-shell { min-height: 100vh; overflow-x: clip; }
.container { width: min(calc(100% - 40px), var(--hoefl-max)); margin-inline: auto; }
.section { padding: 92px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--hoefl-green-2); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.section-title { margin: 10px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.7vw, 3.7rem); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.section-copy { max-width: 720px; margin: 0; color: #5f665b; font-size: 1.03rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #f8f4e9; background: rgba(20, 27, 18, .94); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 10px 34px rgba(0,0,0,.12); backdrop-filter: blur(16px); transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(17, 24, 16, .98); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: 245px minmax(0,1fr) 255px; align-items: center; gap: 34px; }
.site-brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.site-brand__word { display: block; margin: 0; padding: 0; font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif; font-style: normal; font-weight: 400; font-size: 2.02rem; line-height: 1.08; letter-spacing: -.055em; white-space: nowrap; }
.site-brand__sub { display: block; margin: 6px 0 0; padding: 0; color: #c9d09e; font-size: .63rem; letter-spacing: .04em; white-space: nowrap; }
.primary-nav { display: flex; justify-content: center; min-width: 0; font-size: .86rem; }
.primary-nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 26px); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.primary-nav > a { margin: 0 clamp(7px, 1vw, 15px); }
.primary-nav a { position: relative; opacity: .88; }
.primary-nav li { margin: 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: #e7d7ac; transition: right .2s ease; }
.primary-nav a:hover::after { right: 0; }
.header-place { display: flex; align-items: center; gap: 10px; font-size: .72rem; line-height: 1.25; white-space: nowrap; }
.header-place svg { width: 20px; height: 20px; color: #d6c898; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.07); color: white; cursor: pointer; }
.menu-toggle svg { width: 19px; }
.mobile-panel { display: none; }

/* Hero */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; color: white; background: #1b281a; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,18,.88) 0%, rgba(20,27,18,.56) 47%, rgba(20,27,18,.16) 72%, rgba(20,27,18,.36) 100%), url("assets/hero-hallertau.svg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(180deg, transparent, rgba(19,26,17,.22)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); gap: clamp(54px, 5vw, 92px); align-items: center; padding-top: 142px; padding-bottom: 76px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.21); border-radius: 999px; background: rgba(22,32,18,.34); backdrop-filter: blur(8px); color: #e9e2ca; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 99px; background: #bed078; box-shadow: 0 0 0 5px rgba(190,208,120,.12); }

.hero h1 {
  margin: 0;
  color: #f7f5ef;
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.9rem, 8vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.hero-script { display: block; margin: 15px 0 0; color: #efe2b6; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 3.2vw, 3.45rem); font-style: italic; font-weight: 400; letter-spacing: -.04em; }
.hero-copy { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 750; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #84945a; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(10px); }
.hero-location { align-self: center; justify-self: end; width: min(100%, 445px); padding: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(25,34,22,.30); box-shadow: inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.hero-location__map { height: 255px; display: grid; place-items: center; position: relative; }
.hero-location__map svg { width: 100%; height: 100%; }
.hero-location__pin { position: absolute; left: 53%; top: 48%; display: flex; gap: 9px; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(18,26,16,.84); font-size: .74rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.hero-location__pin b { color: #d9e19b; }
.hero-location__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: .75rem; }
.hero-location__meta strong { color: white; font-size: .88rem; }

/* PVMT */
.pv-section { position: relative; z-index: 1; padding: 72px 0 92px; background: linear-gradient(180deg, var(--hoefl-paper) 0%, #f5f2e9 100%); border-top: 1px solid rgba(42,54,35,.07); }
.pv-wrap { transform: none; }
.pv-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.pv-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3.1rem); font-weight: 500; letter-spacing: -.04em; }
.pv-status { display: inline-flex; align-items: center; gap: 8px; color: #5e6757; font-size: .78rem; }
.pv-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #80984d; box-shadow: 0 0 0 5px rgba(128,152,77,.12); }
.pv-dashboard { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(340px,.84fr); overflow: hidden; border: 1px solid rgba(45,57,37,.1); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--hoefl-shadow); }
.home-pvmt { min-height: 320px; padding: 42px 48px; display: flex; align-items: center; }
.home-pvmt .pvmt-today-card { width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left !important; }
.home-pvmt .pvmt-today-sun { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 50%; background: #f4edd6; font-size: 1.35rem; }
.home-pvmt .pvmt-today-title { margin-bottom: 8px; color: #5d6557 !important; font-size: .88rem !important; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.home-pvmt .pvmt-today-value { display: flex !important; align-items: baseline !important; gap: 10px !important; color: var(--hoefl-green) !important; }
.home-pvmt .pvmt-today-value strong { font-family: Georgia, "Times New Roman", serif !important; font-size: clamp(4.2rem, 7vw, 6.4rem) !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -.06em !important; }
.home-pvmt .pvmt-today-value span { font-size: 1.45rem !important; font-weight: 700 !important; }
.home-pvmt .pvmt-today-updated { margin-top: 16px !important; color: #858a81 !important; font-size: .78rem !important; }
.pv-visual { position: relative; min-height: 320px; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #2b3925 0%, #162017 100%); color: white; overflow: hidden; }
.pv-visual::before { content: ""; position: absolute; width: 290px; height: 290px; right: -95px; top: -115px; border-radius: 50%; border: 1px solid rgba(228,208,145,.28); box-shadow: 0 0 0 36px rgba(228,208,145,.035), 0 0 0 72px rgba(228,208,145,.025); }
.pv-visual svg { position: absolute; right: 24px; bottom: 26px; width: 62%; opacity: .92; }
.pv-visual__label { position: relative; z-index: 1; font-size: .76rem; color: #dfe5cb; letter-spacing: .08em; text-transform: uppercase; }
.pv-visual__copy { position: relative; z-index: 1; max-width: 260px; margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.17; }
.pv-fallback { width: 100%; }
.pv-fallback .pvmt-today-value strong { font-family: Georgia, serif; font-size: clamp(4.2rem, 7vw, 6.4rem); font-weight: 500; color: var(--hoefl-green); }

/* Heimat */
.heimat { background: #f1eee4; }
.heimat-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.heimat-card { position: sticky; top: 110px; padding: 34px; border-radius: 24px; background: linear-gradient(145deg, #263321, #182118); color: white; box-shadow: var(--hoefl-shadow); }
.heimat-card__top { color: #d7d9ba; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.heimat-card h3 { margin: 14px 0 10px; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 500; }
.heimat-card p { margin: 0; color: rgba(255,255,255,.72); }
.heimat-card__facts { margin-top: 28px; display: grid; gap: 10px; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.11); font-size: .84rem; }
.fact span { color: rgba(255,255,255,.58); }
.values { display: grid; gap: 18px; margin-top: 42px; }
.value-card { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--hoefl-line); }
.value-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: #e7ead6; color: var(--hoefl-green-2); font-size: 1.5rem; }
.value-card h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.value-card p { margin: 0; color: #687064; }

/* Projects */
.projects { background: var(--hoefl-paper); }
.projects-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 44px; }
.projects-head .section-copy { max-width: 560px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { position: relative; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--hoefl-line); border-radius: 20px; background: white; box-shadow: 0 8px 30px rgba(27,36,23,.045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(27,36,23,.09); border-color: rgba(95,116,65,.32); }
.project-card__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eef0e2; color: var(--hoefl-green-2); font-family: Georgia, serif; font-weight: 700; font-size: 1.08rem; }
.project-card h3 { margin: 22px 0 3px; font-size: 1.05rem; }
.project-card p { margin: 0; color: #80867b; font-size: .82rem; }
.project-card__arrow { position: absolute; right: 22px; top: 22px; color: #8a927f; font-size: 1.1rem; }
.project-card--featured { grid-column: span 2; background: linear-gradient(135deg, #f5f1df 0%, #fff 68%); }
.project-card--featured .project-card__mark { background: var(--hoefl-green); color: #fff; }

/* Build notice */
.build-note { padding: 0 0 92px; background: var(--hoefl-paper); }
.build-note__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 34px; border-radius: 20px; background: #e9eadb; }
.build-note h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.build-note p { margin: 0; color: #646b60; }
.build-note__badge { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: #fff; font-size: .77rem; font-weight: 800; color: var(--hoefl-green-2); }

/* Content page */
.page-hero { padding: 150px 0 70px; background: linear-gradient(145deg, #1d2a1b, #334329); color: white; }
.page-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.05em; }
.page-content { padding: 72px 0 100px; }
.entry-content { max-width: 820px; font-size: 1.05rem; }
.entry-content a { text-decoration: underline; text-decoration-color: #b4bf8a; text-underline-offset: 3px; }

/* Footer */
.site-footer { padding: 60px 0 28px; background: #192119; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr 1fr; gap: 52px; }
.footer-brand .site-brand__word { color: white; font-size: 2.08rem; }
.footer-brand p { max-width: 240px; margin: 18px 0 0; color: rgba(255,255,255,.56); font-size: .86rem; }
.footer-title { margin-bottom: 16px; color: white; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { display: grid; gap: 9px; font-size: .86rem; }
.footer-links a:hover { color: white; }
.footer-place { font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 46px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.43); font-size: .74rem; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav, .header-place { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { position: fixed; inset: 0; z-index: 60; padding: 26px; background: rgba(22,30,20,.985); color: white; transform: translateX(100%); transition: transform .28s ease; display: block; }
  .mobile-panel.is-open { transform: translateX(0); }
  .mobile-panel__top { display: flex; justify-content: space-between; align-items: center; }
  .mobile-panel__close { border: 0; background: none; color: white; font-size: 2rem; cursor: pointer; }
  .mobile-panel nav { display: grid; gap: 0; margin-top: 58px; }
  .mobile-panel nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.3rem; font-family: Georgia, serif; }
  .mobile-panel__place { margin-top: 48px; color: #d8ddc1; font-size: .85rem; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 148px; padding-bottom: 88px; }
  .hero-location { display: none; }
  .pv-dashboard, .heimat-grid { grid-template-columns: 1fr; }
  .heimat-card { position: static; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--hoefl-max)); }
  .header-inner { min-height: 72px; }
  .site-brand__word { font-size: 1.62rem; }
  .hero { min-height: 0; }
  .hero::before { background-image: linear-gradient(180deg, rgba(20,27,18,.35), rgba(20,27,18,.82)), url("assets/hero-hallertau.svg"); background-position: 56% center; }
  .hero-inner { padding-top: 126px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hero-script { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .pv-section { padding-bottom: 42px; }
  .pv-wrap { transform: none; }
  .pv-head { align-items: start; flex-direction: column; gap: 12px; }
  .pv-dashboard { border-radius: 20px; }
  .home-pvmt { min-height: 255px; padding: 29px 25px; }
  .home-pvmt .pvmt-today-value strong, .pv-fallback .pvmt-today-value strong { font-size: 4rem; }
  .pv-visual { min-height: 220px; }
  .pv-visual__copy { font-size: 1.35rem; }
  .section { padding: 68px 0; }
  .heimat-grid { gap: 40px; }
  .heimat-card { padding: 26px; }
  .projects-head { align-items: start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: auto; }
  .build-note__inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}


/* 0.3.0 – layout stability */
#familie, #zuhause, #firmengruppe, #pv-monitoring { scroll-margin-top: 112px; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .mobile-panel { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .mobile-panel { top: 46px; } }

/* Large/zoomed desktop: use the available width instead of leaving the page tiny in the middle. */
@media (min-width: 1320px) {
  .container { width: min(calc(100% - 88px), var(--hoefl-max)); }
  .hero h1 { font-size: clamp(5rem, 5.8vw, 6.8rem); }
  .pv-head h2 { font-size: clamp(2.35rem, 2.8vw, 3.15rem); }
}

/* Mid desktop: prevent nav/location collisions. */
@media (min-width: 981px) and (max-width: 1210px) {
  .header-inner { grid-template-columns: 215px minmax(0,1fr) 210px; gap: 18px; }
  .primary-nav { font-size: .78rem; }
  .primary-nav > a { margin-inline: 7px; }
  .header-place { font-size: .66rem; }
  .hero-inner { grid-template-columns: minmax(0,1fr) 360px; gap: 40px; }
  .hero h1 { font-size: clamp(4.25rem, 6.4vw, 5.5rem); }
}

@media (max-width: 980px) {
  .container { width: min(calc(100% - 40px), var(--hoefl-max)); }
  .pv-section { padding-top: 58px; }
  .pv-dashboard { grid-template-columns: 1fr; }
  .pv-visual { min-height: 250px; }
}

@media (max-width: 640px) {
  .pv-section { padding: 48px 0 58px; }
  .pv-head { margin-bottom: 22px; }
  .home-pvmt { padding: 30px 26px; }
}


/* 0.4.0 – Branding */
.site-brand__word,
.site-brand__sub {
  text-align: left;
  align-self: flex-start;
}


/* 0.5.0 – Impressum & Datenschutz */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-legal a {
  color: rgba(255,255,255,.62);
  transition: color .2s ease;
}
.footer-legal a:hover {
  color: #fff;
}

.mobile-panel__legal {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .86rem;
  color: #d8ddc1;
}
.mobile-panel__legal a:hover {
  color: #fff;
}

.entry-content h2 {
  margin: 2.5rem 0 .75rem;
  color: var(--hoefl-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.entry-content p {
  margin: 0 0 1.2rem;
}
.legal-intro {
  margin: 0 0 42px;
  padding: 24px 26px;
  border: 1px solid rgba(92,111,65,.16);
  border-radius: 18px;
  background: #eef0e4;
  color: #4e5848;
}
.legal-intro p {
  margin: 0;
}

@media (max-width: 640px) {
  .footer-legal {
    align-items: flex-start;
    gap: 18px;
  }
  .page-hero {
    padding-top: 118px;
    padding-bottom: 48px;
  }
  .page-content {
    padding: 48px 0 70px;
  }
}


/* 0.6.0 – Hero Branding */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.35rem);
    white-space: normal;
  }
}


/* 0.6.1 – Mehr Abstand zwischen Hero-Badge und Hauptschriftzug */
.hero-kicker {
  margin-bottom: 10px;
}

.hero h1 {
  margin-top: 10px;
}

@media (min-width: 1180px) {
  .hero-kicker {
    margin-bottom: 14px;
  }

  .hero h1 {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .hero-kicker {
    margin-bottom: 8px;
  }

  .hero h1 {
    margin-top: 8px;
  }
}


/* 0.6.2 – Rechtstext-Seiten veredelt */
body.page-slug-impressum .page-hero h1,
body.page-slug-datenschutz .page-hero h1 {
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: #f7f5ef;
}

body.page-slug-impressum .entry-content,
body.page-slug-datenschutz .entry-content {
  max-width: 1080px;
  font-size: 1.07rem;
  line-height: 1.8;
}

body.page-slug-impressum .entry-content p,
body.page-slug-datenschutz .entry-content p,
body.page-slug-impressum .entry-content li,
body.page-slug-datenschutz .entry-content li {
  max-width: none;
}

body.page-slug-impressum .page-content,
body.page-slug-datenschutz .page-content {
  padding-top: 82px;
}

@media (max-width: 900px) {
  body.page-slug-impressum .entry-content,
  body.page-slug-datenschutz .entry-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.page-slug-impressum .page-hero h1,
  body.page-slug-datenschutz .page-hero h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
  }
}


/* 0.6.3 – Rechtstext-Headline wie im Hero der Startseite */
.page-hero__title {
  margin: 0;
}

.page-hero--script .page-hero__title--script {
  color: #f7f5ef;
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4rem, 7.4vw, 6.9rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.page-content--legal {
  padding-top: 82px;
}

.entry-content--legal {
  max-width: 1120px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.entry-content--legal p,
.entry-content--legal li {
  max-width: none;
}

@media (max-width: 900px) {
  .page-hero--script .page-hero__title--script {
    white-space: normal;
  }

  .entry-content--legal {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero--script .page-hero__title--script {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
}


/* 0.6.4 – Dedizierte Rechtstext-Seiten */
.page-id .page-hero--script .page-hero__title--script,
.page-template-page-impressum-php .page-hero__title--script,
.page-template-page-datenschutz-php .page-hero__title--script,
body.page-slug-impressum .page-hero__title--script,
body.page-slug-datenschutz .page-hero__title--script {
  color: #f7f5ef;
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4rem, 7.4vw, 6.9rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.page-content--legal {
  padding-top: 82px;
}

.entry-content--legal {
  max-width: 1120px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.entry-content--legal p,
.entry-content--legal li {
  max-width: none;
}

@media (max-width: 900px) {
  .page-hero__title--script {
    white-space: normal;
  }
  .entry-content--legal {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero__title--script {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
}


/* 0.6.5 – Rechtstitel ohne Abhängigkeit von WordPress-Bodyklassen */
.page-hero .page-hero__title.page-hero__title--script {
  margin: 0;
  color: #f7f5ef !important;
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: clamp(4rem, 7.4vw, 6.9rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  white-space: nowrap;
}

.entry-content.entry-content--legal {
  width: 100%;
  max-width: 1120px;
}

@media (max-width: 900px) {
  .page-hero .page-hero__title.page-hero__title--script {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-hero .page-hero__title.page-hero__title--script {
    font-size: clamp(3rem, 12vw, 4.5rem) !important;
  }
}


/* =========================================================
   0.11.2 – originales transparentes Hopfen-PNG als echtes Bild
   Kein background-image, kein repeat-x, keine Maske, keine Kachelung.
   ========================================================= */

.hero-section {
  position: relative;
  overflow: visible !important;
  padding-bottom: 90px;
  z-index: 2;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  background: linear-gradient(
    to bottom,
    rgba(13, 29, 18, 0) 0%,
    rgba(13, 29, 18, 0.45) 25%,
    rgba(246, 242, 232, 0.75) 70%,
    rgba(246, 242, 232, 1) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.hf-hopfenband {
  position: relative;
  z-index: 20;
  margin-top: -70px;
  margin-bottom: -35px;
  overflow: visible;
  pointer-events: none;
}

.hf-hopfenband img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.pv-section {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 110px !important;
  background: #f6f2e8;
  border-top: 0 !important;
  overflow: visible !important;
}

.pv-section::before,
.pv-section::after {
  content: none !important;
}

.pv-wrap {
  position: relative;
  z-index: 2;
}

@media (max-width: 1200px) {
  .hf-hopfenband {
    margin-top: -58px;
    margin-bottom: -30px;
  }
  .pv-section {
    padding-top: 94px !important;
  }
}

@media (max-width: 980px) {
  .hf-hopfenband {
    margin-top: -48px;
    margin-bottom: -24px;
  }
  .pv-section {
    padding-top: 80px !important;
  }
}

@media (max-width: 640px) {
  .hf-hopfenband {
    margin-top: -34px;
    margin-bottom: -18px;
  }
  .pv-section {
    padding-top: 68px !important;
  }
}


/* 0.11.3 – fix missing hopfen image asset path */
.hf-hopfenband {
  line-height: 0;
}
.hf-hopfenband img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* 0.11.4 – hopfen band lower and softer background transition */
.hero-section {
  padding-bottom: 72px;
}

.hero-section::after {
  bottom: -1px;
  height: 92px;
  background: linear-gradient(
    to bottom,
    rgba(13, 29, 18, 0) 0%,
    rgba(13, 29, 18, 0.18) 36%,
    rgba(246, 242, 232, 0.28) 64%,
    rgba(246, 242, 232, 0.72) 88%,
    rgba(246, 242, 232, 1) 100%
  );
}

.hf-hopfenband {
  margin-top: -62px;
  margin-bottom: -96px;
}

.hf-hopfenband img {
  width: 100% !important;
  height: auto !important;
  transform: scaleY(0.55);
  transform-origin: center top;
}

.pv-section {
  padding-top: 58px !important;
}

@media (max-width: 1200px) {
  .hero-section {
    padding-bottom: 64px;
  }
  .hero-section::after {
    height: 82px;
  }
  .hf-hopfenband {
    margin-top: -52px;
    margin-bottom: -86px;
  }
  .hf-hopfenband img {
    transform: scaleY(0.58);
  }
  .pv-section {
    padding-top: 52px !important;
  }
}

@media (max-width: 980px) {
  .hero-section {
    padding-bottom: 56px;
  }
  .hero-section::after {
    height: 74px;
  }
  .hf-hopfenband {
    margin-top: -42px;
    margin-bottom: -74px;
  }
  .hf-hopfenband img {
    transform: scaleY(0.6);
  }
  .pv-section {
    padding-top: 46px !important;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-bottom: 46px;
  }
  .hero-section::after {
    height: 62px;
  }
  .hf-hopfenband {
    margin-top: -28px;
    margin-bottom: -54px;
  }
  .hf-hopfenband img {
    transform: scaleY(0.64);
  }
  .pv-section {
    padding-top: 38px !important;
  }
}


/* 0.11.5 – remove the visible white strip and create a smoother background transition */
.hero-section {
  padding-bottom: 68px;
}

.hero-section::after {
  bottom: -1px;
  height: 68px;
  background: linear-gradient(
    to bottom,
    rgba(13, 29, 18, 0) 0%,
    rgba(13, 29, 18, 0.05) 34%,
    rgba(13, 29, 18, 0.10) 62%,
    rgba(13, 29, 18, 0.16) 100%
  );
}

.hf-hopfenband {
  margin-top: -58px;
  margin-bottom: -94px;
}

/* lift a soft beige fade from the PV area behind the girlande instead of a hard white strip */
.pv-section {
  padding-top: 56px !important;
  background: #f6f2e8;
}

.pv-section::before {
  content: "" !important;
  position: absolute;
  left: 0;
  right: 0;
  top: -72px;
  height: 92px;
  background: linear-gradient(
    to bottom,
    rgba(246, 242, 232, 0) 0%,
    rgba(246, 242, 232, 0.18) 32%,
    rgba(246, 242, 232, 0.54) 62%,
    rgba(246, 242, 232, 0.88) 86%,
    rgba(246, 242, 232, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.pv-wrap {
  position: relative;
  z-index: 2;
}

@media (max-width: 1200px) {
  .hero-section {
    padding-bottom: 60px;
  }
  .hero-section::after {
    height: 60px;
  }
  .hf-hopfenband {
    margin-top: -48px;
    margin-bottom: -84px;
  }
  .pv-section {
    padding-top: 50px !important;
  }
  .pv-section::before {
    top: -62px;
    height: 80px;
  }
}

@media (max-width: 980px) {
  .hero-section {
    padding-bottom: 52px;
  }
  .hero-section::after {
    height: 52px;
  }
  .hf-hopfenband {
    margin-top: -40px;
    margin-bottom: -72px;
  }
  .pv-section {
    padding-top: 44px !important;
  }
  .pv-section::before {
    top: -54px;
    height: 70px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-bottom: 44px;
  }
  .hero-section::after {
    height: 44px;
  }
  .hf-hopfenband {
    margin-top: -26px;
    margin-bottom: -52px;
  }
  .pv-section {
    padding-top: 36px !important;
  }
  .pv-section::before {
    top: -42px;
    height: 56px;
  }
}


/* 0.11.6 – subtle maibaum in the hero background */
.hero-maypole {
  position: absolute;
  right: clamp(92px, 10vw, 172px);
  bottom: 84px;
  width: clamp(42px, 4.4vw, 66px);
  height: clamp(230px, 23vw, 360px);
  background: url("assets/maibaum-hero.svg") center bottom / contain no-repeat;
  opacity: 0.58;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1200px) {
  .hero-maypole {
    right: 74px;
    bottom: 78px;
    width: 54px;
    height: 304px;
    opacity: 0.5;
  }
}

@media (max-width: 980px) {
  .hero-maypole {
    right: 56px;
    bottom: 68px;
    width: 46px;
    height: 256px;
    opacity: 0.44;
  }
}

@media (max-width: 760px) {
  .hero-maypole {
    display: none;
  }
}


/* 0.11.7 – larger and more subtle Bavarian maypole */
.hero-maypole {
  right: clamp(78px, 8vw, 150px);
  bottom: 78px;
  width: clamp(72px, 6.4vw, 104px);
  height: clamp(320px, 31vw, 470px);
  opacity: 0.26;
  z-index: 1;
  filter: saturate(0.82) brightness(1.02);
}

@media (max-width: 1200px) {
  .hero-maypole {
    right: 64px;
    bottom: 72px;
    width: 88px;
    height: 400px;
    opacity: 0.24;
  }
}

@media (max-width: 980px) {
  .hero-maypole {
    right: 48px;
    bottom: 62px;
    width: 72px;
    height: 340px;
    opacity: 0.22;
  }
}


/* 0.11.8 – more Hallertau / hop-garden presence for the maypole */
.hero-maypole {
  right: clamp(76px, 7.8vw, 144px);
  bottom: 74px;
  width: clamp(86px, 7vw, 118px);
  height: clamp(360px, 33vw, 510px);
  opacity: 0.40;
  filter: saturate(1.02) brightness(1.03);
}

@media (max-width: 1200px) {
  .hero-maypole {
    right: 62px;
    bottom: 68px;
    width: 96px;
    height: 430px;
    opacity: 0.36;
  }
}

@media (max-width: 980px) {
  .hero-maypole {
    right: 46px;
    bottom: 58px;
    width: 78px;
    height: 360px;
    opacity: 0.32;
  }
}


/* 0.11.9 – move maypole to the marked central position */
.hero-maypole {
  left: clamp(690px, 42vw, 820px);
  right: auto;
  bottom: 76px;
  width: clamp(84px, 6.8vw, 116px);
  height: clamp(350px, 32vw, 510px);
}

@media (max-width: 1200px) {
  .hero-maypole {
    left: 41vw;
    right: auto;
    bottom: 70px;
    width: 94px;
    height: 420px;
  }
}

@media (max-width: 980px) {
  .hero-maypole {
    left: 44vw;
    right: auto;
    bottom: 58px;
    width: 78px;
    height: 350px;
  }
}


/* 0.11.10 – move maypole into the house/church area */
.hero-maypole {
  left: auto;
  right: clamp(300px, 18vw, 385px);
  bottom: 92px;
  width: clamp(82px, 6.6vw, 112px);
  height: clamp(340px, 31vw, 490px);
  opacity: 0.34;
}

@media (max-width: 1200px) {
  .hero-maypole {
    left: auto;
    right: 245px;
    bottom: 84px;
    width: 90px;
    height: 400px;
    opacity: 0.32;
  }
}

@media (max-width: 980px) {
  .hero-maypole {
    left: auto;
    right: 176px;
    bottom: 68px;
    width: 74px;
    height: 330px;
    opacity: 0.28;
  }
}
