:root{
  --bg:#f5f7fb; --card:#ffffff; --text:#1f2937; --muted:#667085; --line:#d9e0ea;
  --primary:#246b91; --primary2:#49a6c7; --accent:#d8a23a; --shadow:0 14px 40px rgba(20,30,50,.12);
  --radius:22px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.6}
a{color:inherit}
.site-shell{max-width:1180px;margin:24px auto;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;border:1px solid rgba(0,0,0,.05)}
.hero{min-height:230px;background:linear-gradient(135deg,var(--primary),var(--primary2));background-size:cover;background-position:center;position:relative}
.hero-overlay{min-height:230px;padding:34px 42px;display:flex;align-items:center;gap:24px;background:linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.03));color:#fff}
.hero h1{font-size:42px;line-height:1.05;margin:0;text-shadow:0 3px 12px rgba(0,0,0,.35)}
.hero p{font-size:20px;margin:10px 0 0;opacity:.94;text-shadow:0 2px 8px rgba(0,0,0,.3)}
.logo{width:92px;height:92px;object-fit:contain;background:rgba(255,255,255,.88);border-radius:18px;padding:10px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.nav{display:flex;gap:4px;flex-wrap:wrap;padding:10px;background:#fff;border-bottom:1px solid var(--line)}
.nav a{text-decoration:none;padding:10px 13px;border-radius:12px;font-weight:700;color:var(--primary)}
.nav a:hover{background:rgba(36,107,145,.1)}
.layout{display:block;padding:30px}
.content{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;min-height:360px}
.content h2{margin-top:0;font-size:31px;color:var(--primary)}
.content h3{color:var(--primary);margin-bottom:8px}
/* Bilder im Kundeninhalt: kontrollierte Größen, damit Kundenseiten nicht zerreißen */
.content{overflow:hidden;clear:both}
.content:after{content:"";display:block;clear:both}
.content img{height:auto;border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,.08);max-width:100%}
.content img:not(.img-full):not(.img-left):not(.img-right):not(.img-center){display:block;max-width:420px;width:auto;margin:16px auto}
.img-left{float:left;width:32%;max-width:300px;margin:7px 22px 14px 0}.img-right{float:right;width:32%;max-width:300px;margin:7px 0 14px 22px}.img-center{display:block;max-width:520px;width:auto;margin:18px auto}.img-full{display:block;width:100%;max-width:820px;margin:20px auto}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.info-grid>div{border:1px solid var(--line);border-radius:18px;padding:18px;background:#f8fbff}
.contact-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:24px}.contact-form label{display:block;font-weight:700;margin:10px 0 5px}.contact-form input,.contact-form textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:14px 15px;font:inherit;background:#fff}.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}.contact-form button{margin-top:14px;border:0;border-radius:14px;background:var(--primary);color:#fff;padding:14px 22px;font-weight:800;cursor:pointer}.contact-box{background:#f6f9fc;border:1px solid var(--line);border-radius:18px;padding:20px}.notice{padding:13px 16px;border-radius:14px;margin-bottom:18px;font-weight:700}.notice.ok{background:#e9f8ef;color:#126b35}.notice.error{background:#fff0f0;color:#9c1c1c}.small-note{color:var(--muted);font-size:14px}
.counter{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;width:100%;clear:both;background:#f8fafc;border-top:1px solid var(--line);padding:12px}.counter span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:14px;white-space:nowrap}.footer{display:flex;justify-content:center;padding:18px;background:#fff;color:var(--muted);border-top:1px solid var(--line)}
.nav-left .site-shell{display:grid;grid-template-columns:240px 1fr;grid-template-areas:"hero hero" "nav main" "counter counter" "footer footer"}.nav-left .hero{grid-area:hero}.nav-left .nav{grid-area:nav;display:block;border-right:1px solid var(--line);border-bottom:0;padding:16px}.nav-left .nav a{display:block;margin-bottom:6px}.nav-left .layout{grid-area:main}.nav-left .counter{grid-area:counter}.nav-left .footer{grid-area:footer}
.template-zahnarzt-hell{--primary:#187c95;--primary2:#8fd7e6;--accent:#8ecae6;--bg:#eefafd}.template-ferienwohnung{--primary:#6b7d2f;--primary2:#c6a15b;--accent:#d49d3a;--bg:#f8f4ec}.template-cafe-gemuetlich{--primary:#6f4328;--primary2:#c38b5f;--accent:#e0b15b;--bg:#fbf2e8}.template-restaurant-klassik{--primary:#4c1f23;--primary2:#a83f3f;--accent:#d4af37;--bg:#f7eeee}.template-hotel-pension{--primary:#26314f;--primary2:#617399;--accent:#c9a64b;--bg:#eef1f7}.template-elektriker{--primary:#183b72;--primary2:#f3c221;--accent:#f3c221;--bg:#edf4ff}.template-drk-verein{--primary:#b00020;--primary2:#ef4b5f;--accent:#ffffff;--bg:#f7f7f7}.template-klar-business{--primary:#1d3557;--primary2:#457b9d;--accent:#a8dadc;--bg:#f1f5f9}.template-witzig-bunt{--primary:#7b2cbf;--primary2:#ff8500;--accent:#ffd60a;--bg:#fff7e6}.template-witzig-bunt .hero-overlay{background:linear-gradient(90deg,rgba(123,44,191,.72),rgba(255,133,0,.45))}

/* Demo-Musterseite: verkaufsstarke Inhaltsbausteine */
.demo-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(216,162,58,.14);color:#8a5d12;border:1px solid rgba(216,162,58,.28);border-radius:999px;padding:7px 12px;font-weight:800;font-size:14px;margin-bottom:10px}
.lead{font-size:19px;color:#536173;max-width:900px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 10px}.button{display:inline-block;text-decoration:none;border-radius:999px;padding:12px 18px;font-weight:900}.button.primary{background:var(--primary);color:#fff}.button.secondary{background:#fff;color:var(--primary);border:1px solid var(--line)}
.hero-demo-image{box-shadow:0 18px 38px rgba(20,35,55,.16)!important}
.feature-grid,.service-grid,.branch-grid,.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.feature-card,.service-grid>div,.branch-grid>div,.team-grid>div{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f7fbff);padding:19px;box-shadow:0 8px 22px rgba(20,30,50,.05)}.feature-card span{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--primary);color:#fff;font-weight:900;margin-bottom:8px}.feature-card h3,.service-grid h3,.branch-grid h3,.team-grid h3{margin-top:4px}
.split-section{display:block;clear:both;margin:28px 0;padding:22px;border-radius:18px;background:#f8fbff;border:1px solid var(--line);overflow:hidden}.quote-box{margin:26px 0 0;padding:22px;border-left:6px solid var(--accent);background:#fff8e9;border-radius:16px;font-size:22px;font-weight:800;color:#26314f}
.timeline{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:24px 0}.timeline>div{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;padding:20px 20px 20px 76px}.timeline b{position:absolute;left:20px;top:22px;width:38px;height:38px;border-radius:999px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}.timeline h3{margin-top:0}.avatar{width:78px;height:78px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;margin-bottom:10px;box-shadow:0 10px 24px rgba(20,30,50,.14)}

@media(max-width:760px){.feature-grid,.service-grid,.branch-grid,.team-grid,.timeline{grid-template-columns:1fr}.site-shell{margin:0;border-radius:0}.hero-overlay{padding:24px;min-height:190px}.hero h1{font-size:32px}.hero p{font-size:17px}.layout{padding:16px}.content{padding:20px}.info-grid,.contact-grid,.contact-layout,.modern-contact-form .form-row.two{grid-template-columns:1fr}.contact-hero{display:block}.contact-hero h2{font-size:32px}.contact-badges{justify-content:flex-start;margin-top:14px}.nav-left .site-shell{display:block}.img-left,.img-right,.img-center,.img-full{float:none;display:block;width:auto;max-width:100%;margin:16px auto}.nav{display:block}.nav a{display:block}}

/* Galerie: kleine Vorschaubilder mit Klick-Vergrößerung */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:24px;clear:both}
.gallery-item{display:block;text-decoration:none;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 18px rgba(0,0,0,.06);transition:transform .15s ease, box-shadow .15s ease}
.gallery-item:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.1)}
.gallery-item img{display:block;width:100%;height:120px;object-fit:cover;border-radius:0;box-shadow:none;margin:0;max-width:none}
.gallery-item span{display:block;padding:8px 10px;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.82);z-index:9999;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(96vw,1200px);max-height:88vh;object-fit:contain;border-radius:14px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.lightbox-close{position:absolute;top:18px;right:22px;width:44px;height:44px;border:0;border-radius:999px;background:#fff;color:#111827;font-size:32px;line-height:1;cursor:pointer}

/* Demo-Musterseite: verkaufsstarke Inhaltsbausteine */
.demo-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(216,162,58,.14);color:#8a5d12;border:1px solid rgba(216,162,58,.28);border-radius:999px;padding:7px 12px;font-weight:800;font-size:14px;margin-bottom:10px}
.lead{font-size:19px;color:#536173;max-width:900px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 10px}.button{display:inline-block;text-decoration:none;border-radius:999px;padding:12px 18px;font-weight:900}.button.primary{background:var(--primary);color:#fff}.button.secondary{background:#fff;color:var(--primary);border:1px solid var(--line)}
.hero-demo-image{box-shadow:0 18px 38px rgba(20,35,55,.16)!important}
.feature-grid,.service-grid,.branch-grid,.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.feature-card,.service-grid>div,.branch-grid>div,.team-grid>div{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f7fbff);padding:19px;box-shadow:0 8px 22px rgba(20,30,50,.05)}.feature-card span{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--primary);color:#fff;font-weight:900;margin-bottom:8px}.feature-card h3,.service-grid h3,.branch-grid h3,.team-grid h3{margin-top:4px}
.split-section{display:block;clear:both;margin:28px 0;padding:22px;border-radius:18px;background:#f8fbff;border:1px solid var(--line);overflow:hidden}.quote-box{margin:26px 0 0;padding:22px;border-left:6px solid var(--accent);background:#fff8e9;border-radius:16px;font-size:22px;font-weight:800;color:#26314f}
.timeline{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:24px 0}.timeline>div{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;padding:20px 20px 20px 76px}.timeline b{position:absolute;left:20px;top:22px;width:38px;height:38px;border-radius:999px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}.timeline h3{margin-top:0}.avatar{width:78px;height:78px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;margin-bottom:10px;box-shadow:0 10px 24px rgba(20,30,50,.14)}

@media(max-width:760px){.gallery-grid{grid-template-columns:repeat(2,1fr);gap:10px}.gallery-item img{height:105px}.lightbox{padding:12px}.lightbox img{max-height:72vh}.lightbox-caption{font-size:15px}}


.contact-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px;padding:8px 4px 0}
.contact-hero h2{font-size:42px;margin:6px 0 8px;color:#14213d}
.contact-hero .lead{max-width:900px}
.eyebrow{display:inline-block;background:#eaf2ff;color:var(--primary);font-weight:800;border-radius:999px;padding:8px 14px;font-size:13px;letter-spacing:.02em}
.contact-badges{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.contact-badges span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-weight:700;color:#274060;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.contact-layout{display:grid;grid-template-columns:.95fr 1.25fr;gap:24px;align-items:start}
.contact-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.contact-panel h3{margin:0 0 10px;font-size:28px;color:#14213d}
.contact-intro{margin:0 0 18px;color:var(--muted)}
.contact-info-list{display:grid;gap:12px;margin-bottom:18px}
.contact-info-item{background:#f7fbff;border:1px solid #dbe7f3;border-radius:16px;padding:14px 16px}
.contact-info-item strong{display:block;color:#173b67;font-size:14px;margin-bottom:4px}
.contact-info-item span{display:block;color:#1f2937;font-size:18px;line-height:1.4}
.contact-note{background:#eef6ff;border:1px dashed #b8d3ff;border-radius:16px;padding:14px 16px;color:#30527a}
.modern-contact-form .form-row{margin-bottom:16px}
.modern-contact-form .form-row.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.modern-contact-form textarea{min-height:180px;resize:vertical}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;min-width:240px}
.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(8,15,27,.88);z-index:9999;padding:24px}
.lightbox.open{display:flex}
.lightbox-stage{max-width:min(96vw,1280px);max-height:92vh;display:flex;flex-direction:column;align-items:center;gap:14px}
.lightbox img{display:block;max-width:min(96vw,1280px);max-height:80vh;object-fit:contain;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.lightbox-caption{max-width:min(90vw,1000px);text-align:center;color:#fff;font-size:18px;font-weight:700;line-height:1.5}
.lightbox-close{position:absolute;top:18px;right:22px;width:46px;height:46px;border:0;border-radius:999px;background:#fff;color:#111827;font-size:32px;line-height:1;cursor:pointer;box-shadow:0 12px 34px rgba(0,0,0,.25)}
.gallery-item{position:relative}
.gallery-item::after{content:"Klick zum Vergrößern";position:absolute;left:10px;right:10px;bottom:40px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;font-weight:700;text-align:center;padding:7px 10px;border-radius:999px;opacity:0;transform:translateY(6px);transition:all .18s ease}
.gallery-item:hover::after{opacity:1;transform:translateY(0)}


/* v1.33 – sichere Banner-Korrektur nur für Fun-Templates
   Ziel: weniger milchig, weniger Beschnitt, Motiv kleiner und sauberer sichtbar.
   PHP und template_library.php bleiben unverändert. */
body.template-witzig-bunt .hero{
  min-height:360px !important;
  background-color:#071225 !important;
  background-size:100% 100%, auto 100% !important;
  background-position:center center, right center !important;
  background-repeat:no-repeat, no-repeat !important;
}

body.template-witzig-bunt .hero-overlay{
  min-height:360px !important;
  background:linear-gradient(90deg,
    rgba(6,9,20,.82) 0%,
    rgba(6,9,20,.52) 38%,
    rgba(6,9,20,.16) 66%,
    rgba(6,9,20,.02) 100%
  ) !important;
  padding:34px 42px !important;
}

body.template-witzig-bunt .hero-overlay > div{
  max-width:560px;
}

body.template-witzig-bunt .hero h1,
body.template-witzig-bunt .hero p{
  text-shadow:0 3px 12px rgba(0,0,0,.58);
}

@media(max-width:760px){
  body.template-witzig-bunt .hero{
    min-height:300px !important;
    background-size:100% 100%, auto 100% !important;
    background-position:center center, right center !important;
  }
  body.template-witzig-bunt .hero-overlay{
    min-height:300px !important;
    padding:24px 22px !important;
    background:linear-gradient(90deg,
      rgba(6,9,20,.86) 0%,
      rgba(6,9,20,.56) 54%,
      rgba(6,9,20,.12) 100%
    ) !important;
  }
}

/* =========================================================
   HS Kunden-Web v1.40 – kompakte Template-Vorschau
   Gilt nur für die öffentliche Template-Vorschau und Admin-Iframes.
   Ziel: Schriften, Karten, Buttons und Abstände kleiner halten.
   ========================================================= */
body.template-public-preview .site-shell{
  max-width:1120px;
  margin:14px auto;
  border-radius:18px;
}
body.template-public-preview .hero{
  min-height:190px;
}
body.template-public-preview .hero-overlay{
  min-height:190px;
  padding:24px 34px;
  gap:18px;
}
body.template-public-preview .logo{
  width:70px;
  height:70px;
  border-radius:14px;
}
body.template-public-preview .hero h1{
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.02em;
}
body.template-public-preview .hero p{
  font-size:17px;
  line-height:1.35;
  margin-top:7px;
}
body.template-public-preview .nav{
  padding:8px 10px;
  gap:3px;
}
body.template-public-preview .nav a{
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
}
body.template-public-preview .layout{
  padding:20px;
}
body.template-public-preview .content{
  padding:22px;
  min-height:260px;
  border-radius:16px;
}
body.template-public-preview .content h2,
body.template-public-preview .contact-hero h2{
  font-size:25px;
  line-height:1.18;
  margin-bottom:10px;
}
body.template-public-preview .content h3,
body.template-public-preview .feature-card h3,
body.template-public-preview .service-grid h3,
body.template-public-preview .branch-grid h3,
body.template-public-preview .team-grid h3{
  font-size:19px;
  line-height:1.25;
}
body.template-public-preview .content p,
body.template-public-preview .content li,
body.template-public-preview .lead,
body.template-public-preview .small-note{
  font-size:15px;
  line-height:1.5;
}
body.template-public-preview .demo-kicker{
  font-size:12px;
  padding:6px 10px;
}
body.template-public-preview .cta-row{
  margin:14px 0 8px;
  gap:9px;
}
body.template-public-preview .button,
body.template-public-preview .btn,
body.template-public-preview .contact-form button,
body.template-public-preview .primary-btn{
  font-size:13px;
  padding:9px 14px;
  border-radius:999px;
  min-width:0;
}
body.template-public-preview .feature-grid,
body.template-public-preview .service-grid,
body.template-public-preview .branch-grid,
body.template-public-preview .team-grid{
  gap:13px;
  margin:18px 0;
}
body.template-public-preview .feature-card,
body.template-public-preview .service-grid>div,
body.template-public-preview .branch-grid>div,
body.template-public-preview .team-grid>div{
  padding:15px;
  border-radius:15px;
}
body.template-public-preview .feature-card span{
  width:31px;
  height:31px;
  border-radius:10px;
  font-size:13px;
}
body.template-public-preview .split-section{
  margin:20px 0;
  padding:17px;
  border-radius:15px;
}
body.template-public-preview .quote-box{
  margin-top:18px;
  padding:16px;
  border-radius:14px;
  font-size:17px;
}
body.template-public-preview .timeline{
  gap:12px;
  margin:18px 0;
}
body.template-public-preview .timeline>div{
  padding:16px 16px 16px 62px;
  border-radius:15px;
}
body.template-public-preview .timeline b{
  left:16px;
  top:17px;
  width:32px;
  height:32px;
  font-size:16px;
}
body.template-public-preview .img-full{
  max-width:720px;
  margin:15px auto;
}
body.template-public-preview .hero-demo-image{
  max-height:300px;
  object-fit:cover;
}
body.template-public-preview .gallery-grid{
  grid-template-columns:repeat(auto-fill,minmax(125px,1fr));
  gap:10px;
}
body.template-public-preview .gallery-item img{
  height:96px;
}
body.template-public-preview .contact-layout,
body.template-public-preview .info-grid{
  gap:16px;
}
body.template-public-preview .contact-panel,
body.template-public-preview .contact-box{
  padding:18px;
  border-radius:18px;
}
body.template-public-preview .contact-panel h3{
  font-size:22px;
}
body.template-public-preview .modern-contact-form textarea,
body.template-public-preview .contact-form textarea{
  min-height:130px;
}
body.template-public-preview .counter span,
body.template-public-preview .footer{
  font-size:12px;
}

/* Fun-Templates waren durch alte !important-Regeln zu hoch. In der Vorschau bewusst kompakter. */
body.template-public-preview.template-witzig-bunt .hero{
  min-height:240px !important;
  background-size:100% 100%, auto 100% !important;
  background-position:center center, right center !important;
}
body.template-public-preview.template-witzig-bunt .hero-overlay{
  min-height:240px !important;
  padding:24px 34px !important;
}
body.template-public-preview.template-witzig-bunt .hero h1{
  font-size:34px;
}
body.template-public-preview.template-witzig-bunt .hero p{
  font-size:17px;
}
@media(max-width:760px){
  body.template-public-preview .site-shell{margin:0;border-radius:0}
  body.template-public-preview .hero,
  body.template-public-preview .hero-overlay{min-height:170px}
  body.template-public-preview .hero-overlay{padding:20px}
  body.template-public-preview .hero h1{font-size:27px}
  body.template-public-preview .hero p{font-size:15px}
  body.template-public-preview .layout{padding:12px}
  body.template-public-preview .content{padding:16px}
  body.template-public-preview .content h2{font-size:23px}
  body.template-public-preview .feature-grid,
  body.template-public-preview .service-grid,
  body.template-public-preview .branch-grid,
  body.template-public-preview .team-grid,
  body.template-public-preview .timeline{grid-template-columns:1fr}
  body.template-public-preview.template-witzig-bunt .hero,
  body.template-public-preview.template-witzig-bunt .hero-overlay{min-height:210px !important}
}

/* v1.42 – Banner in Fun-/VIP-Templates nicht mehr ziehen */
body.template-witzig-bunt .hero,
body.template-public-preview.template-witzig-bunt .hero{
  min-height:300px !important;
  background-color:#071225 !important;
  background-size:cover !important;
  background-position:72% center !important;
  background-repeat:no-repeat !important;
}

body.template-witzig-bunt .hero-overlay,
body.template-public-preview.template-witzig-bunt .hero-overlay{
  min-height:300px !important;
  padding:28px 34px !important;
  background:linear-gradient(90deg,
    rgba(6,9,20,.84) 0%,
    rgba(6,9,20,.56) 36%,
    rgba(6,9,20,.18) 68%,
    rgba(6,9,20,.04) 100%
  ) !important;
}

body.template-public-preview.template-witzig-bunt .hero h1,
body.template-public-preview.template-witzig-bunt .hero p{
  max-width:560px;
}

@media(max-width:760px){
  body.template-witzig-bunt .hero,
  body.template-public-preview.template-witzig-bunt .hero{
    min-height:230px !important;
    background-size:cover !important;
    background-position:70% center !important;
  }
  body.template-witzig-bunt .hero-overlay,
  body.template-public-preview.template-witzig-bunt .hero-overlay{
    min-height:230px !important;
    padding:22px 20px !important;
    background:linear-gradient(90deg,
      rgba(6,9,20,.88) 0%,
      rgba(6,9,20,.58) 55%,
      rgba(6,9,20,.12) 100%
    ) !important;
  }
}

/* v1.43 – Fun-/VIP-Banner komplett sichtbar, ohne Verzerren */
body.template-witzig-bunt .hero,
body.template-public-preview.template-witzig-bunt .hero{
  background-size:contain !important;
  background-position:right center !important;
  background-repeat:no-repeat !important;
  background-color:#071225 !important;
}

body.template-witzig-bunt .hero-overlay,
body.template-public-preview.template-witzig-bunt .hero-overlay{
  background:linear-gradient(90deg,
    rgba(6,9,20,.94) 0%,
    rgba(6,9,20,.78) 30%,
    rgba(6,9,20,.36) 58%,
    rgba(6,9,20,.08) 100%
  ) !important;
}

@media(max-width:760px){
  body.template-witzig-bunt .hero,
  body.template-public-preview.template-witzig-bunt .hero{
    background-size:contain !important;
    background-position:right center !important;
  }
}

/* v1.44 – normale Branchen-/Handwerker-Banner: Köpfe oben nicht abschneiden */
body.template-public-preview:not(.template-witzig-bunt) .hero{
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
}

/* etwas mehr Bannerhöhe bei normalen Templates, damit weniger vom Motiv verloren geht */
body.template-public-preview:not(.template-witzig-bunt) .hero,
body.template-public-preview:not(.template-witzig-bunt) .hero-overlay{
  min-height:260px !important;
}

@media(max-width:760px){
  body.template-public-preview:not(.template-witzig-bunt) .hero,
  body.template-public-preview:not(.template-witzig-bunt) .hero-overlay{
    min-height:210px !important;
  }
  body.template-public-preview:not(.template-witzig-bunt) .hero{
    background-position:center top !important;
  }
}


/* Templates: Hilfsorganisationen & Vereine */
.template-hilfsorganisation .hero{background-position:center center;background-size:cover;background-repeat:no-repeat;min-height:330px;background-color:#14233a}.template-hilfsorganisation .hero-overlay{background:linear-gradient(90deg,rgba(0,0,0,.60),rgba(0,0,0,.25),rgba(0,0,0,.05));min-height:330px;display:flex;align-items:center;padding:46px 54px}.template-hilfsorganisation .hero h1{font-size:54px;line-height:1.05;margin:0 0 10px;color:#fff;text-shadow:0 3px 12px rgba(0,0,0,.35)}.template-hilfsorganisation .hero p{font-size:25px;font-weight:800;color:#fff;text-shadow:0 3px 10px rgba(0,0,0,.3)}.hilfe-intro{margin-bottom:28px}.hilfe-kicker{display:inline-flex;background:#fff4df;color:#8a5a16;border:1px solid #ecd496;border-radius:999px;padding:7px 13px;font-weight:900;margin-bottom:14px}.hilfe-intro h2{font-size:38px;line-height:1.15;margin:0 0 12px;color:#102a4c}.hilfe-intro .lead{font-size:19px;color:#40516b;max-width:920px}.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.primary-btn,.secondary-btn{display:inline-flex;text-decoration:none;border-radius:999px;padding:12px 19px;font-weight:900}.primary-btn{background:#0b5ed7;color:#fff!important}.secondary-btn{background:#fff;color:#0b4d86!important;border:1px solid #cfdbea}.hilfe-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0}.hilfe-card-grid article{background:#fff;border:1px solid #dfe8f3;border-radius:20px;overflow:hidden;box-shadow:0 12px 28px rgba(16,27,53,.07)}.hilfe-card-grid img{width:100%;height:150px;object-fit:cover;display:block}.hilfe-card-grid h3{font-size:20px;color:#0b1f36;margin:16px 16px 8px}.hilfe-card-grid p{font-size:15px;line-height:1.5;color:#4d5d74;margin:0 16px 18px}.hilfe-text-block{background:#f8fbff;border:1px solid #dfe8f3;border-radius:22px;padding:24px;margin:24px 0}.hilfe-text-block h3{margin:0 0 8px;color:#0b1f36}.hilfe-text-block p{margin:0;color:#40516b;line-height:1.65}@media(max-width:1050px){.hilfe-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.template-hilfsorganisation .hero,.template-hilfsorganisation .hero-overlay{min-height:250px}.template-hilfsorganisation .hero-overlay{padding:28px 22px}.template-hilfsorganisation .hero h1{font-size:34px}.template-hilfsorganisation .hero p{font-size:20px}.hilfe-card-grid{grid-template-columns:1fr}.hilfe-card-grid img{height:190px}}


/* Hilfsorganisationen Banner heller und klarer */
body.template-hilfsorganisation .hero,
body.template-public-preview.template-hilfsorganisation .hero{background-position:center center !important;background-size:cover !important;background-repeat:no-repeat !important;}

body.template-hilfsorganisation .hero-overlay,
body.template-public-preview.template-hilfsorganisation .hero-overlay{
  background:linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.10), rgba(0,0,0,.02)) !important;
  min-height:330px !important;
  padding:38px 46px !important;
}

body.template-hilfsorganisation .hero-overlay > div,
body.template-public-preview.template-hilfsorganisation .hero-overlay > div{
  max-width:720px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px 18px;
}

body.template-hilfsorganisation .hero h1,
body.template-public-preview.template-hilfsorganisation .hero h1{
  font-size:46px !important;
  line-height:1.04 !important;
  margin:0 0 8px !important;
  color:#fff !important;
  text-shadow:-1px -1px 0 rgba(0,0,0,.32),1px -1px 0 rgba(0,0,0,.32),-1px 1px 0 rgba(0,0,0,.32),1px 1px 0 rgba(0,0,0,.32),0 2px 10px rgba(0,0,0,.18) !important;
}

body.template-hilfsorganisation .hero p,
body.template-public-preview.template-hilfsorganisation .hero p{
  font-size:22px !important;
  font-weight:800 !important;
  color:#fff !important;
  text-shadow:-1px -1px 0 rgba(0,0,0,.28),1px -1px 0 rgba(0,0,0,.28),-1px 1px 0 rgba(0,0,0,.28),1px 1px 0 rgba(0,0,0,.28),0 2px 8px rgba(0,0,0,.15) !important;
}

@media(max-width:720px){
  body.template-hilfsorganisation .hero-overlay,
  body.template-public-preview.template-hilfsorganisation .hero-overlay{min-height:240px !important;padding:24px 18px !important;}
  body.template-hilfsorganisation .hero-overlay > div,
  body.template-public-preview.template-hilfsorganisation .hero-overlay > div{padding:12px 14px !important;border-radius:14px !important;}
  body.template-hilfsorganisation .hero h1,
  body.template-public-preview.template-hilfsorganisation .hero h1{font-size:32px !important;}
  body.template-hilfsorganisation .hero p,
  body.template-public-preview.template-hilfsorganisation .hero p{font-size:18px !important;}
}


/* Hilfsorganisationen: kein doppelter Schriftzug im Banner + klarer Zurück-Button */
.template-back-row{padding:12px 28px 0}.template-back-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;padding:10px 16px;font-weight:900;background:#fff;color:#0b4d86;border:1px solid #cfdbea;box-shadow:0 8px 18px rgba(16,27,53,.05)}.template-back-btn:hover{background:#0b5ed7;color:#fff}
body.template-public-preview.template-hilfsorganisation .hero, body.template-hilfsorganisation .hero{min-height:320px !important;background-position:center center !important;background-size:cover !important;}
@media(max-width:720px){.template-back-row{padding:10px 16px 0}.template-back-btn{width:100%;text-align:center}body.template-public-preview.template-hilfsorganisation .hero, body.template-hilfsorganisation .hero{min-height:220px !important;}}


/* Hilfsorganisationen: Bilder nicht mehr hart abschneiden */
body.template-hilfsorganisation .hilfe-card-grid img,
body.template-public-preview.template-hilfsorganisation .hilfe-card-grid img{
  object-fit:contain !important;
  background:#f6f9fd !important;
}

body.template-hilfsorganisation .demo-gallery img,
body.template-public-preview.template-hilfsorganisation .demo-gallery img{
  object-fit:contain !important;
  background:#f6f9fd !important;
}

body.template-hilfsorganisation .hero,
body.template-public-preview.template-hilfsorganisation .hero{
  background-size:cover !important;
  background-position:center center !important;
}
