/* styles.css -für Heratex.ch */
:root {
    --gradient: linear-gradient(90deg, #5170ff, #ff66c4);
    --primary: #5170ff;
    --secondary: #ff66c4;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-gray: #666666;
    --body-bg: var(--white);
    --text-color: var(--dark-gray);
    --card-bg: var(--white);
    --card-shadow: rgba(0,0,0,0.08);
}

/* ===== BASIS-STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    padding-top: 82px; /* Höhe des Headers, um Überlappung zu vermeiden */
}

/* ===== HEADER & LOGO ===== */
#header {
    background: var(--gradient);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.logo img { 
    height: 50px; 
    display: block; 
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0) invert(1);
}
#header.scrolled { 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 0; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
}
#header.scrolled .logo img { 
    transform: scale(0.9); 
    filter: none;
}

/* ===== NAVIGATION & DROPDOWN ===== */
.header-container { display: flex; justify-content: space-between; align-items: center; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 1.5rem; position: relative; }
nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}
nav ul li a .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
#header.scrolled nav ul li a { color: var(--dark-gray); }
nav ul li a.active-link { font-weight: 700; }
#header.scrolled nav ul li a.active-link { color: var(--primary); }

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    color: var(--dark-gray);
    padding: 0.75rem 1.5rem;
    width: 100%;
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.hamburger {
    display: none; cursor: pointer; background: none; border: none;
    color: var(--white);
    font-size: 1.8rem; z-index: 1001;
}
#header.scrolled .hamburger { color: var(--primary); }

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
}
#header.scrolled .theme-toggle-btn {
    color: var(--dark-gray);
}

/* ===== HERO-SECTION (HOMEPAGE) ===== */
.hero {
    min-height: calc(100vh - 82px);
    background: var(--gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -82px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url(HeratexMigrosAltstettenNeumarkt.jpg) no-repeat center center/cover;
    opacity: 0.15;
}
.hero-content {
    position: relative; max-width: 600px; color: var(--white);
    animation: fadeInUp 1s ease-out;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 2.5rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 0.8rem 2rem; background: var(--white);
    color: var(--primary); border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn:hover, .btn:focus { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); margin-left: 1rem; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--white); color: var(--primary); }

/* ===== GENERAL SECTION STYLING ===== */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; position: relative; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.5rem); color: var(--dark-gray); }
.section-title h2::after {
    content: ''; position: absolute; width: 80px; height: 4px;
    background: var(--gradient); bottom: -15px; left: 50%;
    transform: translateX(-50%); border-radius: 2px;
}

/* ===== SERVICES SECTION (HOMEPAGE) ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.service-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.service-img { height: 220px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.1); }
.service-content { padding: 1.8rem; }
.service-content h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.service-content p { color: var(--text-gray); margin-bottom: 1.5rem; }

/* ===== ABOUT SECTION ===== */
.about { background: var(--light-gray); }
.about-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 2.5rem;
}
.about-images {
    flex: 1 1 40%; 
    min-width: 320px;
    display: flex;
    gap: 1.5rem;
}
.about-content {
    flex: 1 1 50%;
    min-width: 320px;
}
.about-logo-placeholder, .about-main-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== CONTACT SECTION & MODERN FORM ===== */
.contact { background-color: var(--light-gray); }
.contact-container { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4rem; }
.contact-info, .contact-form-wrapper { flex: 1; min-width: 300px; }


.contact-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--white);
}
.contact-portrait img {
    width: auto;
    height: 180%;
    object-fit: cover; /* Diese Regel sorgt dafür, dass das Bild den Kreis ausfüllt */
}

/* Container für die vertikale Anordnung des QR-Codes und des Textlinks */
.instagram-links {
    display: flex;
    flex-direction: column; /* Stapelt die Elemente vertikal */
    align-items: center; /* Zentriert die Elemente horizontal */
    margin-top: 2px; /* Fügt einen kleinen Abstand zur H4-Überschrift hinzu */
}

/* Skaliert das QR-Code-Bild auf die gewünschte Größe */
.insta-qr-icon {
    width: 120px;
    height: 120px;
}

/* Stellt sicher, dass die Überschrift einen sauberen unteren Abstand hat */
.contact-text h4 {
    margin-bottom: 0;
}
/* Styles für die Google-Bewertungssterne */
.stars {
    display: flex; /* Ordnet die Sterne nebeneinander an */
    gap: 2px; /* Fügt einen kleinen Abstand zwischen den Sternen hinzu */
}

.stars i.fas.fa-star {
    color: #fbbc05; /* Google Goldfarbe */
}

.contact-info h3 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
.contact-info > p { text-align: center; margin-bottom: 1.5rem;}
.contact-details { margin-top: 2rem; }
.contact-item { display: flex; align-items: center; margin-bottom: 1.5rem; }
.contact-icon {
    width: 50px; height: 50px; background: var(--gradient);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 1.5rem; color: var(--white); font-size: 1.2rem; flex-shrink: 0;
}
.contact-text h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.contact-text p { color: var(--text-gray); }

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.honeypot {
    display: none;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-gray); }
