/* ============================================================
   Gedenkseiten – Frontend-Design (aus dem abgestimmten Prototyp)
   Farben mit !important, damit Themes sie nicht überschreiben.
   ============================================================ */
.gsk-gedenkseite{
  --gsk-tanne:#2b3733;--gsk-tanne-tief:#1f2926;--gsk-leinen:#f6f4ef;
  --gsk-nebel:#d8dbd2;--gsk-text:#3a423e;--gsk-text-leise:#6d756f;
  --gsk-gold:#ab8434;--gsk-gold-hell:#e6c56d;--gsk-flamme:#f0b429;
  --gsk-weiss:#fdfcfa;--gsk-radius:6px;
  font-family:Mulish,"Open Sans",sans-serif;
  background:var(--gsk-leinen) !important;
  color:var(--gsk-text) !important;
  line-height:1.7;
}
.gsk-gedenkseite *,.gsk-gedenkseite *::before,.gsk-gedenkseite *::after{box-sizing:border-box}
.gsk-wrap{max-width:1200px;margin:0 auto;padding:0 clamp(1.2rem,4vw,3rem)}
.gsk-serif{font-family:"Cormorant Garamond",Georgia,serif !important}
.gsk-honeypot{position:absolute !important;left:-9999px !important;opacity:0}


/* ============================================================
   FULL-BLEED: Sektionen aus dem Theme-Container ausbrechen.
   Damit laufen die dunklen Flächen über die volle Breite –
   wie im abgestimmten Prototyp, egal wie schmal das Theme ist.
   ============================================================ */
.gsk-gedenkseite{overflow-x:hidden}
.gsk-hero-bild,.gsk-hero-text,.gsk-nachruf,.gsk-termine,.gsk-kerzen,.gsk-kondolenz{
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
}

/* ---------- Hero-Bild ---------- */
.gsk-hero-bild{background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(230,197,109,.08), transparent 60%),
    linear-gradient(180deg,var(--gsk-tanne) 0%,#26312d 100%) !important;
  padding:clamp(2.6rem,6vw,4.5rem) 0 clamp(2.2rem,5vw,3.5rem)}
.gsk-foto-rahmen{max-width:980px;margin:0 auto;border:1px solid rgba(230,197,109,.45);
  padding:12px;background:rgba(255,255,255,.04);border-radius:var(--gsk-radius);
  box-shadow:0 26px 70px rgba(0,0,0,.4)}
.gsk-foto-rahmen img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  border-radius:4px}

