:root {
    --paper: #ffffff;
    --cream: #faf6f0;
    --ink: #211d18;
    --ink-muted: #776f60;
    --line: #e6ddcf;
    --gold: #a9822f;
    --gold-dark: #8a6a24;
    --success-bg: #eaf3ea;
    --success-border: #3f7a52;
    --success-text: #2c5b3c;
    --error-bg: #fbebe9;
    --error-border: #b3413a;
    --error-text: #8a2f28;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.eyebrow-light {
    color: #e9d9b8;
}

/* ---------- Password Gate ---------- */
.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gate-card {
    background: var(--paper);
    border-radius: 4px;
    max-width: 420px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.gate-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.gate-copy {
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gate-form input {
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.gate-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.gate-error {
    color: var(--error-text);
    font-size: 0.85rem;
    margin: 1rem 0 0;
    display: none;
}

/* ---------- Site ---------- */
.site {
    display: none;
}

/* ---------- Fixed background video ---------- */
/* Pinned to the viewport for the entire page, so all content (hero text,
   info cards, RSVP form) scrolls on top of it instead of it scrolling away
   with the hero. */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(160deg, #2c2620 0%, #1a1712 100%);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 12, 0.45) 0%, rgba(20, 17, 12, 0.7) 100%);
    z-index: -1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--paper);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #e9e3d6;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* Rating widget: a fixed-height box so quotes of different lengths never
   shift the countdown/CTA below it. Long quotes clamp to two lines; clicking
   expands them as an overlay anchored to this same box (position: absolute),
   so reading the full text doesn't disturb the rest of the layout. */
.rating-widget {
    margin-bottom: 2.5rem;
}

.rating-quote-wrap {
    position: relative;
    max-width: 480px;
    /* Reserves space for the stars line + 2-line clamped quote + name line +
       hint line below it, so none of that ever shifts this box's height. */
    height: 6rem;
    margin: 0 auto;
    cursor: pointer;
}

.rating-quote {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.rating-quote-stars {
    color: var(--gold);
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.rating-quote-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.35;
    font-style: italic;
    color: #e9e3d6;
    text-align: center;
}

.rating-quote-name {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #cfc6b3;
    margin-top: 0.25rem;
}

.rating-quote.fade {
    opacity: 0;
}

/* Kept as its own element (not a ::after inside .rating-quote-text) because
   that text clips to 2 lines via overflow:hidden - any pseudo-content
   appended inside it would be clipped away too. visibility (not display) is
   toggled so the reserved space in .rating-quote-wrap never changes. */
.rating-quote-hint {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-top: 0.2rem;
    visibility: hidden;
}

.rating-quote-hint.visible {
    visibility: visible;
}

.rating-quote.expanded {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 17, 12, 0.92);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.rating-quote.expanded .rating-quote-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Star picker (comment form) */
.star-picker {
    display: flex;
    gap: 0.35rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--line);
    padding: 0;
    transition: color 0.15s ease;
}

.star-btn.filled {
    color: var(--gold);
}

textarea {
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.countdown-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    min-width: 72px;
}

.countdown-number {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Fraunces', serif;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cfc6b3;
}

.cta-button {
    display: inline-block;
    background: var(--gold);
    color: var(--paper);
    text-decoration: none;
    padding: 0.95rem 2.25rem;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: var(--gold-dark);
}

.interessenten-counter {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: #cfc6b3;
}

/* ---------- Main content ---------- */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3rem;
}

.card h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.fact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 1.75rem;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
}

.fact-value {
    font-size: 1.05rem;
}

.map-link {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.map-link:hover {
    text-decoration: underline;
}

/* ---------- Form ---------- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Author styles (like the display:flex above) otherwise beat the browser's
   default [hidden] { display: none }, so the "hidden" attribute alone
   wouldn't actually hide a .form-group - this makes it win explicitly. */
.form-group[hidden] {
    display: none;
}

label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}

input[type="text"], select {
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

form button {
    background: var(--ink);
    color: var(--paper);
    padding: 0.95rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

form button:hover {
    background: #3a3327;
}

.notice {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
}

.notice-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.notice-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.site-footer p {
    display: inline-block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.6rem 1.25rem;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .fact-list {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 2rem 1.5rem;
    }
    .hero-content {
        padding: 6rem 1.25rem 4rem;
    }
}
