/* ==========================================================================
   Restaurant Updater — Default Styles
   Override in your theme: higher specificity or custom stylesheet.
   ========================================================================== */

/* ── Custom Properties (Theme-Override möglich) ──────────────────────────── */

:root {
    --ru-accent:       #d4a843;
    --ru-border:       #e0e0e0;
    --ru-border-light: #f0f0f0;
    --ru-muted:        #666;
    --ru-muted-light:  #999;
    --ru-radius:       6px;
    --ru-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ── Shared ──────────────────────────────────────────────────────────────── */

.ru-menu,
.ru-hours {
    font-family: inherit;
    color: inherit;
    line-height: 1.6;
}

.ru-error {
    color: #c0392b;
    font-style: italic;
}

.ru-badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    font-weight: 600;
}

.ru-badge--unavailable {
    background: #f5f5f5;
    color: #888;
    text-decoration: line-through;
}

/* ── Section title ───────────────────────────────────────────────────────── */

.ru-section__title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    padding-bottom: 0.25em;
    border-bottom: 2px solid currentColor;
}

/* ── List template ───────────────────────────────────────────────────────── */

.ru-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ru-list__item {
    display: flex;
    gap: 1em;
    padding: 0.75em 0;
    border-bottom: 1px solid var(--ru-border-light);
}

.ru-list__item:last-child {
    border-bottom: none;
}

.ru-list__item--unavailable {
    opacity: 0.6;
}

.ru-list__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--ru-radius);
    flex-shrink: 0;
}

.ru-list__content {
    flex: 1;
    min-width: 0;
}

.ru-list__header {
    display: flex;
    justify-content: space-between;
    gap: 1em;
}

.ru-list__name {
    font-weight: 600;
}

.ru-list__price {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.ru-list__description,
.ru-list__allergens {
    margin: 0.25em 0 0;
    font-size: 0.875em;
    color: var(--ru-muted);
}

/* ── Cards template ──────────────────────────────────────────────────────── */

.ru-cards {
    display: grid;
    gap: 1.25em;
    grid-template-columns: repeat(var(--ru-cols, 3), 1fr);
}

.ru-cards--cols-2 { --ru-cols: 2; }
.ru-cards--cols-3 { --ru-cols: 3; }
.ru-cards--cols-4 { --ru-cols: 4; }

@media (max-width: 768px) {
    .ru-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ru-cards { grid-template-columns: 1fr; }
}

.ru-card {
    border: 1px solid var(--ru-border);
    border-radius: var(--ru-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ru-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ru-shadow-hover);
}

.ru-card--unavailable {
    opacity: 0.65;
}

.ru-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ru-card__body {
    padding: 0.875em;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.ru-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.5em;
    align-items: baseline;
}

.ru-card__name {
    font-weight: 700;
}

.ru-card__price {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.ru-card__description,
.ru-card__allergens {
    font-size: 0.875em;
    color: var(--ru-muted);
    margin: 0;
}

/* ── Accordion template ──────────────────────────────────────────────────── */

.ru-accordion__panel {
    border: 1px solid var(--ru-border);
    border-radius: var(--ru-radius);
    margin-bottom: 0.5em;
    overflow: hidden;
}

.ru-accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.875em 1em;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    text-align: left;
    gap: 0.5em;
}

.ru-accordion__trigger:hover {
    background: #f2f2f2;
}

.ru-accordion__trigger[aria-expanded="true"] {
    border-bottom: 1px solid var(--ru-border);
}

.ru-accordion__trigger::after {
    content: '▾';
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.ru-accordion__trigger[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

.ru-accordion__content {
    padding: 0.75em 1em;
}

.ru-accordion__count {
    font-weight: normal;
    font-size: 0.85em;
    color: var(--ru-muted-light);
}

/* ── Tabs template ───────────────────────────────────────────────────────── */

.ru-tabs__nav {
    display: flex;
    gap: 0.25em;
    border-bottom: 2px solid var(--ru-border);
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.ru-tabs__tab {
    padding: 0.5em 1em;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--ru-radius) var(--ru-radius) 0 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.1s;
}

.ru-tabs__tab:hover {
    background: #f5f5f5;
}

.ru-tabs__tab[aria-selected="true"] {
    border-color: var(--ru-border);
    background: #fff;
    margin-bottom: -2px;
    border-bottom: 2px solid #fff;
    font-weight: 600;
}

.ru-tabs__panel {
    padding: 0.5em 0;
}

/* ── Opening hours — timeline ────────────────────────────────────────────── */

.ru-hours--timeline {
    display: flex;
    flex-direction: column;
}

.ru-hours--timeline .ru-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6em 0.75em;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--ru-border-light, rgba(128, 128, 128, 0.15));
}

.ru-hours--timeline .ru-hours__row:last-child {
    border-bottom: none;
}

.ru-hours--timeline .ru-hours__row--today {
    border-left-color: var(--ru-accent, #d4a843);
    background: rgba(212, 168, 67, 0.08);
}

.ru-hours--timeline .ru-hours__row--today .ru-hours__day {
    font-weight: 700;
}

.ru-hours--timeline .ru-hours__day {
    font-weight: 500;
    min-width: 7em;
}

.ru-hours--timeline .ru-hours__time {
    text-align: right;
}

.ru-hours--timeline .ru-hours__row--closed .ru-hours__day,
.ru-hours--timeline .ru-hours__row--closed .ru-hours__time {
    opacity: 0.38;
}

/* Unscoped: also covers the kitchen-hours table ("Keine Küche"). */
.ru-hours__row--closed .ru-hours__closed {
    color: #c0392b;
}

/* ── Opening hours — chips ───────────────────────────────────────────────── */

.ru-hours--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.ru-hours__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.55em 0.8em;
    border-radius: var(--ru-radius, 0.5em);
    background: rgba(128, 128, 128, 0.1);
    min-width: 4.5em;
    text-align: center;
}

.ru-hours__chip--today {
    background: var(--ru-accent, #d4a843);
    color: #fff;
}

.ru-hours__chip--closed {
    opacity: 0.35;
}

.ru-hours__chip-day {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25em;
}

.ru-hours__chip-time {
    font-size: 0.82em;
    white-space: nowrap;
}

/* ── Elegant template ────────────────────────────────────────────────────── */

.ru-menu--elegant {
    max-width: 640px;
}

.ru-elegant__section {
    margin-bottom: 2.5em;
}

.ru-elegant__heading {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 1em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid currentColor;
    opacity: 0.85;
}

.ru-elegant__item {
    margin-bottom: 1em;
}

.ru-elegant__item--unavailable {
    opacity: 0.5;
}

.ru-elegant__image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--ru-radius);
    margin-bottom: 0.5em;
}

