/* Gedenkseiten v2: warmes Produktdesign nach Ever-Loved-Muster, Farben je Mandant über CSS-Variablen. */
@font-face { font-family: 'GD Display'; src: url('fonts/display-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'GD Display'; src: url('fonts/display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'GD Body'; src: url('fonts/body-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'GD Body'; src: url('fonts/body-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --gd-radius: 14px;
  --gd-radius-s: 10px;
  --gd-shadow: 0 1px 2px rgba(29, 45, 56, .05), 0 6px 24px rgba(29, 45, 56, .07);
  --gd-shadow-lift: 0 2px 6px rgba(29, 45, 56, .08), 0 18px 40px rgba(29, 45, 56, .12);
  --gd-line: color-mix(in srgb, var(--gd-primary) 11%, transparent);
  --gd-soft: color-mix(in srgb, var(--gd-accent) 12%, var(--gd-bg));
  --gd-rose: #f3e6dd;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--gd-bg); color: var(--gd-text); font: 400 1.0625rem/1.65 'GD Body', 'Lato', system-ui, sans-serif; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gd-primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gd-text); }
h1, h2, h3 { font-family: 'GD Display', 'Playfair Display', Georgia, serif; font-weight: 400; color: var(--gd-primary); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gd-accent) 70%, white); outline-offset: 2px; border-radius: 4px; }
.gd-skip { position: absolute; left: -999px; top: 0; background: var(--gd-surface); padding: .5rem 1rem; z-index: 50; }
.gd-skip:focus { left: 1rem; }
.gd-wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
.gd-narrow { max-width: 40rem; }
section.gd-wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
.gd-muted { color: var(--gd-muted); }
.gd-small { font-size: .9rem; }
.gd-sep { margin: 0 .55em; opacity: .5; }

/* Kopf + Fuß */
.gd-header { background: var(--gd-surface); border-bottom: 1px solid var(--gd-line); position: relative; z-index: 5; }
.gd-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.gd-logo { text-decoration: none; }
.gd-logo img { max-height: 3rem; width: auto; }
.gd-wordmark { font-family: 'GD Display', Georgia, serif; font-size: 1.35rem; color: var(--gd-primary); }
.gd-header-nav { display: flex; gap: 1.25rem; align-items: center; font-size: .95rem; }
.gd-header-nav a { text-decoration: none; }
.gd-phone { font-weight: 700; white-space: nowrap; }
.gd-footer { margin-top: 4rem; background: var(--gd-primary); color: #fff; padding: 2.25rem 0; font-size: .92rem; }
.gd-footer a { color: #fff; }
.gd-footer-brand { font-family: 'GD Display', Georgia, serif; font-size: 1.15rem; }
.gd-footer-note { opacity: .85; }

/* Knöpfe */
.gd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 .98rem/1.2 'GD Body', system-ui, sans-serif; padding: .78rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .15s; }
.gd-btn:hover { transform: translateY(-1px); }
.gd-btn-primary { background: var(--gd-primary); color: #fff; }
.gd-btn-primary:hover { background: color-mix(in srgb, var(--gd-primary) 85%, black); color: #fff; }
.gd-btn-gold { background: var(--gd-accent); color: #2b2416; }
.gd-btn-gold:hover { background: color-mix(in srgb, var(--gd-accent) 88%, black); color: #2b2416; }
.gd-btn-ghost { background: var(--gd-surface); color: var(--gd-primary); border-color: color-mix(in srgb, var(--gd-primary) 22%, transparent); }
.gd-btn-ghost:hover { border-color: var(--gd-primary); color: var(--gd-primary); }
@media (prefers-reduced-motion: reduce) { .gd-btn { transition: none; } .gd-btn:hover { transform: none; } }

/* Symbole (CSS-Masken, keine Icon-Schrift) */
.gd-ico { width: 1.05em; height: 1.05em; display: inline-block; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.gd-ico-flame { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3 4.5 6 7.5 6 11.5a6 6 0 0 1-12 0C6 9.5 9 6.5 12 2Z'/%3E%3C/svg%3E"); }
.gd-ico-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11Z'/%3E%3C/svg%3E"); }
.gd-ico-photo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h3l2-2h6l2 2h3v13H4Zm8 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E"); }

/* Cover + Profil */
.gd-cover { height: clamp(11rem, 30vw, 21rem); background: linear-gradient(135deg, color-mix(in srgb, var(--gd-primary) 80%, black), color-mix(in srgb, var(--gd-accent) 55%, var(--gd-primary))) center / cover no-repeat; background-size: cover; background-position: center 40%; position: relative; }
.gd-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,28,34,.35)); }
.gd-profile { position: relative; z-index: 2; }
.gd-profile-card { margin-top: -5.5rem; background: var(--gd-surface); border-radius: calc(var(--gd-radius) + 4px); box-shadow: var(--gd-shadow-lift); padding: 1.5rem 1.75rem 1.6rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; }
.gd-avatar { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; border: 6px solid var(--gd-surface); box-shadow: var(--gd-shadow); margin-top: -4.5rem; background: var(--gd-soft); }
.gd-avatar-empty { display: grid; place-items: center; font: 400 4rem/1 'GD Display', Georgia, serif; color: var(--gd-accent); }
.gd-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gd-muted); margin-bottom: .3rem; }
.gd-profile h1 { margin-bottom: .1em; }
.gd-years { font: 400 1.35rem/1.3 'GD Display', Georgia, serif; color: var(--gd-accent); margin-bottom: .35rem; filter: saturate(1.1) brightness(.85); }
.gd-life { color: var(--gd-muted); margin-bottom: .75rem; }
.gd-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gd-stats li { display: inline-flex; align-items: center; gap: .4rem; background: var(--gd-soft); color: var(--gd-text); border-radius: 999px; padding: .28rem .8rem; font-size: .9rem; }
.gd-stats .gd-ico { color: color-mix(in srgb, var(--gd-accent) 80%, black); }
.gd-profile-actions { display: flex; flex-direction: column; gap: .6rem; align-self: center; }

/* Abschnittsnavigation */
.gd-tabs { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--gd-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gd-line); margin-top: 1.25rem; }
.gd-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.gd-tabs ul::-webkit-scrollbar { display: none; }
.gd-tabs a { display: block; padding: .9rem .9rem .8rem; text-decoration: none; color: var(--gd-muted); font-weight: 700; font-size: .95rem; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.gd-tabs a:hover, .gd-tabs a[aria-current='true'] { color: var(--gd-primary); border-bottom-color: var(--gd-accent); }

/* Raster */
.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 2rem; padding-top: 2rem; align-items: start; }
.gd-aside { display: grid; gap: 1.25rem; position: sticky; top: 4.25rem; }
.gd-card { background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 1.5rem 1.6rem; }
.gd-section { margin-top: 2.5rem; }
.gd-section > h2, .gd-card > h2 { display: flex; align-items: baseline; gap: .6rem; }
.gd-side-card h2 { font-size: 1.3rem; }
.gd-count { font: 700 .85rem/1 'GD Body', system-ui, sans-serif; color: var(--gd-muted); background: var(--gd-soft); border-radius: 999px; padding: .3rem .6rem; }
.gd-prose { font-size: 1.08rem; }
.gd-prose p:last-child { margin-bottom: 0; }
.gd-subhead { margin-top: 1.75rem; font-size: 1.15rem; }
.gd-empty { background: var(--gd-surface); border: 1.5px dashed var(--gd-line); border-radius: var(--gd-radius); padding: 1.5rem; text-align: center; color: var(--gd-muted); }
.gd-notice { background: color-mix(in srgb, var(--gd-accent) 16%, var(--gd-surface)); border-radius: var(--gd-radius-s); padding: .9rem 1.1rem; }
.gd-error { background: #fbeaea; border-radius: var(--gd-radius-s); padding: .9rem 1.1rem; }
.gd-preview-band { background: var(--gd-primary); color: #fff; text-align: center; padding: .55rem 1rem; margin: 0; font-size: .95rem; }

/* Lebensweg */
.gd-timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.gd-timeline::before { content: ''; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 2px; background: color-mix(in srgb, var(--gd-accent) 45%, transparent); }
.gd-timeline li { position: relative; padding: .3rem 0 .9rem; display: grid; gap: .1rem; }
.gd-timeline li::before { content: ''; position: absolute; left: -1.28rem; top: .62rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--gd-surface); border: 2.5px solid var(--gd-accent); }
.gd-tl-label { font-weight: 700; color: var(--gd-primary); font-size: .95rem; }

/* Erinnerungen */
.gd-feed { display: grid; gap: 1.1rem; margin-top: 1.1rem; }
.gd-memory header { display: flex; gap: .85rem; align-items: center; margin-bottom: .8rem; }
.gd-memory header div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; flex: 1; }
.gd-memory time { width: 100%; font-size: .85rem; color: var(--gd-muted); }
.gd-initial { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--gd-rose); color: var(--gd-primary); font: 400 1.25rem/1 'GD Display', Georgia, serif; flex: none; }
.gd-initial-soft { background: var(--gd-soft); color: var(--gd-accent); font-family: 'GD Body', sans-serif; font-weight: 700; }
.gd-memory-photos { display: grid; gap: .4rem; margin-top: 1rem; border-radius: var(--gd-radius-s); overflow: hidden; }
.gd-memory-photos.gd-n2 { grid-template-columns: 1fr 1fr; }
.gd-memory-photos.gd-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gd-memory-photos.gd-n3 a:first-child { grid-row: span 2; }
.gd-memory-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gd-memory-photos.gd-n3 a:not(:first-child) img { aspect-ratio: auto; height: 100%; }
.gd-compose summary { list-style: none; display: flex; align-items: center; gap: .85rem; cursor: pointer; color: var(--gd-muted); font-size: 1.05rem; }
.gd-compose summary::-webkit-details-marker { display: none; }
.gd-compose[open] summary { color: var(--gd-primary); font-weight: 700; margin-bottom: .25rem; }

/* Fotos */
.gd-gallery { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.gd-gallery a { display: block; border-radius: var(--gd-radius-s); overflow: hidden; }
.gd-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.gd-gallery a:hover img { transform: scale(1.03); }

/* Trauerfeier */
.gd-event { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--gd-line); }
.gd-event:first-of-type { border-top: 0; padding-top: .25rem; }
.gd-event-date { flex: none; width: 3.8rem; text-align: center; border-radius: var(--gd-radius-s); overflow: hidden; background: var(--gd-soft); align-self: flex-start; }
.gd-event-date span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gd-muted); padding: .2rem 0; }
.gd-event-date span:first-child { background: var(--gd-primary); color: #fff; }
.gd-event-date strong { display: block; font: 400 1.75rem/1.1 'GD Display', Georgia, serif; color: var(--gd-primary); }
.gd-event-body { flex: 1; min-width: 0; }
.gd-event-body h3 { margin-bottom: .2rem; }
.gd-event-body p { margin-bottom: .45rem; font-size: .97rem; }
.gd-event-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 700; font-size: .92rem; }
.gd-rsvp summary { cursor: pointer; font-weight: 700; color: var(--gd-primary); display: inline-flex; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--gd-primary) 22%, transparent); margin-top: .25rem; }
.gd-rsvp summary::-webkit-details-marker { display: none; }
.gd-donation { background: linear-gradient(160deg, var(--gd-surface), var(--gd-rose)); }
.gd-share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.gd-share-row .gd-btn { padding: .55rem .95rem; font-size: .9rem; }
.gd-qr-row { display: flex; gap: .9rem; align-items: center; margin-top: .5rem; }
.gd-qr { width: 7rem; height: 7rem; background: #fff; border-radius: 6px; padding: .2rem; border: 1px solid var(--gd-line); }

/* Kerzen */
.gd-candles-section { margin-top: 3.5rem; padding: 3.5rem 0 3rem; color: #fff; background: linear-gradient(180deg, rgba(18, 22, 26, .78), rgba(18, 22, 26, .9)), var(--gd-candle-bg, linear-gradient(160deg, #2b3a44, #1a2026)) center / cover; text-align: center; }
.gd-candles-section > * { width: 100%; max-width: 74rem; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.gd-candles-head h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.gd-candles-head p { color: rgba(255,255,255,.8); }
.gd-candle-wall { list-style: none; margin: 2rem auto; display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.gd-candle { display: grid; justify-items: center; gap: .35rem; font-size: .92rem; }
.gd-candle strong { color: #fff; font-weight: 700; }
.gd-candle span:not(.gd-candle-svg) { color: rgba(255,255,255,.75); font-size: .85rem; font-style: italic; }
.gd-candle-svg { width: 2.6rem; height: 4.6rem; position: relative; background: linear-gradient(90deg, #efe6d6, #fffaf0 45%, #e5dac6); border-radius: 4px 4px 3px 3px; margin-top: 1.6rem; box-shadow: 0 0 34px 10px rgba(255, 196, 92, .16); }
.gd-candle-svg::before { content: ''; position: absolute; left: 50%; top: -1.55rem; width: .95rem; height: 1.55rem; transform: translateX(-50%); border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 70%, #fff8dc 0 22%, #ffd36b 45%, #ff9f2e 75%, rgba(255,140,0,0) 100%); filter: drop-shadow(0 0 8px rgba(255, 190, 80, .9)); animation: gd-flicker 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.gd-candle-svg::after { content: ''; position: absolute; left: 50%; top: -.25rem; width: 2px; height: .35rem; background: #3a2f25; transform: translateX(-50%); }
.gd-candle:nth-child(3n) .gd-candle-svg::before { animation-duration: 3.4s; }
.gd-candle:nth-child(4n+1) .gd-candle-svg::before { animation-delay: -1.1s; }
.gd-candle-silent .gd-candle-svg { opacity: .8; }
@keyframes gd-flicker { 0%, 100% { transform: translateX(-50%) scale(1) rotate(0); } 30% { transform: translateX(-50%) scale(1.04, .96) rotate(-2deg); } 60% { transform: translateX(-50%) scale(.97, 1.05) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .gd-candle-svg::before { animation: none; } .gd-gallery img { transition: none; } }
.gd-candle-compose { max-width: 40rem; }
.gd-candle-compose summary { list-style: none; cursor: pointer; }
.gd-candle-compose summary::-webkit-details-marker { display: none; }
.gd-candle-compose .gd-form { text-align: left; background: var(--gd-surface); color: var(--gd-text); border-radius: var(--gd-radius); padding: 1.4rem; margin-top: 1rem; }

/* Formulare */
.gd-form { display: grid; gap: .95rem; margin-top: 1.1rem; }
.gd-form label { display: grid; gap: .3rem; font-size: .95rem; font-weight: 700; color: var(--gd-text); }
.gd-form label .gd-muted { font-weight: 400; }
.gd-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .gd-form textarea, .gd-form select { width: 100%; font: 400 1rem/1.5 'GD Body', system-ui, sans-serif; padding: .7rem .85rem; border: 1.5px solid color-mix(in srgb, var(--gd-primary) 18%, transparent); border-radius: var(--gd-radius-s); background: #fff; color: var(--gd-text); }
.gd-form input:focus, .gd-form textarea:focus { border-color: var(--gd-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gd-accent) 25%, transparent); }
.gd-form textarea { resize: vertical; }
.gd-form .gd-btn { justify-self: start; }
.gd-file input { font: inherit; font-weight: 400; padding: .6rem; border: 1.5px dashed color-mix(in srgb, var(--gd-primary) 25%, transparent); border-radius: var(--gd-radius-s); background: var(--gd-bg); }
.gd-check { display: flex !important; gap: .65rem !important; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; }
.gd-check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--gd-primary); }
.gd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.gd-delete-link { word-break: break-all; background: var(--gd-soft); padding: .8rem 1rem; border-radius: var(--gd-radius-s); }

/* Übersicht */
.gd-index-hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(20,28,34,.25), rgba(20,28,34,.65)), var(--gd-index-bg, linear-gradient(135deg, #274759, #6b5a35)) center / cover; padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.gd-index-hero h1 { color: #fff; }
.gd-index-hero p { max-width: 38rem; font-size: 1.15rem; color: rgba(255,255,255,.92); }
.gd-index-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.gd-search { flex: 1 1 16rem; max-width: 26rem; font: inherit; padding: .8rem 1.1rem; border-radius: 999px; border: 0; box-shadow: var(--gd-shadow); }
.gd-cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gd-tile a { display: grid; justify-items: center; text-align: center; gap: .15rem; text-decoration: none; color: var(--gd-text); background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 1.6rem 1rem 1.3rem; height: 100%; transition: box-shadow .2s, transform .2s; }
.gd-tile a:hover { box-shadow: var(--gd-shadow-lift); transform: translateY(-2px); }
.gd-tile img, .gd-tile .gd-avatar-empty { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; background: var(--gd-soft); }
.gd-tile .gd-avatar-empty { font-size: 2.6rem; }
.gd-tile-name { font: 400 1.3rem/1.2 'GD Display', Georgia, serif; color: var(--gd-primary); }
.gd-tile-years { color: var(--gd-accent); filter: brightness(.85); font-family: 'GD Display', Georgia, serif; }
.gd-tile-place { color: var(--gd-muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .gd-tile a { transition: none; } .gd-tile a:hover { transform: none; } }

/* Lightbox */
.gd-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 20, .94); display: grid; grid-template-columns: 3.5rem 1fr 3.5rem; align-items: center; }
.gd-lightbox[hidden] { display: none; }
.gd-lightbox figure { margin: 0; display: grid; justify-items: center; gap: .6rem; padding: 1rem 0; }
.gd-lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: 6px; }
.gd-lightbox figcaption { color: #fff; font-size: .95rem; }
.gd-lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: .5rem; }
.gd-lb-close { position: absolute; top: .5rem; right: .75rem; }

/* Verwaltung (v1, wird in Schritt 6 überarbeitet) */
.gd-admin-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--gd-line); }
.gd-admin-nav form { margin-left: auto; }
.gd-table { width: 100%; border-collapse: collapse; background: var(--gd-surface); border-radius: var(--gd-radius); overflow: hidden; box-shadow: var(--gd-shadow); }
.gd-table th, .gd-table td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--gd-line); vertical-align: top; }
.gd-badge { display: inline-block; background: var(--gd-accent); color: #2b2416; padding: .15rem .6rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .88rem; }
.gd-ceremony { border: 1px solid var(--gd-line); border-radius: var(--gd-radius-s); display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); padding: .9rem; }
.gd-mod { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.gd-mod-item { background: var(--gd-surface); padding: .9rem 1rem; border-radius: var(--gd-radius-s); border-left: 3px solid var(--gd-muted); box-shadow: var(--gd-shadow); }
.gd-mod-pending { border-left-color: var(--gd-accent); }
.gd-mod-item blockquote { margin: .6rem 0 0 1.8rem; }
.gd-mod-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.gd-admin button:not(.gd-btn):not(.gd-linkbutton) { font: inherit; cursor: pointer; border-radius: 999px; padding: .5rem 1rem; border: 1.5px solid color-mix(in srgb, var(--gd-primary) 25%, transparent); background: var(--gd-surface); color: var(--gd-primary); }
.gd-admin .gd-button, .gd-button { font: 700 .98rem/1.2 'GD Body', sans-serif; cursor: pointer; border-radius: 999px; padding: .7rem 1.2rem; border: 0; background: var(--gd-primary); color: #fff; justify-self: start; }
.gd-danger { border-color: #a33 !important; color: #a33 !important; background: #fff !important; }
.gd-linkbutton { border: 0 !important; background: none !important; padding: 0 !important; text-decoration: underline; color: var(--gd-primary) !important; cursor: pointer; font: inherit; }
.gd-inline { display: inline-flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.gd-admin-photos { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gd-admin-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .5rem; border-radius: var(--gd-radius-s); }
.gd-admin-photos form { display: grid; gap: .4rem; }
.gd-admin-photos input { width: 100%; font: inherit; padding: .4rem; }

/* Druckansicht */
.gd-print { max-width: 46rem; margin: 0 auto; padding: 2rem 1rem; }
.gd-print-cover { text-align: center; padding: 2rem 0 3rem; border-bottom: 2px solid var(--gd-accent); margin-bottom: 2rem; }
.gd-print-cover img { width: 14rem; margin: 0 auto 1.5rem; aspect-ratio: 4 / 5; object-fit: cover; }
.gd-entry { padding: 1rem 0; border-bottom: 1px solid var(--gd-line); }
.gd-entry header { display: flex; gap: .5rem; flex-wrap: wrap; }
.gd-entry time { margin-left: auto; color: var(--gd-muted); font-size: .85rem; }

@media (max-width: 60rem) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-aside { position: static; }
  .gd-profile-card { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: .75rem; padding-top: 0; }
  .gd-avatar { margin-top: -5.5rem; width: 9.5rem; height: 9.5rem; }
  .gd-stats { justify-content: center; }
  .gd-profile-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 36rem) {
  .gd-grid2 { grid-template-columns: 1fr; }
  .gd-card { padding: 1.2rem 1.1rem; }
  .gd-profile-card { padding: 0 1.1rem 1.3rem; margin-top: -3.5rem; }
  .gd-profile-actions .gd-btn { flex: 1 1 auto; }
  .gd-header-nav a:not(.gd-phone) { display: none; }
  .gd-candle-wall { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
  .gd-lightbox { grid-template-columns: 2.5rem 1fr 2.5rem; }
}
@media print {
  .gd-header, .gd-footer, .gd-noprint, .gd-skip, .gd-preview-band, .gd-tabs, .gd-profile-actions, .gd-compose, .gd-candle-compose, .gd-lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .gd-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ── Verwaltung v2 ─────────────────────────────────────────────────────── */
.gd-admin-wide { max-width: 92rem; }
.gd-admin-nav { gap: .35rem 1.25rem; font-weight: 700; font-size: .95rem; }
.gd-admin-nav a { text-decoration: none; color: var(--gd-muted); padding: .35rem 0; border-bottom: 2px solid transparent; }
.gd-admin-nav a[aria-current="page"], .gd-admin-nav a:hover { color: var(--gd-primary); border-bottom-color: var(--gd-accent); }
.gd-admin-user { color: var(--gd-muted); font-size: .85rem; font-weight: 400; order: 3; }
.gd-admin-nav form { margin-left: auto; order: 2; }
.gd-staging-band { display: inline-block; background: var(--gd-soft); color: var(--gd-text); border-radius: 999px; padding: .2rem .8rem; font-size: .82rem; margin: -.5rem 0 1rem; }
.gd-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 700; background: color-mix(in srgb, var(--gd-primary) 8%, var(--gd-surface)); color: var(--gd-primary); white-space: nowrap; }
.gd-chip-live { background: #e3efe4; color: #2f5a35; }
.gd-chip-wait { background: color-mix(in srgb, var(--gd-accent) 28%, var(--gd-surface)); color: #6b4e0f; }
.gd-chip-off { background: #eee; color: #666; }
.gd-chip-soft { background: transparent; border: 1px solid var(--gd-line); color: var(--gd-muted); font-weight: 400; }
.gd-dash-head, .gd-edit-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.gd-dash-head h1, .gd-edit-head h1 { margin: 0; }
.gd-edit-head-links { display: flex; gap: .6rem; align-items: center; }
.gd-kpis { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.gd-kpis li { background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 1rem 1.2rem; display: grid; }
.gd-kpis strong { font: 400 2rem/1.1 "GD Display", Georgia, serif; color: var(--gd-primary); }
.gd-kpis span { color: var(--gd-muted); font-size: .9rem; }
.gd-dash { list-style: none; padding: 0; margin: .75rem 0 2rem; display: grid; gap: .75rem; }
.gd-dash-card { background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: .9rem 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; }
.gd-dash-main { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--gd-text); min-width: 0; }
.gd-dash-main img, .gd-dash-main .gd-avatar-empty { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; background: var(--gd-soft); font-size: 1.5rem; }
.gd-dash-main > span { display: grid; min-width: 0; }
.gd-dash-main strong { font: 400 1.2rem/1.25 "GD Display", Georgia, serif; color: var(--gd-primary); }
.gd-dash-meta { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.gd-dash-links { display: flex; gap: 1rem; font-weight: 700; font-size: .92rem; }
.gd-dash-links a { text-decoration: none; }
.gd-edit-nav { position: sticky; top: 0; z-index: 3; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--gd-bg) 94%, transparent); backdrop-filter: blur(6px); margin: 0 -1rem 1rem; padding: .4rem 1rem; border-bottom: 1px solid var(--gd-line); }
.gd-edit-nav a { white-space: nowrap; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--gd-muted); padding: .4rem .7rem; border-radius: 999px; }
.gd-edit-nav a:hover { background: var(--gd-soft); color: var(--gd-primary); }
.gd-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem); gap: 1.75rem; align-items: start; }
.gd-edit-single { grid-template-columns: minmax(0, 46rem); }
.gd-edit-col { display: grid; gap: 1.1rem; min-width: 0; }
.gd-edit-form { margin: 0; gap: 1.1rem; }
.gd-edit-sec { scroll-margin-top: 4rem; }
.gd-edit-sec > h2 { font-size: 1.3rem; }
.gd-edit-sec form { margin-top: .5rem; }
.gd-edit-form .gd-edit-sec { display: grid; gap: .9rem; }
.gd-edit-form .gd-edit-sec > h2, .gd-edit-form .gd-edit-sec > p { margin-bottom: 0; }
.gd-edit-form .gd-edit-sec label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.gd-edit-save { position: sticky; bottom: .5rem; z-index: 2; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--gd-surface) 96%, transparent); backdrop-filter: blur(6px); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow-lift); padding: .8rem 1rem; }
.gd-sr > :not(textarea):not(input) { display: none; }
.gd-ceremony { border: 1px solid var(--gd-line); border-radius: var(--gd-radius-s); display: grid; gap: .7rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1rem; margin: 0; }
.gd-ceremony legend { font-weight: 700; color: var(--gd-primary); padding: 0 .4rem; }
.gd-radio-cards { display: grid; gap: .6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-radio-cards label { display: flex !important; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--gd-line); border-radius: var(--gd-radius-s); padding: .8rem; cursor: pointer; }
.gd-radio-cards label:has(input:checked) { border-color: var(--gd-primary); background: color-mix(in srgb, var(--gd-primary) 5%, var(--gd-surface)); }
.gd-radio-cards input { margin-top: .25rem; accent-color: var(--gd-primary); }
.gd-radio-cards span { display: grid; gap: .15rem; font-weight: 400; }
.gd-radio-cards strong { font-weight: 700; }
.gd-radio-cards .gd-muted { font-size: .85rem; }
.gd-edit-preview { position: sticky; top: 1rem; }
.gd-preview-frame { border-radius: 22px; background: #1e2328; padding: .6rem .6rem .7rem; box-shadow: var(--gd-shadow-lift); }
.gd-preview-bar { display: flex; gap: .35rem; align-items: center; padding: 0 .4rem .5rem; }
.gd-preview-bar span { width: .55rem; height: .55rem; border-radius: 50%; background: #4a525a; }
.gd-preview-bar em { margin-left: auto; color: #aab2ba; font-style: normal; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.gd-edit-preview iframe { width: 100%; height: min(80vh, 54rem); border: 0; border-radius: 14px; background: var(--gd-bg); display: block; }
.gd-admin-photos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.gd-admin-photos li { background: var(--gd-bg); border-radius: var(--gd-radius-s); padding: .5rem; }
.gd-admin-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.gd-admin-photos form { display: grid; gap: .4rem; margin: 0; }
.gd-admin-photos input { width: 100%; font: inherit; font-size: .9rem; padding: .45rem .6rem; border: 1px solid var(--gd-line); border-radius: 8px; }
.gd-photo-tags { display: flex; gap: .3rem; min-height: 1.2rem; }
.gd-photo-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.gd-admin .gd-photo-actions button { padding: .3rem .65rem !important; font-size: .8rem; }
.gd-upload { background: var(--gd-bg); border-radius: var(--gd-radius-s); padding: 1rem; }
.gd-upload > input { font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--gd-line); border-radius: var(--gd-radius-s); }
.gd-status-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.gd-status-actions > p { width: 100%; margin: 0 0 .25rem; }
.gd-family { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.gd-family li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--gd-line); }
.gd-family form { margin: 0; }
.gd-rsvp-list { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .4rem; font-size: .95rem; }
.gd-mod-photos { display: flex; gap: .4rem; margin: .6rem 0 0 1.8rem; }
.gd-mod-photos img { width: 7.5rem; height: 5.6rem; object-fit: cover; border-radius: 8px; }
/* Selbstanlage */
.gd-start { padding-top: 2rem; }
.gd-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.gd-steps li { counter-increment: s; background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 1.1rem 1.2rem 1.2rem 3.6rem; position: relative; display: grid; gap: .2rem; }
.gd-steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--gd-accent); color: #2b2416; font-weight: 700; }
.gd-steps span { color: var(--gd-muted); font-size: .92rem; }
.gd-start-card { max-width: 44rem; }
@media (max-width: 75rem) {
  .gd-edit-layout { grid-template-columns: 1fr; }
  .gd-edit-preview { display: none; }
}
@media (max-width: 48rem) {
  .gd-dash-card { grid-template-columns: 1fr; }
  .gd-dash-meta { justify-content: flex-start; }
  .gd-ceremony, .gd-radio-cards { grid-template-columns: 1fr; }

}

/* Feinschliff Runde 1 */
.gd-memory-photos:not(.gd-n2):not(.gd-n3) img { aspect-ratio: 16 / 10; max-height: 26rem; }
.gd-rsvp-count { font-size: .88rem; color: var(--gd-muted); margin: .2rem 0 .3rem; }
.gd-rsvp summary { background: var(--gd-surface); }
.gd-rsvp[open] summary { background: var(--gd-soft); }
@media (max-width: 60rem) {
  .gd-layout { display: flex; flex-direction: column; gap: 1.25rem; }
  .gd-main, .gd-aside { display: contents; }
  .gd-layout > .gd-main > .gd-notice { order: 0; }
  .gd-o-about { order: 1; } .gd-o-events { order: 2; } .gd-o-donation { order: 3; } .gd-o-mem { order: 4; margin-top: 1rem; }
  .gd-o-gal { order: 5; } .gd-o-share { order: 6; } .gd-o-sub { order: 7; }
  .gd-cover { height: 12rem; }
}

/* Feinschliff Editor */
.gd-admin-wide { max-width: 84rem; }
.gd-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gd-edit-form label > .gd-muted { font-size: .85rem; }
.gd-ceremony { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gd-ceremony label { grid-column: span 2; }
.gd-ceremony label:nth-of-type(4), .gd-ceremony label:nth-of-type(5) { grid-column: span 3; }
.gd-ceremony label.gd-wide { grid-column: span 4; }
.gd-more { margin-top: .2rem; }
.gd-more summary { cursor: pointer; font-weight: 700; color: var(--gd-primary); padding: .4rem 0; }
.gd-more[open] summary { margin-bottom: .8rem; }
.gd-more .gd-ceremony + .gd-ceremony { margin-top: .8rem; }
@media (max-width: 48rem) { .gd-ceremony label, .gd-ceremony label:nth-of-type(n), .gd-ceremony label.gd-wide { grid-column: 1 / -1; } }
/* Label-Text und Hinweis in einer Zeile, Feld darunter */
.gd-form label:not(.gd-check):not(.gd-hp), .gd-edit-form .gd-edit-sec label:not(.gd-check) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; row-gap: .3rem; }
.gd-form label > input:not([type=checkbox]):not([type=radio]), .gd-form label > textarea, .gd-form label > select { flex: 1 0 100%; }
.gd-radio-cards label { flex-wrap: nowrap !important; }

.gd-print-links { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Checkbox-Labels: Text fließt (Links im Satz), Box links daneben */
.gd-check, .gd-form .gd-check, .gd-edit-form .gd-edit-sec label.gd-check { display: block !important; position: relative; padding-left: 1.75rem; font-weight: 400 !important; font-size: .92rem; line-height: 1.5; }
.gd-check input { position: absolute; left: 0; top: .2rem; margin: 0 !important; }

/* ── Gedenklichter, Unterstützung, Erinnerungsstücke ─────────────────────── */
.gd-test-banner { background: #fff4d6; border: 1px dashed #c9a24a; color: #5b4510; border-radius: var(--gd-radius-s); padding: .6rem .9rem; font-size: .92rem; }
.gd-error-text { color: #a33; }
.gd-light-page h1 { margin-bottom: 1.25rem; }
.gd-light-page > .gd-card { margin-bottom: 1.5rem; }
.gd-light-free { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.gd-light-free-img { width: 8.5rem; height: 8.5rem; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(255, 184, 76, .35)); }
.gd-light-support h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.gd-motif-group { border: 0; padding: 0; margin: .4rem 0 .8rem; }
.gd-motif-group legend { font-weight: 700; color: var(--gd-primary); margin-bottom: .5rem; }
.gd-motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.gd-motif { display: grid !important; justify-items: center; gap: .3rem; padding: .6rem .4rem .7rem; border: 1.5px solid var(--gd-line); border-radius: var(--gd-radius-s); cursor: pointer; background: var(--gd-surface); font-weight: 400 !important; text-align: center; }
.gd-motif input { position: absolute; opacity: 0; pointer-events: none; }
.gd-motif img { width: 5.5rem; height: 5.5rem; object-fit: contain; }
.gd-motif span { font-size: .85rem; }
.gd-motif:has(input:checked) { border-color: var(--gd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gd-accent) 30%, transparent); background: var(--gd-soft); }
.gd-motif:has(input:focus-visible) { outline: 3px solid var(--gd-accent); }
.gd-amounts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.gd-amount { display: inline-flex !important; cursor: pointer; }
.gd-amount input { position: absolute; opacity: 0; }
.gd-amount span { padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--gd-line); font-weight: 700; background: var(--gd-surface); }
.gd-amount:has(input:checked) span { border-color: var(--gd-primary); background: var(--gd-primary); color: #fff; }
.gd-amount-input { flex: 1 1 10rem; max-width: 14rem; }
.gd-split { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.gd-split th, .gd-split td { padding: .55rem .2rem; border-bottom: 1px solid var(--gd-line); text-align: left; font-weight: 400; }
.gd-split td { text-align: right; font-weight: 700; white-space: nowrap; }
.gd-check-card .gd-check-motif { display: flex; gap: 1rem; align-items: center; }
.gd-check-motif img { width: 6rem; height: 6rem; object-fit: contain; }
.gd-testkasse { background: var(--gd-surface); border-radius: 18px; box-shadow: var(--gd-shadow-lift); padding: 2rem; border-top: 6px solid #6b5bd2; text-align: center; }
.gd-testkasse-brand { font: 700 1.1rem/1.2 system-ui, sans-serif; color: #4b3fb0; }
.gd-testkasse-brand span { display: block; font-weight: 400; font-size: .85rem; color: var(--gd-muted); }
.gd-testkasse h1 { font-family: system-ui, sans-serif; font-weight: 700; color: var(--gd-text); margin: 1rem 0 .3rem; }
.gd-testkasse-actions { display: grid; gap: .5rem; max-width: 22rem; margin: 1.5rem auto 0; }
.gd-sign { gap: .25rem; }
.gd-sign-img { width: 5.2rem; height: 5.2rem; object-fit: contain; margin-top: .4rem; }
.gd-sign-lit { filter: drop-shadow(0 0 18px rgba(255, 196, 92, .45)); }
.gd-candle-paths { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: center; margin-bottom: 1rem; color: rgba(255,255,255,.8); }
.gd-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.gd-btn-ghost-light:hover { color: #fff; border-color: #fff; }
.gd-support-card { border-top: 3px solid var(--gd-accent); }
.gd-print-consent { border: 1px solid var(--gd-line); border-radius: var(--gd-radius-s); padding: .6rem .9rem .3rem; display: grid; gap: .25rem; }
.gd-support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.gd-table-wrap { overflow-x: auto; }
.gd-table-small { font-size: .88rem; }
.gd-table-small td, .gd-table-small th { padding: .5rem .55rem; }
.gd-table-small form input { width: 4.5rem; font: inherit; padding: .2rem .3rem; }
.gd-admin .gd-table-small button { padding: .25rem .55rem !important; font-size: .8rem; }
.gd-radio-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.gd-product-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gd-radius); }
.gd-edition { display: grid; gap: .6rem; }
.gd-design-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.gd-design { display: grid !important; gap: .25rem; border: 1.5px solid var(--gd-line); border-radius: var(--gd-radius-s); padding: .6rem; cursor: pointer; font-weight: 400 !important; }
.gd-design input { position: absolute; opacity: 0; }
.gd-design:has(input:checked) { border-color: var(--gd-primary); background: color-mix(in srgb, var(--gd-primary) 5%, var(--gd-surface)); }
.gd-design-swatch { display: block; height: 4.5rem; border-radius: 8px; background-size: cover; background-position: center; }
.gd-design-klassisch .gd-design-swatch { background-image: url('produkte/design-klassisch-papier.jpg'); box-shadow: inset 0 0 0 1px #e6dcc6; }
.gd-design-natur .gd-design-swatch { background: url('produkte/design-natur-zweig.png') right center / contain no-repeat, #faf7f0; }
.gd-design-licht .gd-design-swatch { background-image: url('produkte/design-licht-bokeh.jpg'); }
.gd-pick { list-style: none; padding: 0; margin: 0; max-height: 16rem; overflow: auto; border: 1px solid var(--gd-line); border-radius: var(--gd-radius-s); padding: .4rem .7rem; }
.gd-shop-list { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.gd-shop-item { display: grid; grid-template-columns: 16rem 1fr; gap: 1.4rem; align-items: start; }
.gd-shop-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gd-radius-s); }
.gd-order summary { list-style: none; cursor: pointer; display: inline-flex; }
.gd-order summary::-webkit-details-marker { display: none; }
.gd-optin { margin-top: 2rem; max-width: 40rem; }
.gd-mailpreview { white-space: pre-wrap; font: .92rem/1.5 ui-monospace, monospace; background: var(--gd-bg); padding: 1rem; border-radius: var(--gd-radius-s); }
@media (max-width: 48rem) {
  .gd-light-free, .gd-shop-item { grid-template-columns: 1fr; }
  .gd-design-pick, .gd-radio-2, .gd-product-hero { grid-template-columns: 1fr; }
  .gd-light-free-img { width: 6rem; height: 6rem; }
}

/* ── Geführter Ablauf Gedenklicht (mobile first) ───────────────────────────── */
.gd-flow-wrap { max-width: 62rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
.gd-flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .9rem; }
.gd-flow-back { font-size: .95rem; text-decoration: none; }
.gd-flow-title { margin: 0; font: 400 1.15rem/1.3 'GD Display', Georgia, serif; color: var(--gd-primary); }
.gd-progress { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.gd-progress li { display: grid; justify-items: center; gap: .3rem; font-size: .8rem; color: var(--gd-muted); position: relative; }
.gd-progress li::before { content: ''; position: absolute; top: 1rem; left: calc(-50% + 1.2rem); right: calc(50% + 1.2rem); height: 2px; background: var(--gd-line); }
.gd-progress li:first-child::before { display: none; }
.gd-progress li.is-done::before, .gd-progress li.is-current::before { background: var(--gd-accent); }
.gd-progress-n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--gd-surface); border: 2px solid var(--gd-line); color: var(--gd-muted); position: relative; z-index: 1; }
.gd-progress li.is-current { color: var(--gd-primary); font-weight: 700; }
.gd-progress li.is-current .gd-progress-n { border-color: var(--gd-accent); background: var(--gd-accent); color: #2b2416; }
.gd-progress li.is-done .gd-progress-n { border-color: var(--gd-primary); background: var(--gd-primary); color: #fff; font-size: 0; }
.gd-progress li.is-done .gd-progress-n::after { content: '✓'; font-size: .95rem; }
.gd-flow-wrap .gd-test-banner { margin: 0 0 1rem; font-size: .85rem; }
.gd-flow-grid { display: grid; gap: 1.25rem; }
.gd-flow-main { min-width: 0; }
.gd-step { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.gd-step-title { font: 400 1.55rem/1.2 'GD Display', Georgia, serif; color: var(--gd-primary); padding: 0; margin: 0 0 .4rem; outline: none; }
.gd-step-hint { margin: 0 0 1rem; font-size: .95rem; }
.gd-step-sub { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.gd-flow .gd-motif-group { margin: 0 0 1rem; }
.gd-flow .gd-motif-group legend { font-size: .95rem; }
.gd-flow .gd-motifs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.gd-flow .gd-motif { padding: .7rem .4rem .75rem; min-height: 9.5rem; border-radius: var(--gd-radius); }
.gd-flow .gd-motif img { width: 6.2rem; height: 6.2rem; }
.gd-flow .gd-motif span { font-size: .9rem; line-height: 1.25; }
.gd-flow .gd-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gd-flow .gd-amount { display: block !important; }
.gd-flow .gd-amount span { display: grid; place-items: center; min-height: 3.6rem; border-radius: var(--gd-radius); font-size: 1.2rem; padding: .5rem; }
.gd-flow .gd-amount-own span { font-size: 1rem; }
.gd-flow .gd-amount-input { display: block; max-width: none; margin-top: .8rem; }
.gd-flow .gd-amount-input[hidden] { display: none; }
.gd-flow .gd-amount-input input { font-size: 1.3rem; padding: .75rem .9rem; }
.gd-split-live { margin: 1.1rem 0 .6rem; background: var(--gd-soft); border-radius: var(--gd-radius); padding: .85rem 1rem; }
.gd-split-live p { display: flex; justify-content: space-between; gap: 1rem; margin: .15rem 0; }
.gd-split-live strong { font-size: 1.2rem; color: var(--gd-primary); }
.gd-why { margin-top: .6rem; }
.gd-why summary { cursor: pointer; color: var(--gd-primary); font-weight: 700; min-height: 2.75rem; display: flex; align-items: center; }
.gd-step[hidden], .gd-light-free[hidden] { display: none !important; }
.gd-flow textarea { width: 100%; font: 400 1.05rem/1.5 'GD Body', system-ui, sans-serif; padding: .7rem .8rem; border-radius: var(--gd-radius-s); border: 1.5px solid var(--gd-line); background: var(--gd-surface); resize: vertical; box-sizing: border-box; }
.gd-flow input:not([type]), .gd-flow input[type="text"], .gd-flow input[type="email"] { min-height: 3rem; font-size: 1.05rem; }
.gd-flow-summary { display: none; }
.gd-flow-bar { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem;
  margin: 0 -1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--gd-surface) 96%, transparent);
  border-top: 1px solid var(--gd-line); box-shadow: 0 -8px 24px rgba(29, 45, 56, .08); backdrop-filter: blur(6px); }
.gd-flow-bar .gd-btn { min-height: 3rem; padding-inline: 1.1rem; }
.gd-flow-bar [data-prev][hidden] { display: none; }
.gd-flow-bar-sum { margin: 0; font-size: .9rem; color: var(--gd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2; }
.gd-flow-bar .gd-btn-primary { grid-column: 3; }
@media (max-width: 55.99rem) {
  /* Handy/Tablet: Leiste immer am unteren Bildschirmrand, Platz dafür unten freihalten */
  .gd-flow.is-js .gd-flow-bar, .gd-flow-wrap > .gd-flow-bar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; }
  .gd-flow-wrap { padding-bottom: 8rem; }
  /* Schritt 4: „Ändern“ + breiter Zahlknopf, Betrag steht darüber */
  .gd-flow-bar-pay { grid-template-columns: auto minmax(0, 1fr); }
  .gd-flow-bar-pay .gd-flow-bar-sum { display: none; }
  .gd-flow-bar-pay .gd-btn-primary { grid-column: 2; white-space: normal; line-height: 1.2; }
}
.gd-receipt-note { background: var(--gd-soft); border-radius: var(--gd-radius-s); padding: .7rem .9rem; font-size: .95rem; }
.gd-flow:not(.is-js) .gd-flow-bar { position: static; margin: 0; box-shadow: none; border: 0; background: none; padding: 0; }
.gd-review { display: flex; gap: 1rem; align-items: center; background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: .9rem 1rem; margin: .8rem 0 1rem; }
.gd-review img { width: 5.5rem; height: 5.5rem; object-fit: contain; flex: none; }
.gd-check-strong { background: var(--gd-surface); border: 1.5px solid var(--gd-line); border-radius: var(--gd-radius-s); padding: .8rem .9rem; font-weight: 700; }
.gd-split .gd-split-total th, .gd-split .gd-split-total td { font-weight: 700; font-size: 1.1rem; }
.gd-light-free { margin-top: 1.5rem; }
.gd-light-free > summary { list-style: none; cursor: pointer; display: flex; gap: .9rem; align-items: center; min-height: 3rem; }
.gd-light-free > summary::-webkit-details-marker { display: none; }
.gd-light-free > summary .gd-light-free-img { width: 3.5rem; height: 3.5rem; }
.gd-light-free[open] > summary { margin-bottom: 1rem; }
.gd-thanks { text-align: center; padding: 1.5rem 1rem 1rem; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gd-accent) 22%, transparent), transparent 65%); }
.gd-thanks img { margin: 0 auto; width: 9rem; height: 9rem; object-fit: contain; filter: drop-shadow(0 0 26px rgba(255, 196, 92, .55)); }
.gd-thanks h1 { font-size: 2rem; margin: .6rem 0 .3rem; }
.gd-thanks p { max-width: 32rem; margin: 0 auto; }
.gd-receipt { margin-top: 1.2rem; }
.gd-receipt h2 { font-size: 1.5rem; }
.gd-receipt-meta { display: grid; gap: .5rem; margin: 0 0 1rem; }
.gd-receipt-meta div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem; }
.gd-receipt-meta dt { color: var(--gd-muted); font-size: .9rem; }
.gd-receipt-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.gd-receipt-actions { display: grid; gap: .6rem; margin: 1.2rem 0 .6rem; }
.gd-receipt-actions .gd-btn { min-height: 3rem; justify-content: center; }
.gd-spinner { width: 3rem; height: 3rem; margin: 1rem auto; border-radius: 50%; border: 4px solid var(--gd-line); border-top-color: var(--gd-accent); animation: gd-spin 1s linear infinite; }
@keyframes gd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gd-spinner { animation: none; } }
@media (max-width: 22rem) { .gd-receipt-meta div { grid-template-columns: 1fr; gap: 0; } }
@media (min-width: 36rem) {
  .gd-flow .gd-motifs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-flow .gd-amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gd-receipt-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-progress li { font-size: .9rem; }
}
@media (min-width: 56rem) {
  .gd-flow-wrap { padding-top: 2rem; }
  .gd-flow-title { font-size: 1.5rem; }
  .gd-flow-grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.5rem; align-items: start; }
  .gd-flow .gd-motifs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gd-flow-summary { display: grid; justify-items: center; text-align: center; position: sticky; top: 1.5rem; background: var(--gd-surface); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 1.4rem 1.2rem; }
  .gd-flow-summary img { width: 9rem; height: 9rem; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(255, 184, 76, .35)); }
  .gd-flow-summary img.is-empty { opacity: .35; filter: grayscale(1); }
  .gd-sum-motif { margin: .6rem 0 0; font-weight: 700; }
  .gd-sum-amount { margin: .2rem 0 0; font: 400 2rem/1.1 'GD Display', Georgia, serif; color: var(--gd-primary); }
  .gd-sum-split { margin: .3rem 0 0; }
  .gd-flow-bar { margin: 0; border-radius: var(--gd-radius); border: 1px solid var(--gd-line); }
  .gd-step-title { font-size: 2rem; }
}
