.titelbild-carousel {
    position: fixed;    /* statt absolute */
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    height: 100vh;       /* volle Höhe des Viewports */
    width: 100%;
    background-size: cover;
    background-position: center;
}

.fixed-bg {
    background-attachment: fixed;  /* sorgt für Parallax-Effekt */
}

.carousel-caption {
    background: rgba(128, 128, 128, 0.3); /* Hausfarbe mit 40 % Deckkraft */
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    top: 70%;
    bottom: auto;
    transform: translateY(-50%); /* exakt mittig im Slide */
    color: #000;
}

.inhalt-start {
    margin-top: 70vh;  /* Content startet unter dem Titelbild */
}

.card-inhalt {
    margin-top: -30px; /* Card leicht ins Bild ziehen (weniger Abstand) */
    background: rgba(255,255,255,0.9); /* halbtransparent */
    backdrop-filter: blur(4px);        /* Glas-Effekt */
}

/* Links */
.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.2s ease;
}

/* Hover/Fokus */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #f5c7ec !important; /* helleres Violett */
    text-decoration: underline;
}

/* Aktiver Menüpunkt */
.navbar-nav .nav-link.active {
    font-weight: 400;
    border-bottom: 2px solid #fff; /* kleine Markierung */
}

/* Hauptbutton (Hausfarbe) */
.card-inhalt a.btn-main {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #780C67;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.2s;
}
.card-inhalt a.btn-main:hover {
    background-color: #a02c8a;
}

/* Sekundärbutton (grau) */
.card-inhalt a.btn-secondary {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #6c757d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.2s;
}
.card-inhalt a.btn-secondary:hover {
    background-color: #5a6268;
}

/* Container selbst kein Weiß */
.container {
    background: transparent !important;
}

/* Navbar einfärben (Hausfarbe #780C67, leicht transparent) */
.navbar {
    background-color: rgba(120, 12, 103, 0.95);
}

/* Hauptnavigation Links – etwas feiner */
.nav .nav-link {
    outline: 1px solid #fff;
    color: #fff !important;
    font-size: 1rem;           /* kleiner als vorher */
    font-weight: 400;          /* etwas leichter */
    padding: 0.3rem 0.6rem;    /* weniger Abstand innen */
    margin-right: 0.4rem;      /* enger zwischen Buttons */
    border-radius: 3px;        /* weniger abgerundet */
    transition: all 0.2s ease;
    text-decoration: none !important;
}

/* Hover-Effekt bleibt, aber dezenter */
.nav .nav-link:hover {
    outline: 1px solid #fff;
    outline-offset: 2px;
    color: #f5c7ec !important;
    text-decoration: none !important;
}

/* Hauptnavigation auf grossen Screens etwas kompakter */
.navbar .nav-link,
.nav .nav-link {
    line-height: 1.1;          /* nicht zu eng, aber kompakter */
    margin-bottom: 0;
    letter-spacing: 0.2px;     /* dezente Weite */
}

/* Alle Navigationslinks mit leichtem Letterspacing */
.navbar .nav-link,
.nav .nav-link {
    letter-spacing: 0.5px;  /* dezente Weitung */
}

/* Optional: etwas Abstand, damit der Content nicht unter die Navbar rutscht */
.container.mt-4 {
    margin-top: 5rem !important; /* weniger Abstand als vorher */
}

.card {
    background: rgba(255,255,255,0.9); /* leicht durchsichtiges Weiß */
    backdrop-filter: blur(4px);        /* Glas-Effekt */
}

.carousel-caption {
    transition: opacity 0.4s ease;
}

body.scrolled .carousel-caption {
    opacity: 0;
    pointer-events: none; /* verhindert Klicks auf Links in der Caption */
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400 !important;
    color: #780C67;
    line-height: 1.3;
}
h1 {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
}
h2 {
    font-size: 2rem;
    letter-spacing: 1px;
}
h3 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

body, p, li, a {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #000; /* Standard Schwarz */
    letter-spacing: 0.2px;
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

small {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

.card-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

.btn-hausfarbe {
    background-color: #852476;
    border: none;
    color: #fff !important;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
}
.btn-hausfarbe:hover,
.btn-hausfarbe:focus {
    background-color: #a63b91;
    color: #fff !important;
}

/* Cursor für Sortier-Elemente */
#kategorien-sortierliste li,
.preis-sortierliste li {
    cursor: move;
}

/* Header mit Schatten-Verlauf nach unten */
.header-gradient {
    background-color: rgba(120, 12, 103, 0.85);
    position: relative;
    z-index: 10;
}
.header-gradient::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

/* Footer mit Schatten-Verlauf nach oben */
.footer-gradient {
    background-color: rgba(120, 12, 103, 0.75);
    position: absolute;
    width: 100%;
    z-index: 10;
    color: #fff; /* Text im Footer immer weiss */
}
.footer-gradient a {
    color: #fff !important;
    text-decoration: none;
}
.footer-gradient a:hover {
    text-decoration: underline;
}
.footer-gradient h1,
.footer-gradient h2,
.footer-gradient h3,
.footer-gradient h4,
.footer-gradient h5,
.footer-gradient h6 {
    color: #fff !important;
}
.footer-gradient::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

.footer-gradient,
.footer-gradient p,
.footer-gradient li,
.footer-gradient a,
.footer-gradient small {
    color: #fff !important;
}

/* Smartphone: Hintergrundbild durch weiß ersetzen */
@media (max-width: 768px) {
    .titelbild-carousel {
        background: #fff !important;
        height: auto !important;
        position: static !important;
    }
    .hero-slide {
        background: none !important;
        height: auto !important;
    }
    .inhalt-start {
        margin-top: 2rem !important;
    }
}

/* Adresse & Öffnungszeiten kleiner */
.footer-small {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* KEUNE-Bild responsive */
.footer img.keune-logo {
    max-width: 100%;
    height: auto;
}
.back-to-top {
    font-size: 2.5rem;
    color: #fff;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    cursor: pointer;
    z-index: 999;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* dezenter Schatten */
}

.back-to-top:hover {

    transform: scale(1.1);
}

/* Footer-Links ähnlich wie Navigation */
.footer ul li a {
     outline: 1px solid #fff;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
    letter-spacing: 0.5px; /* leicht eleganter */
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
}

.footer ul li a:hover {
    outline: 1px solid #fff;
    outline-offset: 2px;
    color: #f5c7ec !important; /* helleres Violett beim Hover */
    text-decoration: none !important;
}
