:root {
    --blue: #0077cc;
    --blue-dark: #055f9f;
    --ink: #17202c;
    --text: #2b394b;
    --muted: #687789;
    --line: #d9e2ec;
    --bg: #f3f7fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(23, 32, 44, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.page-width {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.logo span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 28px;
    padding: 54px 0 24px;
}

.hero-text {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 58px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(23, 32, 44, 0.86), rgba(0, 119, 204, 0.7)),
        url("img/elbegarten.jpg?v=20260510-3") center / cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero h1,
.section-title h2,
.submit-section h2 {
    margin: 0;
    color: inherit;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
}

.hero p {
    max-width: 620px;
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.2rem;
}

.submit-section button,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.submit-section button:hover,
.back-link:hover {
    background: var(--blue-dark);
    color: #fff;
}

.choice-panel {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(23, 32, 44, 0.08);
}

.choice-panel h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 1.45rem;
}

.date-options {
    display: grid;
    gap: 14px;
}

.date-card {
    position: relative;
    display: block;
    min-height: 116px;
    padding: 20px 54px 20px 20px;
    background: #f8fbff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.date-card input {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    accent-color: var(--blue);
}

.date-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.date-card strong {
    display: block;
    margin-top: 4px;
    color: var(--blue);
    font-size: 2.25rem;
    line-height: 1;
}

.date-card.is-selected,
.location-card.is-selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.14);
}

.summary-wrap {
    position: sticky;
    top: 84px;
    z-index: 15;
    margin-bottom: 30px;
}

.summary {
    display: grid;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 44, 0.09);
}

.summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.summary-title {
    display: block;
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.summary-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.summary-items span {
    color: var(--muted);
}

.summary-items strong {
    color: var(--ink);
}

.vote-status {
    flex: 0 0 340px;
    padding: 0;
    border-radius: 8px;
    text-align: left;
}

.vote-leaders {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    background: #f7fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.vote-status span,
.vote-leaders span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.vote-status strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
}

.leader-items {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 0.55fr);
    gap: 12px;
}

.leader-items div {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.leader-items small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-weight: 800;
}

.leader-items strong {
    display: block;
    color: var(--ink);
    line-height: 1.25;
}

.vote-status.is-open {
    background: transparent;
}

.vote-status.is-locked {
    background: transparent;
}

.submit-section button:disabled {
    cursor: not-allowed;
    background: #788697;
}

.location-section {
    padding-bottom: 48px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title h2 {
    color: var(--ink);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-title p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.location-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 44, 0.1);
    cursor: pointer;
}

.location-card input {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 22px;
    height: 22px;
    accent-color: var(--blue);
}

.location-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    background: #dbe8f2;
}

.location-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.location-content h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.28rem;
    line-height: 1.2;
}

.location-content p {
    margin: 0 0 20px;
    color: var(--muted);
}

.location-content span {
    display: grid;
    min-height: 44px;
    place-items: center;
    color: var(--blue-dark);
    background: #e8f4ff;
    border-radius: 8px;
    font-weight: 800;
}

.location-card.is-selected .location-content span {
    color: #fff;
    background: var(--blue);
}

.submit-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    padding: 30px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}

.submit-section h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.submit-section p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.submit-section button {
    flex: 0 0 auto;
    min-width: 190px;
}

.feedback {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.feedback-card {
    width: min(540px, 100%);
    padding: 34px;
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feedback-card h1 {
    margin: 0 0 22px;
    color: var(--ink);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}

@media (max-width: 900px) {
    .hero,
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text {
        grid-column: 1 / -1;
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .page-width {
        width: min(100% - 24px, 1180px);
    }

    .topbar-inner {
        min-height: 64px;
    }

    .hero,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-text,
    .choice-panel,
    .submit-section {
        padding: 22px;
    }

    .hero-text {
        min-height: 360px;
    }

    .summary-wrap {
        top: 76px;
    }

    .summary,
    .summary-top,
    .section-title,
    .submit-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .vote-status {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .vote-leaders {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .leader-items {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .summary-items {
        flex-direction: column;
        gap: 6px;
    }

    .submit-section button {
        width: 100%;
    }
}
