/*
Theme Name: Brandschutztechnik Stark
Theme URI: https://brandschutztechnik-stark.de
Author: Codex
Description: Custom Theme f�r Brandschutztechnik Stark basierend auf dem bestehenden Onepager-Design.
Version: 1.0.0
Text Domain: brandschutztechnik-stark
*/

/* Basisfarben und einfache Utilitys, Tailwind kommt per CDN. */
:root {
    --primary: #cc0000;
    --primary-dark: #a30000;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --background-light: #ffffff;
    --surface-light: #f9fafb;
    --brand-glow: rgba(204, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.hero-spotlight::after {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 130%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 70%);
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.9s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-slide-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-slide-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #cc0000, #a30000);
    width: 0%;
    z-index: 100;
    transition: width 0.1s ease;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
}

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-reveal span.reveal {
    opacity: 1;
    transform: translateY(0);
}

nav a {
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #cc0000, #a30000);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header.scrolled nav { height: 70px; }
header.scrolled .nav-link-desktop { font-size: 0.85rem; padding: 4px 0; }
header.scrolled .nav-cta-button { padding: 8px 16px; font-size: 0.8rem; }
header.scrolled img { height: 40px; }

.nav-link-desktop {
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link-desktop:hover {
    color: #cc0000;
}

.nav-cta-button {
    background: linear-gradient(135deg, #cc0000, #a30000);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.35);
}

.nav-cta-button:hover::before {
    left: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(204, 0, 0, 0.12), rgba(163, 0, 0, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .content {
    position: relative;
    z-index: 1;
}

.call-to-action-glow {
    box-shadow: 0 10px 35px var(--brand-glow);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(204, 0, 0, 0.1);
    color: #cc0000;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.text-highlight {
    background: linear-gradient(120deg, rgba(204, 0, 0, 0.2) 0%, rgba(204, 0, 0, 0.05) 100%);
    padding: 2px 6px;
    border-radius: 6px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #cc0000, #a30000);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.link-underline:hover::after {
    transform: scaleX(1);
}

.footer-ember {
    position: relative;
    overflow: hidden;
}

.footer-ember::before,
.footer-ember::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-ember::before {
    background: radial-gradient(circle at 20% 20%, rgba(204, 0, 0, 0.35), transparent 55%);
    opacity: 0.7;
}

.footer-ember::after {
    background: radial-gradient(circle at 80% 35%, rgba(255, 145, 0, 0.25), transparent 55%);
    opacity: 0.5;
}

/* Ratgeber-Artikelkarten (aus ratgeber.html übernommen) */
.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(204, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0), rgba(204, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.article-category {
    display: inline-block;
    background: rgba(204, 0, 0, 0.1);
    color: #cc0000;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.read-time {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cc0000;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-link:hover {
    gap: 10px;
}

.stat-box {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    border-left: 4px solid #cc0000;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.stat-box strong {
    color: #cc0000;
}

/* Detailseiten Layout (z.B. feuerloscher.html) */
.article-hero {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    border-left: 4px solid #cc0000;
}

.article-content h2 {
    color: #cc0000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content h3 {
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.info-box {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    border-left: 4px solid #cc0000;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.info-box strong {
    color: #cc0000;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.comparison-table th {
    background: linear-gradient(135deg, #cc0000, #a30000);
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:hover {
    background: #f9fafb;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #cc0000;
    margin-bottom: 8px;
}

.toc {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.toc h3 {
    margin-top: 0;
    color: #cc0000;
    font-weight: 700;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.toc li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #cc0000;
    font-weight: 700;
}

.toc a {
    color: #cc0000;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.checklist {
    background: #f9fafb;
    border-left: 4px solid #cc0000;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.checklist ul {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #cc0000;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.cta-section {
    background: linear-gradient(135deg, #cc0000, #a30000);
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #cc0000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Kontakt-CTA-Buttons auf der Startseite in einer stabilen Reihe */
@media (min-width: 768px) {
    section.bg-gradient-to-r.from-primary.to-primary-dark.text-white .grid {
        display: flex;
        gap: 1.5rem;
    }

    section.bg-gradient-to-r.from-primary.to-primary-dark.text-white .grid > a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab-phone {
    background-color: #cc0000;
}

.fab-whatsapp {
    background-color: #25d366;
}

@media (max-width: 640px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .fab-button {
        width: 50px;
        height: 50px;
    }

    .fab-button .material-icons {
        font-size: 24px !important;
    }
}
