/* =========================================================
   Bezold-Manufaktur – Portfolio-Theme (Premium / Mystery)
   ========================================================= */

:root {
    --bm-primary: #0c1018;
    --bm-primary-light: #161d2b;
    --bm-accent: #c9a04a;
    --bm-accent-light: #e0bc6a;
    --bm-bg: #080b10;
    --bm-bg-elevated: #0f141e;
    --bm-white: #ffffff;
    --bm-text: #e8ecf2;
    --bm-text-muted: #8b95a8;
    --bm-border: rgba(255, 255, 255, 0.08);
    --bm-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --bm-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.5);
    --bm-radius: 20px;
    --bm-radius-sm: 14px;
    --bm-max-width: 1140px;
    --bm-transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body.bm-body {
    background: var(--bm-bg);
    color: var(--bm-text);
    line-height: 1.65;
}

/* ---- Header ---- */

.bm-header {
    background: rgba(8, 11, 16, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bm-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--bm-transition);
}

.bm-header-inner {
    max-width: var(--bm-max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bm-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.bm-logo-link img {
    height: 48px;
    width: auto;
    max-width: none;
    filter: brightness(0) invert(1);
}

#leistungen,
#projekte {
    scroll-margin-top: -80px;
}

#kontakt {
    scroll-margin-top: 0;
}

.bm-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--bm-transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.bm-nav-link:hover,
.bm-nav-link:focus {
    color: var(--bm-accent-light);
    background: rgba(201, 160, 74, 0.1);
}

.bm-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--bm-text);
    font-size: 1.25rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* ---- Hero ---- */

.bm-hero {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a2236 0%, var(--bm-primary) 45%, var(--bm-bg) 100%);
    color: var(--bm-white);
    padding: 6rem 1.25rem 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 160, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 160, 74, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
}

.bm-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}

.bm-hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(201, 160, 74, 0.18);
    top: -10%;
    left: 15%;
    animation: bm-glow-drift 12s ease-in-out infinite alternate;
}

.bm-hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(80, 120, 200, 0.12);
    bottom: 0;
    right: 10%;
    animation: bm-glow-drift 15s ease-in-out infinite alternate-reverse;
}

@keyframes bm-glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.1); }
}

.bm-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bm-hero-eyebrow {
    display: inline-block;
    color: var(--bm-accent-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(201, 160, 74, 0.35);
    border-radius: 100px;
    background: rgba(201, 160, 74, 0.08);
}

.bm-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.bm-hero-title-accent {
    background: linear-gradient(135deg, var(--bm-accent-light), var(--bm-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bm-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.bm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--bm-transition);
    min-height: 48px;
    border: 2px solid transparent;
    cursor: pointer;
}

.bm-btn-primary {
    background: linear-gradient(135deg, var(--bm-accent), #a8843a);
    color: var(--bm-primary);
    border-color: var(--bm-accent);
    box-shadow: 0 4px 24px rgba(201, 160, 74, 0.3);
}

.bm-btn-primary:hover {
    background: linear-gradient(135deg, var(--bm-accent-light), var(--bm-accent));
    border-color: var(--bm-accent-light);
    color: var(--bm-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 160, 74, 0.45);
}

.bm-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.bm-btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bm-white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.bm-btn-dark {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
}

.bm-btn-dark:hover {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary-light);
    color: var(--bm-white);
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-hover);
}

/* ---- Sections ---- */

.bm-section {
    padding: 5rem 1.25rem;
    position: relative;
}

.bm-section-alt {
    background: var(--bm-bg-elevated);
}

.bm-container {
    max-width: var(--bm-max-width);
    margin: 0 auto;
}

.bm-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.bm-section-eyebrow {
    color: var(--bm-accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.bm-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--bm-white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.bm-section-subtitle {
    color: var(--bm-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---- Service Cards ---- */

.bm-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bm-service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--bm-radius);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--bm-shadow);
    border: 1px solid var(--bm-border);
    transition: var(--bm-transition);
    text-align: center;
    height: 100%;
    backdrop-filter: blur(8px);
}

.bm-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bm-shadow-hover);
    border-color: rgba(201, 160, 74, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.bm-service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(201, 160, 74, 0.2), rgba(201, 160, 74, 0.05));
    color: var(--bm-accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(201, 160, 74, 0.15);
}

.bm-service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bm-white);
    margin-bottom: 0.75rem;
}

.bm-service-card p {
    color: var(--bm-text-muted);
    margin-bottom: 0;
    font-size: 0.975rem;
}

