/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky-deep:    #4a96d8;
  --sky-mid:     #87c0ed;
  --sky-light:   #dbeafe;
  --panel:       rgba(255, 252, 242, 0.92);
  --panel-edge:  rgba(168, 120, 8, 0.26);
  --gold:        #a07808;
  --gold-light:  #d4a820;
  --gold-pale:   #f0dc90;
  --black:       #0c0c0e;
  --text:        #0c0c0e;
  --text-soft:   rgba(12,12,14, 0.70);
  --text-dim:    rgba(12,12,14, 0.42);
  --radius-lg:   24px;
  --radius-md:   16px;
  --radius-sm:   10px;
  --shadow-card: 0 4px 8px rgba(0,0,0,0.07), 0 16px 40px rgba(0,0,0,0.09);
}

html {
  font-family: 'Inter', 'SF Pro Display', Helvetica, Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--sky-mid);
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15%  0%, rgba(96,165,250,0.38), transparent 45%),
    radial-gradient(ellipse at 85%  5%, rgba(59,130,246,0.24), transparent 38%),
    radial-gradient(ellipse at 50% 55%, rgba(147,197,253,0.28), transparent 50%),
    linear-gradient(175deg, #5ba8e0 0%, #87c0ed 12%, #a8d4f5 30%, #c8e6f8 52%, #dbeafe 72%, #eff6ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────────────── */
.page-wrap  { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }
.shell      { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,252,242,0.88);
  border-bottom: 1px solid rgba(168,120,8,0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(168,120,8,0.08), 0 4px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.site-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 600;
  color: var(--text);
}
.logo-ornament { color: var(--gold); font-size: 0.85rem; }
.header-nav    { display: flex; align-items: center; gap: 0.5rem; }

/* ── Glass panel ──────────────────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, rgba(255,252,242,0.93) 0%, rgba(255,249,228,0.82) 100%);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -1px 0 rgba(168,120,8,0.06),
    var(--shadow-card);
  backdrop-filter: blur(20px);
}
.panel-strong {
  background: linear-gradient(180deg, rgba(255,253,245,0.97) 0%, rgba(255,250,232,0.92) 100%);
  border: 1px solid rgba(168,120,8,0.34);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 2px 0 rgba(168,120,8,0.12),
    0 8px 24px rgba(0,0,0,0.10),
    0 24px 56px rgba(0,0,0,0.10);
  backdrop-filter: blur(28px);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 0.875rem; font-weight: 600;
  padding: 0.65rem 1.5rem; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, #d4a820 0%, #a07808 52%, #7a5a04 100%);
  color: #fff8e0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 24px rgba(160,120,8,0.36);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 14px 36px rgba(160,120,8,0.46);
  filter: brightness(1.06);
}
.btn-outline {
  background: rgba(12,12,14,0.05);
  border: 1px solid rgba(12,12,14,0.22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.btn-outline:hover {
  background: rgba(12,12,14,0.10);
  border-color: rgba(12,12,14,0.36);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-w  { width: 100%; }

/* ── Form inputs ──────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(168,120,8,0.28);
  border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  border-color: rgba(168,120,8,0.60);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03), 0 0 0 3px rgba(168,120,8,0.14);
}
textarea.input { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ── Chip ─────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  background: rgba(168,120,8,0.09);
  border: 1px solid rgba(168,120,8,0.28);
  color: var(--gold);
}

/* ── Gold ornament line ───────────────────────────────────────────── */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0;
}
.ornament-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,120,8,0.40), rgba(168,120,8,0.60));
}
.ornament-line.rev {
  background: linear-gradient(270deg, transparent, rgba(168,120,8,0.40), rgba(168,120,8,0.60));
}
.ornament-icon { color: var(--gold); opacity: 0.7; font-size: 0.8rem; }

/* ── Alert ────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 1rem; }
.alert-error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); color: #991b1b; }
.alert-success { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.25); color: #065f46; }

/* ── Landing page ─────────────────────────────────────────────────── */
.landing { padding: 4rem 0 6rem; }
.landing-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 3rem; align-items: start;
}
@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; } }

.kicker {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(160,120,8,0.75); font-weight: 500; margin-bottom: 1rem;
}
.headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--black);
  margin-bottom: 1.25rem;
}
.headline-gold {
  background: linear-gradient(135deg, #d4a820 0%, #a07808 60%, #7a5a04 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: 1rem; color: var(--text-soft); line-height: 1.75;
  max-width: 440px; margin-bottom: 2rem;
}

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.feature-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem;
}
.feature-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(168,120,8,0.10); border: 1px solid rgba(168,120,8,0.20);
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.feature-title { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.feature-desc  { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

/* ── Login card ───────────────────────────────────────────────────── */
.login-card { overflow: hidden; }
.login-header {
  padding: 1.4rem 1.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(212,168,32,0.12) 0%, rgba(160,120,8,0.08) 100%);
  border-bottom: 1px solid rgba(168,120,8,0.20);
}
.login-header .kicker { margin-bottom: 0.3rem; }
.login-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.4rem; font-weight: 700; color: var(--black);
}
.login-body { padding: 1.4rem 1.6rem; }
.form-group { margin-bottom: 0.75rem; }
.divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.2rem 0; color: var(--text-dim); font-size: 0.75rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(168,120,8,0.18);
}
.login-footer-link {
  display: block; text-align: center; font-size: 0.78rem;
  color: rgba(160,120,8,0.70); margin-top: 1rem;
  transition: color 0.15s;
}
.login-footer-link:hover { color: var(--gold); }
.gold-rule {
  height: 2px; margin: 0 1.5rem 1.5rem;
  background: linear-gradient(90deg, transparent, rgba(168,120,8,0.35), transparent);
  border-radius: 1px;
}

