/*
Theme Name: Heimatverein Papenburg
Description: Block-Theme für den Heimatverein Papenburg e. V. – mit Animationen, Slider und Formularen, ohne externe Schriften oder Dienste.
Author: Heimatverein Papenburg e. V.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: heimatverein
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
img { max-width: 100%; height: auto; }
:root {
	--hv-navy: #1F3A5F; --hv-navy-dark: #152a45; --hv-brick: #9C3B2E; --hv-gold: #C9A24A;
	--hv-cream: #F7F2E7; --hv-sand: #EFE6D2; --hv-muted: #5b5b57;
	--hv-shadow: 0 6px 24px rgba(31, 58, 95, .10); --hv-radius: 14px;
}

/* ---------- Animationen ---------- */
.hv-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.hv-reveal.hv-in { opacity: 1; transform: none; }
@keyframes hv-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hv-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Kopfbereich ---------- */
.hv-sticky { position: sticky; top: 0; z-index: 50; }
.admin-bar .hv-sticky { top: 32px; }
.hv-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid rgba(31, 58, 95, .08); padding: 10px 4vw; }
.hv-header-inner { min-height: 56px; }
.hv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hv-navy); }
.hv-brand img { width: 48px; height: auto; }
.hv-brand span { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.hv-brand small { display: block; font-family: var(--wp--preset--font-family--sans); font-weight: 400; font-size: .78rem; color: var(--hv-muted); }
.hv-nav { font-size: .95rem; font-weight: 500; }
.hv-nav a { color: var(--hv-navy); text-decoration: none; }
.hv-nav .wp-block-navigation-item__content { padding: 8px 10px; border-radius: 8px; transition: background .2s; }
.hv-nav .wp-block-navigation-item__content:hover { background: var(--hv-sand); }
.hv-nav .hv-cta .wp-block-navigation-item__content { background: var(--hv-brick); color: #fff; }
.hv-nav .hv-cta .wp-block-navigation-item__content:hover { background: #7d2e23; }

/* ---------- Grundlayout Startseite ---------- */
.hv-main > .wp-block-post-content > * { margin-top: 0; margin-bottom: 0; }
.hv-section { padding: 80px 4vw; }
.hv-white { background: #fff; }
.hv-sand { background: var(--hv-sand); }
.hv-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--hv-brick); margin-bottom: .4em !important; }
.hv-lead { font-size: 1.15rem; color: var(--hv-muted); }
.wp-element-button, .wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.hv-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .75); }
.hv-btn-outline .wp-block-button__link { background: transparent; color: var(--hv-navy); border: 2px solid var(--hv-navy); }