.form-control {
    width: 100%; padding: 0.9rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 8px; font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--light-gray);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(81, 112, 255, 0.2);
    background-color: var(--white);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.submit-btn {
    width: 100%;
    background: var(--gradient); color: var(--white); border: none;
    padding: 1rem 2rem; border-radius: 8px;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.submit-btn:hover, .submit-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(81, 112, 255, 0.25);
}

/* ===== STYLES FOR SUBPAGES & LEGAL PAGES ===== */
.page-header {
    background: var(--light-gray);
    text-align: center;
    padding: 4rem 0;
}
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 0.5rem; }
.page-header p { font-size: 1.2rem; color: var(--text-gray); }

.page-content { padding: 5rem 0; }
.content-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}
.content-text { flex: 1; min-width: 300px; }
.content-text h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.content-text p, .content-text ul { margin-bottom: 1.5rem; color: var(--text-gray); }
.content-text ul { padding-left: 1.2rem; }
.content-text .btn { margin-top: 1.5rem; }
.content-image { flex: 1; min-width: 300px; }
.content-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.legal-content h2, .price-category h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}
.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}
.legal-content p, .legal-content ul {
    margin-bottom: 1rem;
}
.legal-content ul {
    padding-left: 1.5rem;
}
.price-category:first-child h2 {
    margin-top: 0;
}

/* NEUE STILE FÜR DANKE/FEHLER SEITEN */
.feedback-page {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}
.feedback-page .icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}
.feedback-page .icon.success {
    color: #22c55e; /* green-500 */
}
.feedback-page .icon.error {
    color: #ef4444; /* red-500 */
}
.feedback-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}
.feedback-page p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}
.feedback-page .btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
}

/* ===== PRICE LIST PAGE ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.price-table th, .price-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}
.price-table thead {
    background-color: var(--light-gray);
}
.price-table th {
    font-weight: 600;
    color: var(--dark-gray);
}
.price-table tbody tr {
    transition: background-color 0.3s ease; /* Sanfter Übergang für den Hover-Effekt */
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}
.price-table tbody tr:hover {
    background-color: #eef2ff; /* Heller Blauton zum Hervorheben */
    cursor: pointer;
}
.price-info {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-gray);
}

/* ===== FOOTER ===== */
footer { background: var(--dark-gray); color: var(--white); padding: 4rem 0 1.5rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-col p, .footer-links li { color: #bbb; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #bbb; font-size: 0.9rem; }
.footer-bottom a { color: var(--white); }

/* ===== ANIMATIONS & RESPONSIVE ===== */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    main { padding-top: 74px; }
    .hamburger { display: block; }
    nav {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: var(--white); transition: transform 0.4s;
        z-index: 999; padding: 6rem 2rem 2rem;
        display: flex; flex-direction: column; justify-content: center;
    }
    nav.active { transform: translateX(100%); }
    nav ul { flex-direction: column; text-align: center; }
    nav ul li { margin: 0; }
    nav ul li a, #header.scrolled nav ul li a { font-size: 1.5rem; color: var(--dark-gray); }
    
    /* Mobile Dropdown Styles */
    .dropdown .dropdown-menu {
        display: none;
        position: static;
        background: none;
        box-shadow: none;
        padding-left: 2rem;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        font-size: 1.2rem;
        color: var(--text-gray);
        padding: 0.8rem 0;
    }

    .content-container, .contact-container { 
        flex-direction: column; 
    }
    .about-images, .content-image { 
        order: -1; 
    }
}

/* =============================================== */
/* ===== MANUAL DARK MODE STYLES ===== */
/* =============================================== */
body.dark-mode {
    --white: #181a1b;
    --light-gray: #24282a;
    --medium-gray: #3a4043;
    --dark-gray: #e8e6e3;
    --text-gray: #b0b0b0;
    --body-bg: #181a1b;
    --text-color: #e8e6e3;
    --card-bg: #24282a;
    --card-shadow: rgba(0,0,0,0.2);
}

body.dark-mode #header.scrolled {
    background: rgba(36, 40, 42, 0.85);
}
body.dark-mode #header.scrolled .logo img {
    filter: brightness(0) invert(1);
}
body.dark-mode .dropdown-menu {
    background-color: #2a2e30;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
body.dark-mode .dropdown-menu li a:hover {
    background-color: var(--medium-gray);
}
body.dark-mode .service-card, 
body.dark-mode .contact-form, 
body.dark-mode .about-logo-placeholder, 
body.dark-mode .about-main-image, 
body.dark-mode .content-image img, 
body.dark-mode .price-table {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--card-shadow);
}
body.dark-mode .price-table tbody tr:hover {
    background-color: #2c3133;
}
body.dark-mode .form-control {
    background-color: #2a2e30;
    border-color: var(--medium-gray);
    color: var(--dark-gray);
}
body.dark-mode .form-control:focus {
    background-color: #181a1b;
    box-shadow: 0 0 0 3px rgba(81, 112, 255, 0.3);
}
body.dark-mode .feedback-page .icon.success { color: #4ade80; }
body.dark-mode .feedback-page .icon.error { color: #f87171; }
body.dark-mode .page-header,
body.dark-mode .about,
body.dark-mode .contact {
    background-color: var(--light-gray);
}
