/* ==========================================================================
   Gedenkportal – Frontend Stylesheet
   ========================================================================== */

:root {
    --gp-dark: #1a1a1a;
    --gp-text: #3d3d3d;
    --gp-muted: #7a7a7a;
    --gp-border: #e0d8d0;
    --gp-bg: #f9f6f2;
    --gp-white: #ffffff;
    --gp-accent: #6b8c7a;
    --gp-accent-dark: #3d5a4a;
    --gp-gold: #cfa500;
    --gp-card-bg: #ffffff;
    --gp-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --gp-radius: 8px;
    --gp-transition: 0.3s ease;
}

/* ---------- Reset / Base ---------- */
.gp-wrap {
    color: var(--gp-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
.gp-wrap *,
.gp-wrap *::before,
.gp-wrap *::after {
    box-sizing: border-box;
}

/* ---------- Flatsome Theme Overrides ---------- */
.gp-wrap input[type="text"],
.gp-wrap input[type="email"],
.gp-wrap input[type="password"],
.gp-wrap input[type="search"],
.gp-wrap textarea,
.gp-wrap select {
    box-shadow: none;
    -webkit-appearance: none;
}
.gp-wrap input[type="text"]:focus,
.gp-wrap input[type="email"]:focus,
.gp-wrap input[type="password"]:focus,
.gp-wrap textarea:focus,
.gp-wrap select:focus {
    box-shadow: none;
}
.gp-wrap button,
.gp-wrap .gp-btn {
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}
.gp-wrap button:hover,
.gp-wrap .gp-btn:hover {
    box-shadow: none;
}

/* ---------- Section ---------- */
.gp-section {
    padding: 80px 20px;
}
.gp-section__inner {
    max-width: 900px;
    margin: 0 auto;
}
.gp-section__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--gp-dark);
    text-align: center;
    margin: 0 0 2rem;
    letter-spacing: 0.02em;
}
.gp-section:nth-child(even) {
    background: var(--gp-bg);
}

/* ---------- Divider ---------- */
.gp-divider {
    border: none;
    border-top: 1px solid var(--gp-border);
    margin: 3rem 0;
}

/* ---------- Buttons ---------- */
.gp-btn {
    display: inline-block;
    padding: 0.7em 1.6em;
    border: none;
    border-radius: var(--gp-radius);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--gp-transition);
    text-decoration: none;
    line-height: 1.4;
}
.gp-btn--accent {
    background: var(--gp-accent);
    color: var(--gp-white);
}
.gp-btn--accent:hover {
    background: var(--gp-accent-dark);
}
.gp-btn--gold {
    background: var(--gp-gold);
    color: var(--gp-white);
}
.gp-btn--gold:hover {
    background: #b08e3f;
}
.gp-btn--outline {
    background: transparent;
    color: var(--gp-accent);
    border: 1px solid var(--gp-accent);
}
.gp-btn--outline:hover {
    background: var(--gp-accent);
    color: var(--gp-white);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.gp-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-hero__overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gp-hero__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.7);
    margin: 0 auto 1.5rem;
    background: var(--gp-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gp-hero__initials {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gp-hero__name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gp-hero__dates {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem;
    letter-spacing: 0.03em;
}
.gp-hero__spruch {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.gp-hero__qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    transition: var(--gp-transition);
    margin-top: 0.5rem;
}
.gp-hero__qr:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   NACHRUF
   ========================================================================== */
.gp-nachruf__text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}
.gp-nachruf__text p {
    margin: 0 0 1em;
}

/* ==========================================================================
   TRAUERANZEIGE
   ========================================================================== */
.gp-traueranzeige__bild {
    text-align: center;
    margin-bottom: 1.5rem;
}
.gp-traueranzeige__bild img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
}
.gp-traueranzeige__pdf {
    text-align: center;
}

/* ==========================================================================
   BESTATTUNG
   ========================================================================== */