/* ── Feed ─────────────────────────────────────────────────────────── */
.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0 1rem;
}
.feed-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 600; color: var(--black);
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-bottom: 4rem;
}
@media (max-width: 900px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feed-grid { grid-template-columns: 1fr; } }

.memorial-card { display: flex; flex-direction: column; gap: 0.6rem; }
.card-thumb {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, #c8e6f8 0%, #a8d4f5 100%);
  position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.memorial-card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.5rem; font-weight: 600; color: rgba(160,120,8,0.25);
}
.card-info { display: flex; gap: 0.6rem; align-items: flex-start; }
.card-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a820, #a07808);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff8e0; flex-shrink: 0; margin-top: 2px;
  overflow: hidden;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-meta { flex: 1; min-width: 0; }
.card-name {
  font-size: 0.875rem; font-weight: 600; color: var(--black);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  white-space: normal;
}
.card-creator { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.card-stats {
  display: flex; gap: 0.75rem; font-size: 0.7rem; color: var(--text-dim);
  margin-top: 0.3rem; align-items: center;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(168,120,8,0.18);
  background: rgba(255,252,242,0.70);
  backdrop-filter: blur(10px);
  padding: 1.25rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-dim);
}
.footer-brand { color: var(--gold); opacity: 0.7; font-family: 'EB Garamond', serif; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: var(--gold); }

/* ── Nav items ────────────────────────────────────────────────────── */
.nav-link {
  font-size: 0.85rem; color: var(--text-soft); padding: 0.4rem 0.75rem;
  border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(168,120,8,0.08); color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════
   PERSONEN — ADDITIONAL COMPONENTS v2
   Appended to base style.css
   ══════════════════════════════════════════════════════════════════════ */

/* ── Remove dock (no longer needed) ──────────────────────────────────── */
.dock, .dock-inner, .dock-item { display: none !important; }
body { padding-bottom: 0 !important; }

/* ── Header: nav buttons ──────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* ── Profile dropdown ────────────────────────────────────────────────── */
.header-profile {
  position: relative;
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(168,120,8,.08);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: .35rem .75rem .35rem .35rem;
  cursor: pointer;
  color: var(--text);
  font-size: .88rem;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.profile-btn:hover {
  border-color: var(--gold-light);
  background: rgba(168,120,8,.14);
}
.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #1a0f00;
  flex-shrink: 0;
}
.profile-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.profile-chevron {
  font-size: .65rem;
  color: var(--gold-dim);
  margin-left: .1rem;
}
.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  background: #18130a;
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  min-width: 190px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,.5);
}
.profile-dropdown.open { display: block; }
.dropdown-item {
  display: block;
  padding: .7rem 1.1rem;
  color: rgba(255,245,220,.88);
  text-decoration: none;
  font-size: .88rem;
  transition: background .15s;
  font-family: inherit;
  line-height: 1.4;
}
.dropdown-item:hover {
  background: rgba(168,120,8,.12);
  color: var(--gold-light);
}
.dropdown-divider {
  height: 1px;
  background: var(--gold-dim);
  margin: .2rem 0;
  opacity: .5;
}
.dropdown-logout {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .88rem;
  color: #f87171;
  font-family: inherit;
  padding: .7rem 1.1rem;
  transition: background .15s;
}
.dropdown-logout:hover { background: rgba(185,28,28,.1); }

/* ── Notification badge (header) ──────────────────────────────────────── */
.header-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  padding: 0 5px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ── Flash messages ───────────────────────────────────────────────────── */
.flash {
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  line-height: 1.5;
}
.flash-success {
  background: rgba(21,128,61,.14);
  border: 1px solid rgba(21,128,61,.35);
  color: #4ade80;
}
.flash-error {
  background: rgba(185,28,28,.12);
  border: 1px solid rgba(185,28,28,.35);
  color: #f87171;
}

/* ── Ghost small button ───────────────────────────────────────────────── */
.btn-ghost-sm {
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--text-muted);
  border-radius: 8px;
  padding: .32rem .75rem;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .15s, color .15s;
  font-family: inherit;
  line-height: 1.4;
}
.btn-ghost-sm:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── Section header ───────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

