/* Promenadenfest Fahrradanmeldung
   Optik bewusst nur angelehnt an markranstaedt.de: klare kommunale Anmutung,
   Blau/Grün-Akzente, viel Weißraum, keine kopierten Assets. */

:root {
    --blue-900: #123d5a;
    --blue-800: #174f75;
    --blue-700: #1b668f;
    --blue-100: #e8f3f8;
    --green-600: #76a82a;
    --green-100: #eef7df;
    --sand-50: #f8f6f0;
    --ink: #1b2b34;
    --muted: #637481;
    --line: #d8e2e8;
    --danger: #b42318;
    --success: #157347;
    --shadow: 0 18px 50px rgba(18, 61, 90, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(118, 168, 42, .12), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--sand-50) 100%);
    line-height: 1.5;
}

a {
    color: var(--blue-800);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 226, 232, .85);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--blue-900);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-800), var(--green-600));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.55rem;
    box-shadow: 0 8px 20px rgba(18, 61, 90, .22);
}

.brand strong {
    display: block;
    font-size: 1.1rem;
    letter-spacing: .01em;
}

.brand em {
    display: block;
    font-style: normal;
    font-size: .82rem;
    color: var(--muted);
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.topnav a {
    text-decoration: none;
    color: var(--blue-900);
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
}

.topnav a:hover {
    background: var(--blue-100);
}

main {
    min-height: calc(100vh - 160px);
}

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 22px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 28px;
    align-items: stretch;
}

.hero-content {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
    border-radius: 30px;
    padding: clamp(28px, 5vw, 58px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-content::after {
    content: "";
    position: absolute;
    inset: auto -90px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(118, 168, 42, .45);
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--green-600);
}

.hero .eyebrow {
    color: #cce798;
}

h1, h2 {
    margin: 0 0 14px;
    line-height: 1.08;
    color: inherit;
}

h1 {
    font-size: clamp(2.15rem, 5vw, 4.2rem);
    letter-spacing: -.04em;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: var(--blue-900);
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    max-width: 780px;
    color: rgba(255,255,255,.9);
    margin: 0;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 9px 20px rgba(66, 122, 16, .23);
}

.button.secondary {
    background: #fff;
    color: var(--blue-900);
    border: 1px solid var(--line);
}

.button.full {
    width: 100%;
}

.hero-card {
    background: #fff;
    border-radius: 30px;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(216, 226, 232, .8);
}

.datebox {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--blue-900);
}

.datebox span {
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: .9;
}

.datebox small {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--green-600);
}

.hero-card dl {
    margin: 0;
    display: grid;
    gap: 16px;
}

.hero-card dt {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.hero-card dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
}

.container.narrow {
    max-width: 840px;
    padding-top: 44px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid rgba(216, 226, 232, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 3vw, 34px);
}

.card.calm {
    background: linear-gradient(180deg, #fff, var(--blue-100));
}

.notice {
    padding: 13px 15px;
    border-radius: 14px;
    margin: 14px 0;
    font-weight: 650;
    border: 1px solid transparent;
}

.notice.success {
    background: #eaf7ee;
    color: var(--success);
    border-color: #bfe5c9;
}

.notice.error {
    background: #fff0ed;
    color: var(--danger);
    border-color: #ffd1c9;
}

.notice.info {
    background: var(--blue-100);
    color: var(--blue-900);
    border-color: #cfe2eb;
}

.signup-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    font-weight: 800;
    color: var(--blue-900);
}

input, select {
    width: 100%;
    border: 1px solid #c8d7df;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

input:focus, select:focus {
    outline: 3px solid rgba(118, 168, 42, .25);
    border-color: var(--green-600);
}

.hint {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 600;
    color: var(--ink);
}

.check input {
    width: auto;
    margin-top: 4px;
}

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

.rule-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.rule-list div {
    padding: 16px;
    background: rgba(255,255,255,.8);
    border-radius: 16px;
    border: 1px solid rgba(216, 226, 232, .9);
}

.rule-list strong {
    display: block;
    color: var(--blue-900);
}

.rule-list span {
    color: var(--muted);
}

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

.section-head p:last-child {
    max-width: 520px;
    color: var(--muted);
    margin: 0;
}

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

.slot-card {
    background: #fff;
    border: 1px solid rgba(216, 226, 232, .9);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(18, 61, 90, .08);
}

.slot-card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.slot-time {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--blue-900);
}

.slot-number {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
}

.slot-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.slot-pill {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    display: grid;
    gap: 2px;
}

.slot-pill.free {
    background: #f6fbef;
    border-color: #d7ebb4;
}

.slot-pill.booked {
    background: var(--blue-100);
    border-color: #cfe2eb;
}

.slot-pill.booked.child {
    background: var(--green-100);
    border-color: #d7ebb4;
}

.slot-kind {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.slot-pill strong {
    color: var(--blue-900);
    overflow-wrap: anywhere;
}

.slot-pill small {
    color: var(--muted);
    font-weight: 650;
}

.footer {
    margin-top: 28px;
    background: var(--blue-900);
    color: rgba(255,255,255,.86);
    padding: 28px 22px;
}

.footer div {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 5px;
}

.footer strong {
    color: #fff;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin: 18px 0;
}

.stats div {
    background: var(--blue-100);
    border-radius: 16px;
    padding: 16px;
}

.stats strong {
    display: block;
    color: var(--blue-900);
    font-size: 2rem;
    line-height: 1;
}

.stats span {
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.link-danger {
    background: transparent;
    border: 0;
    color: var(--danger);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

code {
    background: rgba(18,61,90,.08);
    padding: 2px 5px;
    border-radius: 6px;
}

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

    .schedule {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .topnav {
        width: 100%;
    }

    .topnav a {
        background: var(--blue-100);
    }

    .hero {
        padding-top: 28px;
    }

    .schedule {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }
}