.gp-bestattung__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}
.gp-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}
.gp-info-table th,
.gp-info-table td {
    padding: 0.6em 0;
    border-bottom: 1px solid var(--gp-border);
    text-align: left;
    vertical-align: top;
}
.gp-info-table th {
    width: 120px;
    color: var(--gp-muted);
    font-weight: 500;
}
.gp-bestattung__hinweis {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--gp-accent);
    background: rgba(107, 140, 122, 0.06);
    border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
    font-style: italic;
    color: var(--gp-text);
}
.gp-bestatter-card {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background: var(--gp-card-bg);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
}
.gp-bestatter-card__title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--gp-dark);
}
.gp-bestatter-card p {
    margin: 0.3em 0;
    font-size: 0.9rem;
}
.gp-bestatter-card a {
    color: var(--gp-accent-dark);
    text-decoration: none;
}
.gp-bestatter-card a:hover {
    text-decoration: underline;
}

/* Map */
.gp-map-wrap iframe {
    display: block;
    width: 100%;
}
.gp-map-credit {
    font-size: 0.8rem;
    color: var(--gp-muted);
    margin-top: 0.5rem;
}
.gp-map-credit a {
    color: var(--gp-accent-dark);
}
.gp-map-dsgvo {
    font-size: 0.78rem;
    color: var(--gp-muted);
    font-style: italic;
}
.gp-map-fallback {
    padding: 2rem;
    background: var(--gp-bg);
    border-radius: var(--gp-radius);
    text-align: center;
}
.gp-map-fallback a {
    color: var(--gp-accent-dark);
    font-weight: 500;
}

/* ==========================================================================
   GALERIE
   ========================================================================== */
.gp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gp-border);
    margin-bottom: 2rem;
}
.gp-tab {
    padding: 0.7em 1.5em;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gp-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--gp-transition);
    font-family: system-ui, sans-serif;
}
.gp-tab--active,
.gp-tab:hover {
    color: var(--gp-accent-dark);
    border-bottom-color: var(--gp-accent);
}
.gp-tab-content {
    display: none;
}
.gp-tab-content--active {
    display: block;
}