/* ── Notification section ─────────────────────────────────────────────── */
.notif-section { margin-bottom: 2rem; }
.notif-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  padding: 1px 7px;
  font-weight: 700;
}
.notif-group { margin-bottom: 1.5rem; }
.notif-group-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold-light);
  margin-bottom: .75rem;
  opacity: .85;
}
.notif-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: .5rem;
  border: 1px solid transparent;
}
.notif-visit {
  background: rgba(14,116,144,.07);
  border-color: rgba(14,116,144,.2);
}
.notif-entry {
  background: rgba(168,120,8,.06);
  border-color: rgba(168,120,8,.18);
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14,116,144,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-icon-person {
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .25rem;
  line-height: 1.4;
}
.notif-title a {
  color: var(--gold-light);
  text-decoration: none;
}
.notif-title a:hover { text-decoration: underline; }
.notif-memorial {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .82rem;
}
.notif-message {
  color: var(--text-muted);
  font-style: italic;
  font-size: .88rem;
  margin: .2rem 0 .3rem;
  line-height: 1.5;
}
.notif-meta {
  font-size: .78rem;
  color: var(--text-muted);
  opacity: .7;
}
.notif-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.btn-approve {
  background: rgba(21,128,61,.16);
  border: 1px solid rgba(21,128,61,.35);
  color: #4ade80;
  border-radius: 8px;
  padding: .32rem .8rem;
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 600;
  transition: background .15s;
}
.btn-approve:hover { background: rgba(21,128,61,.28); }
.btn-reject {
  background: rgba(185,28,28,.1);
  border: 1px solid rgba(185,28,28,.28);
  color: #f87171;
  border-radius: 8px;
  padding: .32rem .8rem;
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 600;
  transition: background .15s;
}
.btn-reject:hover { background: rgba(185,28,28,.22); }

/* ── Memorial list (profile page) ────────────────────────────────────── */
.memorial-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.memorial-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
}
.memorial-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--gold-dim);
}
.memorial-thumb-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: rgba(168,120,8,.08);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-dim);
  flex-shrink: 0;
}
.memorial-info { flex: 1; min-width: 0; }
.memorial-name {
  font-weight: 600;
  font-size: .97rem;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memorial-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.memorial-stats {
  display: flex;
  gap: .9rem;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.memorial-actions {
  display: flex;
  gap: .4rem;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.pending-badge { color: #fb923c; font-weight: 600; }

/* ── Memorial cover / hero ────────────────────────────────────────────── */
.memorial-cover {
  width: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center top;
  position: relative;
}
@media (min-width: 640px) { .memorial-cover { min-height: 400px; } }
.memorial-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.2) 0%,
    rgba(0,0,0,.65) 60%,
    rgba(12,12,14,.95) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
}
.memorial-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
  margin-bottom: .9rem;
  box-shadow: 0 0 0 4px rgba(168,120,8,.2);
}
.memorial-avatar-ph {
  background: rgba(168,120,8,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold-light);
}
.memorial-name-hero {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  margin: 0 0 .3rem;
  line-height: 1.15;
}
.memorial-dates-hero {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin: 0 0 .2rem;
  letter-spacing: .04em;
}
.memorial-location-hero {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ── Memorial content ─────────────────────────────────────────────────── */
.memorial-shell {
  padding-top: 2rem;
  padding-bottom: 5rem;
  max-width: 680px;
}
.memorial-section { margin-bottom: 2rem; }
.mem-section-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.mem-section-title::before {
  content: '✦';
  font-size: .65rem;
  opacity: .7;
}
.memorial-story {
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text);
}

/* ── Guestbook form ───────────────────────────────────────────────────── */
.guestbook-form-panel { padding: 1.5rem 1.5rem 1.75rem; }
.textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}
.photo-upload-area {
  border: 2px dashed var(--gold-dim);
  border-radius: 12px;
  padding: 1.1rem;
  transition: border-color .2s;
  cursor: pointer;
}
.photo-upload-area:hover { border-color: rgba(212,168,32,.4); }
.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
  user-select: none;
}
.photo-upload-icon { font-size: 1.8rem; line-height: 1; }
.photo-upload-text {
  font-weight: 600;
  font-size: .9rem;
  color: var(--gold-light);
}
.photo-upload-hint {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Guestbook entries ────────────────────────────────────────────────── */
.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.guestbook-entry {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}
.entry-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.entry-bubble {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: .85rem 1rem;
}
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}
.entry-name { font-weight: 600; font-size: .88rem; }
.entry-time { font-size: .74rem; color: var(--text-muted); flex-shrink: 0; }
.entry-text {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gold-dim);
  padding: 1.5rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Responsive tweaks ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .memorial-list-item { flex-wrap: wrap; }
  .memorial-actions { flex-direction: row; }
  .profile-name { display: none; }
  .notif-actions { flex-direction: column; }
  .notif-actions .btn-approve,
  .notif-actions .btn-reject { width: 100%; text-align: center; }
}

/* ── Login / register panel ───────────────────────────────────────── */
.login-panel {
  padding: 2.25rem 2.5rem 2.75rem;
}
.login-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 1.4rem;
  text-align: center;
  letter-spacing: .01em;
}
.login-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: .6rem auto 0;
  border-radius: 2px;
}

/* ── Neu form sections ─────────────────────────────────────────────── */
.form-section { padding: 1.75rem 2rem; }
.form-section-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-hint {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: .5rem;
}
.req { color: #f87171; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Image upload boxes */
.img-upload-box {
  border: 2px dashed var(--gold-dim);
  border-radius: 12px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s;
}
.img-upload-box:hover { border-color: rgba(212,168,32,.4); }
.img-upload-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1rem;
}

