/* 
 * Hammer Landtechnik - Stylesheet
 * Farben: #239525 (Primary), #0e3f0d (Dark Green), #f4f4f4 (Light Grey)
 */

:root {
    --color-primary: #239525;
    --color-primary-hover: #1b7a1d;
    --color-dark: #0e3f0d;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f4f4f4;
    --color-white: #ffffff;
    --border-radius: 4px;
    --spacing-section: 4rem;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* RESET & BASIS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* LAYOUT UTILITIES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-dark); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }

/* TYPOGRAPHIE */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0.5rem auto 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-outline-dark {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* HEADER */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 110px; /* Logo vergrößert für bessere Lesbarkeit */
    width: auto;
    vertical-align: middle;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* SUBMENU */
.main-nav .submenu {
    display: none;
    list-style: none;
    padding-left: 1rem; /* Leichte Einrückung für bessere Optik */
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
}

.main-nav .submenu a {
    font-size: 0.9rem;
    font-weight: 400;
}

.main-nav li a.active + .submenu {
    display: flex;
}

.submenu a.active-submenu {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
}

/* HERO SECTION */
.hero {
    background-color: var(--color-dark);
    /* Optional: Linear Gradient für mehr Tiefe */
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a5c1b 100%);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.hero-home {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner1.jpg');
    background-size: cover;
    background-position: center;
}

.hero-shop {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.8) 0%, rgba(26, 92, 27, 0.7) 100%), url('../assets/set_AiO_Keya.jpg');
    background-size: cover;
    background-position: center;
}

.hero-solutions {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner2.jpg');
    background-size: cover;
    background-position: center;
}

.hero-technology {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner3.jpg');
    background-size: cover;
    background-position: center;
}

.hero-benefits {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner4.jpg');
    background-size: cover;
    background-position: center;
}

.hero-company {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner5.jpg');
    background-size: cover;
    background-position: center;
}

.hero-gallery {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/Banner6.jpg');
    background-size: cover;
    background-position: center;
}

.hero-contact {
    /* Hintergrundbild mit Overlay für Lesbarkeit */
    background: linear-gradient(135deg, rgba(14, 63, 13, 0.7) 0%, rgba(26, 92, 27, 0.4) 100%), url('../assets/set_AiO_Reibrad_groß.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero .subline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content > :last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* INTRO SECTION */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* GRIDS */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* VORTEILE CARDS */
.benefit-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

/* LÖSUNGEN CARDS */
.solution-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 2rem;
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.text-link:hover {
    text-decoration: underline;
}

/* TECH & TRUST */
.align-center {
    align-items: center;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.check-icon {
    color: var(--color-primary); /* Helles Grün auf dunklem Grund */
    color: #50cc50;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* CTA BANNER */
.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* FOOTER */
.site-footer {
    background-color: var(--color-dark);
    color: #c5d0a9; /* Helles Grün-Grau für Text */
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #839288;
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .header-cta {
        display: none; /* Auf Mobile Platz sparen, CTA ist im Hero */
    }

    .logo img {
        max-height: 80px; /* Etwas kompakter auf Mobilgeräten */
    }

    h1 { font-size: 2rem; }
    
    .hero { padding: 4rem 0; }
}

/* DESKTOP SIDEBAR LAYOUT (ab 992px) */
@media (min-width: 992px) {
    body {
        padding-left: 240px; /* Platz für die linke Sidebar schaffen */
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 240px;
        height: 100vh; /* Volle Höhe */
        padding: 2rem 1.5rem;
        border-right: 1px solid #e0e0e0;
        overflow-y: auto; /* Scrollbar, falls Fenster zu klein für Menü */
    }

    .site-header .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .header-container {
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
        gap: 2rem;
        flex-wrap: nowrap;
    }

    .logo a {
        justify-content: center;
    }

    .logo img {
        max-height: 140px; /* Hier darf das Logo schön groß sein */
        margin-bottom: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .header-cta {
        margin-top: auto; /* Schiebt den Button ganz nach unten */
        width: 100%;
        text-align: center;
    }
    
    .header-cta .btn {
        width: 100%;
    }
}

/* ERWEITERUNGEN FÜR UNTERSEITEN */
.main-nav a.active {
    color: var(--color-primary);
    font-weight: 700;
}

.content-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-list li {
    margin-bottom: 0.5rem;
}

h4 {
    margin-top: 1.5rem;
    color: var(--color-dark);
}

h5 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* BILDER & CAPTIONS */
.tech-figure {
    margin: 0 0 2rem 0;
    background: var(--color-white);
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.tech-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.tech-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-top: 0.5rem;
    font-style: italic;
}

/* TIMELINE (UNTERNEHMEN) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.timeline-content {
    border-left: 3px solid #e0e0e0;
    padding-left: 2rem;
    padding-bottom: 1rem;
}

/* FORMULARE */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* GALERIE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
