/* =============================================
   DRILLER HAUSTECHNIK – CUSTOM STYLES
   Klassisch/Seriös + Handwerklich/Regional
   ============================================= */

/* --- CSS Variables --- */
:root {
    --primary: #1C439B;
    --primary-dark: #142f6e;
    --primary-light: #2a5bc7;
    --cta: #0086CC;
    --cta-hover: #006ba3;
    --bg: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-warm: #f0f2f5;
    --text: #212529;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --success: #28a745;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    font-size: 1rem;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--cta);
    transition: color var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--cta-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Top Bar --- */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.835rem;
    padding: 6px 0;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.topbar-social {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-left: 12px;
    transition: color var(--transition);
}

.topbar-social:hover {
    color: #fff;
}

/* --- Navbar --- */
#mainNavbar {
    transition: box-shadow var(--transition), padding var(--transition);
    padding: 8px 0;
    z-index: 1030;
}

#mainNavbar.scrolled {
    padding: 4px 0;
    box-shadow: var(--shadow);
}

.navbar-brand img {
    transition: height var(--transition);
}

#mainNavbar.scrolled .navbar-brand img {
    height: 38px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text) !important;
    padding: 0.5rem 0.85rem !important;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-toggle::after {
    margin-left: 0.35em;
}

.dropdown-menu {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-item i {
    color: var(--cta);
    width: 20px;
}

.nav-phone {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all var(--transition);
}

.nav-phone:hover {
    background: var(--primary);
    color: #fff !important;
}

/* --- Hero Section --- */
.hero-section {
    background: var(--primary);
    color: var(--text-light);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, transparent 30%, rgba(0,134,204,0.15) 100%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

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

.btn-cta-primary:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,134,204,0.4);
}

.btn-cta-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    background: transparent;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* --- Page Header (internal pages) --- */
.page-header {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
}

.page-header h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
}

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

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.55);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5) !important;
}

/* --- Section Styles --- */
.section {
    padding: 4.5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--cta);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- USP Section --- */
.usp-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
}

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

.usp-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(28,67,155,0.08);
    color: var(--primary);
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.usp-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.usp-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Service Cards --- */
.service-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: var(--bg-light);
    font-size: 3rem;
    color: var(--primary);
    transition: all var(--transition);
}

.service-card:hover .service-card-icon {
    background: var(--primary);
    color: #fff;
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    flex: 1;
}

.service-card-body .btn {
    align-self: flex-start;
    font-size: 0.9rem;
}

/* --- Blog Card --- */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    background: #fff;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card-category {
    background: rgba(28,67,155,0.08);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
    color: var(--text);
    transition: color var(--transition);
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0,134,204,0.15);
    pointer-events: none;
}

.cta-banner-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-banner-text {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background: #1a1f2e;
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 0;
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.footer-social a:hover {
    background: var(--cta);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cta);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--cta);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

.footer-copy {
    font-size: 0.82rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

/* --- Back to Top --- */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    background: var(--cta);
    transform: translateY(-3px);
}

/* --- Buttons Global --- */
.btn-primary {
    background: var(--cta);
    border-color: var(--cta);
}

.btn-primary:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --- Leistung Detail Page --- */
.leistung-content {
    padding: 4rem 0;
}

.leistung-sidebar {
    position: sticky;
    top: 100px;
}

.leistung-sidebar .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    color: var(--text);
    transition: all var(--transition);
}

.leistung-sidebar .list-group-item:hover,
.leistung-sidebar .list-group-item.active {
    border-left-color: var(--cta);
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
}

.leistung-list {
    list-style: none;
    padding: 0;
}

.leistung-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.leistung-list li:last-child {
    border-bottom: none;
}

.leistung-list li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--cta);
    font-weight: bold;
}

/* --- Info Boxes --- */
.info-box {
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--cta);
    background: rgba(0,134,204,0.06);
}

.info-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* --- Contact Form --- */
.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--radius);
    border-color: var(--border);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px rgba(0,134,204,0.15);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- FAQ Accordion --- */
.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(28,67,155,0.05);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}

/* --- Blog Article --- */
.blog-article {
    max-width: 780px;
    margin: 0 auto;
}

.blog-article h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-article img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.blog-toc {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.blog-toc h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.blog-toc ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.blog-toc li {
    margin-bottom: 0.35rem;
}

.blog-toc a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-toc a:hover {
    color: var(--primary);
}

.author-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}

.author-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Referenzen Grid --- */
.referenz-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    background: #fff;
}

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

.referenz-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* --- Team Card --- */
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: #fff;
    transition: all var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--bg-light);
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-card .position {
    font-size: 0.88rem;
    color: var(--cta);
    font-weight: 600;
}

/* --- Alert / Success Box --- */
.alert-success-custom {
    background: rgba(40,167,69,0.08);
    border: 1px solid rgba(40,167,69,0.2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    color: var(--success);
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .cta-banner {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-section {
        padding: 3.5rem 0 3rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-copy {
        text-align: center;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Print --- */
@media print {
    .topbar, .navbar, .cta-banner, .site-footer, .btn-back-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        font-size: 11pt;
    }
}