/* Masonry */
.gp-masonry {
    columns: 3;
    column-gap: 16px;
}
.gp-masonry__item {
    break-inside: avoid;
    margin: 0 0 16px;
    border-radius: var(--gp-radius);
    overflow: hidden;
    background: var(--gp-card-bg);
    box-shadow: var(--gp-shadow);
}
.gp-masonry__item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity var(--gp-transition);
}
.gp-masonry__item img:hover {
    opacity: 0.9;
}
.gp-masonry__item figcaption {
    padding: 0.5em 0.8em;
    font-size: 0.85rem;
    color: var(--gp-muted);
}
.gp-masonry__uploader {
    display: block;
    font-size: 0.8rem;
    color: var(--gp-muted);
}
.gp-upload-btn-wrap {
    text-align: center;
    margin-top: 2rem;
}
.gp-notice--info {
    padding: 0.8rem 1.2rem;
    background: #fff3cd;
    border-radius: var(--gp-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.gp-notice--info a {
    color: var(--gp-accent-dark);
    font-weight: 500;
}
.gp-empty {
    text-align: center;
    color: var(--gp-muted);
    font-style: italic;
    padding: 2rem 0;
}

/* ==========================================================================
   KERZEN & BLUMEN
   ========================================================================== */
.gp-kerzen__counts {
    text-align: center;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    color: var(--gp-muted);
    margin-bottom: 2rem;
}
.gp-kerzen__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.gp-kerzen__item {
    text-align: center;
    padding: 0.8rem 0.5rem;
}
.gp-kerze-svg,
.gp-blume-svg {
    display: block;
    width: 50px;
    height: auto;
    margin: 0 auto 0.4rem;
}
.gp-kerzen__name {
    display: block;
    font-size: 0.8rem;
    color: var(--gp-text);
    font-weight: 500;
}
.gp-kerzen__msg {
    display: block;
    font-size: 0.72rem;
    color: var(--gp-muted);
    font-style: italic;
    margin-top: 0.15rem;
}
.gp-kerzen__actions {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Candle flicker animation */
@keyframes gp-flicker {
    0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
    25% { transform: scaleY(1.05) scaleX(0.97); opacity: 0.95; }
    50% { transform: scaleY(0.97) scaleX(1.02); opacity: 1; }
    75% { transform: scaleY(1.03) scaleX(0.98); opacity: 0.97; }
}
.gp-flame {
    animation: gp-flicker 2s ease-in-out infinite;
    transform-origin: bottom center;
}

/* ==========================================================================
   TRAUERBUCH
   ========================================================================== */
.gp-trauerbuch__entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gp-border);
}
.gp-trauerbuch__entry:last-child {
    border-bottom: none;
}
.gp-trauerbuch__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.gp-trauerbuch__autor {
    font-size: 1rem;
    color: var(--gp-dark);
}
.gp-trauerbuch__date {
    font-size: 0.85rem;
    color: var(--gp-muted);
    margin-left: auto;
}
.gp-trauerbuch__nachricht {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.7;
}
.gp-trauerbuch__bild {
    margin-top: 0.8rem;
}
.gp-trauerbuch__bild img {
    max-width: 120px;
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
}

/* Pill / Badge */
.gp-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15em 0.5em;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--gp-bg);
}
.gp-pill--kerze { background: #fff8e1; }
.gp-pill--herz  { background: #fce4ec; }
.gp-pill--blume { background: #f3e5f5; }

.gp-trauerbuch__more-wrap {
    text-align: center;
    padding: 1.5rem 0;
}
.gp-trauerbuch__form-wrap {
    text-align: center;
}
.gp-trauerbuch__form {
    text-align: left;
    margin-top: 1.5rem;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.gp-form__field {
    margin-bottom: 1.2rem;
}
.gp-form__field label {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gp-text);
    margin-bottom: 0.3rem;
}
.gp-form__field input[type="text"],
.gp-form__field input[type="email"],
.gp-form__field input[type="password"],
.gp-form__field textarea,
.gp-form__field select {
    width: 100%;
    padding: 0.65em 0.9em;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    font-size: 0.95rem;
    font-family: system-ui, sans-serif;
    color: var(--gp-text);
    background: var(--gp-white);
    transition: border-color var(--gp-transition);
}
.gp-form__field input:focus,
.gp-form__field textarea:focus {
    outline: none;
    border-color: var(--gp-accent);
}
.gp-form__field input[type="file"] {
    font-size: 0.9rem;
}
.gp-form__hint {
    font-size: 0.8rem;
    color: var(--gp-muted);
    margin-top: 0.2rem;
}
.gp-form__counter {
    font-size: 0.8rem;
    color: var(--gp-muted);
    text-align: right;
    margin-top: 0.2rem;
}
.gp-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
}
.gp-form__field--checkbox input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
}
.gp-form__radios {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.gp-form__radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 400;
    cursor: pointer;
}
.gp-form__message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--gp-radius);
    font-size: 0.9rem;
}
.gp-form__message--success {
    background: #e8f5e9;
    color: #2e7d32;
}
.gp-form__message--error {
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   PASSWORD PROTECTION
   ========================================================================== */
.gp-pw-wrap {
    max-width: 440px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}
.gp-pw-wrap h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--gp-dark);
    margin-bottom: 0.5rem;
}
.gp-pw-wrap p {
    color: var(--gp-muted);
    margin-bottom: 1.5rem;
}
.gp-pw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gp-pw-form input[type="password"] {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    font-size: 1rem;
    text-align: center;
}
.gp-pw-form button {
    padding: 0.75em 2em;
    background: var(--gp-accent);
    color: #fff;
    border: none;
    border-radius: var(--gp-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--gp-transition);
}
.gp-pw-form button:hover {
    background: var(--gp-accent-dark);
}
.gp-pw-error {
    font-size: 0.9rem;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.gp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.gp-modal--open {
    opacity: 1;
    visibility: visible;
}
.gp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.gp-modal__box {
    position: relative;
    max-width: 500px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.gp-modal__box h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}
.gp-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gp-muted);
    line-height: 1;
}
.gp-modal__close:hover {
    color: var(--gp-dark);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.gp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.gp-lightbox--open {
    opacity: 1;
    visibility: visible;
}
.gp-lightbox__img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.gp-lightbox__close,
.gp-lightbox__prev,
.gp-lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.gp-lightbox__close:hover,
.gp-lightbox__prev:hover,
.gp-lightbox__next:hover {
    opacity: 1;
}
.gp-lightbox__close {
    top: 16px;
    right: 20px;
    font-size: 2.5rem;
}
.gp-lightbox__prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.gp-lightbox__next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   ARCHIVE HERO
   ========================================================================== */
.gp-archive-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-archive-hero__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 420px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.gp-archive-hero__content {
    text-align: center;
    max-width: 680px;
    width: 100%;
}
.gp-archive-hero__icon {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}
.gp-archive-hero__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}
.gp-archive-hero__subtitle {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2.5rem;
    letter-spacing: 0.02em;
}

