/* ===================================
   S.H Baudienstleistungen - Styles
   ================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #4caf50;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

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

/* ===================================
   Sticky Contact Bar
   ================================ */

.contact-bar {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-bar-item {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-bar-item:hover {
    opacity: 0.8;
}

.contact-bar-item i {
    font-size: 16px;
}

.contact-bar-item.cta-button {
    background: var(--white);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* ===================================
   Header & Navigation
   ================================ */

.header {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 44px;
    z-index: 999;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* ===================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

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

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* ===================================
   Sections
   ================================ */

section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

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

/* ===================================
   Services Section
   ================================ */

.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===================================
   Why Us Section
   ================================ */

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

.feature {
    text-align: center;
}

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

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
}

/* ===================================
   Projects Preview Section
   ================================ */

.projects-preview {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.projects-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.projects-preview .container {
    position: relative;
    z-index: 3;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: var(--white);
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===================================
   CTA Section
   ================================ */

.cta {
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.cta .container {
    position: relative;
    z-index: 3;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   Page Header
   ================================ */

.page-header {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.slogan {
    font-size: 22px;
    color: var(--accent-color);
    font-weight: 600;
}

/* ===================================
   Services Detail
   ================================ */

.services-detail {
    background: var(--bg-light);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.service-item {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.service-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 50px;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-content h3 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   CTA Box
   ================================ */

.cta-box {
    background: var(--white);
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-box p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===================================
   About Page
   ================================ */

.about-content {
    padding: 80px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-intro h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.values-section,
.process-section,
.service-area {
    margin-bottom: 60px;
}

.values-section h2,
.process-section h2,
.service-area h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

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

.value-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

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

.value-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
}

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

.process-step {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.process-step p {
    color: var(--text-light);
}

.service-area {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.service-area p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-area strong {
    color: var(--accent-color);
}

/* ===================================
   References Page
   ================================ */

.references {
    padding: 80px 0;
}

.references-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.reference-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    gap: 30px;
    transition: all 0.3s;
}

.reference-card:hover {
    box-shadow: var(--shadow-hover);
}

.reference-image {
    flex: 0 0 400px;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-content {
    padding: 30px;
    flex: 1;
}

.reference-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.reference-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   Contact Page
   ================================ */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
    color: var(--accent-color);
    min-width: 40px;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-note {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.contact-note i {
    color: var(--accent-color);
    font-size: 18px;
    margin-top: 3px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.form-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.map-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.map-note {
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-note i {
    color: var(--accent-color);
}

/* ===================================
   Legal Pages
   ================================ */

.legal-content {
    padding: 80px 0;
}

.legal-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legal-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-box h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.legal-box h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.legal-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.legal-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-box li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 8px;
}

.legal-box a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-box a:hover {
    text-decoration: underline;
}

.legal-note {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
    margin-top: 30px;
}

/* ===================================
   Footer
   ================================ */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-address {
    font-style: normal;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
}

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

.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* ===================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    /* Contact Bar */
    .contact-bar-item span {
        display: none;
    }

    /* Header */
    .header {
        top: 40px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero-bg,
    .projects-bg,
    .cta-bg {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* References */
    .reference-card {
        flex-direction: column;
    }

    .reference-image {
        flex: 0 0 auto;
        height: 250px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    /* Legal */
    .legal-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .logo-img {
        height: 36px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* FIX: Logo im weißen Header sichtbar */
.logo-img{filter:none !important;}
