/*
Theme Name: SV Volkelt
Theme URI: https://sv-volkelt.de
Author: SV Volkelt
Author URI: https://sv-volkelt.de
Description: WordPress-Theme für SV-Volkelt – Geprüfter Sachverständiger für Schäden an Gebäuden. Originalgetreu nach dem Contao-Theme nachgebaut.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sv-volkelt
*/

/* =========================================
   CSS-VARIABLEN (Original-Farben aus Contao)
   ========================================= */
:root {
    --color-brand:        #1569A6;
    --color-brand-dark:   #003860;
    --color-brand-sec:    #00378B;
    --color-text:         #555555;
    --color-dark:         #554236;
    --color-gray-light:   #C6C6C6;
    --color-nav-bg:       #003860;
    --color-nav-hover:    #1569A6;
    --color-footer-bg:    #002848;
    --font-sans:          'Roboto', Arial, Helvetica, sans-serif;
    --font-serif:         'Roboto Slab', Georgia, 'Times New Roman', serif;
    --radius:             4px;
    --transition:         0.25s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
#site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--color-nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
}

.site-logo img {
    height: 64px;
    width: auto;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* Desktop-Menü */
#main-nav ul { display: flex; }

#main-nav ul li a {
    display: block;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
    border-bottom: 3px solid transparent;
}

#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a {
    background: var(--color-brand);
    border-bottom-color: #fff;
}

/* =========================================
   HERO
   ========================================= */
#startseite {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    color: #fff;
}

#startseite::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,38,72,0.72) 0%, rgba(21,105,166,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 24px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.btn-hero {
    display: inline-block;
    background: var(--color-brand);
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.btn-hero:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
}

/* =========================================
   SECTION SHARED
   ========================================= */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.section-divider {
    width: 56px; height: 4px;
    background: var(--color-brand);
    margin: 0 auto 44px;
    border-radius: 2px;
}

/* =========================================
   LEISTUNGSUMFANG
   ========================================= */
#service { background: #f4f7fb; }

.service-intro {
    max-width: 820px;
    margin: 0 auto 50px;
    text-align: left;
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-brand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.service-intro ul {
    list-style: disc;
    padding-left: 1.4rem;
    color: var(--color-text);
}

.service-intro ul li {
    list-style: disc;
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

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

.service-card-body { padding: 22px 24px; }

.service-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* =========================================
   REFERENZEN
   ========================================= */
#referenzen { background: #fff; }

.ref-intro {
    text-align: center;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: #eee;
}

.gallery-item img {
    width: 100%; height: 185px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,38,72,0.78);
    color: #fff;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Lightbox-Overlay */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 88vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 2.5rem; cursor: pointer;
    line-height: 1; background: none; border: none;
    opacity: 0.85; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* =========================================
   ÜBER UNS
   ========================================= */
#unternehmen { background: #f4f7fb; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--color-brand-dark);
    margin-bottom: 22px;
}

.about-text ul { margin-bottom: 20px; }

.about-text ul li {
    padding: 7px 0 7px 28px;
    position: relative;
    color: var(--color-text);
    border-bottom: 1px solid #e4eaf2;
}

.about-text ul li::before {
    content: '✔';
    position: absolute; left: 0;
    color: var(--color-brand);
    font-weight: 700;
    font-size: 0.85rem;
    top: 9px;
}

.about-highlight {
    display: inline-block;
    background: var(--color-brand);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 16px;
}

.about-image { text-align: center; }

.about-image img {
    border-radius: var(--radius);
    width: 260px; height: 320px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.about-image figcaption {
    margin-top: 14px;
    font-weight: 700;
    color: var(--color-brand-dark);
    font-size: 1rem;
}

.about-image figcaption small {
    display: block;
    font-weight: 400;
    color: var(--color-text);
    font-size: 0.85rem;
}

.cert-wrap {
    margin-top: 44px;
    text-align: center;
}

.cert-wrap img {
    max-width: 180px;
    margin: 0 auto;
    border: 2px solid var(--color-gray-light);
    padding: 10px;
    background: #fff;
    border-radius: var(--radius);
}

/* =========================================
   KONTAKT
   ========================================= */
#kontakt { background: #fff; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form .form-row { margin-bottom: 18px; }

.contact-form label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 5px;
    color: var(--color-brand-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(21,105,166,0.15);
    background: #fff;
}

.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .honeypot { display: none !important; }

.btn-submit {
    background: var(--color-brand);
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
    background: var(--color-brand-dark);
    transform: translateY(-1px);
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-brand-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-brand);
}

.contact-info address {
    font-style: normal;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-info .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.contact-info a { color: var(--color-brand); }
.contact-info a:hover { text-decoration: underline; }

.contact-success {
    background: #d4edda;
    border: 1px solid #b8dfc4;
    color: #155724;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-weight: 600;
}

/* =========================================
   LINKS
   ========================================= */
#links {
    background: var(--color-brand-dark);
    color: #fff;
}

#links .section-title { color: #fff; }
#links .section-divider { background: rgba(255,255,255,0.4); }

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 10px;
}

.links-list a {
    color: #7ecde8;
    font-weight: 700;
    font-size: 1rem;
    transition: color var(--transition);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.links-list a:hover { color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
    background: var(--color-footer-bg);
    color: #aab8c8;
    text-align: center;
    padding: 22px 20px;
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-bottom a { color: #7ecde8; transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* =========================================
   UNTERSEITEN (Datenschutz / Impressum)
   ========================================= */
.page-content-wrap {
    max-width: 900px;
    margin: 110px auto 70px;
    padding: 0 24px;
}

.page-content-wrap h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-brand-dark);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-brand);
}

.page-content-wrap h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-brand-dark);
    margin: 32px 0 12px;
}

.page-content-wrap h3 {
    font-size: 1.05rem;
    color: var(--color-brand);
    margin: 22px 0 8px;
    font-weight: 700;
}

.page-content-wrap h4 {
    font-size: 0.95rem;
    color: var(--color-brand-dark);
    margin: 16px 0 6px;
    font-weight: 700;
}

.page-content-wrap p {
    margin-bottom: 14px;
    color: var(--color-text);
    line-height: 1.75;
}

.page-content-wrap ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 14px;
}

.page-content-wrap ul li {
    margin-bottom: 7px;
    color: var(--color-text);
    line-height: 1.65;
}

.page-content-wrap a { color: var(--color-brand); }
.page-content-wrap a:hover { text-decoration: underline; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-image { order: -1; }
    .about-image img { width: 200px; height: 240px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--color-nav-bg);
        border-top: 2px solid var(--color-brand);
        z-index: 999;
    }
    #main-nav.open { display: block; }
    #main-nav ul { flex-direction: column; }
    #main-nav ul li a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .section-inner { padding: 60px 20px; }
    .section-title { font-size: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .header-inner { padding: 8px 16px; }
    .site-logo img { height: 48px; }
}
