/********** FPG Dark Theme – inspiriert von solarpower-berlin.de **********/
:root {
    --fpg-bg: #0a0c10;
    --fpg-bg-elevated: #12151c;
    --fpg-bg-card: #181c26;
    --fpg-bg-card-hover: #1f2430;
    --fpg-border: rgba(255, 255, 255, 0.08);
    --fpg-border-accent: rgba(140, 198, 65, 0.35);
    --fpg-text: #eef1f6;
    --fpg-text-muted: #9aa3b2;
    --fpg-accent: #8CC641;
    --fpg-accent-hover: #9ed654;
    --fpg-gold: #d4b84a;
    --fpg-gold-soft: rgba(212, 184, 74, 0.15);
    --fpg-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    --fpg-radius: 12px;
    --fpg-radius-lg: 16px;
}

body.theme-dark {
    background-color: var(--fpg-bg) !important;
    color: var(--fpg-text);
    font-family: 'Inter', 'Roboto Condensed', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: var(--fpg-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.theme-dark p {
    color: var(--fpg-text-muted);
}

/* Topbar */
body.theme-dark .topbar-modern {
    background: var(--fpg-bg-elevated) !important;
    border-bottom: 1px solid var(--fpg-border);
    font-size: 0.875rem;
}

body.theme-dark .topbar-modern .col-12 {
    display: flex;
    justify-content: center;
}

body.theme-dark .topbar-modern .d-inline-flex {
    justify-content: center;
}

body.theme-dark .topbar-modern a {
    color: var(--fpg-text-muted) !important;
    text-decoration: none;
    transition: color 0.25s;
}

body.theme-dark .topbar-modern a:hover {
    color: var(--fpg-accent) !important;
}

body.theme-dark .topbar-modern .border-end {
    border-color: var(--fpg-border) !important;
}

body.theme-dark .topbar-modern i {
    color: var(--fpg-accent) !important;
}

/* Navbar */
body.theme-dark .navbar-modern {
    background: rgba(10, 12, 16, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fpg-border);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

body.theme-dark .navbar-modern .navbar-brand h1 {
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fpg-text) !important;
}

body.theme-dark .navbar-modern .navbar-brand .fa-paint-roller,
body.theme-dark .navbar-modern .navbar-brand i {
    color: var(--fpg-accent) !important;
}

body.theme-dark .navbar-modern .navbar-nav {
    border-color: transparent !important;
}

body.theme-dark .navbar-dark .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
    margin-left: 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fpg-text-muted) !important;
}

body.theme-dark .navbar-dark .navbar-nav .nav-link:hover,
body.theme-dark .navbar-dark .navbar-nav .nav-link.active {
    color: var(--fpg-accent) !important;
}

body.theme-dark .navbar-dark .navbar-nav .nav-link::before {
    background: var(--fpg-accent) !important;
    height: 2px;
}

body.theme-dark .navbar-phone-block small {
    color: var(--fpg-text-muted) !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.theme-dark .navbar-phone-block h6 {
    color: var(--fpg-text) !important;
    font-weight: 600;
}

body.theme-dark .btn-nav-cta {
    background: var(--fpg-accent);
    color: #0a0c10;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: none;
    transition: background 0.25s, transform 0.2s;
}

body.theme-dark .btn-nav-cta:hover {
    background: var(--fpg-accent-hover);
    color: #0a0c10;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(140, 198, 65, 0.25);
}

/* Hero */
body.theme-dark .hero-modern {
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    background: linear-gradient(105deg, rgba(10, 12, 16, 0.97) 0%, rgba(10, 12, 16, 0.75) 45%, rgba(10, 12, 16, 0.4) 100%),
        url(../img/Airbrush-image-extender.jpeg) center right / cover no-repeat !important;
    position: relative;
}

body.theme-dark .hero-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--fpg-bg));
    pointer-events: none;
    z-index: 1;
}

