:root {
    --app-green: #146c43;
    --app-green-dark: #0d5234;
    --app-green-light: #1fa868;
    --app-text: #383838;
    --app-text-muted: #262626;
}

.public-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #dfe6ee;
    color: var(--app-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}


.public-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.public-video-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.public-video-bg video.is-active {
    opacity: 1;
}

.public-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}


.public-hero-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem;
    text-decoration: none;
}

.public-hero-brand .app-logo,
.public-hero-brand__logo {
    width: clamp(150px, 32vw, 280px);
    height: auto;
    max-width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: contain;
    image-rendering: auto;
}

.app-logo {
    width: auto;
    height: clamp(52px, 12vw, 72px);
    max-width: min(100%, 320px);
    display: block;
    object-fit: contain;
    image-rendering: auto;
}


.public-main {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 4vh 1rem 1.5rem;
    box-sizing: border-box;
}

.public-content {
    width: 100%;
    max-width: 760px;
}

.public-content--wide {
    max-width: 1180px;
}

.public-search-block {
    width: 100%;
    text-align: center;
}

.public-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.45rem, 4.5vw, 1.9rem);
    font-weight: 100;
    color: var(--app-text);
    line-height: 1.35;
    letter-spacing: .01em;
}

.public-subtitle {
    display: none;
}


.public-search-wrap {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    z-index: 40;
}

.public-search-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 250, 0.96) 100%);
    border: 1px solid rgba(20, 108, 67, 0.16);
    border-radius: 18px;
    overflow: visible;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 40px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(20, 108, 67, 0.06);
    position: relative;
    z-index: 2;
    transition: border-color .2s ease, box-shadow .2s ease, transform .18s ease;
}

.public-search-bar:focus-within {
    border-color: rgba(20, 108, 67, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 0 0 3px rgba(20, 108, 67, 0.12),
        0 18px 44px rgba(15, 23, 42, 0.14),
        0 6px 16px rgba(20, 108, 67, 0.08);
    transform: translateY(-1px);
}

.public-search-wrap.is-open .public-search-bar {
    border-radius: 18px 18px 0 0;
    border-bottom-color: transparent;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 24px rgba(15, 23, 42, 0.1);
    transform: none;
}

.public-search-bar__row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: .15rem;
    min-height: 3.35rem;
}

.public-search-bar__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    color: #7a8b82;
    pointer-events: none;
    transition: color .18s ease;
}

.public-search-bar:focus-within .public-search-bar__icon {
    color: var(--app-green);
}

.public-search-bar__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.public-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1a3d2e;
    font-size: clamp(0.95rem, 2.4vw, 1.12rem);
    font-weight: 450;
    letter-spacing: .01em;
    padding: .85rem .35rem .85rem 0;
    height: 100%;
}

.public-search-bar input::placeholder {
    color: #8a9790;
    font-weight: 400;
    opacity: 1;
}

