/* === KSG - Kehdinger Sanierungs GmbH === */
:root {
    --primary: #1a2332;
    --accent: #A9D3A2;
    --text: #4a4a4a;
    --light: #f8f9fa;
    --white: #ffffff;
    --dark: #111827;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.3;
}

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

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

/* === HEADER / NAV === */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #8ec286;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169,211,162,0.4);
}

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

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

.nav-cta {
    margin-left: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === HERO SIMPLE === */
.hero-simple {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary), #2c3e50);
    padding: 120px 0 100px;
    text-align: center;
    color: var(--white);
}

.hero-simple h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-simple p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* === PAGE HERO (mit Hintergrundbild) === */
.page-hero {
    margin-top: 80px;
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 35, 50, 0.65);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(169,211,162,0.15);
    color: var(--accent);
    font-size: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* === ABOUT / ÜBER UNS === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-images img {
    border-radius: var(--radius);
    object-fit: cover;
    height: 320px;
    width: 100%;
    box-shadow: var(--shadow);
}

.about-images img:first-child {
    margin-top: 40px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.team-member .star {
    color: var(--accent);
    font-size: 24px;
}

.team-member h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.team-member span {
    font-size: 0.9rem;
    color: var(--text);
}

/* === TEAM GRID === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    border: 4px solid var(--accent);
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-card span {
    font-size: 0.95rem;
    color: var(--text);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-card img {
        width: 180px;
        height: 180px;
    }
}

/* === LEISTUNGEN DETAIL === */
.leistungen-hero {
    background: linear-gradient(135deg, var(--primary), #2c3e50);
    padding: 160px 0 80px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.leistungen-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.leistungen-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.leistung-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.leistung-detail:nth-child(even) {
    direction: rtl;
}

.leistung-detail:nth-child(even) > * {
    direction: ltr;
}

.leistung-detail + .leistung-detail {
    border-top: 1px solid #eee;
}

.leistung-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.leistung-text h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.leistung-text p {
    margin-bottom: 12px;
}

.leistung-text ul {
    list-style: none;
    padding: 0;
}

.leistung-text ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.leistung-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.leistung-visual {
    background: var(--light);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.leistung-visual .big-icon {
    font-size: 120px;
    opacity: 0.15;
    color: var(--accent);
}

/* === KONTAKT === */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.kontakt-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.kontakt-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(169,211,162,0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kontakt-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.kontakt-item p, .kontakt-item a {
    font-size: 0.95rem;
    color: var(--text);
}

.kontakt-item a:hover {
    color: var(--accent);
}

/* Form */
.kontakt-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(169,211,162,0.25);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* Map */
.map-section {
    margin-top: 60px;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-consent {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    background: var(--light);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-consent-inner {
    text-align: center;
    padding: 24px;
}

.map-consent-inner p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

.map-consent-inner a {
    color: var(--accent);
    text-decoration: underline;
}

/* === IMPRESSUM === */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content .company-data {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    margin: 24px 0;
    line-height: 2;
}

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item .icon {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        order: -1;
    }

    .leistung-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .leistung-detail:nth-child(even) {
        direction: ltr;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        align-items: flex-start;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-cta {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .section {
        padding: 60px 0;
    }

    .about-images img {
        height: 200px;
    }

    .about-images img:first-child {
        margin-top: 0;
    }

    .leistung-visual {
        padding: 40px;
        min-height: 200px;
    }
}