body.theme-dark .hero-modern > .container {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

body.theme-dark .hero-eyebrow {
    display: inline-block;
    color: var(--fpg-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

body.theme-dark .hero-modern h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    color: var(--fpg-text) !important;
    margin-bottom: 1.25rem;
}

body.theme-dark .hero-modern .lead {
    font-size: 1.15rem;
    color: var(--fpg-text-muted) !important;
    max-width: 36rem;
    line-height: 1.7;
}

body.theme-dark .btn-hero-primary {
    background: var(--fpg-accent);
    color: #0a0c10;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    border: none;
}

body.theme-dark .btn-hero-primary:hover {
    background: var(--fpg-accent-hover);
    color: #0a0c10;
}

body.theme-dark .btn-hero-outline {
    background: transparent;
    color: var(--fpg-text);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    border: 1px solid var(--fpg-border);
}

body.theme-dark .btn-hero-outline:hover {
    border-color: var(--fpg-accent);
    color: var(--fpg-accent);
    background: var(--fpg-gold-soft);
}

/* Section headers */
body.theme-dark .section-label {
    display: block;
    color: var(--fpg-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
}

body.theme-dark .section-title {
    color: var(--fpg-text) !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

body.theme-dark .section-divider {
    width: 60px;
    height: 3px;
    background: var(--fpg-accent);
    border: none;
    opacity: 1;
    margin: 0 auto 2rem;
}

body.theme-dark .section-dark {
    background: var(--fpg-bg);
    position: relative;
}

body.theme-dark .section-elevated {
    background: var(--fpg-bg-elevated);
}

/* About cards */
body.theme-dark .about-section-bg::before,
body.theme-dark .team-section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    right: -15vw;
    width: 50vw;
    height: 100%;
    background-image: url(../img/frame-2052-20-2-.avif);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: scaleX(-1);
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
}

body.theme-dark .team-section-bg::before {
    right: -20vw;
}

body.theme-dark .about-section-bg > .container,
body.theme-dark .team-section-bg > .container {
    position: relative;
    z-index: 1;
}

body.theme-dark .card-dark {
    background: var(--fpg-bg-card);
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--fpg-shadow);
}

body.theme-dark .card-dark h1,
body.theme-dark .card-dark h2 {
    color: var(--fpg-text);
}

body.theme-dark .card-dark .btn-secondary {
    background: var(--fpg-accent);
    border-color: var(--fpg-accent);
    color: #0a0c10;
    font-weight: 600;
    border-radius: 6px;
}

body.theme-dark .card-dark .btn-secondary:hover {
    background: var(--fpg-accent-hover);
    border-color: var(--fpg-accent-hover);
    color: #0a0c10;
}

body.theme-dark .about-img-wrap {
    border-radius: var(--fpg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--fpg-border);
}

body.theme-dark .about-img-wrap img {
    border-radius: 0;
}

/* Portfolio / Services */
body.theme-dark .portfolio-card {
    display: flex;
    flex-direction: column;
    background: var(--fpg-bg-card);
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
    padding: 2rem;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

body.theme-dark .portfolio-card:hover {
    border-color: var(--fpg-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--fpg-shadow);
    color: inherit !important;
}

body.theme-dark .portfolio-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fpg-gold-soft);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    transform: none !important;
}

body.theme-dark .portfolio-icon i {
    font-size: 1.5rem;
    color: var(--fpg-accent);
    transform: none !important;
}

body.theme-dark .portfolio-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fpg-text);
    margin-bottom: 0.75rem;
}

body.theme-dark .portfolio-card p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

