/* ================================================================
   pfotenspur.css  —  Pforte.de Pfotenspur Tier-Gedenkseiten
   Startseite + Detail-Seite in einer Datei
   Warme Erdtöne, sanftes Grün, weiche Pastellfarben
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600&display=swap');

/* ── VARIABLEN ───────────────────────────────────────────────── */
:root {
    --text-primary:   #2d2820;
    --text-secondary: #5a5040;
    --text-muted:     #8a8070;
    --bg-primary:     #faf8f5;
    --bg-secondary:   #f2ede8;
    --bg-card:        #ffffff;
    --accent-main:    #7a5c3a;
    --accent-light:   #9a7a58;
    --accent-sage:    #6b8f6e;
    --accent-warm:    #c4956a;
    --border-light:   #e4ddd6;
    --shadow-card:    0 2px 8px rgba(80,50,20,0.07);
    --shadow-hover:   0 8px 28px rgba(80,50,20,0.14);
    --transition:     0.3s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--text-primary); background: var(--bg-primary); line-height: 1.6; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── HEADER ──────────────────────────────────────────────────── */
.header { background: var(--bg-card); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.logo { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; text-decoration: none; color: var(--text-primary); }
.logo span { color: var(--accent-warm); }

.nav { display: flex; gap: 28px; }

.nav-link { font-size: 15px; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent-sage); }

.btn { padding: 8px 8px; background: var(--accent-sage); color: white; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 500; transition: background var(--transition); white-space: nowrap; }
.btn:hover { background: #5a7a5d; }

/* ── BURGER ──────────────────────────────────────────────────── */
.hamburger { display: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .header-inner { position: relative; }
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 10; background: none; border: none; }
    /* .btn { display: none; } */ 
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 1px solid var(--border-light); gap: 4px; z-index: 100; }
    .nav.open { display: flex; }
    .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 16px; }
    .nav-link:last-child { border-bottom: none; }
}

