/*
 * SIMA Gebäudereinigung – Shared Stylesheet
 * Modern, premium design: Navy + Gold
 * Fonts: Playfair Display (headings) + DM Sans (body)
 */

:root {
    --navy:       #0f1f3d;
    --navy-light: #1a3260;
    --gold:       #c8a96e;
    --gold-light: #e8d5a3;
    --white:      #ffffff;
    --off-white:  #f7f5f0;
    --gray-light: #e8e4dc;
    --gray-mid:   #9a9590;
    --text-dark:  #1a1814;
    --text-mid:   #4a4640;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.section-padding { padding: 5rem 2rem; }
.bg-light { background: var(--off-white); }
.text-center { text-align: center; }
.eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.section-title--light { color: var(--white); }
.section-subtitle {
    color: var(--text-mid);
    font-size: 1rem;
    font-weight: 300;
    max-width: 580px;
    line-height: 1.8;
}
.section-subtitle--light { color: rgba(255,255,255,0.55); }
.mt-50 { margin-top: 3rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--white);
    background: transparent;
    padding: 14px 34px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    padding: 13px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
}
.navbar.page-header,
.navbar.scrolled {
    background: rgba(15,31,61,0.97);
    box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
}
.logo-img { height: 40px; width: auto; }
.nav-toggle { display: none; }
.nav-menu ul { display: flex; list-style: none; gap: 2.5rem; }
.nav-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 4px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a.active { color: var(--gold); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block; width: 24px; height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.3s;
}
.nav-toggle-label span::before { content: ''; position: absolute; top: -8px; }
.nav-toggle-label span::after  { content: ''; position: absolute; top: 8px; }

/* ── PAGE TITLE (sub-pages) ── */
.page-title-section {
    background: var(--navy);
    padding: 9rem 2rem 4rem;
    text-align: center;
}
.page-title-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}
.page-title-section p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto;
}
.page-title-section .gold-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 1.2rem auto 0;
}

/* ── FOOTER ── */
.footer {
    background: #080f1e;
    padding: 4rem 2rem 0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-about p {
    color: rgba(255,255,255,0.42);
    font-size: 0.87rem;
    line-height: 1.85;
    margin-top: 1rem;
    font-weight: 300;
}
.footer-links h3 {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.87rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.social-links { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-links a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p,
.footer-bottom a {
    color: rgba(255,255,255,0.28);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--gold); }

/* ── WHATSAPP WIDGET ── */
.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; }
.chat-button {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.55rem; color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s;
}
.chat-button:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── ABOUT PAGE ── */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.about-image { position: relative; }
/* Show full image without cropping */
.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.experience-badge {
    position: absolute;
    bottom: -1.5rem; right: -1.5rem;
    background: var(--gold);
    padding: 1.4rem 1.8rem;
    text-align: center;
}
.experience-badge .number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
}
.experience-badge .text {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}
.about-text .subtitle {
    font-size: 1.05rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1.2rem;
}
.about-text p {
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-weight: 300;
}
.check-list { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--text-mid);
    font-weight: 400;
}
.check-list i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ── SERVICES GRID (Über uns) ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.service-content { padding: 1.5rem; }
.service-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}
.service-content p {
    font-size: 0.87rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 300;
}

/* ── GALLERY ── */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.mySlides { display: none; position: relative; }
.mySlides img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    cursor: zoom-in;
}
.slide-number {
    position: absolute;
    bottom: 1rem; right: 1rem;
    background: rgba(15,31,61,0.7);
    color: var(--gold-light);
    font-size: 0.8rem;
    padding: 4px 12px;
    letter-spacing: 0.05em;
}
.fade { animation: galFade 0.6s ease; }
@keyframes galFade { from { opacity: 0.4; } to { opacity: 1; } }
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    background: rgba(15,31,61,0.7);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    user-select: none;
}
.slideshow-prev { left: 0; }
.slideshow-next { right: 0; }
.slideshow-prev:hover,
.slideshow-next:hover { background: var(--navy); }
.slideshow-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gray-light);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.slideshow-dot.active { background: var(--gold); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.gallery-item {
    overflow: hidden;
    background: #000;
}
.gallery-item video { width: 100%; display: block; }

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(8,15,30,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.close-lightbox {
    position: absolute;
    top: 1.5rem; right: 2rem;
    color: var(--gold);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ── CONTACT PAGE ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.info-block {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.info-block i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 40px; height: 40px;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-block h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.info-block p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    font-weight: 300;
}
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--gray-light);
}
.contact-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.8rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    background: var(--off-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.3s, background 0.3s;
    outline: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group-row { display: grid; grid-template-columns: 140px 1fr; gap: 0.8rem; }
.flex-grow { flex: 1; }
.form-status {
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    display: none;
}
.form-status.success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #4caf50; }
.form-status.error { background: #fde8e8; color: #c62828; border-left: 3px solid #e53935; }

/* ── MAP ── */
.map-container { margin-top: 4rem; }
.map-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
}
#map { height: 400px; border: 1px solid var(--gray-light); }

/* ── FAQ ── */
.faq-accordion { margin-top: 2.5rem; }
.faq-item {
    border-bottom: 1px solid var(--gray-light);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.3rem 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.open .faq-question { color: var(--gold); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p {
    padding: 0 0 1.4rem;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.8;
    font-weight: 300;
}

/* ── IMPRESSUM / DATENSCHUTZ ── */
.impressum h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}
.impressum h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.impressum h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.impressum p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0.8rem;
}
.impressum strong { color: var(--text-dark); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .nav-toggle-label { display: block; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px; left: 0; right: 0; bottom: 0;
        background: rgba(15,31,61,0.98);
        padding: 2.5rem 2rem;
        overflow-y: auto;
    }
    .nav-toggle:checked ~ .nav-menu { display: flex; align-items: flex-start; }
    .nav-menu ul { flex-direction: column; gap: 1.5rem; }
    .nav-menu a { font-size: 1.1rem; }

    .about-container { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-about { grid-column: 1 / -1; }
    .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .section-padding { padding: 4rem 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .form-group-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-title-section { padding: 7rem 1.5rem 3rem; }
}
