/*
Theme Name: Brunnenpate – Neustart
Theme URI: https://brunnenpate.de
Author: Brunnenpate Projektteam
Description: Eigenständiges, schlankes Theme ohne importierten Playground-Code und ohne externe Frontend-Bibliotheken.
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: brunnenpate
*/
:root{--forest:#275b48;--dark:#1e3430;--sand:#f8f3e9;--clay:#c07d56;--muted:#53665d}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--dark);font:17px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif;background:#fff}a{color:var(--forest)}a:focus-visible,button:focus-visible{outline:3px solid #c07d56;outline-offset:3px}.wrap{width:min(1120px,calc(100% - 36px));margin:auto}.site-header{background:#fff;position:relative;z-index:3;border-bottom:1px solid #e6e5df}.navrow{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0}.brand{text-decoration:none;font-size:22px;font-weight:800;color:var(--forest)}nav{display:flex;gap:20px;flex-wrap:wrap}nav a{text-decoration:none;font-weight:600}.hero{position:relative;background:linear-gradient(110deg,rgba(16,44,35,.89),rgba(26,63,48,.53)),linear-gradient(140deg,#547d61,#d2b083);color:white;min-height:540px;display:flex;align-items:center;background-position:center;background-size:cover}.hero h1{font-size:clamp(40px,6vw,76px);line-height:1.07;max-width:780px;margin:16px 0}.hero p{max-width:670px;font-size:20px}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.btn{display:inline-block;border-radius:8px;padding:12px 20px;background:var(--forest);color:#fff;text-decoration:none;font-weight:750}.btn.light{background:#fff;color:var(--forest)}.btn.outline{border:2px solid #fff;background:transparent;color:#fff}.section{padding:70px 0}.section.soft{background:var(--sand)}h2{font-size:clamp(30px,4vw,44px);line-height:1.18;margin:0 0 22px}h3{font-size:22px;line-height:1.25}.lead{font-size:20px;max-width:850px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{background:white;border:1px solid #e3e7df;border-radius:14px;padding:25px}.tile h3{margin-top:0}.counter{text-align:center;margin:-46px auto 0;position:relative;z-index:2;max-width:760px;background:#fff;box-shadow:0 12px 38px #142f261c;border-radius:16px;padding:28px}.digits{display:flex;justify-content:center;gap:7px;margin:12px 0}.digit{background:var(--forest);color:#fff;border-radius:7px;width:clamp(49px,11vw,77px);padding:7px 0;font-size:clamp(39px,7vw,60px);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.3}.counter strong{font-size:20px}.subtle{color:var(--muted);font-size:14px}.donation{background:var(--forest);color:white}.donation h2,.donation h3{color:#fff}.donation .tile{color:var(--dark)}.qr{max-width:220px;width:100%;height:auto;background:white;padding:10px;border-radius:8px}.bank{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.photo-slot{border-radius:15px;min-height:230px;background:linear-gradient(140deg,#547d61,#e1c7a4);display:flex;align-items:end;padding:20px;color:white;font-weight:700;background-size:cover;background-position:center}.footer{background:#192d28;color:white;padding:30px 0}.footer a{color:white}.footer-row{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.prose{max-width:830px}.notice{background:#fff4df;padding:15px;border-left:4px solid #c07d56;border-radius:4px}.small{font-size:14px}@media(max-width:760px){.grid,.grid.two{grid-template-columns:1fr}.navrow{align-items:flex-start;flex-direction:column}.hero{min-height:490px}.section{padding:48px 0}.counter{margin:-25px 16px 0}.hero h1{font-size:42px}}

.testimonial{background:#f8f3e9}.testimonial-grid{align-items:center}.testimonial blockquote{margin:0}.testimonial blockquote p{font-family:Georgia,serif;font-size:clamp(22px,2.7vw,32px);line-height:1.45}.testimonial blockquote footer{font-size:15px;font-weight:700;color:#275b48;margin-top:22px}.portrait{width:100%;max-height:460px;object-fit:cover;object-position:center 30%;border-radius:16px;display:block}

/* Reparaturteam: Originalformat ohne Beschnitt und ohne Overlay */
.photo-slot-natural{min-height:0;padding:0;display:block;overflow:hidden;background:#e7e6db;color:#275b48}
.photo-slot-natural img{display:block;width:100%;height:auto;object-fit:contain}
.photo-slot-natural span{display:block;padding:30px}

/* v1.3: Foto rechts naturgetreu, Text links lesbar; kompakter Zähler am Bildrand. */
.hero{min-height:570px;background-image:linear-gradient(90deg,rgba(13,42,34,.90) 0%,rgba(18,49,38,.72) 38%,rgba(23,52,42,.24) 75%,rgba(23,52,42,.10) 100%),linear-gradient(0deg,rgba(19,46,36,.48),transparent 52%),linear-gradient(140deg,#547d61,#d2b083);background-position:center;background-size:cover}
.hero .wrap{padding-top:54px;padding-bottom:100px}.hero h1{font-size:clamp(42px,5.2vw,67px);max-width:670px;line-height:1.13}.hero p{max-width:610px;font-size:19px;line-height:1.65}.counter{max-width:520px;margin:-58px auto 0;padding:22px 25px 19px}.digit{width:clamp(48px,8vw,65px);font-size:clamp(39px,5.5vw,53px)}
@media(max-width:760px){.hero{min-height:530px;background-position:60% center}.hero .wrap{padding:44px 0 82px}.hero h1{font-size:clamp(37px,10vw,48px)}.hero p{font-size:17px}.counter{margin:-35px 16px 0;padding:20px 12px}}

/* Projektfilm: lokal hochgeladenes Vorschaubild, keine automatische YouTube-Verbindung */
.video-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:260px;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:linear-gradient(140deg,#547d61,#e1c7a4);text-decoration:none;color:white}
.video-preview img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.video-preview .play-symbol{position:relative;z-index:1;background:#275b48e8;color:white;border-radius:50%;width:78px;height:78px;display:flex;align-items:center;justify-content:center;font-size:32px;padding-left:5px;box-shadow:0 4px 18px #0005}
.video-preview:hover .play-symbol,.video-preview:focus-visible .play-symbol{background:#1e3430}
.video-placeholder{position:absolute;inset:0;display:flex;align-items:end;padding:22px;background:linear-gradient(0deg,#0008,transparent);font-size:15px}

/* 1.6: complete original portrait, no cropped head or clothing */
.testimonial-grid{align-items:center}
.testimonial .portrait{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;border-radius:16px}
/* 1.6: photo-led impact cards */
.impact-card{overflow:hidden;padding:0}
.impact-card .impact-image{width:100%;height:220px;display:block;object-fit:cover;object-position:center}
.impact-card h3{margin:20px 24px 12px}
.impact-card p{margin:0 24px 26px}
.editor-content{margin-top:45px;max-width:850px}
/* navigation stays accessible when scrolling */
.site-header{position:sticky;top:0;z-index:100}
body.admin-bar .site-header{top:32px}
#spenden{scroll-margin-top:90px}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:760px){.impact-card .impact-image{height:auto;max-height:340px;object-fit:contain}}

/* v1.7: partner link in donation box */
.donation-partner-link{color:#275b48;font-weight:650}
