/* ==========================================================
   Catering-Seite – nur Dinge, die Tailwind nicht abdeckt
   (Animationen, Formularfelder, FAQ, Laufband)
   ========================================================== */

:root { --cat-amber: #c68c36; } /* Falls sich dein Gold ändert: hier anpassen */

/* ---------- Hero: langsamer Zoom auf dem Bild ---------- */
.cat-kenburns {
    animation: cat-kenburns 22s ease-in-out infinite alternate;
    transform-origin: center;
}
@keyframes cat-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

/* ---------- Buttons: Pfeil bewegt sich ---------- */
.cat-arrow { display: inline-block; transition: transform .3s ease; }
.cat-btn:hover .cat-arrow { transform: translateX(6px); }

/* ---------- Laufband ---------- */
.cat-marquee { animation: cat-marquee 34s linear infinite; }
@keyframes cat-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Intro: versetzter Rahmen hinter dem Bild ---------- */
.cat-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(16px, 16px);
    border: 2px solid var(--cat-amber);
    transition: transform .6s ease;
    pointer-events: none;
}
.cat-frame:hover::before { transform: translate(8px, 8px); }
.cat-frame img { position: relative; z-index: 1; }

/* ---------- Format-Karten ---------- */
.cat-card {
    transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.cat-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--cat-amber);
    transition: width .6s ease;
}
.cat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 140, 54, .5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.cat-card:hover::after { width: 100%; }

/* ---------- Anlass-Kacheln ---------- */
.cat-tile { transition: transform .4s ease, border-color .4s ease; }
.cat-tile:hover { transform: translateY(-6px); border-color: rgba(198, 140, 54, .6); }
.cat-tile:hover .cat-tile__icon {
    background: var(--cat-amber);
    color: #000;
    transform: rotate(-6deg) scale(1.08);
}

/* ---------- Speisen-Liste ---------- */
.cat-menu-item { transition: padding-left .4s ease; }
.cat-menu-item:hover { padding-left: 12px; }

/* ---------- Ablauf ---------- */
.cat-outline { -webkit-text-stroke: 0; }
.cat-step { transition: transform .4s ease; }
.cat-step:hover { transform: translateY(-4px); }

.cat-js .cat-line {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .3s;
}
.cat-js .is-inview .cat-line { transform: scaleX(1); }

/* ---------- Hintergrundbild-Bereich (ruhig, ohne Parallax) ---------- */
.cat-parallax {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- FAQ ---------- */
.cat-faq summary { list-style: none; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq__icon { transition: transform .35s ease; }
.cat-faq[open] .cat-faq__icon { transform: rotate(45deg); }
.cat-faq summary:hover span:first-child { color: var(--cat-amber); }
.cat-faq summary span:first-child { transition: color .3s ease; }
.cat-faq[open] .cat-faq__body { animation: cat-faq-open .45s ease; }
@keyframes cat-faq-open {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Formular ---------- */
.cat-label {
    display: block;
    margin-bottom: 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #d1d5db;
}
.cat-field {
    width: 100%;
    padding: 12px 14px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    outline: none;
    color-scheme: dark;
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.cat-field::placeholder { color: rgba(255, 255, 255, .35); }
.cat-field:hover { border-color: rgba(255, 255, 255, .4); }
.cat-field:focus {
    border-color: var(--cat-amber);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 3px rgba(198, 140, 54, .2);
}
select.cat-field {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c68c36' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
select.cat-field option { background: #1a1a1a; color: #fff; }
.cat-check { accent-color: var(--cat-amber); width: 18px; height: 18px; flex-shrink: 0; }

/* Honeypot (Spam-Schutz) – unsichtbar für Menschen */
.cat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cat-submit.is-loading { opacity: .7; pointer-events: none; }
.cat-alert { animation: cat-faq-open .6s ease; }

/* ---------- Format-Karte "Live-Cooking" (hervorgehoben) ---------- */
.cat-card--featured {
    box-shadow: 0 0 0 1px rgba(198, 140, 54, .25), 0 30px 70px -25px rgba(198, 140, 54, .45);
}
.cat-card--featured:hover {
    border-color: var(--cat-amber);
    box-shadow: 0 0 0 1px rgba(198, 140, 54, .45), 0 40px 80px -25px rgba(198, 140, 54, .6);
}
.cat-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .7);
    animation: cat-live-pulse 1.6s ease-out infinite;
}
@keyframes cat-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================
   Galerie (Mosaik) – Bilder aus "Catering Galerie" im Backend
   ========================================================== */
.cat-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 8px;
}
@media (min-width: 640px)  { .cat-gallery { grid-auto-rows: 200px; gap: 12px; } }
@media (min-width: 1024px) { .cat-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; } }
@media (min-width: 1280px) { .cat-gallery { grid-auto-rows: 240px; } }

.cat-gallery__item { margin: 0; position: relative; min-width: 0; }
.cat-gallery__item--breit { grid-column: span 2; }
.cat-gallery__item--hoch  { grid-row: span 2; }
.cat-gallery__item--gross { grid-column: span 2; grid-row: span 2; }

/* Einblenden beim Scrollen (versetzt nacheinander) */
.cat-js .cat-gallery__item {
    opacity: 0;
    transform: translateY(40px) scale(.97);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.cat-js .cat-gallery__item.is-inview { opacity: 1; transform: none; }

.cat-gallery__btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #111;
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
}
.cat-gallery__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) brightness(.85);
    transform: scale(1.01);
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
}
.cat-gallery__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .15) 45%, transparent 70%);
    opacity: .55;
    transition: opacity .5s ease;
}