body.theme-dark .portfolio-link {
    color: var(--fpg-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.theme-dark a.portfolio-card:hover .portfolio-link {
    gap: 0.6rem;
}

/* Stats */
body.theme-dark .stats-bar {
    background: var(--fpg-bg-elevated);
    border-top: 1px solid var(--fpg-border);
    border-bottom: 1px solid var(--fpg-border);
    padding: 3rem 0;
}

body.theme-dark .stat-item {
    text-align: center;
    padding: 1rem;
}

body.theme-dark .stat-item h3 {
    font-size: 2.5rem;
    color: var(--fpg-accent) !important;
    margin-bottom: 0.25rem;
}

body.theme-dark .stat-item span {
    color: var(--fpg-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Process steps */
body.theme-dark .process-card {
    background: var(--fpg-bg-card);
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius);
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.3s;
}

body.theme-dark .process-card:hover {
    border-color: var(--fpg-border-accent);
}

body.theme-dark .process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--fpg-gold-soft);
    color: var(--fpg-accent);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

body.theme-dark .process-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Kohpa / Video */
body.theme-dark .kohpa-panel {
    background: var(--fpg-bg-card);
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
    padding: 2.5rem;
}

body.theme-dark .video-frame {
    border-radius: var(--fpg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--fpg-border);
}

/* Quote form */
body.theme-dark .quote-section {
    background: linear-gradient(135deg, var(--fpg-bg-elevated) 0%, var(--fpg-bg-card) 100%);
    border-top: 1px solid var(--fpg-border);
    border-bottom: 1px solid var(--fpg-border);
    margin: 0 !important;
}

body.theme-dark .quote-form-card {
    background: var(--fpg-bg-card);
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
    padding: 2.5rem;
}

body.theme-dark .quote-form-card h1 {
    color: var(--fpg-text);
}

body.theme-dark .quote-form-card .form-control {
    background: var(--fpg-bg-elevated);
    border: 1px solid var(--fpg-border);
    color: var(--fpg-text);
    border-radius: 8px;
}

body.theme-dark .quote-form-card .form-control::placeholder {
    color: var(--fpg-text-muted);
}

body.theme-dark .quote-form-card .form-control:focus {
    background: var(--fpg-bg);
    border-color: var(--fpg-accent);
    color: var(--fpg-text);
    box-shadow: 0 0 0 3px rgba(140, 198, 65, 0.15);
}

body.theme-dark .quote-form-card .btn-primary {
    background: var(--fpg-accent);
    border-color: var(--fpg-accent);
    color: #0a0c10;
    font-weight: 600;
    border-radius: 8px;
}

/* Team */
body.theme-dark .team-item {
    border-radius: var(--fpg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--fpg-border);
}

body.theme-dark .team-item img {
    height: 420px;
}

body.theme-dark .team-text {
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95), transparent) !important;
    right: 0;
    left: 0;
    bottom: 0;
    height: auto !important;
    padding: 2rem 1.5rem 1.5rem;
    align-items: flex-start;
}

body.theme-dark .team-text h4 {
    color: var(--fpg-text);
}

body.theme-dark .team-text span {
    color: var(--fpg-accent);
    font-size: 0.8rem;
}

/* CTA */
body.theme-dark .cta-band {
    background: linear-gradient(90deg, var(--fpg-bg-card) 0%, var(--fpg-bg-elevated) 100%);
    border-top: 1px solid var(--fpg-border);
    margin-top: 0 !important;
}

body.theme-dark .cta-band .display-5,
body.theme-dark .cta-band p {
    color: var(--fpg-text) !important;
}

body.theme-dark .cta-band p {
    color: var(--fpg-text-muted) !important;
}

/* Footer */
body.theme-dark .footer-modern {
    background: var(--fpg-bg-elevated) !important;
    border-top: 1px solid var(--fpg-border);
}