.ru-elegant__row {
    display: flex;
    align-items: baseline;
    gap: 0.25em;
}

.ru-elegant__name {
    font-weight: 600;
    white-space: nowrap;
}

.ru-elegant__leader {
    flex: 1;
    border-bottom: 1px dotted currentColor;
    opacity: 0.35;
    margin: 0 0.35em 0.2em;
    min-width: 1.5em;
}

.ru-elegant__price {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.ru-elegant__description {
    margin: 0.2em 0 0;
    font-size: 0.85em;
    color: var(--ru-muted);
    font-style: italic;
}

.ru-elegant__allergens {
    margin: 0.15em 0 0;
    font-size: 0.78em;
    color: var(--ru-muted-light);
}

/* ── Pills template (opening hours) ─────────────────────────────────────── */

.ru-hours--pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5em;
}

.ru-hours__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    padding: 0.5em 0.75em;
    border: 1px solid var(--ru-border);
    border-radius: var(--ru-radius);
    text-align: center;
    background: #fff;
    transition: box-shadow 0.15s;
}

.ru-hours__pill:not(.ru-hours__pill--closed):hover {
    box-shadow: var(--ru-shadow-hover);
}

.ru-hours__pill--closed {
    opacity: 0.45;
    background: #f8f8f8;
}

