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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0a5f38;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* Header & Navigation */
header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a5f38;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.813rem;
    color: #1565c0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.938rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: #0a5f38;
}

.nav-links a:focus {
    outline: 2px solid #0a5f38;
    outline-offset: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a5f38 0%, #0d7d4a 50%, #1565c0 100%);
    color: white;
    padding: 96px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 80px, rgba(255, 255, 255, 0.03) 81px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 80px, rgba(255, 255, 255, 0.03) 81px);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-lead {
    font-size: clamp(1.063rem, 2vw, 1.25rem);
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge svg {
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #0a5f38;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:focus {
    outline: 3px solid white;
    outline-offset: 4px;
}

/* Sections */
section {
    padding: 80px 24px;
}

section h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #0a5f38;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin-bottom: 56px;
}

/* Leistungen Section */
.leistungen {
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid transparent;
}

.service-card:nth-child(odd) {
    border-top-color: #0a5f38;
}

.service-card:nth-child(even) {
    border-top-color: #1565c0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.938rem;
}

/* Über uns Section */
.ueber-uns {
    background: white;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

.about-content .lead {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.qual-item {
    background: #f8f9fa;
    padding: 28px;
    border-radius: 8px;
    border-left: 4px solid #1565c0;
}

.qual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.qual-header svg {
    color: #1565c0;
    flex-shrink: 0;
}

.qual-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.qual-item p {
    color: #555;
    line-height: 1.6;
}

.training-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.training-list li {
    color: #555;
    padding-left: 24px;
    position: relative;
}

.training-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1565c0;
    font-weight: 700;
}

/* Logos Section */
.logos-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.logo-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: border-color 0.2s;
}

.logo-box:hover {
    border-color: #0a5f38;
}

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

.logo-placeholder span {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #0a5f38;
    margin-bottom: 4px;
}

.logo-placeholder small {
    display: block;
    font-size: 0.75rem;
    color: #777;
    line-height: 1.3;
}

/* Referenzen Section */
.referenzen {
    background: #f8f9fa;
}

.referenzen-placeholder {
    background: white;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    color: #777;
}

.referenzen-placeholder svg {
    color: #d0d0d0;
    margin-bottom: 16px;
}

.referenzen-placeholder p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Kontakt Section */
.kontakt {
    background: white;
}

.kontakt-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

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

.info-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a5f38;
}

.info-block p {
    color: #555;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item svg {
    color: #1565c0;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.kontakt-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0a5f38;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.938rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a5f38;
}

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

.form-button {
    background: linear-gradient(135deg, #0a5f38 0%, #0d7d4a 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: flex-start;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(10, 95, 56, 0.3);
}

.form-button:focus {
    outline: 3px solid #0a5f38;
    outline-offset: 4px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #d0d0d0;
    padding: 56px 24px 24px;
}

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

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.938rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #0d7d4a;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1.5fr 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 0.875rem;
    }

    .hero {
        padding: 64px 24px 56px;
    }

    section {
        padding: 56px 24px;
    }

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

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        justify-content: flex-start;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