/* Toggle switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-size: .92rem;
  user-select: none;
}
.toggle-label input[type=checkbox] { display: none; }
.toggle-track {
  width: 44px; height: 24px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: left .2s, background .2s;
}
.toggle-label input:checked + .toggle-track {
  background: rgba(168,120,8,.3);
  border-color: var(--gold-light);
}
.toggle-label input:checked + .toggle-track .toggle-thumb {
  left: 22px;
  background: var(--gold-light);
}

/* ── QR code page ──────────────────────────────────────────────────── */
.qr-card {
  padding: 2.5rem 2rem;
  text-align: center;
}
.qr-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--black);
}
.qr-image-wrap {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.qr-image {
  display: block;
  width: 200px;
  height: 200px;
}
.qr-url-display {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: .5rem 1rem;
  margin: 0 auto 1rem;
  max-width: 420px;
  word-break: break-all;
}
.qr-url-text { font-size: .78rem; color: var(--text-muted); font-family: monospace; }
.qr-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 1.75rem;
}
.qr-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   QR PAGE — HERO + TEMPLATES + PRINT
   ═══════════════════════════════════════════════════════════════════════ */

/* Shell for QR page */
.qr-shell { padding-top: 1.5rem; padding-bottom: 5rem; max-width: 860px; }

