@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sand:    #F5F0E8;
    --ocean:   #2C5F7A;
    --ocean-dark: #1e4460;
    --beige:   #C4A882;
    --beige-light: #e8ddd0;
    --text:    #2D2D2D;
    --text-light: #666;
    --white:   #ffffff;
    --gold:    #c9a84c;
    --success: #3a7d44;
    --danger:  #a63228;
    --shadow:  0 2px 12px rgba(44,95,122,0.10);
    --radius:  8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--sand);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* ── Header ── */
header {
    background: var(--ocean);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-kicker {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--beige-light);
    margin-bottom: 0.5rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

header h1 span {
    color: var(--beige);
}

.header-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--beige-light);
    font-style: italic;
}

/* wave divider */
.wave {
    display: block;
    width: 100%;
    height: 48px;
    fill: var(--sand);
}

/* ── Layout ── */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--ocean);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--beige-light);
}

/* ── Entries ── */
.entries-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.entries-count {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--sand);
    border-radius: 20px;
    padding: 0.15rem 0.7rem;
}

.entry {
    border-left: 3px solid var(--beige);
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    background: var(--sand);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.entry:last-child { margin-bottom: 0; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.entry-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ocean);
}

.entry-ort {
    font-size: 0.85rem;
    color: var(--text-light);
}

.entry-ort::before { content: "📍 "; }

.entry-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }

.entry-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.no-entries {
    text-align: center;
    color: var(--text-light);
    padding: 2.5rem 1rem;
    font-style: italic;
}

/* ── Form ── */
.form-group { margin-bottom: 1.2rem; }

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ocean);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

label .opt {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.82rem;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--beige-light);
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(44,95,122,0.12);
}

textarea { min-height: 120px; resize: vertical; }

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    width: fit-content;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.8rem;
    color: var(--beige-light);
    cursor: pointer;
    transition: color 0.15s;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 400;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--gold);
}

.honeypot { display: none !important; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.03em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--ocean);
    color: var(--white);
}
.btn-primary:hover { background: var(--ocean-dark); }

.btn-success {
    background: var(--success);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.btn-secondary {
    background: var(--beige);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

/* ── Alerts ── */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.alert-success {
    background: #e8f4ec;
    border-left: 4px solid var(--success);
    color: #2a5c30;
}

.alert-error {
    background: #fbeaea;
    border-left: 4px solid var(--danger);
    color: #6e2020;
}

.alert-info {
    background: #e4eef4;
    border-left: 4px solid var(--ocean);
    color: #1e4460;
}

/* ── Admin table ── */
.admin-section { margin-bottom: 2.5rem; }

.admin-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--ocean);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
}

.badge-pending  { background: #fff3cd; color: #7a5c00; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

.admin-entry {
    background: var(--white);
    border: 1px solid var(--beige-light);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow);
}

.admin-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-entry-text {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Admin Login ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-card h1 {
    font-family: 'Playfair Display', serif;
    color: var(--ocean);
    margin-bottom: 0.3rem;
    font-size: 1.7rem;
}

.login-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ocean-dark);
    padding: 0.7rem 1.5rem;
    color: var(--white);
    font-size: 0.9rem;
}

.admin-nav a { color: var(--beige-light); text-decoration: none; font-size: 0.88rem; }
.admin-nav a:hover { color: var(--white); }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.82rem;
    border-top: 1px solid var(--beige-light);
}

footer a { color: var(--ocean); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
    header h1 { font-size: 1.9rem; }
    .card { padding: 1.3rem; }
    main { padding: 1.2rem 1rem 3rem; }
}