body.theme-dark .footer-modern h4 {
    color: var(--fpg-text) !important;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.theme-dark .footer-modern hr {
    border-color: var(--fpg-accent) !important;
    opacity: 1;
    width: 40px !important;
}

body.theme-dark .footer-modern a {
    color: var(--fpg-text-muted) !important;
    text-decoration: none;
    transition: color 0.2s;
}

body.theme-dark .footer-modern a:hover {
    color: var(--fpg-accent) !important;
}

body.theme-dark .footer-modern .text-primary,
body.theme-dark .footer-modern i.text-primary {
    color: var(--fpg-accent) !important;
}

body.theme-dark .footer-bottom {
    border-top: 1px solid var(--fpg-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: var(--fpg-text-muted);
    font-size: 0.85rem;
}

/* Override legacy bright backgrounds */
body.theme-dark .bg-primary:not(.btn):not(.badge) {
    background: var(--fpg-bg-card) !important;
}

body.theme-dark .about-start.bg-primary,
body.theme-dark .about-end.bg-primary {
    background: var(--fpg-bg-card) !important;
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
}

body.theme-dark .bg-quote,
body.theme-dark .bg-call-to-action {
    background: var(--fpg-bg-elevated) !important;
    background-image: none !important;
}

body.theme-dark .bg-white {
    background: var(--fpg-bg-card) !important;
}

body.theme-dark .text-primary {
    color: var(--fpg-accent) !important;
}

body.theme-dark .service-item,
body.theme-dark .service-item[style] {
    background: var(--fpg-bg-card) !important;
    background-image: none !important;
    border: 1px solid var(--fpg-border);
    border-radius: var(--fpg-radius-lg);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

body.theme-dark .service-item:hover,
body.theme-dark .service-item[style]:hover {
    background: var(--fpg-bg-card-hover) !important;
    background-image: none !important;
    border-color: var(--fpg-border-accent);
    filter: none;
    box-shadow: var(--fpg-shadow);
}

body.theme-dark .service-item .service-icon {
    transform: none;
    background: transparent !important;
    margin-top: 0;
    width: auto;
    height: auto;
    color: inherit;
}

body.theme-dark .service-item .service-icon div {
    transform: none;
    background: var(--fpg-gold-soft) !important;
    border-radius: 10px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-dark .service-item:hover .service-icon div {
    background: rgba(140, 198, 65, 0.2) !important;
}

body.theme-dark .service-item .service-icon i {
    transform: none;
    color: var(--fpg-accent);
    font-size: 1.5rem;
}

body.theme-dark .service-item h3 {
    color: var(--fpg-text) !important;
}

body.theme-dark .service-item a.btn {
    color: var(--fpg-accent) !important;
    opacity: 1;
    position: relative;
    bottom: 0;
    font-weight: 600;
}

body.theme-dark .service-item a.btn:hover {
    color: var(--fpg-accent-hover) !important;
}

/* Page headers (subpages) */
body.theme-dark .page-header,
body.theme-dark .container-fluid.bg-primary.py-5.bg-hero,
body.theme-dark .container-fluid.py-5.bg-hero {
    background: linear-gradient(105deg, rgba(10, 12, 16, 0.96) 0%, rgba(10, 12, 16, 0.82) 50%, rgba(10, 12, 16, 0.65) 100%),
        url(../img/Airbrush-image-extender.jpeg) center / cover no-repeat !important;
    background-size: cover !important;
    margin-bottom: 0 !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    position: relative;
}

body.theme-dark .page-header h1,
body.theme-dark .bg-hero h1,
body.theme-dark .container-fluid.bg-primary.py-5.bg-hero h1 {
    color: var(--fpg-text) !important;
}

body.theme-dark .bg-hero p,
body.theme-dark .container-fluid.bg-primary.py-5.bg-hero p {
    color: var(--fpg-text-muted) !important;
}

body.theme-dark .container-fluid.bg-primary:not(.btn):not(.badge):not(.py-5) {
    background: var(--fpg-bg-elevated) !important;
}

@media (max-width: 991.98px) {
    body.theme-dark .navbar-modern .btn-nav-cta {
        display: none;
    }

    body.theme-dark .hero-modern {
        min-height: 70vh;
        background-position: center !important;
    }

    body.theme-dark .about-start,
    body.theme-dark .about-end {
        margin: 0 !important;
    }
}