/* Goldene Eck-Rahmen, die beim Hovern aufziehen */
.cat-gallery__btn::before,
.cat-gallery__btn::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    transition: width .5s ease, height .5s ease, border-color .3s ease;
    pointer-events: none;
}
.cat-gallery__btn::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.cat-gallery__btn::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.cat-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 20px;
    transform: translateY(12px);
    opacity: .9;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
}
.cat-gallery__sub {
    display: block;
    color: var(--cat-amber);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cat-gallery__title {
    display: block;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.cat-gallery__item--gross .cat-gallery__title { font-size: 1.7rem; }

.cat-gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cat-amber);
    color: #000;
    opacity: 0;
    transform: scale(.6) rotate(-45deg);
    transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.cat-gallery__zoom svg { width: 18px; height: 18px; }

@media (hover: hover) {
    .cat-gallery__btn:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
    .cat-gallery__btn:hover .cat-gallery__shade { opacity: 1; }
    .cat-gallery__btn:hover .cat-gallery__caption { transform: none; opacity: 1; }
    .cat-gallery__btn:hover .cat-gallery__zoom { opacity: 1; transform: none; }
    .cat-gallery__btn:hover::before,
    .cat-gallery__btn:hover::after { width: 34px; height: 34px; border-color: var(--cat-amber); }
}
/* Handy: Bilder etwas heller und Texte immer sichtbar */
@media (hover: none) {
    .cat-gallery__btn img { filter: none; }
    .cat-gallery__caption { transform: none; opacity: 1; padding: 12px 14px; }
    .cat-gallery__title { font-size: .95rem; }
}
.cat-gallery__btn:focus-visible { outline: 2px solid var(--cat-amber); outline-offset: 3px; }

/* ---------- „Mehr ansehen“-Button unter der Galerie ---------- */
.cat-gallery__item[hidden] { display: none; }
.cat-gallery-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.cat-gallery-more__count { color: var(--cat-amber); transition: color .3s ease; }
.cat-gallery-more:hover { border-color: var(--cat-amber); background: var(--cat-amber); color: #000; }
.cat-gallery-more:hover .cat-gallery-more__count { color: #000; }
.cat-gallery-more:focus-visible { outline: 2px solid var(--cat-amber); outline-offset: 3px; }

/* ---------- Lightbox (große Ansicht) ---------- */
.cat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 16px;
    background: rgba(6, 6, 6, .96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.cat-lightbox.is-open { opacity: 1; visibility: visible; }

.cat-lightbox__stage { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; }
.cat-lightbox__stage img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    transform: scale(.96);
    opacity: 0;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
}
.cat-lightbox__stage img.is-loaded { transform: none; opacity: 1; }
.cat-lightbox__caption { margin-top: 16px; text-align: center; min-height: 1em; }
.cat-lightbox__caption .cat-gallery__title { font-size: 1.3rem; }

.cat-lightbox__close,
.cat-lightbox__nav {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.cat-lightbox__close { top: 16px; right: 16px; font-size: 1.8rem; }
.cat-lightbox__nav { top: 50%; transform: translateY(-50%); }
.cat-lightbox__nav--prev { left: 16px; }
.cat-lightbox__nav--next { right: 16px; }
.cat-lightbox__close:hover,
.cat-lightbox__nav:hover { background: var(--cat-amber); border-color: var(--cat-amber); color: #000; }

.cat-lightbox__count {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-family: "Oswald", sans-serif;
    font-size: .95rem;
    letter-spacing: .15em;
    color: #9ca3af;
}
@media (max-width: 640px) {
    .cat-lightbox__nav { top: auto; bottom: 12px; transform: none; width: 44px; height: 44px; }
    .cat-lightbox__nav--prev { left: auto; right: 68px; }
    .cat-lightbox__nav--next { right: 16px; }
}

/* ---------- Bewegung reduzieren, falls so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
    .cat-kenburns, .cat-marquee, .cat-alert, .cat-live-dot { animation: none !important; }
    .cat-js .cat-gallery__item { opacity: 1; transform: none; transition: none; }
    .cat-gallery__btn img, .cat-lightbox__stage img { transition: none !important; }
    .cat-card, .cat-tile, .cat-step, .cat-menu-item, .cat-frame::before { transition: none !important; }
    .cat-js .cat-line { transform: scaleX(1); transition: none; }
}