/* =========================================================
   GÄSTEBUCH - ÖFFENTLICHE FANSEITE
   Farblich an "Die neue Tournee" angelehnt (content-
   dieneuetournee.css: --color-highlight-* Variablen, tiefes
   Violett statt Standard-Blau), eigene gaestebuch-* Klassen.
========================================================= */

.gaestebuch-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gaestebuch-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.gaestebuch-subtitle {
    margin: 0;
    font-family: var(--font-style-headline, inherit);
    color: #fff;
}

.gaestebuch-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0.6rem 1.2rem;
    border-radius: 7px;
    border: 1px solid var(--color-highlight-box-border);
    background: var(--color-highlight-box-bg);
    color: #fff;

    font-family: var(--font-style-ui);
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;

    box-shadow: var(--shadow-medium);
    transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

.gaestebuch-open-btn:hover {
    background: var(--color-highlight-box-bg-hover);
    border-color: var(--color-highlight-box-border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-strong);
}

.gaestebuch-open-btn-icon {
    font-size: .95em;
}

/* =========================================================
   BOXEN (Tournee-Look)
========================================================= */

.gaestebuch-box {
    background: var(--color-highlight-section-bg);
    border: 1px solid var(--color-highlight-section-border);
    border-radius: var(--radius-sm, 7px);
    padding: 24px;
    transition: background .2s ease, border-color .2s ease;
}

.gaestebuch-box:hover {
    background: var(--color-highlight-section-bg-hover);
    border-color: var(--color-highlight-section-border-hover);
}

.gaestebuch-hint {
    opacity: .8;
    font-size: .9rem;
    margin: 0 0 16px;
    color: rgba(255,255,255,.85);
}

.gaestebuch-hint-closed {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(243,105,105,.12);
    border: 1px solid rgba(243,105,105,.3);
    color: var(--color-link, #f36969);
    opacity: 1;
    font-weight: 600;
}

.gaestebuch-intro-text {
    margin: 0 0 20px;
}

.gaestebuch-optional {
    opacity: .6;
    font-weight: 400;
    font-size: .85em;
}

/* =========================================================
   FORMULAR (im Modal)
========================================================= */

.gaestebuch-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.gaestebuch-form-row label {
    font-size: .85rem;
    opacity: .85;
    color: #fff;
}

.gaestebuch-form-row input,
.gaestebuch-form-row textarea {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    color: #fff;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1rem;
}

.gaestebuch-form-row input:focus,
.gaestebuch-form-row textarea:focus {
    outline: none;
    border-color: var(--color-tour-crew-divider, rgba(132,91,221,.9));
}

.gaestebuch-form-row textarea {
    resize: vertical;
}

.gaestebuch-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gaestebuch-consent-row {
    margin-bottom: 18px;
}

.gaestebuch-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
}

.gaestebuch-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-tour-crew-divider, rgba(132,91,221,.9));
}

.gaestebuch-consent-label a {
    color: var(--color-font-credit, rgba(10,170,162,.95));
    text-decoration: underline;
}

