.guestbook-page {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(255,255,255,.16),
            rgba(255,255,255,.28)
        ),
        url("../images/santorini.webp");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    padding: 30px 18px 50px;

    box-sizing: border-box;

    color: #123f78;
}


/* =========================
   KOPFBEREICH
   ========================= */

.guestbook-header {
    text-align: center;
    margin-bottom: 22px;
}


.guestbook-small-title {
    font-family: "Allura", cursive;

    color: #d69b32;

    font-size: 2.2rem;
}


.guestbook-header h1 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 2.5rem;

    letter-spacing: 3px;
}


.guestbook-ornament {
    color: #d69b32;
    margin-top: 5px;
}


/* =========================
   FORMULAR-KARTE
   ========================= */

.guestbook-card {
    width: min(92vw, 560px);

    margin: auto;

    padding: 28px;

    box-sizing: border-box;

    background: rgba(255,253,247,.97);

    border: 2px solid #d8a346;
    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.18);
}


.guestbook-card h2 {
    margin-top: 0;

    text-align: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.6rem;
}


.guestbook-intro {
    margin-bottom: 25px;

    text-align: center;

    line-height: 1.5;

    color: #53677f;
}


/* =========================
   EINGABEFELDER
   ========================= */

.guestbook-card label {
    display: block;

    margin: 18px 0 7px;

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: 2px;
}


.guestbook-card input,
.guestbook-card textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid #d8c394;
    border-radius: 12px;

    background: white;

    color: #123f78;

    font-family: inherit;

    font-size: 1rem;

    outline: none;
}


.guestbook-card input:focus,
.guestbook-card textarea:focus {
    border-color: #d69b32;
}


.guestbook-card textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.5;
}


.character-count {
    margin-top: 5px;

    text-align: right;

    font-size: .75rem;

    opacity: .55;
}


/* =========================
   BUTTON
   ========================= */

.guestbook-button {
    display: flex;

    width: 100%;
    min-height: 58px;

    margin-top: 25px;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d69b32;
    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #174d87,
            #0f3767
        );

    color: white;

    font-family: "Cormorant Garamond", serif;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-decoration: none;

    cursor: pointer;
}


.guestbook-button:hover {
    filter: brightness(1.08);
}


/* =========================
   BESTÄTIGUNG
   ========================= */

.guestbook-success {
    padding: 20px 5px;

    text-align: center;
}


.success-icon {
    margin-bottom: 12px;

    color: #d69b32;

    font-size: 4rem;
}


.guestbook-success p {
    margin-bottom: 25px;
}


.back-button {
    margin-top: 25px;
}


/* =========================
   ÖFFENTLICHES GÄSTEBUCH
   ========================= */

.guestbook-entries {
    width: min(92vw, 560px);

    margin: 35px auto 0;

    box-sizing: border-box;
}


.entries-heading {
    text-align: center;

    margin-bottom: 20px;

    padding: 15px;

    background: rgba(255,253,247,.90);

    border: 1px solid rgba(216,163,70,.75);
    border-radius: 18px;

    box-shadow:
        0 8px 22px rgba(0,0,0,.10);
}


.entries-heading > span {
    display: block;

    color: #d69b32;

    font-size: 2rem;

    line-height: 1;
}


.entries-heading h2 {
    margin: 7px 0 3px;

    color: #123f78;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.5rem;

    letter-spacing: 2px;
}


.entries-heading p {
    margin: 0;

    color: #53677f;

    font-family: "Cormorant Garamond", serif;

    font-size: .95rem;
}


/* =========================
   LISTE DER EINTRÄGE
   ========================= */

.entries-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================
   EINZELNER EINTRAG
   ========================= */

.guest-entry {
    position: relative;

    padding: 18px 22px 20px;

    box-sizing: border-box;

    background: rgba(255,253,247,.96);

    border: 1px solid #d8a346;
    border-radius: 17px;

    box-shadow:
        0 8px 22px rgba(0,0,0,.12);
}


.entry-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 9px;
}


.entry-header strong {
    color: #123f78;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.25rem;
}


.entry-header span {
    color: #8795a6;

    font-size: .75rem;

    white-space: nowrap;
}


.guest-entry p {
    margin: 0;

    padding-right: 25px;

    color: #455b73;

    line-height: 1.55;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


.entry-heart {
    position: absolute;

    right: 14px;
    bottom: 10px;

    color: #d69b32;

    font-size: 1.25rem;
}


/* =========================
   LEER / LADEN / FEHLER
   ========================= */

.no-entries,
.entries-loading {
    padding: 25px;

    text-align: center;

    background: rgba(255,253,247,.94);

    border: 1px solid #d8a346;
    border-radius: 17px;

    color: #53677f;

    box-shadow:
        0 8px 22px rgba(0,0,0,.10);
}


/* =========================
   FUSSZEILE
   ========================= */

.guestbook-footer {
    margin-top: 28px;

    text-align: center;

    color: #d69b32;

    font-family: "Cormorant Garamond", serif;

    font-size: .9rem;

    letter-spacing: 4px;
}


/* =========================
   HANDY
   ========================= */

@media (max-width: 600px) {

    .guestbook-page {
        padding: 20px 10px 35px;

        background-attachment: scroll;
    }


    .guestbook-card {
        width: 100%;

        padding: 22px 18px;
    }


    .guestbook-header h1 {
        font-size: 2rem;
    }


    .guestbook-small-title {
        font-size: 1.9rem;
    }


    .guestbook-entries {
        width: 100%;

        margin-top: 25px;
    }


    .entries-heading {
        padding: 13px 10px;
    }


    .entries-heading h2 {
        font-size: 1.3rem;
    }


    .guest-entry {
        padding: 16px 17px 19px;
    }


    .entry-header {
        gap: 8px;
    }


    .entry-header strong {
        font-size: 1.15rem;
    }

}