@font-face {
    font-family: "Khand";
    src: url("../fonts/khand-light-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

:root {
    --app-font-family: "Khand", "Arial Narrow", sans-serif;
    --mud-typography-default-family: var(--app-font-family) !important;
    --mud-typography-h1-family: var(--app-font-family) !important;
    --mud-typography-h2-family: var(--app-font-family) !important;
    --mud-typography-h3-family: var(--app-font-family) !important;
    --mud-typography-h4-family: var(--app-font-family) !important;
    --mud-typography-h5-family: var(--app-font-family) !important;
    --mud-typography-h6-family: var(--app-font-family) !important;
    --mud-typography-subtitle1-family: var(--app-font-family) !important;
    --mud-typography-subtitle2-family: var(--app-font-family) !important;
    --mud-typography-body1-family: var(--app-font-family) !important;
    --mud-typography-body2-family: var(--app-font-family) !important;
    --mud-typography-button-family: var(--app-font-family) !important;
    --mud-typography-caption-family: var(--app-font-family) !important;
    --mud-typography-overline-family: var(--app-font-family) !important;
}

html,
body,
button,
input,
select,
textarea,
.mud-typography,
.mud-button-root,
.mud-input,
.mud-select,
.mud-chip,
.mud-tab,
.mud-alert,
.mud-snackbar {
    font-family: var(--app-font-family) !important;
}

body {
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    font-family: var(--app-font-family);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3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Y1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg  </svg>);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.app-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 2rem;
    box-sizing: border-box;
    color: #ebebeb;
    background:
        radial-gradient(circle at 50% 38%, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(145deg, #1e1e1e 0%, #0d0d0d 100%);
}

.app-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 22rem);
    text-align: center;
}

.app-loading-logo {
    display: block;
    width: min(72vw, 15rem);
    height: auto;
    margin-bottom: 2.25rem;
    filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.45));
}

.app-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    box-sizing: border-box;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: app-loading-spin 0.85s linear infinite;
}

.app-loading-message {
    margin: 1.25rem 0 0;
    color: rgba(235, 235, 235, 0.88);
    font-family: var(--app-font-family);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-loading-spinner {
        animation-duration: 1.8s;
    }
}

code {
    color: #c02d76;
}

.markdown-content {
    line-height: 1.65;
}

.markdown-content > :first-child {
    margin-top: 0;
}

.markdown-content > :last-child {
    margin-bottom: 0;
}

.markdown-content a {
    color: #d4af37;
}

.markdown-content blockquote {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(212, 175, 55, 0.55);
}

.markdown-content code {
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.markdown-content .markdown-spacer {
    height: 1.65em;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- Pitch/UI: Lounge-Look --- */
.bottom-nav-shell {
    width: 100%;
    display: flex;
    overflow-x: auto;
    justify-content: center;   /* gesamte Gruppe mittig */
}

.bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(420px, 100%);   /* kompakter Block */
    align-items: stretch;
    margin: 0 auto;
}

.bottom-nav-item {
    cursor: pointer;
    color: #b0bec5;
    flex: 1 0 64px;
    min-width: 64px;
    max-width: 88px;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

.nav-icon-wrap {
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 auto !important;
}

.nav-label {
    font-size: 0.75rem;
    margin-top: 0;
    line-height: 1.1;
    text-align: center;
    width: 100%;
}

.push-notification-prompt {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    z-index: 1380;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    background: rgba(24, 24, 24, 0.97);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
    animation: push-notification-prompt-in 220ms ease-out;
}

.push-notification-prompt__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
}

.push-notification-prompt__content {
    min-width: 0;
}

@keyframes push-notification-prompt-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.club-card-coachmark {
    --coachmark-pointer-left: 50%;
    position: fixed;
    z-index: 1390;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem 2.5rem 0.8rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.52);
    border-radius: 14px;
    color: #ebebeb;
    background:
        radial-gradient(circle at 12% 15%, rgba(212, 175, 55, 0.13), transparent 32%),
        linear-gradient(145deg, rgba(37, 34, 27, 0.99), rgba(17, 17, 17, 0.99));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.52), 0 0 24px rgba(212, 175, 55, 0.08);
    animation: club-card-coachmark-in 260ms ease-out;
}

