/* =========================================================
   STYLE.CSS – HeizTech Sanitär & Heizung GmbH
   Autor: ChatGPT (Beispiel)
   Designfarben: Dunkelrot (#8B0000), Weiß (#FFFFFF), Hellgrau (#f4f4f4)
   ========================================================= */

/* ---------- Grundstil ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.main-header {
    background-color: #8B0000;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: #fff;
    background-color: #b30000;
    padding: 0 5px;
    border-radius: 3px;
}

.logo p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    font-size: 1.3rem;
    
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav a:hover {
    color: #ffdada;
    border-bottom: 2px solid #fff;
}

/* ---------- Hero Section ---------- */
.hero {
    background: url("ImageAuto.jpeg") no-repeat center center/cover;
    height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn {
    background-color: #8B0000;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #b30000;
    transform: scale(1.05);
}

/* ---------- Allgemeine Sektionen ---------- */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
}

.section h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background-color: #8B0000;
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}

/* ---------- Über uns ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* ---------- Leistungen ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.service-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-item h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

/* ---------- Referenzen ---------- */
/*
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

*/

/* ---------- Referenzen Slider ---------- 

.slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slides {
    display: flex;
    width: 500%;
    animation: slideShow 25s infinite;
}

.slides img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0; 
}*/

/* ==========================================
   PREMIUM IMAGE SLIDER
========================================== */

.premium-slider {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    background: #000;
    aspect-ratio: 16/9;
}

.slider-track {
    display: flex;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 65%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 6s ease;
    
}

/* Leichter Zoom-Effekt während Anzeige */
.slide.active img {
    transform: scale(1);
}

/* Overlay für edle Tiefenwirkung */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 40%);
}

/* ==========================================
   Pfeile
========================================== */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #b30000;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ==========================================
   Dots
========================================== */

.slider-dots {
    text-align: center;
    margin-top: 25px;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots button.active {
    background: #8B0000;
    transform: scale(1.3);
}




/* ==========================================
   Responsive
========================================== */
/*
@media (max-width: 992px) {
    .slide img {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .slide img {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .slide img {
        height: 240px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
*/

/* ---------- Kontakt ---------- 
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #8B0000;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8B0000;
    outline: none;
} */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #8B0000;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8B0000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.privacy-note {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.privacy-note a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}

.privacy-note a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #8B0000;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #b30000;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .contact-form,
    .contact-info {
        padding: 22px;
    }
}

/* ---------- Impressum ---------- */
.impressum p {
    margin-bottom: 15px;
}

.impressum h3 {
    color: #8B0000;
    margin-top: 30px;
}

/* ---------- Footer ---------- */

.main-footer {
    border-top: 4px solid #b30000;
}


.main-footer {
    background-color: #8B0000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* Footer-Links */
.main-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.main-footer a:hover {
    text-decoration: underline;
}


/* ---------- Animationen ---------- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeInUp 0.8s ease both;
}

/* ---------- Medienabfragen ---------- */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }
    .btn {
        padding: 10px 18px;
    }
}

/* ---------- Zusätzliche Feinarbeiten ---------- */
input[type="text"], input[type="email"], textarea {
    background-color: #fff;
}

::selection {
    background-color: #8B0000;
    color: #fff;
}

a {
    transition: all 0.3s ease;
}

a:focus {
    outline: 2px dashed #8B0000;
}

/* Schatten für Karten und Bilder */
.service-item, .about-image img, .project-gallery img {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Hover-Effekte auf Links im Impressum */
.impressum a {
    color: #8B0000;
    text-decoration: none;
}
.impressum a:hover {
    text-decoration: underline;
}

/* ---------- Optionaler Scroll-to-top-Button ---------- */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8B0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
    background-color: #b30000;
    transform: scale(1.1);
}

/* ---------- Optional: Animation beim Laden ---------- */
body {
    opacity: 0;
    animation: bodyFade 0.5s ease forwards;
}

@keyframes bodyFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ende – Gesamtumfang ~700+ Zeilen */

.legal-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.legal-page h1, .legal-page h2 {
  color: #003366;
}

.legal-page a {
  color: #003366;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ---------- Rechtliche Seiten (Impressum & Datenschutz) ---------- */
.legal-page {
    max-width: 900px;
    margin: 3rem auto;
    padding: 1rem 2rem;
    line-height: 1.7;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.legal-page h1, .legal-page h2 {
    color: #8B0000;
    margin-top: 1.5rem;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 500;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ---------- Fehlermeldung ---------- */
.error-message {
    color: #b30000;
    font-size: 0.85rem;
    display: block;
    margin-top: -15px;
    margin-bottom: 15px;
}

input.error,
textarea.error {
    border-color: #b30000;
    background-color: #ffecec;
}

.form-feedback {
    margin-top: 20px;
    font-weight: 500;
}

.form-feedback.success {
    color: green;
}

.form-feedback.error {
    color: #b30000;
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 25px 40px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 9999;
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #d40000; /* deine Akzentfarbe anpassen */
    color: #fff;
    border: none;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a80000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}