/* ---------- Hero ---------- */
.hv-hero {
	position: relative; overflow: hidden; min-height: clamp(440px, 52vw, 640px);
	display: flex; align-items: flex-end; padding: 0 !important; background: var(--hv-navy-dark);
}
.hv-hero::before {
	content: ""; position: absolute; inset: 0;
	background: url(assets/img/friederike.jpg) 50% 35% / cover no-repeat;
	animation: hv-zoom 18s ease-in-out infinite alternate; z-index: 0;
}
.hv-hero-text {
	position: relative; z-index: 1; width: 100%; padding: 110px 4vw 52px;
	background: linear-gradient(0deg, rgba(21, 42, 69, .94) 0%, rgba(21, 42, 69, .70) 55%, rgba(21, 42, 69, 0) 100%);
}
.hv-hero-text > * { animation: hv-rise .9s ease both; }
.hv-hero-text > *:nth-child(2) { animation-delay: .15s; }
.hv-hero-text > *:nth-child(3) { animation-delay: .3s; }
.hv-hero-text > *:nth-child(4) { animation-delay: .45s; }
.hv-hero-text h1 { color: #fff; margin: 0 0 .25em; }
.hv-hero-text p { color: #ece6d8; font-size: 1.18rem; max-width: 660px; }
.hv-hero-text .hv-eyebrow { color: var(--hv-gold); }
.hv-hero-text .wp-block-buttons { flex-wrap: wrap; }

/* ---------- Zahlenband ---------- */
.hv-stats { background: var(--hv-navy); color: #fff; padding: 40px 4vw !important; }
.hv-stats .wp-block-columns { margin: 0; }
.hv-stat { text-align: center; }
.hv-stat p { margin: 0; color: #cfd6e0; font-size: .95rem; }
.hv-stat strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--hv-gold); line-height: 1.1; }

/* ---------- Bilder ---------- */
.hv-rounded img, .hv-photo img { width: 100%; border-radius: var(--hv-radius); box-shadow: var(--hv-shadow); }
.hv-photo { max-width: 860px; }
.hv-photo figcaption, .hv-slide figcaption { color: var(--hv-muted); font-size: .92rem; margin-top: 10px; }
.hv-quote { padding: 16px 20px; border-left: 4px solid var(--hv-gold); background: var(--hv-cream); font-family: var(--wp--preset--font-family--serif); font-size: 1.1rem; color: var(--hv-navy); }

/* ---------- Slider ---------- */
.hv-slider {
	display: flex !important; flex-wrap: nowrap !important; gap: 24px !important;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 6px 2px 18px; margin-top: 32px !important;
}
.hv-slider::-webkit-scrollbar { display: none; }
.hv-slider > * { flex: 0 0 min(560px, 86%); scroll-snap-align: start; margin: 0 !important; }
.hv-slider img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--hv-radius); box-shadow: var(--hv-shadow); transition: transform .5s ease; }
.hv-slider figure:hover img { transform: scale(1.02); }
.hv-slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.hv-slider-nav button {
	border: 2px solid var(--hv-navy); background: #fff; color: var(--hv-navy); width: 44px; height: 44px;
	border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s;
}
.hv-slider-nav button:hover { background: var(--hv-navy); color: #fff; }
.hv-dots { display: flex; gap: 8px; }
.hv-dots button { width: 10px; height: 10px; padding: 0; border: 0; background: rgba(31, 58, 95, .25); }
.hv-dots button.is-active { background: var(--hv-brick); width: 26px; border-radius: 10px; }

/* ---------- Karten ---------- */
.hv-cards { gap: 24px !important; margin-top: 32px; }
.hv-card {
	background: #fff; border-radius: var(--hv-radius); padding: 26px !important;
	box-shadow: var(--hv-shadow); border-top: 4px solid var(--hv-navy);
	transition: transform .3s ease, box-shadow .3s ease;
}
.hv-sand .hv-card, .hv-white .hv-card { background: #fff; }
.hv-white .hv-card { background: var(--hv-cream); box-shadow: none; }
.hv-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(31, 58, 95, .16); }
.hv-card.hv-highlight { border-top-color: var(--hv-brick); }
.hv-card.hv-gold { border-top-color: var(--hv-gold); }
.hv-card h3 { margin-top: 0; }
.hv-card p:last-child, .hv-card .wp-block-buttons:last-child { margin-bottom: 0; }

/* ---------- Termine ---------- */
.hv-event {
	background: #fff; border-radius: var(--hv-radius); padding: 20px 24px !important;
	box-shadow: var(--hv-shadow); margin-top: 16px !important; border-left: 6px solid var(--hv-brick);
	transition: transform .3s ease;
}
.hv-event:hover { transform: translateX(6px); }
.hv-event h3 { margin: 0 0 4px; }
.hv-event p { margin: 0; color: var(--hv-muted); }
.hv-event .hv-date { color: var(--hv-brick); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Team ---------- */
.hv-person { background: #fff; border-radius: var(--hv-radius); padding: 22px !important; text-align: center; box-shadow: var(--hv-shadow); transition: transform .3s; }
.hv-person:hover { transform: translateY(-4px); }
.hv-person h3 { margin: 0; font-size: 1.1rem; }
.hv-person p { margin: 0; color: var(--hv-muted); font-size: .95rem; }

/* ---------- Mitglied werden ---------- */
.hv-join { background: var(--hv-navy); color: #e1dccf; border-radius: 22px; padding: 52px !important; position: relative; overflow: hidden; }
.hv-join::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(201, 162, 74, .14); }
.hv-join h2 { color: #fff; }
.hv-join .hv-eyebrow { color: var(--hv-gold); }
.hv-price {
	display: inline-block; background: var(--hv-gold); color: var(--hv-navy-dark); font-weight: 800;
	font-size: 1.25rem; padding: 10px 20px; border-radius: 999px; transform: rotate(-2deg);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ---------- Social-Media-Band ---------- */
.hv-social-band { background: linear-gradient(120deg, var(--hv-brick), #b5543f 60%, var(--hv-gold)); color: #fff; text-align: center; }
.hv-social-band h2, .hv-social-band p { color: #fff; }
.hv-social-band .wp-block-buttons { justify-content: center; }
.hv-social-band .wp-block-button__link { background: #fff; color: var(--hv-brick); }

/* ---------- Chronik ---------- */
.hv-timeline { list-style: none; padding: 0 0 0 28px !important; margin: 32px 0 !important; border-left: 3px solid var(--hv-gold); }
.hv-timeline li { position: relative; padding: 0 0 26px 14px; }
.hv-timeline li::before {
	content: ""; position: absolute; left: -38px; top: 4px; width: 16px; height: 16px;
	border-radius: 50%; background: var(--hv-brick); border: 3px solid var(--hv-cream);
}
.hv-timeline strong { display: block; font-family: var(--wp--preset--font-family--serif); color: var(--hv-navy); font-size: 1.15rem; }

/* ---------- Formulare ---------- */
.hv-form-wrap { background: #fff; border-radius: var(--hv-radius); padding: 30px; box-shadow: var(--hv-shadow); margin: 24px 0; }
.hv-form label { display: block; font-weight: 600; color: var(--hv-navy); font-size: .95rem; margin-bottom: 14px; }
.hv-form input[type=text], .hv-form input[type=email], .hv-form input[type=tel], .hv-form input[type=date], .hv-form select, .hv-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
	border: 1.5px solid #cfc6b1; border-radius: 10px; background: var(--hv-cream);
}
.hv-form input:focus, .hv-form select:focus, .hv-form textarea:focus { outline: none; border-color: var(--hv-navy); background: #fff; }
.hv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hv-check { font-weight: 400 !important; color: var(--hv-muted) !important; }
.hv-check input { margin-right: 8px; }
.hv-small { font-size: .88rem; color: var(--hv-muted); }
.hv-submit { border: 0; cursor: pointer; background: var(--hv-brick); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; }
.hv-hp { position: absolute; left: -9999px; }
.hv-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.hv-alert-ok { background: #e3f1e0; color: #24561d; }
.hv-alert-error { background: #f8e1dd; color: #7d2e23; }

/* ---------- Unterseiten & Beiträge ---------- */
.hv-page { padding: 56px 4vw 80px; }
.hv-post { background: #fff; border-radius: var(--hv-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--hv-shadow); }
.hv-post h2 { margin: .2em 0 .4em; font-size: 1.5rem; }
.hv-meta { color: var(--hv-brick); font-size: .85rem; font-weight: 700; }

/* ---------- Fußbereich ---------- */
.hv-footer { background: var(--hv-navy-dark); color: #cfd6e0; padding: 48px 4vw 28px; font-size: .93rem; }
.hv-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.hv-footer a { color: #fff; text-decoration: none; }
.hv-footer a:hover { text-decoration: underline; }
.hv-footer p { margin: 0 0 6px; }
.hv-footer .wp-block-social-links { margin-top: 12px; }
.hv-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px !important; padding-top: 18px; font-size: .85rem; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.hv-section { padding: 56px 5vw; }
	.hv-hero { display: block; min-height: 0; padding-top: 300px !important; }
	.hv-hero::before { bottom: auto; height: 300px; background-position: 40% 35%; }
	.hv-hero-text { background: var(--hv-navy-dark); padding: 32px 5vw 40px; }
	.hv-join { padding: 32px 22px !important; }
	.hv-brand small { display: none; }
	.hv-row { grid-template-columns: 1fr; }
	.hv-slider img { height: 300px; }
	.hv-stats .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ===================== v1.2 – Hingucker ===================== */
/* Hero: größer, Highlight-Wort, Scroll-Hinweis */
.hv-hero { min-height: clamp(520px, 88vh, 820px); }
.hv-hero-text h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.01em; }
.hv-hero-text h1 em { font-style: normal; color: var(--hv-gold); position: relative; white-space: nowrap; }
.hv-hero-text h1 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em;
	background: var(--hv-gold); border-radius: 4px; transform-origin: left; animation: hv-line 1.2s .9s ease both;
}
@keyframes hv-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hv-hero::after {
	content: ""; position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; z-index: 2;
	border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
	background: radial-gradient(circle, #fff 3px, transparent 4px) 50% 8px / 8px 8px no-repeat;
	animation: hv-scroll 1.8s ease-in-out infinite;
}
@keyframes hv-scroll { 0%, 100% { background-position: 50% 8px; } 50% { background-position: 50% 22px; } }

/* Laufband */
.hv-marquee { background: var(--hv-gold); color: var(--hv-navy-dark); overflow: hidden; white-space: nowrap; padding: 14px 0 !important; margin: 0 !important; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.hv-marquee-track { display: inline-block; animation: hv-marquee 32s linear infinite; padding-left: 0; }
@keyframes hv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Karten mit Bild & Platt-Karte im Flyer-Look */
.hv-card-img { margin: -26px -26px 18px !important; }
.hv-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px 12px 0 0; }
.hv-card { overflow: hidden; }
.hv-card.hv-yellow { background: #FFDD3C !important; border-top-color: #1d1d1b; }
.hv-card.hv-yellow h3, .hv-card.hv-yellow p { color: #1d1d1b; }
.hv-card.hv-yellow h3 { font-family: var(--wp--preset--font-family--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }

/* Termine mit großem Datum */
.hv-event { display: grid; grid-template-columns: 110px 1fr; gap: 0 22px; align-items: center; }
.hv-event > .hv-date { grid-row: span 3; background: var(--hv-navy); color: #fff !important; border-radius: 12px; text-align: center; padding: 12px 6px; font-size: .78rem !important; line-height: 1.3; }
.hv-event > .hv-date strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 2.1rem; letter-spacing: 0; line-height: 1.05; color: var(--hv-gold); }
.hv-event.hv-event-platt { border-left-color: #FFDD3C; }
.hv-event.hv-event-platt > .hv-date { background: #FFDD3C; color: #1d1d1b !important; }
.hv-event.hv-event-platt > .hv-date strong { color: #1d1d1b; }
.hv-tag { display: inline-block; background: var(--hv-sand); color: var(--hv-navy); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }

/* Schräge Abschnittskanten */
.hv-tilt { clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%); padding-top: calc(80px + 3vw) !important; padding-bottom: calc(80px + 3vw) !important; margin-top: -3vw !important; position: relative; z-index: 1; }

@media (max-width: 781px) {
	.hv-hero { min-height: 0; }
	.hv-hero::after { display: none; }
	.hv-event { grid-template-columns: 82px 1fr; gap: 0 14px; }
	.hv-event > .hv-date strong { font-size: 1.6rem; }
}
.hv-card-img figcaption { font-size: .7rem; color: var(--hv-muted); padding: 4px 26px 0; margin: 0 !important; }
.hv-card-img.hv-top img { object-position: 50% 22%; }
.hv-hero-text h1, .hv-hero-text p { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }

/* v1.3: E-Mail-Adressen, Untermenü, Galerien */
.hv-person p.hv-mail { margin-top: 8px; font-size: .85rem; overflow-wrap: normal; }
.hv-person p.hv-mail a { color: var(--hv-brick); text-decoration: none; }
.hv-person p.hv-mail a:hover { text-decoration: underline; }
.hv-nav .wp-block-navigation__submenu-container { border-radius: 12px; box-shadow: var(--hv-shadow); padding: 6px !important; border: 0 !important; min-width: 230px !important; }
.hv-page .wp-block-columns { gap: 1.5em; }
.hv-page .hv-rounded img, .hv-page .hv-photo img { border-radius: var(--hv-radius); width: 100%; height: auto; }
.hv-page figcaption { font-size: .9rem; color: var(--hv-muted); text-align: center; }
.hv-page .hv-card-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