.bm-service-card small {
    display: block;
    margin-top: 0.75rem;
    color: var(--bm-accent);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ---- Project Showcase (themed per reference) ---- */

.bm-project {
    --proj-bg: #ffffff;
    --proj-surface: #ffffff;
    --proj-text: #2c3340;
    --proj-text-muted: #6b7280;
    --proj-accent: #b8863a;
    --proj-header-bg: linear-gradient(135deg, #1e2a3a, #2d3f54);
    --proj-header-text: #ffffff;
    --proj-border: rgba(0, 0, 0, 0.08);
    --proj-btn-bg: #1e2a3a;
    --proj-btn-text: #ffffff;
    --proj-btn-hover: #2d3f54;
    --proj-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);

    background: var(--proj-bg);
    color: var(--proj-text);
    border-radius: var(--bm-radius);
    box-shadow: var(--proj-shadow);
    border: 1px solid var(--proj-border);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: var(--bm-transition);
}

.bm-project:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.bm-project-header {
    background: var(--proj-header-bg);
    color: var(--proj-header-text);
    padding: 1.35rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bm-project-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.bm-project-domain {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.03em;
}

.bm-project-body {
    padding: 2rem 1.75rem;
    background: var(--proj-bg);
}

.bm-project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.bm-project-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.bm-project-image img {
    display: block;
    max-width: min(100%, 400px);
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: var(--bm-radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bm-project-text {
    align-self: flex-start;
}

.bm-project-text p {
    color: var(--proj-text);
    margin-bottom: 1rem;
}

.bm-project-text ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.bm-project-text ul li {
    margin-bottom: 0.35rem;
    color: var(--proj-text-muted);
}

.bm-project-text .bm-features-label {
    font-weight: 600;
    color: var(--proj-accent);
    margin-bottom: 0.5rem;
}

.bm-btn-project {
    background: var(--proj-btn-bg);
    color: var(--proj-btn-text);
    border-color: var(--proj-btn-bg);
}

.bm-btn-project:hover {
    background: var(--proj-btn-hover);
    border-color: var(--proj-btn-hover);
    color: var(--proj-btn-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bm-project-action {
    text-align: right;
}

/* Inventar-Verkauf – helles Blau/Weiß */
.bm-project--inventar {
    --proj-bg: #eef4fb;
    --proj-surface: #ffffff;
    --proj-text: #1a2b42;
    --proj-text-muted: #4a6080;
    --proj-accent: #1a8cff;
    --proj-header-bg: linear-gradient(135deg, #1a8cff 0%, #0b6fd4 100%);
    --proj-header-text: #ffffff;
    --proj-border: rgba(26, 140, 255, 0.15);
    --proj-btn-bg: #1a8cff;
    --proj-btn-text: #ffffff;
    --proj-btn-hover: #0b6fd4;
    --proj-shadow: 0 12px 40px rgba(26, 140, 255, 0.15);
}

/* Meine Promille – dunkle Bar-Atmosphäre */
.bm-project--meinepromille {
    --proj-bg: #1e1a18;
    --proj-surface: #2a2320;
    --proj-text: #f0e4d4;
    --proj-text-muted: rgba(240, 228, 212, 0.68);
    --proj-accent: #ff8c42;
    --proj-header-bg: linear-gradient(135deg, #2a2320 0%, #1a1512 100%);
    --proj-header-text: #ff8c42;
    --proj-border: rgba(255, 140, 66, 0.2);
    --proj-btn-bg: #ff8c42;
    --proj-btn-text: #1a1512;
    --proj-btn-hover: #ffaa6a;
    --proj-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.bm-project--meinepromille .bm-project-header {
    border-bottom: 2px solid rgba(255, 140, 66, 0.35);
}

/* Amberger Weihnachtsmarkt – Winterblau & Gold */
.bm-project--weihnachtsmarkt {
    --proj-bg: #e8f4fc;
    --proj-surface: #fffaf0;
    --proj-text: #1e3a5f;
    --proj-text-muted: #4a6080;
    --proj-accent: #c9a227;
    --proj-header-bg: linear-gradient(135deg, #2d6a9f 0%, #1e3a5f 100%);
    --proj-header-text: #fff8e7;
    --proj-border: rgba(201, 162, 39, 0.2);
    --proj-btn-bg: #c9a227;
    --proj-btn-text: #1e3a5f;
    --proj-btn-hover: #dbb84a;
    --proj-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
}

.bm-project--weihnachtsmarkt .bm-project-body {
    background: linear-gradient(180deg, #e8f4fc 0%, #fffaf0 100%);
}

/* Raab-Sonnenstrand – warmes Sand/Gold */
.bm-project--raab {
    --proj-bg: #f7f3ee;
    --proj-surface: #ffffff;
    --proj-text: #2c2c2c;
    --proj-text-muted: #6b6b6b;
    --proj-accent: #b68c52;
    --proj-header-bg: linear-gradient(135deg, #1f2f3c 0%, #2a3f50 100%);
    --proj-header-text: #f7f3ee;
    --proj-border: rgba(182, 140, 82, 0.2);
    --proj-btn-bg: #b68c52;
    --proj-btn-text: #ffffff;
    --proj-btn-hover: #c9a06a;
    --proj-shadow: 0 12px 40px rgba(31, 47, 60, 0.15);
}

/* MampfPlan – warmes Beige & Orange */
.bm-project--mampfplan {
    --proj-bg: #f7f1e7;
    --proj-surface: #ffffff;
    --proj-text: #1b2230;
    --proj-text-muted: #667085;
    --proj-accent: #ff8a3d;
    --proj-header-bg: linear-gradient(135deg, #ff8a3d 0%, #ea6b17 100%);
    --proj-header-text: #ffffff;
    --proj-border: rgba(255, 138, 61, 0.2);
    --proj-btn-bg: #ff8a3d;
    --proj-btn-text: #ffffff;
    --proj-btn-hover: #ff9f5e;
    --proj-shadow: 0 12px 40px rgba(234, 107, 23, 0.15);
}

/* Greenwashing Finder – dunkles Grün & Neon-Lime */
.bm-project--greenwashing {
    --proj-bg: #0b2818;
    --proj-surface: #123322;
    --proj-text: #e8f5e9;
    --proj-text-muted: rgba(200, 230, 201, 0.72);
    --proj-accent: #b8e62e;
    --proj-header-bg: linear-gradient(135deg, #0a1f12 0%, #123322 100%);
    --proj-header-text: #b8e62e;
    --proj-border: rgba(184, 230, 46, 0.2);
    --proj-btn-bg: #b8e62e;
    --proj-btn-text: #0a1f12;
    --proj-btn-hover: #c8f04a;
    --proj-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.bm-project--greenwashing .bm-project-header {
    border-bottom: 2px solid rgba(184, 230, 46, 0.3);
}

.bm-project--greenwashing .bm-project-image img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .bm-project-grid.bm-project-reverse {
        direction: rtl;
    }

    .bm-project-grid.bm-project-reverse > * {
        direction: ltr;
    }
}

/* ---- Contact CTA ---- */

.bm-contact {
    background: radial-gradient(ellipse 80% 80% at 50% 100%, #1a2236 0%, var(--bm-primary) 50%, var(--bm-bg) 100%);
    color: var(--bm-white);
    padding: 5rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bm-contact-glow {
    position: absolute;
    width: 600px;
    height: 300px;
    background: rgba(201, 160, 74, 0.12);
    filter: blur(80px);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.bm-contact .bm-container {
    position: relative;
    z-index: 1;
}

.bm-contact-eyebrow {
    color: var(--bm-accent-light);
    margin-bottom: 1rem;
}

.bm-contact-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.bm-contact-text {
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.bm-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.bm-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bm-white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--bm-transition);
    min-height: 48px;
    backdrop-filter: blur(8px);
}

.bm-contact-link:hover {
    background: var(--bm-accent);
    border-color: var(--bm-accent);
    color: var(--bm-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 160, 74, 0.35);
}

/* ---- Legal Pages ---- */

.bm-legal-section {
    padding: 3rem 1.25rem 4rem;
}

.bm-legal-card {
    background: var(--bm-bg-elevated);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    border: 1px solid var(--bm-border);
    padding: 2.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.bm-legal-card h2 {
    color: var(--bm-white);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bm-legal-card h5 {
    color: var(--bm-accent-light);
    font-weight: 600;
    margin-top: 1.75rem;
}

.bm-legal-card p,
.bm-legal-card li {
    color: var(--bm-text-muted);
    font-size: 0.975rem;
}

.bm-legal-card a {
    color: var(--bm-accent);
}

.bm-legal-card a:hover {
    color: var(--bm-accent-light);
}

.bm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bm-accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--bm-transition);
}

.bm-back-link:hover {
    color: var(--bm-accent-light);
}

/* ---- Footer ---- */

.bm-footer {
    background: var(--bm-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 2rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--bm-border);
}

.bm-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.bm-footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.925rem;
    transition: var(--bm-transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.bm-footer-nav a:hover {
    color: var(--bm-accent-light);
}

.bm-footer-copy {
    font-size: 0.875rem;
    opacity: 0.5;
    margin: 0;
}

.bm-main {
    min-height: calc(100vh - 160px);
}

/* ---- Responsive ---- */

@media (min-width: 768px) {
    .bm-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-project-grid {
        grid-template-columns: fit-content(400px) minmax(0, 1fr);
    }

    .bm-legal-card {
        padding: 3rem;
    }
}

@media (max-width: 767px) {
    .bm-nav-toggle {
        display: inline-flex;
    }

    .bm-logo-link {
        gap: 0.35rem;
        min-width: 0;
        flex: 1;
    }

    .bm-logo-link img {
        height: 40px;
    }

    .bm-nav-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bm-primary);
        border-bottom: 1px solid var(--bm-border);
        box-shadow: var(--bm-shadow);
        padding: 0.75rem 1.25rem 1rem;
    }

    .bm-nav-collapse.bm-nav-open {
        display: block;
    }

    .bm-header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .bm-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .bm-nav-link {
        padding: 0.75rem 1rem;
    }

    .bm-project-action {
        text-align: center;
    }

    .bm-hero {
        padding: 4rem 1.25rem 5rem;
        min-height: auto;
    }

    .bm-section {
        padding: 3.5rem 1.25rem;
    }

    .bm-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-hero-actions .bm-btn {
        width: 100%;
    }
}