/* ---------- Search Bar in Hero ---------- */
.gp-archive-search {
    display: flex;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.gp-archive-search__input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--gp-white);
}
.gp-archive-search__icon {
    position: absolute;
    left: 18px;
    color: var(--gp-muted);
    pointer-events: none;
}
.gp-archive-search__input-wrap input[type="text"] {
    width: 100%;
    padding: 1em 1em 1em 50px;
    border: none;
    font-size: 1.05rem;
    font-family: system-ui, sans-serif;
    color: var(--gp-text);
    background: transparent;
    outline: none;
    box-shadow: none;
    margin: 0;
    height: auto;
    line-height: normal;
    border-radius: 0;
}
.gp-archive-search__input-wrap input[type="text"]:focus {
    box-shadow: none;
    border: none;
    outline: none;
}
.gp-archive-search__input-wrap input[type="text"]::placeholder {
    color: var(--gp-muted);
}
.gp-archive-search__clear {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gp-bg);
    border-radius: 50%;
    color: var(--gp-muted);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    transition: var(--gp-transition);
}
.gp-archive-search__clear:hover {
    background: var(--gp-border);
    color: var(--gp-dark);
}
button.gp-archive-search__btn,
.gp-archive-search button[type="submit"] {
    padding: 1em 2em;
    border: none;
    background: var(--gp-accent-dark);
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--gp-transition);
    white-space: nowrap;
    border-radius: 0;
    line-height: normal;
    height: auto;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}
button.gp-archive-search__btn:hover,
.gp-archive-search button[type="submit"]:hover {
    background: #2e4638;
    color: #fff;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.gp-filter-bar {
    background: var(--gp-white);
    border-bottom: 1px solid var(--gp-border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 99;
}
.gp-filter-bar__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 8px 0;
}
.gp-filter-bar__left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.gp-filter-bar__right {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.gp-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gp-filter-group label {
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--gp-muted);
    white-space: nowrap;
}
.gp-filter-group select {
    padding: 0.4em 2em 0.4em 0.7em;
    border: 1px solid var(--gp-border);
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: system-ui, sans-serif;
    color: var(--gp-text);
    background: var(--gp-white);
    cursor: pointer;
    appearance: auto;
    height: auto;
    line-height: normal;
    margin: 0;
    box-shadow: none;
}
.gp-filter-group select:focus {
    outline: none;
    border-color: var(--gp-accent);
    box-shadow: none;
}
.gp-filter-bar__count {
    font-size: 0.85rem;
    color: var(--gp-muted);
    white-space: nowrap;
}