.public-search-bar input::-webkit-search-decoration,
.public-search-bar input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.public-search-btn {
    flex-shrink: 0;
    border: none;
    margin: .15rem .15rem .15rem .35rem;
    padding: 0 .95rem 0 1.05rem;
    min-height: 2.85rem;
    border-radius: 13px;
    background: linear-gradient(165deg, #1a8052 0%, var(--app-green) 48%, var(--app-green-dark) 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: .02em;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 16px rgba(13, 82, 52, 0.28);
    transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}

.public-search-btn:hover {
    background: linear-gradient(165deg, #1f9060 0%, #167a4c 50%, #0a5233 100%);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 8px 20px rgba(13, 82, 52, 0.34);
}

.public-search-btn:active {
    transform: translateY(0);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 3px 10px rgba(13, 82, 52, 0.28);
}

.public-search-btn__label {
    display: inline;
}

.public-search-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    opacity: .95;
}

.public-search-disclaimer {
    max-width: 640px;
    margin: .85rem auto 0;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    line-height: 1.45;
    color: var(--app-muted, #64748b);
    font-weight: 400;
}

.public-search-legend {
    max-width: 640px;
    margin: .35rem auto 0;
    font-size: clamp(0.72rem, 1.8vw, 0.82rem);
    line-height: 1.4;
    color: var(--app-muted, #64748b);
}


.public-shop-entry {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.public-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 0;
    padding: .38rem .8rem .38rem .65rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 650;
    color: #146c43;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 108, 67, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: background .15s, border-color .15s, transform .12s;
}

.public-shop-chip svg {
    flex-shrink: 0;
}

.public-shop-chip:hover {
    background: #fff;
    border-color: rgba(20, 108, 67, 0.45);
    transform: translateY(-1px);
}

.public-shop-entry__desc {
    margin: 0;
    max-width: 420px;
    padding: 0 .5rem;
    font-size: clamp(0.72rem, 1.8vw, 0.8rem);
    line-height: 1.4;
    color: var(--app-muted, #64748b);
    font-weight: 400;
}


.results-list {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    z-index: 1;
    max-height: min(420px, 55vh);
    overflow-y: auto;
    text-align: left;
    background: #fff;
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(20, 108, 67, 0.16);
    border-top: 1px solid #e8eee9;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.results-list[hidden] {
    display: none !important;
}

.results-list li {
    margin: 0;
}

.results-list li a {
    display: block;
    padding: .75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: background .12s;
}

.results-list li a:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
}

.results-list li a strong {
    color: var(--app-green);
    font-weight: 600;
    font-size: 1.02rem;
}

.results-list mark {
    background: #fef08a;
    padding: 0 .1em;
    border-radius: 2px;
}

.result-years {
    color: #64748b;
    font-size: .88rem;
}

.result-origin {
    color: #475569;
    font-size: .84rem;
}

.result-location {
    color: #334155;
    font-size: .88rem;
}

.result-location strong {
    color: var(--app-green);
    font-weight: 600;
}

.result-reservation__body {
    display: block;
    padding: .75rem 1rem;
    background: #fffbeb;
    border: none;
    border-left: 3px solid #b45309;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.result-reservation__body strong {
    color: #92400e;
    font-weight: 600;
    font-size: 1.02rem;
}

.result-empty {
    padding: .85rem 1rem;
    color: #64748b;
    list-style: none;
    text-align: center;
    font-size: .92rem;
    background: transparent;
    border-radius: 0;
}

.result-hint {
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.35);
}


.public-below {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.15rem;
}

@media (min-width: 900px) {
    .public-below--split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: start;
        gap: 1.1rem;
    }
}


@media (min-width: 980px) {
    .public-below--flanks {
        grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(210px, 260px);
        align-items: start;
        gap: .85rem;
    }

    .public-below--flanks .notices-grid {
        grid-template-columns: 1fr;
    }

    .public-below--flanks .public-shop-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: .5rem;
        padding: .4rem;
    }

    .public-below--flanks .public-shop-row__img {
        width: 44px;
        height: 44px;
    }

    .public-below--flanks .public-shop-row__meta strong {
        font-size: .74rem;
        -webkit-line-clamp: 2;
    }
}

.public-shop-teaser__hint {
    font-size: .7rem;
    color: #94a3b8;
    font-weight: 600;
}

@media (max-width: 979px) {
    .public-below--flanks {
        grid-template-columns: 1fr;
    }

    .public-below--flanks .public-shop-teaser--left {
        order: 2;
    }

    .public-below--flanks .public-notices {
        order: 1;
    }

    .public-below--flanks .public-shop-teaser--right {
        order: 3;
    }
}

.public-notices {
    margin-top: 0;
    padding: 0;
}

.public-notices h2 {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--app-text-muted);
    text-align: center;
    margin: 0 0 .55rem;
}

.public-shop-teaser {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.public-shop-teaser__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .55rem;
}

.public-shop-teaser__head h2 {
    margin: 0;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--app-text-muted);
}

.public-shop-teaser__head a {
    font-size: .74rem;
    font-weight: 600;
    color: #146c43;
    text-decoration: none;
    white-space: nowrap;
}

.public-shop-teaser__head a:hover {
    text-decoration: underline;
}

.public-shop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.public-shop-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    padding: .45rem .55rem .45rem .45rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.public-shop-row:hover {
    border-color: rgba(20, 108, 67, 0.35);
    background: #fff;
    box-shadow: 0 4px 12px rgba(20, 108, 67, 0.1);
}

.public-shop-row__img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    flex-shrink: 0;
}

.public-shop-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-shop-row__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.public-shop-row__cat {
    font-size: .62rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-shop-row__meta strong {
    font-size: .8rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notices-grid {
    display: grid;
    gap: .45rem;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .notices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }
}

.notice-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: .6rem .7rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.notice-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
    margin-bottom: .3rem;
}