/* ================================================================
   STARTSEITE
   ================================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.hero { padding: 80px 0 64px; text-align: center; background: linear-gradient(135deg, #f5ede0, #eae0d5, #e8ede5); position: relative; overflow: hidden; }
.hero::after { content: '🐾'; position: absolute; bottom: 10px; left: -80px; font-size: 56px; opacity: 0.15; animation: pfote-walk 20s linear infinite; }
@keyframes pfote-walk { 0% { left: -80px; } 100% { left: calc(100% + 80px); } }
@media (max-width: 768px) { .hero::after { display: none; } }
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-main); margin-bottom: 16px; }
.hero-title { font-family: 'Newsreader', serif; font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1.15; color: var(--text-primary); margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--accent-main); }
.hero-sub { font-family: 'Newsreader', serif; font-size: clamp(18px, 2vw, 22px); font-style: italic; color: var(--text-secondary); margin-bottom: 8px; margin-left: auto; margin-right: auto; }
.hero-sub2 { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 14px 32px; background: var(--accent-main); color: white; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 600; transition: all var(--transition); box-shadow: 0 4px 16px rgba(122,92,58,0.3); }
.btn-hero:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(122,92,58,0.35); }
.btn-hero-outline { padding: 14px 32px; background: transparent; color: var(--accent-main); border: 2px solid var(--accent-main); border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 600; transition: all var(--transition); }
.btn-hero-outline:hover { background: var(--accent-main); color: white; }

/* ── TRAUER ZITAT ────────────────────────────────────────────── */
.trauer-zitat { text-align: center; font-family: 'Newsreader', serif; font-size: clamp(18px, 2.5vw, 24px); font-style: italic; color: var(--text-secondary); padding: 40px 48px; margin: 40px 0; background: linear-gradient(135deg, #fdf5ec, #f5f0e8); border-radius: 12px; border-top: 3px solid var(--accent-warm); border-bottom: 3px solid var(--accent-warm); position: relative; }
.trauer-zitat::before { content: '❝'; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 40px; color: var(--accent-warm); background: var(--bg-primary); padding: 0 12px; font-style: normal; }
.zitat-autor { display: block; margin-top: 16px; font-family: 'Newsreader', serif; font-size: 18px; font-style: italic; color: var(--accent-main); letter-spacing: 0.03em; }

/* ── FILTER ──────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 32px 0 24px; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--border-light); border-radius: 20px; background: var(--bg-card); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.filter-btn:hover { border-color: var(--accent-main); color: var(--accent-main); }
.filter-btn.active { background: var(--accent-main); border-color: var(--accent-main); color: white; }

/* ── HINTERGRUND PFOTEN ──────────────────────────────────────── */
main { position: relative; }
.pfo-bg, .moto-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pfo-bg span, .moto-bg span { position: absolute; font-size: 44px; opacity: 0.06; filter: grayscale(100%); user-select: none; display: block; }

/* ── CARDS GRID ──────────────────────────────────────────────── */
.grid-pfotenspur { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0 48px; position: relative; z-index: 1; }
.card-pfotenspur { background: var(--bg-card); border-radius: 12px; overflow: visible; box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: all var(--transition); position: relative; display: flex; flex-direction: column; }
.card-pfotenspur:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-pfotenspur.hidden { display: none; }
.card-pfotenspur::after { content: ''; position: absolute; top: -8px; right: -8px; width: 72px; height: 72px; background: url('/img/nachruf/trauerband.png') no-repeat center center; background-size: contain; z-index: 20; pointer-events: none; }
.card-pfotenspur-image { aspect-ratio: 3/4; overflow: hidden; border-radius: 12px 12px 0 0; }
.card-pfotenspur-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: filter var(--transition), transform var(--transition); }
.card-pfotenspur:hover .card-pfotenspur-image img { filter: grayscale(0%); transform: scale(1.03); }
.card-pfotenspur-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-pfotenspur-type { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-main); }
.card-pfotenspur-name { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 700; color: var(--text-primary); }
.card-pfotenspur-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.card-pfotenspur-dates { font-size: 13px; color: var(--text-secondary); font-family: 'Newsreader', serif; font-style: italic; }
.card-pfotenspur-footer { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border-light); margin-top: 4px; }
.card-pfotenspur-kerzen { font-size: 12px; color: var(--text-muted); }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 0 56px; }
.page-btn { padding: 8px 18px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card); font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.page-btn:hover:not(:disabled) { border-color: var(--accent-main); color: var(--accent-main); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-numbers { display: flex; gap: 6px; align-items: center; }
.page-num { width: 36px; height: 36px; border: 1px solid var(--border-light); border-radius: 6px; background: var(--bg-card); font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.page-num:hover { border-color: var(--accent-main); color: var(--accent-main); }
.page-num.active { background: var(--accent-main); border-color: var(--accent-main); color: white; }
.page-dots { color: var(--text-muted); font-size: 14px; padding: 0 4px; }

/* ================================================================
   DETAIL-SEITE
   ================================================================ */

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0 0; font-size: 13px; color: var(--text-muted); }
.detail-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--accent-main); }