/* View Toggle */
.gp-view-toggle {
    display: flex;
    border: 1px solid var(--gp-border);
    border-radius: 6px;
    overflow: hidden;
}
button.gp-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border: none;
    background: var(--gp-white);
    color: var(--gp-muted);
    cursor: pointer;
    transition: var(--gp-transition);
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1;
    min-height: 0;
}
.gp-view-toggle__btn + .gp-view-toggle__btn {
    border-left: 1px solid var(--gp-border);
}
.gp-view-toggle__btn--active,
.gp-view-toggle__btn:hover {
    background: var(--gp-accent);
    color: var(--gp-white);
}

/* Active Filters */
.gp-active-filters {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 0 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.gp-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25em 0.7em;
    background: var(--gp-bg);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--gp-text);
    font-family: system-ui, sans-serif;
}
.gp-active-filter a {
    color: var(--gp-muted);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    margin-left: 2px;
}
.gp-active-filter a:hover {
    color: #c62828;
}
.gp-active-filters__clear {
    font-size: 0.82rem;
    color: var(--gp-accent-dark);
    margin-left: 0.5rem;
}

/* ==========================================================================
   ARCHIVE RESULTS
   ========================================================================== */
.gp-archive-results {
    background: var(--gp-bg);
    min-height: 400px;
}
.gp-archive-results__inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* ==========================================================================
   CARDS GRID (Redesigned)
   ========================================================================== */
.gp-cards {
    display: grid;
    gap: 1.5rem;
}
.gp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.gp-cards--2 { grid-template-columns: repeat(2, 1fr); }
.gp-cards--1 { grid-template-columns: 1fr; }

/* Card entrance animation */
@keyframes gp-card-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-card {
    background: var(--gp-card-bg);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
    animation: gp-card-in 0.5s ease both;
    display: flex;
    flex-direction: column;
}
.gp-card--linked {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.gp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gp-card__header {
    padding: 2rem 1.5rem 0;
}
.gp-card__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid var(--gp-border);
    transition: transform var(--gp-transition);
}
.gp-card:hover .gp-card__photo {
    transform: scale(1.05);
}
.gp-card__initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gp-accent);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform var(--gp-transition);
}
.gp-card:hover .gp-card__initials {
    transform: scale(1.05);
}

.gp-card__body {
    padding: 1rem 1.5rem 0.5rem;
    flex: 1;
}
.gp-card__name {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    color: var(--gp-dark);
    margin: 0 0 0.3rem;
}
.gp-card__dates {
    font-size: 0.85rem;
    color: var(--gp-muted);
    margin: 0 0 0.6rem;
    letter-spacing: 0.02em;
}
.gp-card__spruch {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gp-muted);
    line-height: 1.5;
    margin: 0;
}

