/* CSS Variables for easy theme switching */
:root {
    --primary-color: #0056b3; /* A professional blue for plumbing */
    --secondary-color: #ff6b00; /* Warm orange for heating */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --footer-bg: #1a1a1a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--text-color);
}

/* Fallback Logo Text */
.logo-text {
    font-size: 24px;
    color: var(--primary-color);
}
.logo-text span {
    color: var(--secondary-color);
}
.logo-text-footer {
    font-size: 24px;
    color: #fff;
}
.logo-text-footer span {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 50vh;
    min-height: 600px;
    background-image: url('bg.jpg'); /* Placeholder image representing modern heating/plumbing tech */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
    background-color: var(--bg-white);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
}

/* Footer Section */
.footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-height: 80px;
    background-color: #fff; /* In case the logo is dark */
    padding: 5px;
    border-radius: 5px;
}

.footer-info p {
    color: #aaa;
    margin-bottom: 20px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--primary-color);
}

.footer-contact h3, .footer-owner h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

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

.footer-owner p {
    color: #aaa;
    margin-bottom: 10px;
}

.tax-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

.footer-links a {
    color: #777;
    font-size: 0.9rem;
    margin-left: 20px;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .nav-menu {
        display: none; /* Add JS for hamburger menu in production */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Kontaktformular Styles */
.contact-form-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.containerform {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-form-section p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.responsive-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flexbox für PC: Name und Telefon nebeneinander */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Große, touch-freundliche Eingabefelder (mind. 44px hoch fürs Smartphone) */
.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    -webkit-appearance: none; /* Verhindert iOS-Standard-Styling-Probleme */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Checkbox für Datenschutz */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 4px;
    transform: scale(1.2);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* Responsive Anpassung für Smartphones */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Auf Handys untereinander anzeigen */
        gap: 20px;
    }
    
    .containerform {
        padding: 20px; /* Weniger Abstand am Rand auf kleinen Bildschirmen */
        border-radius: 0; /* Nutzt den Platz auf Handys besser aus */
    }
}

/* =========================================
   Legal Pages (Impressum & Datenschutz) 
   ========================================= */
.legal-page {
    padding: 60px 0 100px 0;
    background-color: var(--bg-light);
}

.legal-content {
    background-color: var(--bg-white);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-content .source-link {
    margin-top: 40px;
    font-size: 0.9rem;
    font-style: italic;
    border-top: 1px solid var(--bg-light);
    padding-top: 20px;
}

/* Responsive Anpassung für Smartphones */
@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
}

/* =========================================
   Bilder-Galerie Grid 
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* Sorgt dafür, dass alle Kacheln gleich groß sind */
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet Bilder sauber zu, ohne sie zu verzerren */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Leichter Zoom-Effekt beim drüberfahren */
}
/* =========================================
   Lightbox (Bild-Vergrößerung)
   ========================================= */

/* Zeigt an, dass die Bilder klickbar sind */
.gallery-item img {
    cursor: pointer;
}

/* Das abgedunkelte Overlay */
.lightbox {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 9999; /* Legt sich über alles andere (auch die Navigation) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Schwarz mit 85% Deckkraft */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Das vergrößerte Bild */
.lightbox-content {
    max-width: 90vw; /* Maximal 90% der Bildschirmbreite */
    max-height: 90vh; /* Maximal 90% der Bildschirmhöhe */
    object-fit: contain; /* Verhindert Verzerrungen */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease; /* Kleiner Aufpopp-Effekt */
}

/* Das "X" zum Schließen (oben rechts) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Animations-Effekt */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Anpassung */
@media (max-width: 600px) {
    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

/* =========================================
   Mobile Navigation (Hamburger Menu)
   ========================================= */

/* Hamburger Icon (auf dem PC versteckt) */
.hamburger {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 900px) {
    /* Zeige das Hamburger-Icon auf dem Handy */
    .hamburger {
        display: block;
    }

    /* Verstecke den dicken Telefon-Button oben, damit Platz fürs Logo ist */
    .desktop-phone {
        display: none;
    }

    /* Das Menü wird zum Dropdown umgebaut */
    .nav-menu {
        display: none; /* Standardmäßig zu */
        position: absolute;
        top: 80px; /* Höhe der Navbar */
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Diese Klasse wird per JavaScript hinzugefügt, wenn man klickt */
    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }

    .nav-menu ul li a:hover {
        background-color: var(--bg-light);
    }
}
/* =========================================
   Mobile Telefonnummer im Menü
   ========================================= */

/* Versteckt den Button standardmäßig (für PC-Ansicht) */
.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    /* Zeigt den Listenpunkt im Handy-Menü an */
    .mobile-only {
        display: block;
    }

    /* Das auffällige Styling für den Button */
    .nav-menu ul li a.mobile-phone-btn {
        background-color: var(--secondary-color); /* Das auffällige Orange */
        color: var(--bg-white);
        text-align: center;
        font-weight: 700;
        margin: 15px 20px 25px 20px; /* Abstände: oben rechts unten links */
        border-radius: 5px;
        border-bottom: none; /* Entfernt die Trennlinie der normalen Menüpunkte */
        display: block;
        transition: background-color 0.3s ease;
    }

    /* Hover-Effekt (falls jemand auf dem Tablet tippt/mit der Maus drübergeht) */
    .nav-menu ul li a.mobile-phone-btn:hover {
        background-color: #e56000; /* Ein minimal dunkleres Orange */
        color: var(--bg-white);
    }
}