.club-card-coachmark::before,
.club-card-coachmark::after {
    content: "";
    position: absolute;
    left: var(--coachmark-pointer-left);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.club-card-coachmark::before {
    bottom: -13px;
    border-width: 13px 12px 0;
    border-color: rgba(212, 175, 55, 0.52) transparent transparent;
}

.club-card-coachmark::after {
    bottom: -11px;
    border-width: 12px 11px 0;
    border-color: #151411 transparent transparent;
}

.club-card-coachmark-close {
    position: absolute !important;
    top: 0.35rem;
    right: 0.35rem;
    color: rgba(235, 235, 235, 0.7) !important;
}

.club-card-coachmark-icon {
    display: grid;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 50%;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
}

.club-card-coachmark-title {
    color: #D4AF37;
    line-height: 1.15;
}

.club-card-coachmark-text {
    margin-top: 0.25rem;
    color: rgba(235, 235, 235, 0.86);
    line-height: 1.35;
}

.club-card-coachmark-action {
    min-width: 0 !important;
    margin-top: 0.25rem;
    margin-left: -0.75rem;
    text-transform: none;
}

@keyframes club-card-coachmark-in {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-card-coachmark {
        animation: none;
    }
}

.hero-panel {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(30, 30, 30, 1) 0%, rgba(20, 20, 20, 1) 100%);
}

.hero-title,
.section-title {
    font-family: var(--app-font-family);
    color: #D4AF37;
}

.opening-table {
    width: 100%;
    border-collapse: collapse;
}

    .opening-table td {
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        .opening-table td:last-child {
            text-align: right;
            font-weight: 500;
        }

.route-hint {
    border: 1px solid rgba(212, 175, 55, 0.25);
    background-color: rgba(255, 255, 255, 0.02);
}

.map-placeholder {
    border: 1px dashed rgba(212, 175, 55, 0.45);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.01);
}

.event-card {
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.event-timeline {
    display: grid;
    gap: 0.6rem;
}

.event-line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.event-line-item span:first-child {
    color: #D4AF37;
    font-weight: 600;
}

.event-time-chip {
    height: auto;
    text-align: left;
}

.event-time-chip .mud-chip-content {
    white-space: normal !important;
    display: block !important;
    line-height: 1.25;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.event-time-chip-content {
    display: block;
}

.event-line-item .mud-button {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    min-width: auto;
}

.event-ticket-btn.mud-button-root {
    min-width: 7.5rem !important;   /* überall gleiche Breite */
    height: 1.9rem !important;      /* überall gleiche Höhe */
    padding: 0 0.55rem !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    text-transform: none;
}

.event-ticket-btn .mud-button-label {
    white-space: nowrap;
}

.event-line-item .mud-stack {
    width: 100%;
}

.event-location-icon {
    color: #D4AF37;
}

.home-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-logo {
    width: min(220px, 70%);
    height: auto;
    display: block;
}

.home-hero {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(160deg, rgba(34,34,34,0.95) 0%, rgba(18,18,18,0.98) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.home-title {
    font-family: var(--app-font-family);
    color: #D4AF37;
    letter-spacing: 0.25px;
    text-align: center;
}

.home-subtitle {
    color: rgba(235, 235, 235, 0.88);
    text-align: center;
}

.home-card {
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(160deg, rgba(30,30,30,0.9) 0%, rgba(22,22,22,0.96) 100%);
}

.home-card-title {
    font-family: var(--app-font-family);
    color: #D4AF37;
}

.home-card-text {
    color: rgba(235, 235, 235, 0.9);
}

.home-info-icon {
    color: #D4AF37;
}

.club-card-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background:
        radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.28), transparent 30%),
        linear-gradient(145deg, #25221b 0%, #111 72%);
}

.club-card-hero::after {
    content: "";
    position: absolute;
    width: 11rem;
    height: 11rem;
    right: -5rem;
    bottom: -7rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

.club-card-hero-icon {
    float: right;
    color: rgba(212, 175, 55, 0.8);
    font-size: 3rem !important;
}

.club-card-subtitle,
.club-card-validity {
    color: rgba(235, 235, 235, 0.78);
}

.club-card-panel {
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: linear-gradient(160deg, rgba(30, 30, 30, 0.96), rgba(17, 17, 17, 0.99));
}

.club-card-cta {
    text-align: center;
}

.club-card-cta-icon {
    color: #D4AF37;
    font-size: 4rem !important;
    filter: drop-shadow(0 0 1rem rgba(212, 175, 55, 0.22));
}

.club-card-number {
    color: #D4AF37;
    letter-spacing: 0.14em;
}

.club-card-qr {
    width: min(100%, 19rem);
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 2rem rgba(212, 175, 55, 0.18);
}

.club-card-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.club-card-refresh {
    width: min(100%, 19rem);
}

.room-card {
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(160deg, rgba(30,30,30,0.9) 0%, rgba(22,22,22,0.96) 100%);
}

.room-photo-placeholder {
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: rgba(235, 235, 235, 0.78);
    background: rgba(255, 255, 255, 0.02);
}

.room-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.room-photo {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.03);
}

.consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 6, 5, 0.82);
    backdrop-filter: blur(8px);
}

.consent-dialog {
    width: min(100%, 36rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border: 1px solid rgba(198, 160, 93, 0.35);
}

.consent-document {
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.consent-declined-actions {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    left: 1rem;
    z-index: 1300;
    max-width: 34rem;
    margin-inline: auto;
    border: 1px solid rgba(198, 160, 93, 0.35);
}