/* ── Hero card ────────────────────────────────────────────────────────── */
.qr-hero {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 2.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.qr-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.qr-frame-wrap {
  position: relative;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(168,120,8,.25), 0 4px 24px rgba(0,0,0,.15);
}
/* Corner ornaments */
.qr-frame-corners { position: absolute; inset: 4px; pointer-events: none; }
.qfc {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold-light);
  border-style: solid;
}
.qfc.tl { top:0; left:0;  border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.qfc.tr { top:0; right:0; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.qfc.bl { bottom:0; left:0;  border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.qfc.br { bottom:0; right:0; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.qr-hero-img {
  display: block;
  width: 180px; height: 180px;
  border-radius: 6px;
}
.qr-scan-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(168,120,8,.1);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: .4rem .9rem;
}
.qr-scan-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.qr-scan-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.qr-hero-right { flex: 1; min-width: 260px; }
.qr-hero-name {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 700;
  color: var(--black);
  margin: .4rem 0 .2rem;
}
.qr-hero-dates { color: var(--text-muted); font-size: .9rem; margin: 0 0 1rem; }
.qr-link-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,0,0,.12);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: .45rem .75rem;
  margin-bottom: 1.1rem;
}
.qr-link-text {
  flex: 1;
  font-size: .76rem;
  font-family: monospace;
  color: var(--text-muted);
  word-break: break-all;
}
.qr-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .15s;
}
.qr-copy-btn:hover { opacity: 1; }
.qr-hero-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.qr-hero-hint {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Template grid ────────────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.tpl-card {
  background: rgba(255,252,242,.06);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.tpl-card:hover {
  border-color: rgba(212,168,32,.4);
  box-shadow: 0 4px 16px rgba(168,120,8,.12);
}
.tpl-card.tpl-selected {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(212,168,32,.2);
}
.tpl-preview-wrap {
  padding: 1rem;
  background: rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Preview card sizes */
.tpl-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  width: 140px;
  min-height: 170px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.tpl-klassisch {
  background: #fdf8ed;
  border: 1.5px solid #a07808;
  outline: 3px solid rgba(160,120,8,.15);
  outline-offset: 2px;
}
.tpl-wuerde    { background: #0c0c0e; border: 1.5px solid rgba(212,168,32,.4); }
.tpl-karte     { background: #fdf8ed; border: 1.5px solid #c8a830; width: 175px; min-height: 100px; padding: .6rem; flex-direction: row; }
.tpl-schild    {
  background: linear-gradient(145deg, #e8d5a0 0%, #c9a84c 30%, #d4b55e 50%, #b8913a 70%, #c9a84c 100%);
  border: 2px solid #8a6220;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.2), 0 3px 8px rgba(0,0,0,.3);
}
.tpl-prev-ornament { font-size: 9px; color: #a07808; margin-bottom: 3px; letter-spacing: .1em; }
.tpl-prev-name { font-family: 'EB Garamond',serif; font-size: 12px; font-weight: 700; color: #0c0c0e; line-height: 1.2; margin-bottom: 2px; }
.tpl-prev-dates { font-size: 7px; color: #6b5a2e; margin-bottom: 5px; }
.tpl-prev-qr-box { margin: 5px 0; }
.tpl-prev-qr-img { width: 55px; height: 55px; display: block; border-radius: 2px; }
.tpl-prev-url { font-size: 6px; color: #8a6b1e; margin-top: 4px; word-break: break-all; }

.tpl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-top: 1px solid var(--gold-dim);
  gap: .5rem;
}
.tpl-card-name {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Tips grid ────────────────────────────────────────────────────────── */
.qr-tips-panel { padding: 1.5rem 1.75rem; }
.qr-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 560px) { .qr-tips-grid { grid-template-columns: 1fr; } }
.qr-tip { display: flex; gap: .75rem; align-items: flex-start; }
.qr-tip-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.qr-tip-title { font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.qr-tip-desc  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════
   PRINT OVERLAY (screen)
   ═══════════════════════════════════════════════════════════════════════ */
.print-overlay {
  display: none;
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.print-overlay.active { display: flex; }

/* ═══════════════════════════════════════════════════════════════════════
   PRINT TEMPLATES (shown only via @media print)
   ═══════════════════════════════════════════════════════════════════════ */
@media print {
  @page { margin: 0; }

  /* Hide everything except the print overlay content */
  body.printing > .page-wrap { display: none !important; }
  body.printing .print-overlay { display: block !important; position: static !important; background: transparent; }

  /* Template: Klassisch (A6 portrait) */
  .ptpl { page-break-after: always; }
  .ptpl-klassisch {
    width: 105mm; height: 148mm;
    background: #fdf8ed;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8mm;
    box-sizing: border-box;
    position: relative;
    border: 1.5pt solid #a07808;
    outline: 3pt solid rgba(160,120,8,.15);
    outline-offset: 2pt;
    font-family: 'EB Garamond', Georgia, serif;
  }

  /* Template: Würde (A6 portrait, dark) */
  .ptpl-wuerde {
    width: 105mm; height: 148mm;
    background: #0c0c0e;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8mm; box-sizing: border-box;
    border: 1.5pt solid rgba(212,168,32,.5);
    outline: 0.5pt solid rgba(212,168,32,.2);
    outline-offset: 2pt;
    font-family: 'EB Garamond', Georgia, serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ptpl-wuerde-inner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; height: 100%;
  }

  /* Template: Visitenkarte (4× per A4 landscape) */
  .ptpl-karte-page {
    width: 297mm; height: 210mm;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    box-sizing: border-box;
    padding: 10mm;
    gap: 6mm;
    font-family: 'EB Garamond', Georgia, serif;
  }
  .ptpl-karte {
    border: 1pt solid #a07808;
    background: #fdf8ed;
    border-radius: 3mm;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ptpl-karte-inner {
    display: flex; width: 100%;
    align-items: center; gap: 5mm;
    padding: 4mm 5mm;
    box-sizing: border-box;
  }
  .ptpl-karte-left { flex: 1; min-width: 0; }
  .ptpl-karte-badge { font-size: 7pt; color: #a07808; letter-spacing: .1em; margin-bottom: 2pt; }
  .ptpl-karte-name  { font-size: 13pt; font-weight: 700; color: #0c0c0e; line-height: 1.15; margin-bottom: 2pt; }
  .ptpl-karte-dates { font-size: 8pt;  color: #5a3e10; margin-bottom: 2pt; font-style: italic; }
  .ptpl-karte-loc   { font-size: 7pt;  color: #6b5a2e; margin-bottom: 3pt; }
  .ptpl-karte-url   { font-size: 6.5pt; color: #8a6b1e; font-family: monospace; word-break: break-all; }
  .ptpl-karte-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2pt; }
  .ptpl-karte-qr    { width: 28mm; height: 28mm; display: block; }
  .ptpl-karte-scan  { font-size: 6pt; color: #a07808; text-align: center; letter-spacing: .05em; }

  /* Template: Schild (A5 portrait) */
  .ptpl-schild {
    width: 148mm; height: 210mm;
    background: linear-gradient(145deg, #e8d5a0 0%, #c9a84c 30%, #d4b55e 50%, #b8913a 70%, #c9a84c 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 10mm; box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-family: 'EB Garamond', Georgia, serif;
  }
  .ptpl-schild-inner {
    border: 2pt solid #5a3e10;
    outline: 0.5pt solid rgba(90,62,16,.3);
    outline-offset: 3pt;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8mm; box-sizing: border-box;
    text-align: center;
  }
  .ptpl-schild-kicker {
    font-size: 7pt; letter-spacing: .2em;
    color: #5a3e10; margin-bottom: 4pt; text-transform: uppercase;
  }
  .ptpl-schild-rule-thin {
    width: 60%; height: 0.5pt; background: #8a6220; margin-bottom: 6pt;
  }
  .ptpl-schild-name  { font-size: 24pt; font-weight: 700; color: #2a1a00; line-height: 1.15; margin-bottom: 4pt; }
  .ptpl-schild-dates { font-size: 11pt; color: #4a2e08; font-style: italic; margin-bottom: 4pt; }
  .ptpl-schild-loc   { font-size: 9pt;  color: #5a3e10; margin-bottom: 6pt; }
  .ptpl-schild-ornament {
    display: flex; align-items: center; gap: 4pt;
    width: 70%; margin: 6pt auto 8pt; color: #8a6220; font-size: 9pt;
  }
  .ptpl-schild-rule { flex: 1; height: 1pt; background: #8a6220; }

  /* Shared print template elements */
  .ptpl-top-ornament, .ptpl-bottom-ornament {
    display: flex; align-items: center; gap: 5pt;
    width: 80%; font-size: 9pt; color: #a07808; margin: 4pt 0;
  }
  .ptpl-rule { flex: 1; height: 0.5pt; background: currentColor; }
  .ptpl-name  { font-size: 22pt; font-weight: 700; color: #0c0c0e; margin: 5pt 0 2pt; text-align: center; line-height: 1.2; }
  .ptpl-dates { font-size: 10pt; color: #5a3e10; font-style: italic; margin-bottom: 4pt; text-align: center; }
  .ptpl-loc   { font-size: 8pt;  color: #7a6040; margin-bottom: 4pt; text-align: center; }
  .ptpl-qr-wrap { margin: 5pt 0; text-align: center; }
  .ptpl-qr    { width: 70mm; height: 70mm; display: block; margin: 0 auto; }
  .ptpl-scan-hint { font-size: 7pt; color: #8a6b1e; margin: 3pt 0 0; text-align: center; }
  .ptpl-url   { font-size: 7pt; color: #8a6b1e; font-family: monospace; text-align: center; margin-top: 4pt; }
}

/* ── Responsive tweaks for QR page ───────────────────────────────────── */
@media (max-width: 640px) {
  .qr-hero { flex-direction: column; align-items: center; }
  .qr-hero-right { width: 100%; }
  .template-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .template-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN OVERHAUL — Lesbarkeit, Abstände, Farben
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Fehlende CSS-Variablen nachdefinieren ─────────────────────────── */
:root {
  --gold-dim:         rgba(168,120,8,0.22);
  --text-muted:       rgba(255,245,215,0.55);   /* auf dunklen Flächen */
  --text-on-dark:     rgba(255,245,215,0.92);   /* heller Text auf Dunkel */
  --text-on-dark-sub: rgba(255,245,215,0.62);   /* sekundär auf Dunkel */
  --text-on-dark-dim: rgba(255,245,215,0.38);   /* dezent auf Dunkel */
}

/* ── Inputs — dicker Rahmen, mehr Luft, besser lesbar ─────────────── */
.input {
  padding: 0.9rem 1.1rem !important;
  border: 1.5px solid rgba(168,120,8,0.42) !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
  background: rgba(255,255,255,0.96) !important;
  color: #1a1208 !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,.8) !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.input::placeholder { color: rgba(100,80,20,0.45) !important; }
.input:focus {
  border-color: rgba(168,120,8,0.72) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04),
              0 0 0 4px rgba(168,120,8,0.14) !important;
  outline: none !important;
}
textarea.input {
  min-height: 110px !important;
  line-height: 1.7 !important;
}
select.input { cursor: pointer !important; }

/* Labels */
.form-label {
  font-size: .82rem !important;
  font-weight: 600 !important;
  color: rgba(60,40,5,0.75) !important;
  margin-bottom: .55rem !important;
  letter-spacing: .015em;
}
.form-group { margin-bottom: 1.35rem !important; }

/* ── Panels — mehr innen-Abstand ──────────────────────────────────── */
.form-section { padding: 2rem 2.25rem !important; }

/* ── Notification cards — LESBARE Texte auf dunklem Grund ─────────── */
.notif-card {
  padding: 1.15rem 1.35rem !important;
  margin-bottom: .85rem !important;
  border-radius: 14px !important;
}
.notif-visit {
  background: rgba(14,116,144,0.12) !important;
  border: 1px solid rgba(14,116,144,0.28) !important;
}
.notif-entry {
  background: rgba(80,55,10,0.25) !important;
  border: 1px solid rgba(168,120,8,0.32) !important;
}
.notif-group { margin-bottom: 2rem !important; }
.notif-group-title {
  font-size: .75rem !important;
  letter-spacing: .09em !important;
  color: var(--gold-light) !important;
  opacity: 1 !important;
  margin-bottom: 1rem !important;
}
.notif-title {
  font-weight: 600 !important;
  font-size: .95rem !important;
  color: var(--text-on-dark) !important;
  margin-bottom: .3rem !important;
}
.notif-title a {
  color: var(--gold-light) !important;
  text-decoration: none !important;
}
.notif-title a:hover { text-decoration: underline !important; }
.notif-memorial {
  font-weight: 400 !important;
  font-size: .83rem !important;
  color: var(--text-on-dark-sub) !important;
}
.notif-memorial a { color: rgba(212,168,32,.85) !important; }
.notif-message {
  color: var(--text-on-dark-sub) !important;
  font-style: italic !important;
  font-size: .9rem !important;
  line-height: 1.6 !important;
  margin: .35rem 0 .4rem !important;
}
.notif-meta {
  font-size: .78rem !important;
  color: var(--text-on-dark-dim) !important;
}
.notif-actions { margin-top: .9rem !important; gap: .6rem !important; }

/* Notification section title */
.notif-section .section-title { color: var(--text-on-dark) !important; }
.notif-badge { font-size: .72rem !important; }

/* ── Section header ───────────────────────────────────────────────── */
.section-header { margin-bottom: 1.5rem !important; }
.section-title {
  font-size: 1.5rem !important;
  color: var(--text-on-dark) !important;
}

/* ── Memorial list — mehr Luft, lesbare Texte ─────────────────────── */
.memorial-list { gap: 1rem !important; }
.memorial-list-item {
  padding: 1.35rem 1.5rem !important;
  gap: 1.25rem !important;
}
.memorial-thumb, .memorial-thumb-placeholder {
  width: 76px !important;
  height: 76px !important;
}
.memorial-name {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1a0f00 !important;
  margin-bottom: .3rem !important;
}
.memorial-meta {
  color: rgba(60,40,5,.65) !important;
  font-size: .82rem !important;
  margin-bottom: .5rem !important;
}
.memorial-stats {
  font-size: .8rem !important;
  color: rgba(60,40,5,.5) !important;
  gap: 1.1rem !important;
}
.pending-badge { color: #c07828 !important; font-weight: 700 !important; }

/* ── Profile page overall breathing room ──────────────────────────── */
.shell[style*="padding-top:2rem"] { padding-top: 2.5rem !important; }

/* ── Profil: leerer Zustand panel ─────────────────────────────────── */
.panel p[style*="text-muted"] { color: rgba(60,40,5,.55) !important; }

/* ── Buttons freigeben/ablehnen — klarer ──────────────────────────── */
.btn-approve {
  padding: .42rem 1rem !important;
  font-size: .84rem !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}
.btn-reject {
  padding: .42rem 1rem !important;
  font-size: .84rem !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
}
.btn-ghost-sm {
  padding: .38rem .85rem !important;
  font-size: .83rem !important;
  border-radius: 9px !important;
  color: var(--text-on-dark-sub) !important;
  border-color: rgba(255,245,215,.2) !important;
}
.btn-ghost-sm:hover {
  color: var(--gold-light) !important;
  border-color: rgba(212,168,32,.45) !important;
}

/* ── Login panel — card-spezifische Textfarben ────────────────────── */
.login-panel .form-label { color: rgba(60,40,5,.72) !important; }
.login-panel { padding: 2.5rem 2.75rem 3rem !important; }
.login-title { font-size: 1.8rem !important; margin-bottom: 1.6rem !important; }

/* ── QR hero Lesbarkeit ───────────────────────────────────────────── */
.qr-hero-name  { color: #1a0f00 !important; }
.qr-hero-dates { color: rgba(60,40,5,.6) !important; }
.qr-hero-hint  { color: rgba(60,40,5,.55) !important; }
.qr-link-text  { color: rgba(60,40,5,.55) !important; }

/* Scan badge im QR-Hero */
.qr-scan-count { color: var(--gold) !important; }
.qr-scan-label { color: rgba(60,40,5,.5) !important; }

/* ── Template card footer ─────────────────────────────────────────── */
.tpl-card-name { color: rgba(255,245,215,.6) !important; }

/* ── QR tips ──────────────────────────────────────────────────────── */
.qr-tip-title { color: var(--text-on-dark) !important; }
.qr-tip-desc  { color: var(--text-on-dark-dim) !important; }

/* ── Memorial section auf dunklem Cover ───────────────────────────── */
.memorial-section.panel .memorial-story { color: rgba(40,25,5,.85) !important; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { padding: 2rem 0 !important; }

/* ── Guestbook form panel ─────────────────────────────────────────── */
.guestbook-form-panel { padding: 1.75rem 2rem 2rem !important; }
.photo-upload-hint { color: rgba(60,40,5,.45) !important; }

/* ── Guestbook entries auf Gedenkseite ────────────────────────────── */
.entry-name { color: #1a0f00 !important; font-size: .9rem !important; }
.entry-time { color: rgba(60,40,5,.45) !important; }
.entry-text { color: rgba(40,25,5,.82) !important; }

/* ── Form-Bereich /neu ────────────────────────────────────────────── */
.form-section-title { font-size: 1.1rem !important; }
.form-hint { color: rgba(60,40,5,.5) !important; }
.req { color: #c0392b !important; }

/* ═══════════════════════════════════════════════════════════════════════
   NOTIFICATION REDESIGN — Ivory panels, lesbare dunkle Texte
   ═══════════════════════════════════════════════════════════════════════ */

/* Jede notif-group wird zum eigenständigen Ivory-Panel */
.notif-group {
  background: linear-gradient(180deg, rgba(255,252,242,0.97) 0%, rgba(255,249,228,0.93) 100%) !important;
  border: 1px solid rgba(168,120,8,0.24) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.99),
    0 2px 8px rgba(0,0,0,0.07),
    0 8px 32px rgba(0,0,0,0.08) !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

/* Gruppen-Header innerhalb des Panels */
.notif-group-title {
  padding: 1rem 1.4rem !important;
  margin-bottom: 0 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: rgba(80,55,10,0.6) !important;
  background: rgba(255,244,200,0.5) !important;
  border-bottom: 1px solid rgba(168,120,8,0.12) !important;
}

/* Karten innerhalb des Panels — transparent, nur Trennlinie */
.notif-card {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(168,120,8,0.09) !important;
  box-shadow: none !important;
  padding: 1.3rem 1.4rem !important;
  margin-bottom: 0 !important;
}
.notif-card:last-child { border-bottom: none !important; }

/* Farbiger linker Akzentstreifen je Typ */
.notif-visit { border-left: 3px solid rgba(14,116,144,0.4) !important; }
.notif-entry { border-left: 3px solid rgba(168,120,8,0.45) !important; }

/* ── ALLE Texte dunkel (Ivory-Hintergrund) ─────────────────────────── */
.notif-title {
  color: #1c1005 !important;
  font-size: .97rem !important;
  font-weight: 600 !important;
  margin-bottom: .3rem !important;
  line-height: 1.4 !important;
}
.notif-title a {
  color: #7a5a04 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}
.notif-title a:hover {
  color: #a07808 !important;
  text-decoration: underline !important;
}
.notif-memorial {
  color: rgba(60,40,5,0.55) !important;
  font-size: .84rem !important;
  font-weight: 400 !important;
  margin-left: .3rem !important;
}
.notif-memorial a {
  color: #7a5a04 !important;
  font-weight: 600 !important;
}
.notif-message {
  color: rgba(40,25,5,0.65) !important;
  font-style: italic !important;
  font-size: .9rem !important;
  line-height: 1.65 !important;
  margin: .35rem 0 .4rem !important;
}
.notif-meta {
  font-size: .78rem !important;
  color: rgba(40,25,5,0.38) !important;
}
.notif-actions {
  display: flex !important;
  gap: .6rem !important;
  margin-top: .9rem !important;
  flex-wrap: wrap !important;
}

/* Freigeben / Ablehnen Buttons auf hellem Hintergrund */
.btn-approve {
  background: rgba(21,128,61,0.1) !important;
  border: 1.5px solid rgba(21,128,61,0.35) !important;
  color: #166534 !important;
  font-weight: 700 !important;
  padding: .45rem 1.1rem !important;
  border-radius: 10px !important;
  font-size: .84rem !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s !important;
  font-family: inherit !important;
}
.btn-approve:hover {
  background: rgba(21,128,61,0.2) !important;
  border-color: rgba(21,128,61,0.55) !important;
}
.btn-reject {
  background: rgba(185,28,28,0.07) !important;
  border: 1.5px solid rgba(185,28,28,0.28) !important;
  color: #991b1b !important;
  font-weight: 700 !important;
  padding: .45rem 1.1rem !important;
  border-radius: 10px !important;
  font-size: .84rem !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s !important;
  font-family: inherit !important;
}
.btn-reject:hover {
  background: rgba(185,28,28,0.16) !important;
  border-color: rgba(185,28,28,0.45) !important;
}

/* Notif-Icon auf hellem Hintergrund */
.notif-icon {
  background: rgba(14,116,144,0.12) !important;
  color: #0e7490 !important;
  border: 1px solid rgba(14,116,144,0.2) !important;
}
.notif-icon-person {
  border: none !important;
  color: #fff !important;
}

/* Section-Title bleibt hell (auf sky-blue Hintergrund) */
.notif-section .section-title {
  color: #0c0c0e !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

/* ── Memorial list — auf Ivory-Panel korrekte Farben ──────────────── */
.memorial-list-item {
  background: linear-gradient(180deg, rgba(255,252,242,0.97) 0%, rgba(255,249,228,0.93) 100%) !important;
  border: 1px solid rgba(168,120,8,0.22) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 3px 12px rgba(0,0,0,.07) !important;
}
.memorial-name  { color: #1c1005 !important; }
.memorial-meta  { color: rgba(60,40,5,.58) !important; }
.memorial-stats { color: rgba(60,40,5,.5) !important; }
.pending-badge  { color: #92400e !important; }

/* Ghost-Buttons auf hellem Hintergrund (Profil-Seite) */
.memorial-actions .btn-ghost-sm {
  color: rgba(60,40,5,.62) !important;
  border-color: rgba(168,120,8,0.28) !important;
}
.memorial-actions .btn-ghost-sm:hover {
  color: #7a5a04 !important;
  border-color: rgba(168,120,8,0.55) !important;
}

/* ── Header "Benachrichtigungen als gelesen" Button ───────────────── */
.notif-section .btn-ghost-sm {
  color: rgba(60,40,5,.55) !important;
  border-color: rgba(168,120,8,0.25) !important;
  background: rgba(255,252,242,0.7) !important;
}

/* ── Neutralize old conflicting notif-visit / notif-entry backgrounds ─ */
/* (superseded by .notif-card transparent + notif-group ivory panel)      */
.notif-visit { background: transparent !important; border: none !important; }
.notif-entry { background: transparent !important; border: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   IVORY-SURFACE TEXT & BUTTON FIX
   Fixes elements using --text-muted (defined as light-on-dark) that
   appear on ivory/cream backgrounds (header, footer, login panels, etc.)
   ══════════════════════════════════════════════════════════════════════ */

/* Header nav — ivory sticky header needs dark ghost button */
.header-nav .btn-ghost-sm {
  color: rgba(60,40,5,.62) !important;
  border-color: rgba(168,120,8,0.30) !important;
}
.header-nav .btn-ghost-sm:hover {
  color: #7a5a04 !important;
  border-color: rgba(168,120,8,0.55) !important;
}

/* Footer — ivory background, muted text must be dark */
.site-footer span[style*="text-muted"],
.footer-inner span[style*="text-muted"] {
  color: rgba(60,40,5,.42) !important;
}
.site-footer { color: rgba(60,40,5,.50) !important; }

/* Login panel — all muted text within must be dark */
.login-panel p[style*="text-muted"],
.login-panel span[style*="text-muted"] {
  color: rgba(60,40,5,.52) !important;
}
.login-panel a[style*="gold-light"] { color: #8a6404 !important; }

/* Register shell — same */
.shell > .panel p[style*="text-muted"],
.shell > .panel span[style*="text-muted"] {
  color: rgba(60,40,5,.52) !important;
}

/* Guestbook form — muted hint under submit button */
.guestbook-form-panel p[style*="text-muted"] {
  color: rgba(60,40,5,.45) !important;
}

/* Memorial section panels — story, guestbook containers */
.memorial-section.panel p[style*="text-muted"],
.memorial-section .panel p[style*="text-muted"] {
  color: rgba(60,40,5,.50) !important;
}

/* Landing feature cards */
.feature-card .feature-desc { color: rgba(60,40,5,.55) !important; }

/* Panel generic rule (extends existing) */
.panel p[style*="text-muted"],
.panel span[style*="text-muted"] {
  color: rgba(60,40,5,.52) !important;
}

/* kicker text on landing (sky-blue background — needs dark) */
.kicker { color: rgba(40,25,5,.62) !important; }