.gaestebuch-submit-btn {
    background: var(--color-tour-crew-divider, rgba(132,91,221,.9));
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gaestebuch-submit-btn:hover {
    box-shadow: var(--shadow-medium);
}

.gaestebuch-submit-btn:disabled {
    opacity: .6;
    cursor: default;
    box-shadow: none;
}

.gaestebuch-form-msg {
    margin: 12px 0 0;
    font-size: .9rem;
    min-height: 1.2em;
}

.gaestebuch-form-msg.is-success { color: #4ade80; }
.gaestebuch-form-msg.is-error { color: #f87171; }

.gaestebuch-placeholder {
    opacity: .7;
    color: rgba(255,255,255,.85);
}

/* =========================================================
   EINTRÄGE
========================================================= */

.gaestebuch-entries {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gaestebuch-entry {
    background: var(--color-highlight-box-bg);
    border: 1px solid var(--color-highlight-box-border);
    border-radius: var(--radius-sm, 7px);
    padding: 18px 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,.3);
    transition: background .2s ease, border-color .2s ease;
}

.gaestebuch-entry:hover {
    background: var(--color-highlight-box-bg-hover);
    border-color: var(--color-highlight-box-border-hover);
}

.gaestebuch-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gaestebuch-entry-name {
    font-weight: 700;
    color: #fff;
}

.gaestebuch-entry-name a {
    color: var(--color-link);
    text-decoration: none;
    position: relative;
}

.gaestebuch-entry-name a:hover {
    color: var(--color-link-hover);
}

.gaestebuch-entry-date {
    font-size: .8rem;
    opacity: .6;
    color: rgba(255,255,255,.8);
}

.gaestebuch-entry-message {
    margin: 0 0 6px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: rgba(255,255,255,.92);
}

.gaestebuch-entry-message a,
.gaestebuch-entry-reply p a {
    color: var(--color-font-credit, rgba(10,170,162,.95));
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.gaestebuch-entry-message a:hover,
.gaestebuch-entry-reply p a:hover {
    color: var(--color-link-hover, #fff);
}

.gaestebuch-entry-message-wrap {
    position: relative;
}

.gaestebuch-entry-message-wrap .gaestebuch-entry-message-full {
    display: none;
}

.gaestebuch-entry-message-wrap:not(.is-collapsed) .gaestebuch-entry-message-preview {
    display: none;
}

.gaestebuch-entry-message-wrap:not(.is-collapsed) .gaestebuch-entry-message-full {
    display: block;
}

.gaestebuch-entry-toggle {
    display: inline-block;
    margin: 8px 0 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-font-credit, rgba(10,170,162,.95));
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gaestebuch-entry-toggle:hover {
    color: var(--color-link-hover, #fff);
}

.gaestebuch-entry-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 7px 0 30px;
}

.gaestebuch-entry-contact-sep {
    color: rgba(255,255,255,.4);
    font-size: .82rem;
}

.gaestebuch-entry-homepage,
.gaestebuch-entry-email {
    display: inline-block;
    font-size: .82rem;
    color: var(--color-font-credit, rgba(10,170,162,.95));
    text-decoration: none;
    word-break: break-word;
}

.gaestebuch-entry-homepage:hover,
.gaestebuch-entry-email:hover {
    text-decoration: underline;
}

.gaestebuch-entry-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.gaestebuch-entry-reply {
    padding: 10px 14px;
    background: rgba(0,0,0,.18);
    border-left: 3px solid var(--color-tour-crew-divider, rgba(132,91,221,.9));
    border-radius: 6px;
}

.gaestebuch-entry-reply p {
    margin: 0;
    white-space: pre-wrap;
    color: rgba(255,255,255,.92);
}

/* =========================================================
   MODAL (Struktur/Konvention analog imgbox.css)
========================================================= */

.gaestebuch-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gaestebuch-modal.is-open {
    display: block;
}

.gaestebuch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.gaestebuch-modal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(560px, 92vw);
    max-height: 88vh;
    overflow-y: auto;

    padding: 28px;
    box-sizing: border-box;

    background: var(--color-highlight-section-bg);
    border: 1px solid var(--color-highlight-section-border);
    border-radius: var(--radius-sm, 7px);
    box-shadow: var(--shadow-strong);
}

.gaestebuch-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gaestebuch-modal-close:hover {
    background: rgba(0,0,0,.55);
}

body.gaestebuch-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .gaestebuch-modal-panel {
        width: 94vw;
        padding: 22px 18px;
    }

    .gaestebuch-head-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   ERWEITERUNG: Statistik-Box, Nummerierung, Alter/Wohnort,
   Pagination (Anlehnung an das alte Gästebuch-Layout)
========================================================= */

.gaestebuch-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    margin-top: -8px;
}

.gaestebuch-stats-sep {
    opacity: .5;
}

.gaestebuch-entry-number {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

.gaestebuch-entry-subhead {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 8px;
}

.gaestebuch-entry-age {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
}

.gaestebuch-entry-location {
    font-size: .82rem;
    color: var(--color-font-credit, rgba(10,170,162,.95));
}

.gaestebuch-form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.gaestebuch-form-row-split .gaestebuch-form-row {
    margin-bottom: 0;
}

/* =========================================================
   PAGINATION
========================================================= */

.gaestebuch-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.gaestebuch-page-nav {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm, 7px);
    border: 1px solid var(--color-box-border, rgba(255,255,255,.16));
    background: var(--color-box-bg, rgba(0,0,0,.18));
    color: var(--color-text, #fff);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.gaestebuch-page-nav:hover {
    background: var(--color-box-bg-strong, rgba(0,0,0,.28));
    border-color: var(--color-box-border-strong, rgba(255,255,255,.25));
    transform: translateY(-1px);
}

.gaestebuch-page-nav.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.gaestebuch-page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.gaestebuch-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 7px;
    border: 1px solid transparent;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .82rem;
}

.gaestebuch-page-num:hover {
    border-color: var(--color-box-border, rgba(255,255,255,.16));
}

.gaestebuch-page-num.is-current {
    background: var(--color-tour-crew-divider, rgba(132,91,221,.9));
    color: #fff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .gaestebuch-form-row-split {
        grid-template-columns: 1fr;
    }

    .gaestebuch-pagination {
        justify-content: center;
        text-align: center;
    }
}