.gsk-bild-titel{text-align:center;font-family:"Cormorant Garamond",Georgia,serif !important;
  font-style:italic;color:#adbcb3 !important;font-size:1.05rem;margin:1.1rem 0 0}

/* ---------- Hero-Text ---------- */
.gsk-hero-text{background:linear-gradient(180deg,#26312d 0%,var(--gsk-tanne-tief) 100%) !important;
  color:var(--gsk-leinen) !important;text-align:center;
  padding:clamp(2.8rem,6vw,4.5rem) 0 clamp(3.2rem,7vw,5rem);
  border-bottom:1px solid rgba(230,197,109,.35)}
.gsk-eyebrow{font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--gsk-gold-hell) !important;font-weight:700;margin:0 0 1.6rem;
  display:flex;align-items:center;justify-content:center;gap:1rem}
.gsk-eyebrow::before,.gsk-eyebrow::after{content:"";height:1px;width:70px;
  background:linear-gradient(90deg,transparent,var(--gsk-gold-hell),transparent)}
.gsk-hero-text h1{font-weight:500;font-size:clamp(2.6rem,6vw,4.4rem);line-height:1.08;
  color:var(--gsk-leinen) !important;margin:0}
.gsk-geb{font-style:italic;font-size:1.35rem;color:#adbcb3 !important;margin:.5rem 0 0}
.gsk-lebensdaten{margin:1.8rem 0 0;font-size:1.05rem;letter-spacing:.05em;color:#ccd6cf !important;
  display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}
.gsk-stern{color:var(--gsk-gold-hell) !important;margin-right:.35rem}
.gsk-motto{font-style:italic;font-size:clamp(1.3rem,2.5vw,1.7rem);color:#e3e9e3 !important;
  line-height:1.55;margin:2.4rem auto 0;max-width:38rem;border:none;padding:0}
.gsk-motto cite{display:block;font-style:normal;font-family:Mulish,sans-serif !important;
  font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;color:#9cada4 !important;margin-top:1rem}
.gsk-passwort{margin-top:2rem;color:var(--gsk-leinen)}

/* ---------- Sektionen im Inhalt ---------- */
.gsk-nachruf,.gsk-termine,.gsk-kondolenz{padding:clamp(3rem,6.5vw,5rem) 0;
  background:var(--gsk-leinen) !important}
.gsk-label{font-size:.7rem;letter-spacing:.28em;text-transform:uppercase;
  color:var(--gsk-gold) !important;font-weight:700;margin:0 0 .7rem;
  display:flex;align-items:center;gap:.9rem}
.gsk-label::after{content:"";height:1px;width:48px;
  background:linear-gradient(90deg,currentColor,transparent)}
.gsk-nachruf h2,.gsk-termine h2,.gsk-kondolenz h2{font-weight:600;
  font-size:clamp(1.9rem,3.5vw,2.5rem);color:var(--gsk-tanne) !important;margin:0 0 1rem}
.gsk-nachruf-inhalt{max-width:46rem;font-size:1.06rem;color:var(--gsk-text) !important}
.gsk-nachruf-inhalt p{margin:0 0 1.25rem}
.gsk-nachruf-inhalt > p:first-of-type::first-letter{font-family:"Cormorant Garamond",serif;
  font-size:3.6rem;float:left;line-height:.82;padding-right:.6rem;color:var(--gsk-gold) !important}

/* ---------- Termine ---------- */
.gsk-termin-card{background:var(--gsk-weiss) !important;border:1px solid var(--gsk-nebel);
  border-top:3px solid var(--gsk-gold);border-radius:var(--gsk-radius);
  padding:2.2rem 2.4rem;display:grid;grid-template-columns:1fr 1fr;gap:1.8rem 2.5rem}
.gsk-t-label{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gsk-gold) !important;font-weight:700;margin-bottom:.45rem}
.gsk-t-wert{font-weight:600;color:var(--gsk-tanne) !important;font-size:1.45rem;line-height:1.3}
.gsk-t-sub{font-size:.95rem;color:var(--gsk-text-leise) !important;margin-top:.3rem}
.gsk-termin-hinweis{grid-column:1/-1;color:var(--gsk-text-leise) !important;
  border-top:1px dashed var(--gsk-nebel);padding-top:1.3rem;font-style:italic;font-size:1.08rem}

/* ---------- Kerzen ---------- */
.gsk-kerzen{background:
    radial-gradient(ellipse 80% 90% at 50% 110%, rgba(230,197,109,.10), transparent 65%),
    linear-gradient(180deg,var(--gsk-tanne) 0%,var(--gsk-tanne-tief) 100%) !important;
  color:var(--gsk-leinen) !important;padding:clamp(3rem,6.5vw,5rem) 0}
.gsk-kerzen .gsk-label{color:var(--gsk-gold-hell) !important}
.gsk-kerzen h2{color:var(--gsk-leinen) !important;font-weight:600;
  font-size:clamp(1.9rem,3.5vw,2.5rem);margin:0 0 1rem}
.gsk-kerzen-zaehler{font-size:.95rem;color:#adbcb3 !important;margin:0 0 1.5rem}
.gsk-kerzen-zaehler strong{color:var(--gsk-gold-hell) !important}
.gsk-kerzen-wand{display:flex;flex-wrap:wrap;gap:1.9rem 2.2rem;margin:0 0 2.4rem;
  align-items:flex-end;min-height:60px}
.gsk-kerze{display:flex;flex-direction:column;align-items:center;width:84px}
.gsk-flamme{width:12px;height:22px;margin-bottom:2px;
  background:radial-gradient(circle at 50% 78%,#fff 0%,var(--gsk-gold-hell) 36%,var(--gsk-flamme) 66%,rgba(240,180,41,0) 100%);
  border-radius:50% 50% 50% 50% / 62% 62% 38% 38%;
  filter:drop-shadow(0 0 9px rgba(240,180,41,.8));
  transform-origin:50% 90%;animation:gsk-flackern 2.5s ease-in-out infinite}
.gsk-kerze:nth-child(2n) .gsk-flamme{animation-duration:3.2s;animation-delay:.4s}
.gsk-kerze:nth-child(3n) .gsk-flamme{animation-duration:2.8s;animation-delay:.9s}
@keyframes gsk-flackern{0%,100%{transform:scaleY(1) rotate(-1.5deg)}
  30%{transform:scaleY(1.14) rotate(1.5deg)}55%{transform:scaleY(.93) rotate(-1deg)}
  80%{transform:scaleY(1.07) rotate(2deg)}}
@media (prefers-reduced-motion:reduce){.gsk-flamme{animation:none}}
.gsk-kerzen-koerper{width:22px;height:50px;border-radius:3px 3px 2px 2px;
  background:linear-gradient(180deg,#fdfaf2,#e7ddc3);box-shadow:0 5px 14px rgba(0,0,0,.4)}
.gsk-kerzen-name{font-size:.74rem;color:#adbcb3 !important;margin-top:.6rem;text-align:center;
  line-height:1.35;max-width:84px;overflow-wrap:break-word}
.gsk-kerze-form{display:flex;gap:.8rem;flex-wrap:wrap;max-width:560px}
.gsk-kerze-form input[type=text]{flex:1;min-width:220px}

/* ---------- Formulare & Buttons ---------- */
.gsk-gedenkseite input[type=text],.gsk-gedenkseite textarea{
  font-family:inherit;font-size:.97rem;padding:.8rem 1.1rem;
  border:1px solid var(--gsk-nebel) !important;border-radius:var(--gsk-radius);
  background:var(--gsk-weiss) !important;color:var(--gsk-text) !important;width:100%}
.gsk-btn{font-family:inherit;font-size:.94rem;font-weight:700;letter-spacing:.05em;
  padding:.85rem 1.9rem;border-radius:var(--gsk-radius);border:none;cursor:pointer;
  transition:transform .16s ease,opacity .16s ease}
.gsk-btn:hover{transform:translateY(-1px);opacity:.94}
.gsk-btn-gold{background:var(--gsk-gold) !important;color:#fff !important}
.gsk-btn-tanne{background:var(--gsk-tanne) !important;color:var(--gsk-leinen) !important}

/* ---------- Kondolenzbuch ---------- */
.gsk-kondolenz-grid{display:grid;grid-template-columns:1.15fr .85fr;
  gap:clamp(2rem,4.5vw,3.5rem);align-items:start}
.gsk-eintrag{background:var(--gsk-weiss) !important;border:1px solid var(--gsk-nebel);
  border-left:3px solid var(--gsk-gold);border-radius:var(--gsk-radius);
  padding:1.7rem 2rem;margin-bottom:1.2rem}
.gsk-e-text{font-size:1.28rem;line-height:1.6;color:var(--gsk-tanne) !important;margin:0}
.gsk-e-meta{margin:.9rem 0 0;font-size:.84rem;color:var(--gsk-text-leise) !important;letter-spacing:.05em}
.gsk-leer{color:var(--gsk-text-leise) !important;font-style:italic}
.gsk-kondolenz-form{background:var(--gsk-weiss) !important;border:1px solid var(--gsk-nebel);
  border-top:3px solid var(--gsk-tanne);border-radius:var(--gsk-radius);
  padding:2rem 2.2rem;position:sticky;top:2rem}
.gsk-kondolenz-form h3{font-size:1.55rem;color:var(--gsk-tanne) !important;margin:0 0 .4rem;font-weight:600}
.gsk-form-sub{font-size:.9rem;color:var(--gsk-text-leise) !important;margin:0 0 1rem}
.gsk-kondolenz-form label{display:block;font-size:.76rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--gsk-text-leise) !important;margin:1rem 0 .4rem}
.gsk-einwilligung{display:flex !important;gap:.6rem;align-items:flex-start;
  text-transform:none !important;letter-spacing:0 !important;font-weight:400 !important;
  font-size:.85rem !important;line-height:1.55;margin-top:1.2rem !important}
.gsk-einwilligung input{margin-top:.25rem;width:auto !important}
.gsk-kondolenz-form .gsk-btn{margin-top:1.3rem}
.gsk-moderation{font-size:.85rem;color:var(--gsk-text-leise) !important;margin:1rem 0 0}
.gsk-meldung{background:#eef7ef !important;border:1px solid #bcdec2;border-radius:var(--gsk-radius);
  padding:1rem 1.3rem;color:#2f5d3a !important;font-weight:600;margin:0 0 1.5rem;max-width:640px}
.gsk-meldung-hell{background:rgba(230,197,109,.12) !important;border-color:rgba(230,197,109,.5);
  color:var(--gsk-gold-hell) !important}
.gsk-meldung-fehler{background:#fdf0ee !important;border-color:#e8b8b0;color:#8c3b2e !important}

/* ---------- Teilen ---------- */
.gsk-teilen{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:2.2rem}
.gsk-teilen a,.gsk-teilen button{font-size:.9rem;font-weight:700;color:var(--gsk-tanne) !important;
  text-decoration:none;border:1px solid var(--gsk-nebel);background:var(--gsk-weiss) !important;
  border-radius:var(--gsk-radius);padding:.7rem 1.3rem;cursor:pointer;font-family:inherit}
.gsk-teilen a:hover,.gsk-teilen button:hover{border-color:var(--gsk-gold)}

/* ---------- Responsiv ---------- */
@media (max-width:900px){
  .gsk-kondolenz-grid{grid-template-columns:1fr}
  .gsk-kondolenz-form{position:static}
  .gsk-termin-card{grid-template-columns:1fr}
}

/* ---------- Theme-Störer neutralisieren ---------- */
.gsk-gedenkseite h1,.gsk-gedenkseite h2,.gsk-gedenkseite h3{
  font-family:"Cormorant Garamond",Georgia,serif !important;
  text-transform:none !important;letter-spacing:normal !important}
.gsk-gedenkseite p{margin-top:0}
.gsk-gedenkseite .gsk-eyebrow,.gsk-gedenkseite .gsk-label,
.gsk-gedenkseite .gsk-t-label,.gsk-gedenkseite .gsk-kondolenz-form label{
  font-family:Mulish,"Open Sans",sans-serif !important}

/* ============================================================
   v2: Pflege-Bereich für Angehörige
   ============================================================ */
.gsk-pflege{background:var(--gsk-tanne-tief) !important;color:var(--gsk-leinen) !important;
  padding:1.6rem 0;border-bottom:1px solid rgba(230,197,109,.35);
  width:100vw !important;max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;margin-right:calc(50% - 50vw) !important}
.gsk-pflege-kopf{display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:.8rem;margin-bottom:1rem}
.gsk-pflege-hinweis{font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;
  font-weight:700;color:var(--gsk-gold-hell) !important}
.gsk-pflege-abmelden{font-size:.82rem;color:#9cada4 !important;text-decoration:none;
  border:1px solid rgba(255,255,255,.25);border-radius:var(--gsk-radius);padding:.4rem .9rem}
.gsk-pflege-abmelden:hover{color:#fff !important;border-color:rgba(255,255,255,.5)}
.gsk-panel{background:rgba(255,255,255,.05);border:1px solid rgba(230,197,109,.3);
  border-radius:var(--gsk-radius);margin-bottom:.9rem;overflow:hidden}
.gsk-panel summary{cursor:pointer;list-style:none;padding:1rem 1.4rem;
  font-weight:700;font-size:.95rem;color:var(--gsk-leinen) !important;
  display:flex;align-items:center;gap:.7rem}
.gsk-panel summary::before{content:"+";color:var(--gsk-gold-hell);font-weight:700;
  font-size:1.2rem;line-height:1;transition:transform .2s ease}
.gsk-panel[open] summary::before{transform:rotate(45deg)}
.gsk-panel summary::-webkit-details-marker{display:none}
.gsk-panel-form{padding:0 1.4rem 1.4rem}
.gsk-panel-form label{display:block;font-size:.72rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:#adbcb3 !important;margin:.9rem 0 .35rem;
  font-family:Mulish,"Open Sans",sans-serif !important}
.gsk-panel-form input[type=text],.gsk-panel-form input[type=date],.gsk-panel-form textarea{
  background:rgba(255,255,255,.95) !important}
.gsk-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.4rem}
.gsk-panel-form .gsk-btn{margin-top:1.2rem}
@media (max-width:700px){.gsk-panel-grid{grid-template-columns:1fr}}

/* ============================================================
   v2: Gedenkmomente – Zeitleiste
   ============================================================ */
.gsk-momente{padding:clamp(3rem,6.5vw,5rem) 0;background:var(--gsk-leinen) !important;
  width:100vw !important;max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;margin-right:calc(50% - 50vw) !important}
.gsk-momente h2{font-weight:600;font-size:clamp(1.9rem,3.5vw,2.5rem);
  color:var(--gsk-tanne) !important;margin:0 0 2rem}
.gsk-momente-liste{position:relative;max-width:46rem;padding-left:1.6rem}
.gsk-momente-liste::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:1px;
  background:linear-gradient(180deg,var(--gsk-gold),rgba(171,132,52,.15))}
.gsk-moment{position:relative;display:flex;gap:1.3rem;margin-bottom:1.8rem}
.gsk-moment-punkt{position:absolute;left:-1.6rem;top:6px;width:11px;height:11px;
  border-radius:50%;background:var(--gsk-gold);
  box-shadow:0 0 0 4px rgba(171,132,52,.18)}
.gsk-moment-datum{font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;color:var(--gsk-gold) !important;margin-bottom:.3rem}
.gsk-moment-text{font-size:1.22rem;line-height:1.55;color:var(--gsk-tanne) !important;margin:0}

/* ============================================================
   v3: Eigenständig-Modus – Markenleiste, Footer, Grundreset
   ============================================================ */
body.gsk-standalone{margin:0;padding:0;background:#f6f4ef}
.gsk-standalone .gsk-gedenkseite,.gsk-standalone .gsk-hero-bild,.gsk-standalone .gsk-hero-text,
.gsk-standalone .gsk-nachruf,.gsk-standalone .gsk-termine,.gsk-standalone .gsk-kerzen,
.gsk-standalone .gsk-kondolenz,.gsk-standalone .gsk-momente,.gsk-standalone .gsk-pflege{
  width:auto !important;max-width:none !important;margin-left:0 !important;margin-right:0 !important}
.gsk-brand-bar{background:#1f2926;color:#f6f4ef;
  font-family:Mulish,"Open Sans",sans-serif}
.gsk-brand-innen{display:flex;justify-content:space-between;align-items:center;
  padding-top:1.05rem;padding-bottom:1.05rem;flex-wrap:wrap;gap:.6rem}
.gsk-brand-name{font-size:1.35rem;font-weight:600;letter-spacing:.02em}
.gsk-brand-name a{color:#f6f4ef;text-decoration:none}
.gsk-brand-name small{display:block;font-family:Mulish,"Open Sans",sans-serif;
  font-size:.66rem;letter-spacing:.26em;text-transform:uppercase;
  color:#9cada4;font-weight:600;margin-top:.15rem}
.gsk-brand-links{font-size:.82rem;letter-spacing:.06em}
.gsk-brand-links a{color:#9cada4;text-decoration:none;margin-left:1.6rem}
.gsk-brand-links a:hover{color:#fff}
.gsk-footer{background:#1f2926;color:#9cada4;text-align:center;
  padding:2.6rem 1.5rem;font-size:.84rem;line-height:1.9;
  font-family:Mulish,"Open Sans",sans-serif}
.gsk-footer-brand{color:#f6f4ef;font-size:1.15rem;margin:0 0 .3rem}
.gsk-footer p{margin:0}
@media (max-width:560px){.gsk-brand-links{display:none}}

/* ============================================================
   v3: Nachruf-Split – Bild links, Text rechts (wie in der Vorlage)
   ============================================================ */
.gsk-split{display:grid;grid-template-columns:420px 1fr;
  gap:clamp(2.2rem,5vw,4.5rem);align-items:start}
.gsk-foto-spalte{position:sticky;top:2rem}
.gsk-foto-rahmen-hell{max-width:none;margin:0;padding:0;
  border:1px solid #d8dbd2;background:#fff;
  box-shadow:0 14px 36px rgba(43,55,51,.16)}
.gsk-foto-rahmen-hell img{aspect-ratio:4/3;border-radius:5px}
.gsk-bildunterschrift{font-style:italic;font-size:1rem;color:#6d756f !important;
  text-align:center;margin:.9rem 0 0}
@media (max-width:900px){
  .gsk-split{grid-template-columns:1fr}
  .gsk-foto-spalte{position:static;max-width:480px}
}

/* ============================================================
   v4: Begrenzte, zentrierte Seite im Eigenständig-Modus
   (Breite einstellbar unter Gedenkseiten -> Einstellungen)
   ============================================================ */
body.gsk-standalone{background:#e9e6de}
.gsk-seite{margin:0 auto;background:#f6f4ef;
  box-shadow:0 0 60px rgba(31,41,38,.14)}
.gsk-seite .gsk-wrap{max-width:1200px}

/* ============================================================
   v5: Zurück-Button, unsichtbare Labels, Feinschliff
   ============================================================ */
.gsk-zurueck{font-family:Mulish,"Open Sans",sans-serif;font-size:.88rem;font-weight:700;
  letter-spacing:.04em;color:#9cada4 !important;text-decoration:none;
  border:1px solid rgba(255,255,255,.28);border-radius:6px;padding:.5rem 1.1rem;
  transition:color .16s ease,border-color .16s ease}
.gsk-zurueck:hover{color:#fff !important;border-color:rgba(255,255,255,.6)}

/* Barrierefrei versteckte Labels (im Standalone-Modus fehlt Theme-CSS) */
.gsk-gedenkseite .screen-reader-text{
  position:absolute !important;width:1px;height:1px;
  clip-path:inset(50%);overflow:hidden;white-space:nowrap;margin:-1px;padding:0;border:0}
