/* ================================================================
   Bestattungshaus Sabrina Lautenbach – Gemeinsames Design
   Identisch mit index.html – für alle Unterseiten
   ================================================================ */

/* ======= CSS VARIABLEN ======= */
:root {
    --primary: #1A1A1A;
    --secondary: #FFE2E7;
    --background: #FFEEF1;
    --text: #1A1A1A;
    --accent: #E84393;
    --accent-hover: #d63384;
    --radius: 12px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --header-height: 72px;
}

/* ======= RESET ======= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ======= HEADER – identisch zu index.html ======= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,238,241,0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(255,238,241,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    min-height: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.header-logo img {
    height: 46px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
    white-space: nowrap;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,67,147,0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background: #f5e0e2;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--text);
}

.btn-white:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ======= HAMBURGER ======= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======= MOBILE MENU ======= */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--background);
    z-index: 1050;
    padding: 76px 28px 20px;
    transition: right 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    padding: 11px 0;
    border-bottom: 1px solid var(--secondary);
    color: var(--text);
    transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
}

.mobile-menu .mobile-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu .mobile-actions .btn {
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 15px 20px;
    font-size: 0.98rem;
    border-radius: 14px;
}

.mobile-menu .mobile-actions .btn svg {
    flex-shrink: 0;
}

.mobile-menu .mobile-actions .btn-secondary {
    border: 1px solid rgba(232,67,147,0.25);
    color: var(--accent);
}

.mobile-menu .mobile-actions .btn-primary {
    box-shadow: 0 6px 18px rgba(232,67,147,0.30);
}

/* Sehr niedrige Displays: noch kompakter */
@media (max-height: 720px) {
    .mobile-menu {
        padding-top: 70px;
    }
    .mobile-menu a {
        font-size: 0.95rem;
        padding: 8px 0;
    }
    .mobile-menu .mobile-actions {
        margin-top: 12px;
        gap: 8px;
    }
    .mobile-menu .mobile-actions .btn {
        padding: 10px 16px;
    }
}

@media (max-width: 1100px) {
    .header-nav, .header-actions {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* ======= PAGE HERO BANNER ======= */
.page-hero {
    padding: calc(var(--header-height) + 72px) 0 80px;
    background: linear-gradient(135deg, #3d1020 0%, #6b1f3d 60%, rgba(232,67,147,0.8) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/Hintergrund_final.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 800px;
}

.page-hero .hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    line-height: 1.65;
}

.page-hero .hero-phone {
    margin: 0 0 20px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.page-hero .hero-phone a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
    white-space: nowrap;
}

.page-hero .hero-phone a:hover {
    opacity: 0.85;
}

/* ======= SECTION UTILITIES ======= */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--secondary);
}

.section-white {
    background: #fff;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 640px;
    line-height: 1.75;
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 52px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ======= LINK ARROW ======= */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.link-arrow:hover {
    gap: 14px;
}

.link-arrow svg {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ======= WHITE CARDS (Standard-Karte) ======= */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-img {
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ======= CTA BOX (dunkle Rose-Box) ======= */
.cta-box {
    background: linear-gradient(135deg, #3d1020, #6b1f3d);
    border-radius: var(--radius);
    padding: 64px;
    text-align: center;
    color: #fff;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cta-box {
        padding: 40px 24px;
    }
}

/* ======= ANSPRECHPARTNER KARTE ======= */
.contact-card {
    display: flex;
    gap: 48px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card-img {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.contact-card-info .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.contact-detail svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.contact-detail a {
    color: #555;
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--accent);
}

@media (max-width: 700px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
        gap: 24px;
    }

    .contact-detail {
        justify-content: center;
    }
}

/* ======= VIDEO EMBED ======= */
.video-section {
    background: #1a0810;
    padding: 80px 0;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper video {
    width: 100%;
    display: block;
    max-height: 506px;
    object-fit: cover;
}

/* ======= INLINE VIDEOS (Hochkant 9:16 – Standard) ======= */
.media-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    max-width: 340px;
    margin: 0 auto;
}

.media-video video {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000;
}

/* ======= Play-Button-Overlay (zeigt, dass es sich um ein Video handelt) ======= */
.media-video::before,
.media-video::after {
    content: '';
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-video::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 2;
}

.media-video::after {
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23E84393' viewBox='0 0 24 24'><path d='M8 5v14l11-7z'/></svg>") 56% center / 24px no-repeat;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 3;
}

.media-video.is-playing::before,
.media-video.is-playing::after {
    opacity: 0;
}

/* Optional: Landscape-Override (z. B. Header-Videos) */
.media-video.is-landscape {
    max-width: 880px;
}

.media-video.is-landscape video {
    aspect-ratio: 16 / 9;
}

.media-video-caption {
    background: #fff;
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.media-video-caption h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.media-video-caption p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* ======= VIDEO-FEATURE (Video + Text nebeneinander) ======= */
.video-feature {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.video-feature.reversed {
    grid-template-columns: 1fr 340px;
}

.video-feature .media-video {
    margin: 0;
    width: 100%;
}

.video-feature-text .section-label {
    margin-bottom: 10px;
}

.video-feature-text h3 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.video-feature-text p {
    color: #555;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.video-feature-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .video-feature,
    .video-feature.reversed {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 400px;
    }

    .video-feature.reversed > :first-child {
        order: 2;
    }

    .video-feature.reversed > :last-child {
        order: 1;
    }
}

/* ======= VIDEO-GRID (mehrere Hochkant-Videos nebeneinander) ======= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.video-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.video-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.video-grid .media-video {
    margin: 0;
    max-width: none;
}

@media (max-width: 900px) {
    .video-grid,
    .video-grid.cols-3,
    .video-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .video-grid,
    .video-grid.cols-3,
    .video-grid.cols-4 {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
}

/* ======= FOOTER ======= */
.site-footer {
    background: linear-gradient(160deg, #2a1020, #4a1a30);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    line-height: 2;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li a {
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ======= ANIMATIONEN ======= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ======= RESPONSIVE GLOBAL ======= */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .page-hero {
        padding: calc(var(--header-height) + 48px) 0 56px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 52px 0;
    }
}
