/* ========================================
   Bestattungsinstitut - Landingpage Styles
   Light/Dark Mode mit Color Switch
======================================== */

/* CSS Custom Properties - LIGHT MODE (Default) */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f2;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7f7;

    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #4d4d4d;

    --border-color: #e8e8e8;
    --border-light: #f0f0f0;

    /* Typography */
    --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;
    --section-padding-sm: 70px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows - disabled (B/W minimal style) */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* DARK MODE Override */
body.dark-mode {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #0b0b0b;
    --bg-card-hover: #141414;

    --text-primary: #ffffff;
    --text-secondary: #e6e6e6;
    --text-muted: #b3b3b3;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Shadows - disabled (B/W minimal style) */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-slow),
                color var(--transition-slow);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
}

.gradient-text {
    color: inherit;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.light-mode .btn-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

body.dark-mode .btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-mode .btn-primary:hover {
    background: #e6e6e6;
    border-color: #e6e6e6;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

body.light-mode .btn-secondary {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

body.light-mode .btn-secondary:hover {
    background: #f2f2f2;
    border-color: #000000;
}

body.dark-mode .btn-secondary {
    background: #111111;
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-mode .btn-secondary:hover {
    background: #1a1a1a;
    border-color: #ffffff;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ========================================
   Header & Navigation
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.header .logo-img {
    width: 220px;
    height: 56px;
    border-radius: 0;
}

.footer .logo-img {
    width: 220px;
    height: 56px;
    border-radius: 0;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--text-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.25rem;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Color Toggle Button */
.color-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    padding: 2px;
    transition: all var(--transition-base);
}

.color-toggle:hover {
    border-color: var(--text-muted);
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: opacity var(--transition-base);
}

.light-icon {
    left: 6px;
    opacity: 1;
}

.dark-icon {
    right: 6px;
    opacity: 0.4;
}

body.dark-mode .light-icon {
    opacity: 0.4;
}

body.dark-mode .dark-icon {
    opacity: 1;
}

body.dark-mode .color-toggle {
    background: #000000;
    border-color: #ffffff;
}

body.dark-mode .toggle-icon {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    padding: 160px 24px 100px;
    position: relative;
    overflow: hidden;
}

body.light-mode .hero {
    background: var(--bg-secondary);
}

body.dark-mode .hero {
    background: var(--bg-secondary);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 4/3;
}

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

body.light-mode .image-frame {
    background: #e6e6e6;
}

body.dark-mode .image-frame {
    background: #111111;
}

.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

.placeholder-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    opacity: 0.8;
}

/* ========================================
   Trust Bar
======================================== */
.trust-bar {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ========================================
   Showcase Banner
======================================== */
.showcase-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: var(--bg-secondary);
}

.showcase-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: var(--section-padding) 0;
}

section.showcase-banner {
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Services Section
======================================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.service-card-image {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    margin: 16px 0 18px;
    border: 1px solid var(--border-light);
}

body.light-mode .service-card:hover {
    border-color: var(--text-muted);
}

body.dark-mode .service-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 12px;
    font-weight: 500;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.services-grid--text .service-card p + p {
    margin-top: 14px;
}

/* ========================================
   About Section
======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    animation: fadeInLeft 0.8s ease;
}

.about-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 4/3;
}

.about-content {
    animation: fadeInRight 0.8s ease;
}

.about-content .section-tag {
    text-align: left;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
}

.about-features {
    list-style: none;
    margin-top: 32px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-icon {
    min-width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 10px;
    margin-top: 2px;
}

/* ========================================
   Process Section
======================================== */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 64px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

body.light-mode .process-timeline::before {
    background: var(--text-primary);
}

.process-step {
    display: flex;
    gap: 64px;
    padding-left: calc(64px + 64px);
    margin-bottom: 48px;
    position: relative;
}

.step-number {
    position: absolute;
    left: 24px;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.step-content h3 {
    margin-bottom: 8px;
    font-weight: 500;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

body.light-mode .testimonial-card:hover {
    box-shadow: none;
}

.testimonial-card.featured {
    grid-column: span 2;
    background: var(--bg-secondary);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: -20px;
    display: block;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--bg-primary);
    font-size: 1.25rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
======================================== */
.cta {
    text-align: center;
}

body.light-mode .cta-content {
    background: var(--bg-secondary);
}

body.dark-mode .cta-content {
    background: var(--bg-secondary);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
}

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

.footer .logo {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer-sister-site {
    margin-top: 16px;
}

.footer-sister-site a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.footer-sister-site a:hover {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal-links {
    font-size: 0.875rem;
}

.legal-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--text-primary);
}

.separator {
    margin: 0 12px;
    color: var(--border-color);
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card.featured {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-light);
        padding: 12px 24px 16px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition-base), transform var(--transition-base);
    }

    body.mobile-nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 12px;
        list-style: none;
    }

    .nav-menu a {
        padding: 10px 0;
        color: var(--text-primary);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .color-toggle {
        margin-left: auto;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .trust-items {
        flex-direction: column;
        gap: 24px;
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 54px;
    }

    .process-step {
        gap: 48px;
        padding-left: calc(54px + 48px);
    }

    .step-number {
        left: 19px;
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

    .logo-name {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .trust-items {
        gap: 20px;
    }

    .trust-number {
        font-size: 1.5rem;
    }
}