.gp-card__footer {
    padding: 0.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.gp-card__meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
.gp-card__meta-item {
    font-size: 0.78rem;
    color: var(--gp-muted);
    white-space: nowrap;
}
.gp-card__cta {
    font-size: 0.88rem;
    color: var(--gp-accent-dark);
    font-weight: 500;
    transition: color var(--gp-transition);
}
.gp-card:hover .gp-card__cta {
    color: var(--gp-accent);
}

/* Legacy card link (shortcode) */
.gp-card__link {
    font-size: 0.9rem;
    color: var(--gp-accent-dark);
    text-decoration: none;
    font-weight: 500;
}
.gp-card__link:hover {
    text-decoration: underline;
}

/* ---------- List View ---------- */
.gp-cards--list {
    grid-template-columns: 1fr !important;
    gap: 0;
}
.gp-cards--list .gp-card {
    flex-direction: row;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid var(--gp-border);
    box-shadow: none;
    animation: none;
}
.gp-cards--list .gp-card:first-child {
    border-radius: var(--gp-radius) var(--gp-radius) 0 0;
}
.gp-cards--list .gp-card:last-child {
    border-radius: 0 0 var(--gp-radius) var(--gp-radius);
    border-bottom: none;
}
.gp-cards--list .gp-card:hover {
    transform: none;
    background: var(--gp-bg);
}
.gp-cards--list .gp-card__header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
}
.gp-cards--list .gp-card__photo,
.gp-cards--list .gp-card__initials {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}
.gp-cards--list .gp-card__body {
    padding: 1rem 0;
    flex: 1;
}
.gp-cards--list .gp-card__name {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}
.gp-cards--list .gp-card__dates {
    margin-bottom: 0.2rem;
}
.gp-cards--list .gp-card__spruch {
    display: none;
}
.gp-cards--list .gp-card__footer {
    padding: 1rem 1.5rem;
    flex-direction: row;
    justify-content: flex-end;
    min-width: 200px;
}
.gp-cards--list .gp-card__meta {
    display: none;
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */
.gp-no-results {
    text-align: center;
    padding: 4rem 2rem;
}
.gp-no-results__icon {
    margin-bottom: 1rem;
    opacity: 0.4;
}
.gp-no-results h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--gp-dark);
    margin: 0 0 0.5rem;
}
.gp-no-results p {
    color: var(--gp-muted);
    margin: 0 0 1.5rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.gp-pagination {
    text-align: center;
    padding: 2.5rem 0 1rem;
}
.gp-pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 0.9em;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--gp-text);
    background: var(--gp-white);
    border: 1px solid var(--gp-border);
    transition: var(--gp-transition);
}
.gp-pagination .page-numbers:hover {
    background: var(--gp-accent);
    color: var(--gp-white);
    border-color: var(--gp-accent);
}
.gp-pagination .page-numbers.current {
    background: var(--gp-accent-dark);
    color: var(--gp-white);
    border-color: var(--gp-accent-dark);
}
.gp-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* Shortcode search */
.gp-suche {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}
.gp-suche input[type="text"] {
    flex: 1;
    padding: 0.7em 1em;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    font-size: 1rem;
}
.gp-suche button {
    padding: 0.7em 1.5em;
}

/* ==========================================================================
   MESSAGE BOX
   ========================================================================== */
.gp-message {
    max-width: 600px;
    margin: 120px auto;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gp-bg);
    border-radius: var(--gp-radius);
}
.gp-message p {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--gp-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .gp-cards--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gp-section {
        padding: 48px 16px;
    }
    .gp-hero__name {
        font-size: 1.8rem;
    }
    .gp-hero__photo {
        width: 120px;
        height: 120px;
    }
    .gp-bestattung__grid {
        grid-template-columns: 1fr;
    }
    .gp-masonry {
        columns: 2;
    }

    /* Archive hero */
    .gp-archive-hero { min-height: 340px; }
    .gp-archive-hero__overlay { min-height: 340px; padding: 40px 16px; }
    .gp-archive-hero__title { font-size: 2rem; }
    .gp-archive-search {
        flex-direction: column;
        border-radius: var(--gp-radius);
    }
    .gp-archive-search__input-wrap {
        border-radius: var(--gp-radius) var(--gp-radius) 0 0;
    }
    .gp-archive-search__btn {
        border-radius: 0 0 var(--gp-radius) var(--gp-radius);
        padding: 0.8em;
    }

    /* Filter bar */
    .gp-filter-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 10px 0;
    }
    .gp-filter-bar__right {
        width: 100%;
        justify-content: space-between;
    }
    .gp-view-toggle { display: none; }

    /* Cards */
    .gp-cards--3,
    .gp-cards--2 {
        grid-template-columns: 1fr;
    }

    .gp-trauerbuch__date {
        margin-left: 0;
        width: 100%;
    }
    .gp-suche {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gp-masonry {
        columns: 1;
    }
    .gp-kerzen__grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .gp-archive-hero__title { font-size: 1.7rem; }
    .gp-archive-hero__subtitle { font-size: 0.95rem; }
}