.ru-hours__pill--today {
    background: var(--ru-accent, #d4a843);
    border-color: var(--ru-accent, #d4a843);
    color: #fff;
}

.ru-hours__pill--today .ru-hours__pill-time {
    color: inherit;
}

.ru-hours__pill-day {
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ru-hours__pill-time {
    font-size: 0.78em;
    color: var(--ru-muted);
    white-space: normal;
}

.ru-hours__slot {
    display: block;
    white-space: nowrap;
}

/* ── Vacation status (compact template) ──────────────────────────────────────
   Deliberately minimal: the compact template is plain inline text and inherits
   the surrounding typography.
   ────────────────────────────────────────────────────────────────────────── */

.ru-hours__status {
    font-weight: 600;
}

.ru-hours__pause {
    opacity: 0.6;
    text-decoration: line-through;
}

/* ==========================================================================
   Template: dashed
   ========================================================================== */
.ru-menu--dashed {
    --ru-dashed-divider: var(--ast-global-color-5, #d8c9b6);
    --ru-dashed-text:    var(--ast-global-color-5, #2c2c2c);
    --ru-dashed-muted:   var(--ast-global-color-3, #6b6b6b);
    --ru-dashed-thumb:   72px;
}

.ru-menu--dashed .ru-dashed__section + .ru-dashed__section {
    margin-top: 2.5rem;
}

.ru-menu--dashed .ru-dashed__heading {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    color: var(--ru-dashed-muted);
    text-align: center;
}

.ru-menu--dashed .ru-dashed__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ru-menu--dashed .ru-dashed__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 1.25rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 3px dashed var(--ru-dashed-divider);
}
.ru-menu--dashed .ru-dashed__item:last-child {
    border-bottom: 0;
}

.ru-menu--dashed .ru-dashed__section:not(.ru-dashed__section--with-images) .ru-dashed__item {
    grid-template-columns: 1fr auto;
}

.ru-menu--dashed .ru-dashed__media {
    width: var(--ru-dashed-thumb);
    height: var(--ru-dashed-thumb);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}
.ru-menu--dashed .ru-dashed__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ru-menu--dashed .ru-dashed__name {
    margin: 0 0 0.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ru-dashed-text);
}
.ru-menu--dashed .ru-dashed__description {
    margin: 0;
    color: var(--ru-dashed-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}
.ru-menu--dashed .ru-dashed__allergens {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--ru-dashed-muted);
    font-style: italic;
}

.ru-menu--dashed .ru-dashed__price {
    font-weight: 600;
    white-space: nowrap;
    color: var(--ru-dashed-text);
    line-height: 1.2;
    padding-top: 0.1rem;
}
.ru-menu--dashed .ru-dashed__price-currency {
    margin-left: 0.2em;
    font-size: 0.85em;
    opacity: 0.75;
}

.ru-menu--dashed .ru-dashed__item--unavailable {
    opacity: 0.5;
}

@media (max-width: 540px) {
    .ru-menu--dashed .ru-dashed__item {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "media body"
            "media price";
    }
    .ru-menu--dashed .ru-dashed__section:not(.ru-dashed__section--with-images) .ru-dashed__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "body"
            "price";
    }
    .ru-menu--dashed .ru-dashed__media { grid-area: media; }
    .ru-menu--dashed .ru-dashed__body  { grid-area: body; }
    .ru-menu--dashed .ru-dashed__price {
        grid-area: price;
        margin-top: 0.4rem;
        padding-top: 0;
    }
    .ru-menu--dashed { --ru-dashed-thumb: 56px; }
}

/* ── Vacation Banner ─────────────────────────────────────────────────────── */
.ru-vacation-banner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.ru-vacation-banner--active   { background: #fef9c3; border: 1px solid #fde047; color: #713f12; }
.ru-vacation-banner--upcoming { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.ru-vacation-banner__icon  { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.ru-vacation-banner__body  { flex: 1; }
.ru-vacation-banner__title { font-weight: 600; display: block; }
.ru-vacation-banner__msg   { margin: .25rem 0 0; font-size: .9em; white-space: pre-line; }

/* ── Vacation Banner: news style (Enfold look) ──────────────────────────── */
.ru-vacation-news {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 3.5rem 2.5rem;
    box-sizing: border-box;
    background: #e7b616;
    color: #fff;
    line-height: 1.4;
}
/* Stretch the gold area edge-to-edge; content stays at container width */
.ru-vacation-news::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    background: #e7b616;
    z-index: -1;
}
/* Active vacation: neutralize Enfold's inner vertical padding around the banner
   so the gold band sits flush at the top and bottom. */
.avia-section .container:has(.ru-vacation-news),
.template-page.content:has(.ru-vacation-news) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.avia_codeblock_section:has(.ru-vacation-news) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Empty state (no vacation): hide the whole section — covers every height source
   (padding, min-height, fixed section height). */
.avia-section:has(.ru-vacation-empty) {
    display: none !important;
}
.ru-vacation-news__label {
    flex: 0 0 auto;
    min-width: 6em;
    text-align: right;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.ru-vacation-news__label span { display: block; }
.ru-vacation-news__body { flex: 1 1 auto; }
.ru-vacation-news__title {
    margin: 0 0 .4rem;
    color: #fff;
    font-weight: 800;
    font-style: italic;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: .01em;
}
/* Owner opted out of the default uppercase styling for this entry's title. */
.ru-vacation-news__title--as-written { text-transform: none; }
.ru-vacation-news__msg {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    white-space: pre-line;
}
@media (max-width: 600px) {
    .ru-vacation-news {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    .ru-vacation-news__label {
        text-align: left;
    }
}

/* ── Admin Help Page ── */
.wu-help { max-width: 820px }
.wu-help-intro { color: #666; margin-bottom: 24px; font-size: 14px }
.wu-help-block { background: #fff; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; overflow: hidden }
.wu-help-block-header { background: #f9f9f9; border-bottom: 1px solid #ddd; padding: 14px 20px; font-size: 16px; font-weight: 600 }
.wu-help-block-body { padding: 20px }
.wu-help-block-body h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; color: #23282d }
.wu-help-block-body h3:first-child { margin-top: 0 }
.wu-help-block-body p { font-size: 14px; margin: 0 0 8px; color: #444 }
.wu-help-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 12px }
.wu-help-table th, .wu-help-table td { padding: 7px 10px; border: 1px solid #ddd; vertical-align: top }
.wu-help-table th { text-align: left; background: #f0f0f0; font-weight: 600; white-space: nowrap }
.wu-help-tip { background: #fff8e1; border-left: 3px solid #f9a825; padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 13px; margin: 10px 0; color: #555 }
.wu-help-steps { padding-left: 20px; font-size: 14px; line-height: 1.8; color: #444 }
.wu-help-video-placeholder { display: inline-block; margin-top: 12px; padding: 7px 14px; background: #f0f6ff; border: 1px solid #c5d9f5; border-radius: 6px; font-size: 13px; color: #2271b1; text-decoration: none; opacity: .55; pointer-events: none; cursor: default }
.wu-help-support { margin-top: 24px; padding: 16px 20px; background: #f8f8f8; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px }