/* ── DETAIL HERO ─────────────────────────────────────────────── */
.detail-hero { padding: 40px 0 18px; background: linear-gradient(135deg, var(--bg-secondary), #ede8e0); }
/* .detail-hero-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; } */

.detail-hero-grid {
    display: grid; 
    grid-template-columns: 300px 1fr 260px;
    align-items: start;
    gap: 32px;
}



/* ── FOTO ────────────────────────────────────────────────────── */
.detail-foto-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.detail-foto-frame { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(80,50,20,0.18); width: 100%; aspect-ratio: 3/4; }
.detail-foto-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.detail-trauerband { position: absolute; top: 0; right: 0; width: 90px; height: 90px; background: url('/img/nachruf/trauerband.png') no-repeat center; background-size: contain; z-index: 5; }
.foto-share-link { display: inline-block; padding: 10px 24px; background: var(--accent-sage); color: white; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s ease; text-align: center; width: 100%; }
.foto-share-link:hover { background: #5a7a5d; transform: translateY(-2px); }

/* ── INFO ────────────────────────────────────────────────────── */
.detail-type-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-main); background: rgba(122,92,58,0.08); padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.detail-name { font-family: 'Newsreader', serif; font-size: clamp(44px, 6vw, 64px); font-weight: 700; color: var(--text-primary); line-height: 1.1; margin-bottom: 16px; }
.detail-dates { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.dates-sep { color: var(--text-muted); }
.detail-alter { font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.detail-zitat { border-left: 3px solid var(--accent-warm); padding: 12px 20px; margin: 0 0 28px; font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; color: var(--text-secondary); line-height: 1.7; background: rgba(196,149,106,0.06); border-radius: 0 8px 8px 0; }

/* ── INTERAKTIONEN ───────────────────────────────────────────── */
.interaktionen { margin-bottom: 24px; }
.inter-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.inter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.inter-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1.5px solid var(--border-light); border-radius: 10px; background: var(--bg-card); cursor: pointer; transition: all 0.25s ease; }
.inter-btn:hover { border-color: var(--accent-main); background: rgba(122,92,58,0.04); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(122,92,58,0.12); }
.inter-btn.clicked { border-color: var(--accent-main); background: rgba(122,92,58,0.08); animation: inter-pulse 0.35s ease; }
@keyframes inter-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Bereits geklickt — gesperrt */
.inter-btn.inter-done {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--accent-main);
    background: rgba(122,92,58,0.06);
}
.inter-btn.inter-done .inter-count { color: var(--accent-main); }

/* Lädt */
.inter-btn.inter-loading {
    opacity: 0.7;
    pointer-events: none;
}
.inter-btn.inter-loading .inter-emoji { animation: spin 0.6s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.inter-emoji { font-size: 28px; line-height: 1; }
.inter-name  { font-size: 11px; color: var(--text-muted); font-weight: 500; text-align: center; }
.inter-count { font-size: 13px; font-weight: 600; color: var(--accent-main); }

/* ── SHARE BTNS ──────────────────────────────────────────────── */
.detail-share-btns { display: flex; gap: 10px; }
.share-btn { padding: 9px 18px; border: 1.5px solid var(--border-light); border-radius: 8px; background: var(--bg-card); font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.2s ease; }
.share-btn:hover { border-color: var(--accent-main); color: var(--accent-main); }

/* ── CONTENT GRID ────────────────────────────────────────────── */
.detail-section { padding: 48px 0 80px; }
.detail-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

/* ── CONTENT BLOCKS ──────────────────────────────────────────── */
.content-block { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 14px; padding: 28px 32px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.block-title { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }

/* ── NACHRUF TEXT ────────────────────────────────────────────── */
.nachruf-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.nachruf-text p:last-child { margin-bottom: 0; }

/* ── GALERIE ─────────────────────────────────────────────────── */
.galerie-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.galerie-item { border-radius: 10px; overflow: hidden; cursor: pointer; }
.galerie-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(20%); transition: all 0.3s ease; display: block; }
.galerie-item:hover img { filter: grayscale(0%); transform: scale(1.03); }
.galerie-item span { display: block; padding: 6px 10px; font-size: 12px; color: var(--text-muted); background: var(--bg-secondary); text-align: center; }

/* ── LIEBLINGSDINGE ──────────────────────────────────────────── */
.lieblings-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lieblings-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; background: var(--bg-secondary); border-radius: 10px; text-align: center; }
.lieblings-item span { font-size: 32px; }
.lieblings-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin: 0; }

/* ── GEDENKBUCH ──────────────────────────────────────────────── */
.gedenkbuch-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.kondolenz-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input { padding: 10px 14px; border: 1.5px solid var(--border-light); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-primary); background: var(--bg-primary); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--accent-main); }
.form-textarea { padding: 12px 14px; border: 1.5px solid var(--border-light); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-primary); background: var(--bg-primary); resize: vertical; outline: none; transition: border-color 0.2s; }
.form-textarea:focus { border-color: var(--accent-main); }
.form-submit { padding: 12px 28px; background: var(--accent-main); color: white; border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; align-self: flex-start; }
.form-submit:hover { background: var(--accent-light); transform: translateY(-2px); }
.kondolenz-liste { display: flex; flex-direction: column; gap: 16px; }
.kondolenz-eintrag { padding: 16px 20px; background: var(--bg-secondary); border-radius: 10px; border-left: 3px solid var(--accent-warm); }
.kond-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.kond-name  { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.kond-ort   { font-size: 13px; color: var(--text-muted); }
.kond-datum { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.kond-text  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.detail-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-card); }
.sidebar-box h3 { font-family: 'Newsreader', serif; font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.steckbrief-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steckbrief-list li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.steckbrief-list li:last-child { border-bottom: none; padding-bottom: 0; }
.steckbrief-list li span { color: var(--text-muted); }
.steckbrief-list li strong { color: var(--text-primary); text-align: right; }

/* ── KERZEN ──────────────────────────────────────────────────── */
.sidebar-kerzen { text-align: center; background: linear-gradient(135deg, #fdf5ec, #f5f0e8); }
.kerzen-flame { font-size: 48px; margin-bottom: 8px; display: block; animation: flicker 2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }
.kerzen-zahl { font-family: 'Newsreader', serif; font-size: 42px; font-weight: 700; color: var(--accent-main); line-height: 1; margin-bottom: 4px; }
.kerzen-label { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.kerzen-btn { width: 100%; padding: 11px; background: var(--accent-main); color: white; border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.kerzen-btn:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── SHARE SIDEBAR ───────────────────────────────────────────── */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.share-social { padding: 8px 10px; border-radius: 7px; color: white; text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; transition: opacity 0.2s; }
.share-social:hover { opacity: 0.85; }
.share-copy { width: 100%; padding: 9px; border: 1.5px solid var(--border-light); border-radius: 7px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.share-copy:hover { border-color: var(--accent-main); color: var(--accent-main); }

.share-bubble {
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--text-primary);
    color: white;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Pfeil unten an der Sprechblase */
.share-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom: none;
    border-top-color: var(--text-primary);
}

.share-bubble.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}


.share-box {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}


/* Aufflacker-Animation */
@keyframes share-flash {
    0%   { background: var(--bg-secondary); border-color: var(--border-light); }
    25%  { background: linear-gradient(135deg, #fff8f0, #fdecd8); border-color: var(--accent-bronze); }
    50%  { background: #fdecd8; border-color: var(--accent-terracotta); box-shadow: 0 0 20px rgba(169,136,96,0.3); }
    75%  { background: #fff3e8; border-color: var(--accent-bronze); }
    100% { background: var(--bg-secondary); border-color: var(--border-light); }
}

.share-box.is-flashing {
    animation: share-flash 1.8s ease 4;  /* 2x aufflackern */
}






/* ── ÄHNLICHE ────────────────────────────────────────────────── */
.aehnliche-list { display: flex; flex-direction: column; gap: 10px; }
.aehnlich-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.aehnlich-item:hover { background: var(--bg-secondary); }
.aehnlich-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(30%); }
.aehnlich-item div { display: flex; flex-direction: column; gap: 2px; }
.aehnlich-item strong { font-size: 14px; color: var(--text-primary); }
.aehnlich-item span  { font-size: 12px; color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
   /*
.footer { background: #2a2218; color: #c8bdb0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { font-family: 'Newsreader', serif; font-size: 24px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-brand .mark { color: var(--accent-warm); }
.footer-desc { font-size: 14px; color: #9a8f80; line-height: 1.6; margin: 0; }
.footer h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #e8e0d8; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { font-size: 14px; color: #9a8f80; text-decoration: none; transition: color 0.2s; }
.footer ul li a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 13px; color: #6a6058; flex-wrap: wrap; gap: 12px; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { color: #6a6058; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: white; }
*/


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .grid-pfotenspur          { grid-template-columns: repeat(3, 1fr); }
    .footer-grid         { grid-template-columns: 1fr 1fr; }
    .detail-hero-grid    { grid-template-columns: 280px 1fr; gap: 36px; }
    .detail-content-grid { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 768px) {
    .container           { padding: 0 16px; }
    .grid-pfotenspur          { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero                { padding: 48px 0 40px; }
    .trauer-zitat        { padding: 28px 24px; font-size: 17px; }
    .footer-grid         { grid-template-columns: 1fr 1fr; gap: 28px; }
    .detail-hero-grid    { grid-template-columns: 1fr; }
    .detail-foto-wrap    { max-width: 320px; margin: 0 auto; }
    .detail-content-grid { grid-template-columns: 1fr; }
    .detail-sidebar      { position: static; }
    .lieblings-grid      { grid-template-columns: repeat(2, 1fr); }
    .galerie-grid        { grid-template-columns: repeat(2, 1fr); }
    .form-row            { grid-template-columns: 1fr; }
    .hero-actions        { flex-direction: column; align-items: center; }
    .content-block       { padding: 20px 18px; }
    .detail-main         { overflow-x: hidden; }
    .detail-content-grid { overflow-x: hidden; }
}

@media (max-width: 480px) {
    .grid-pfotenspur  { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .inter-grid  { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .inter-btn   { padding: 10px 4px; }
    .inter-emoji { font-size: 22px; }
    .inter-name  { font-size: 10px; }
}














/* ── RECHTE SIDEBAR ──────────────────────────────────────────── */
.share-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
}

.share-box-title {
    font-family: 'Newsreader', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.share-box-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.social-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-facebook { background: #1877f2; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-twitter  { background: #1da1f2; color: #fff; }
.btn-telegram { background: #0088cc; color: #fff; }
.btn-linkedin { background: #0077b5; color: #fff; }
.btn-email    { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-light); }

.native-share-btn {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--accent-sage);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background var(--transition);
}

.native-share-btn:hover { background: #4d6b60; }

.url-wrap { position: relative; }

.url-input {
    width: 100%;
    padding: 9px 42px 9px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color var(--transition);
}

.url-input:focus { outline: none; border-color: var(--accent-main); }

.url-copy-btn {
    position: absolute;
    right: 5px; top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 26px;
    background: var(--accent-main);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: background var(--transition);
}

.url-copy-btn:hover { background: var(--accent-light); }

.url-copy-toast {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text-primary);
    color: white;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.url-copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }








/* ── LIEBLINGE EDIT ───────────────────────────────────────── */
.lieblinge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.lieblinge-gruppe-titel {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 2px;
}

.lieblinge-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    min-width: 80px;
}

.lieblinge-karte:hover {
    border-color: var(--accent-main);
    background: var(--bg-card);
}

.lieblinge-karte.selected {
    border-color: var(--accent-main);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px var(--accent-main);
}

.lieblinge-karte.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.lieblinge-emoji { font-size: 24px; line-height: 1; }
.lieblinge-name  { font-size: 12px; color: var(--text-secondary); text-align: center; }

.lieblinge-zaehler {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ── LIEBLINGE DETAIL ─────────────────────────────────────── */
.pfote-lieblinge {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.pfote-lieblinge-titel {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pfote-lieblinge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pfote-liebling-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
}










/* ── STECKBRIEF BOX IM GRID ──────────────────────────────── */
.pfote-steckbrief-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
}

.pfote-steckbrief-titel {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.steckbrief-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steckbrief-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}

.steckbrief-list li span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.steckbrief-list li strong {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Mobile — Steckbrief wieder unter den anderen */
@media (max-width: 900px) {
    .detail-hero-grid {
        grid-template-columns: 1fr !important;
    }
    .pfote-steckbrief-box {
        order: 3;
    }
}