.notice-card h3 {
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    flex: 1;
    min-width: 0;
}

.notice-meta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #94a3b8;
    font-size: .7rem;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.notice-meta__date {
    color: inherit;
}

.notice-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .12rem .4rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.notice-day--today {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, .25);
}

.notice-day--yesterday {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.notice-card--today {
    border-color: rgba(220, 38, 38, .35);
    box-shadow: 0 2px 10px rgba(220, 38, 38, .08);
}

.notice-card--yesterday {
    border-color: rgba(234, 88, 12, .28);
}

.notice-person {
    margin: 0 0 .3rem;
    font-size: .74rem;
    line-height: 1.35;
    color: #64748b;
}

.notice-person a {
    color: var(--app-green);
    font-weight: 600;
    text-decoration: none;
}

.notice-person a:hover {
    text-decoration: underline;
}

.notice-person__meta {
    display: block;
    margin-top: .12rem;
    color: #94a3b8;
}

.notice-card__body {
    margin: 0;
    line-height: 1.5;
    color: #475569;
    font-size: .76rem;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.notice-card__content {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.notice-card__photo {
    margin: 0;
    flex-shrink: 0;
    width: 64px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .35);
    background: #e2e8f0;
}

.notice-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notice-card__body p {
    margin: 0 0 .45rem;
}

.notice-card__body p:last-child {
    margin-bottom: 0;
}

.notice-card__body strong,
.notice-card__body b {
    color: #1e293b;
    font-weight: 700;
}

.notice-card__body .notice-name {
    font-size: .92rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: .55rem 0;
    letter-spacing: .02em;
}

.notice-card__body .notice-center { text-align: center; }
.notice-card__body .notice-muted { color: #64748b; font-size: .72rem; }

.notice-card__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: .35rem 0;
}

.notice-card__body hr {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, .45);
    margin: .55rem 0;
}


@media (max-width: 640px) {
    .public-main {
        padding: 2vh .75rem 1rem;
        padding-left: max(.75rem, env(safe-area-inset-left));
        padding-right: max(.75rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .public-hero-brand {
        margin-bottom: 1.1rem;
    }

    .public-title {
        font-size: 1.32rem;
        margin-bottom: 1rem;
        padding: 0 .15rem;
    }

    .public-search-bar {
        border-radius: 16px;
        padding: .3rem;
    }

    .public-search-wrap.is-open .public-search-bar {
        border-radius: 16px 16px 0 0;
    }

    .public-search-bar__row {
        min-height: 3.1rem;
        gap: 0;
    }

    .public-search-bar__icon {
        width: 2.4rem;
    }

    .public-search-bar input {
        font-size: 16px;
        padding: .7rem .2rem .7rem 0;
    }

    .public-search-btn {
        margin: .1rem;
        min-height: 2.55rem;
        padding: 0 .7rem;
        border-radius: 12px;
        gap: 0;
    }

    .public-search-btn__label {
        display: none;
    }

    .public-search-btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .results-list {
        max-height: min(360px, 50vh);
        border-radius: 0 0 16px 16px;
    }

    .public-shop-chip {
        margin-top: 0;
        font-size: .78rem;
        padding: .35rem .7rem .35rem .55rem;
    }

    .public-shop-entry {
        margin-top: .65rem;
        gap: .35rem;
    }

    .public-shop-entry__desc {
        font-size: .72rem;
        max-width: 340px;
    }

    .public-below {
        margin-top: 1.2rem;
    }

    .public-shop-teaser {
        padding: 0;
        border-radius: 0;
    }

    .results-list li a,
    .result-reservation__body {
        padding: .75rem .85rem;
    }

    .results-list li a strong,
    .result-reservation__body strong {
        font-size: .95rem;
        word-break: break-word;
    }

    .result-years,
    .result-origin {
        font-size: .82rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .public-notices {
        margin-top: 0;
    }

    .notices-grid {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .notice-card {
        padding: .55rem .65rem;
    }

    .notice-card h3 {
        font-size: .78rem;
    }
}

@media (min-width: 900px) {
    .public-main {
        padding-top: 6vh;
    }

    .public-title {
        font-size: 1.9rem;
    }
}
