/*
 * Main stylesheet for Freiheit Catering.
 * Extracted from the former inline styles in layouts/head.html to enable
 * centralized styling and optimal HTTP caching via Spring's resource pipeline.
 */
:root {
    /* Pastell-Basis */
    --brand: #7466df;          /* gedecktes Violett */
    --accent: #7fd3e5;         /* (weiterhin für Hintergründe, dezent) */
    --ink: #0f172a;            /* Text */
    --muted: #475569;          /* Sekundärtext */
    --surface: #ffffff;        /* Kartenfläche */
    --radius: 18px;
    --shadow-1: 0 10px 24px rgba(2, 6, 23, .06);
    --shadow-2: 0 24px 60px rgba(2, 6, 23, .12);
    --bs-heading-font-family: "Playfair Display", Georgia, serif;

    /* CTA-Gradient auf Logo-Farben (Indigo → Blau) */
    --cta1: #2d3180;
    --cta2: #4f6dd0;

    /* Dezenter Text-Gradient (professioneller, weniger spielerisch) */
    --soft1: #30377f; /* indigo */
    --soft2: #6e7fd9; /* gedämpftes Blau */

    /* Abstand für Anker-Sprünge (fixierte Navigation ausgleichen) */
    --scroll-offset: clamp(88px, 12vh, 144px);

    --swiper-pagination-color: var(--brand);
}

html {
    height: 100%;
    scroll-padding-top: var(--scroll-offset);
}

[data-scroll-section] {
    scroll-margin-top: var(--scroll-offset);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--ink);
    scroll-behavior: smooth;
}

footer.section-gradient {
    margin-top: auto;
}

h1,
h2,
h3,
.display-1,
.display-2,
.display-3 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: .2px;
}

/* Lange Wörter sauber umbrechen */
h1,
h2,
h3,
.display-1,
.display-2,
.display-3,
.lead,
.nav-link,
.btn {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.btn[data-loading-state="loading"] [data-loading-label] {
    display: none !important;
}

.btn[data-loading-state="loading"] [data-loading-indicator] {
    display: inline-flex !important;
}

/* NAVBAR */
.navbar-glass {
    backdrop-filter: saturate(160%) blur(10px);
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(2, 6, 23, .06);
    transition: .35s;
}

.navbar-glass.navbar-solid {
    background: #fff;
    box-shadow: var(--shadow-1);
    border-color: rgba(2, 6, 23, .12);
}

.navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar .navbar-brand {
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.navbar .navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar .navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65vw;
}

.navbar-toggler {
    margin-left: auto;
}

@media (max-width: 992px) {
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        text-align: center;
    }

    .navbar-nav {
        margin-top: .75rem;
        flex-direction: column !important;
        gap: .25rem;
    }
}

/* PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 1080;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    box-shadow: 0 0 8px rgba(116, 102, 223, .35);
}

/* HERO */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(6rem, 7vw, 9rem) 0 5rem;
    box-sizing: border-box;
}

.hero-landing {
    background-color: #0f172a;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    pointer-events: none;
}

.hero-overlay-mobile {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(8, 18, 31, 0.82) 100%);
}

.hero-overlay-desktop {
    width: 66%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 40%, rgba(15, 23, 42, 0.32) 75%, rgba(15, 23, 42, 0) 100%);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.82) !important;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 rgba(127, 211, 229, 0);
    opacity: 0;
    transition: background .4s ease, box-shadow .6s ease;
}

.reveal.show .hero-badge {
    animation: heroBadgeFade 1s ease forwards;
    animation-iteration-count: 1;
}

.reveal.show .hero-badge:nth-child(2) {
    animation-delay: .25s;
}

.reveal.show .hero-badge:nth-child(3) {
    animation-delay: .5s;
}

.reveal.show .hero-badge:nth-child(4) {
    animation-delay: .75s;
}

.reveal.show .hero-badge:nth-child(5) {
    animation-delay: 1s;
}

.reveal.show .hero-badge:nth-child(6) {
    animation-delay: 1.25s;
}

@keyframes heroBadgeFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-cta {
    opacity: 0;
    transform: translateY(24px);
}

.hero-cta.reveal {
    transition: none;
}

.hero-cta.reveal.show {
    opacity: 0;
    transform: translateY(24px);
    animation: heroCtaRise .85s ease forwards;
    animation-delay: 1.40s;
}

@keyframes heroCtaRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* CARDS */
.card {
    border: 1px solid rgba(2, 6, 23, .08);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: rgba(2, 6, 23, .14);
}

/* SWIPER CARDS */
/* Kill the effect for cards inside Swiper */
.swiper .card {
    border: none;
    box-shadow: none;
    transform: none;
    transition: none;
}

.swiper .card:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit; /* or transparent */
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: .9rem;
    background: radial-gradient(120% 120% at 10% 10%, rgba(116, 102, 223, .16), rgba(127, 211, 229, .12));
    color: #1f2937;
}

.reveal {
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .reveal.show .hero-badge,
    .hero-cta.reveal.show {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* HERO CTAs – Paar bündelt 'Anrufen' + 'E-Mail' */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .cta-row {
        justify-content: center;
        text-align: center;
    }
}

#toTop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    opacity: 0;
    transform: translateY(10px);
    transition: .3s ease;
}

#toTop.show {
    opacity: 1;
    transform: none;
}

.form-control,
.form-select {
    background: #fff;
    border-color: rgba(2, 6, 23, .12);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(127, 211, 229, .25);
}

.badge-soft {
    background: rgba(15, 23, 42, .06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .08);
}

/* Section background safety */
section {
    background: transparent;
    position: relative;
    z-index: 0;
}

.section-gradient {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(80% 80% at 85% 10%, rgba(116, 102, 223, .1), transparent 70%),
        radial-gradient(85% 75% at 15% 90%, rgba(127, 211, 229, .12), transparent 70%),
        linear-gradient(180deg, rgba(250, 251, 255, .96), rgba(245, 247, 253, .96));
}

.section-gradient.section-gradient-alt::before {
    background:
        radial-gradient(80% 80% at 20% 15%, rgba(127, 211, 229, .12), transparent 70%),
        radial-gradient(85% 75% at 80% 90%, rgba(116, 102, 223, .1), transparent 70%),
        linear-gradient(180deg, rgba(249, 250, 255, .96), rgba(244, 246, 252, .96));
}

/* Text */
.text-muted {
    color: var(--muted) !important;
}

.text-soft {
    color: var(--soft1) !important;
}

/* FAQ accordion */
.accordion-button:focus {
    outline: none;
    box-shadow: none;
    border-color: rgba(2, 6, 23, .12);
}

.steps-list {
    line-height: 1.9;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.tracking-pixel {
    display: none;
}
