/* =========================================
   GRUNDLEGENDES STYLING (KUBOTA-DESIGN)
   ========================================= */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #212934;
    background-color: #f8f9fa;
}

/* Navigation - Im dunklen Kubota-Blau/Anthrazit */
nav {
    background: #212934; 
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #f36d21; /* Kubota Orange Trennlinie */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f36d21; /* Orangefarbener Hover-Effekt */
}

/* Header / Startseite - Starkes Kubota Orange */
header {
    background: #f36d21;
    color: white;
    padding: 40px 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Sektionen & Layout */
section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    color: #212934;
    border-left: 8px solid #f36d21; /* Markanter Akzentstreifen */
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* =========================================
   MASCHINEN-KARTEN MIT BILDERN (FLEXBOX)
   ========================================= */
.maschine-card {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 5px solid #f36d21; /* Orange Kante oben */
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex; 
    overflow: hidden; 
    min-height: 200px; /* Garantiert eine schöne Grundhöhe, wächst bei viel Text aber flexibel mit */
}

.maschine-bild {
    flex: 0 0 300px; /* Das Bild bleibt links exakt 300px breit */
    width: 300px;
    align-self: stretch; /* Zwingt das Bild, immer exakt so hoch zu sein wie die Karte */
}

.maschine-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert Verzerrungen */
    display: block;
}

.maschine-info {
    flex: 1; /* Nimmt sich den restlichen Platz rechts */
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.maschine-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #212934;
    font-size: 1.4rem;
}

.maschine-info p {
    margin: 0 0 15px 0;
}

/* Der Details-Button passend zum Kubota-Style */
.btn-details {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 16px;
    background: #f36d21;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-details:hover {
    background: #d4591a;
}

/* Preisliste Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

table th {
    background-color: #212934;
    color: #f36d21;
    padding: 15px;
    text-transform: uppercase;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Kontaktformular & Buttons */
form {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

input, select, textarea {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 10px;
    padding: 15px 30px;
    background: #f36d21;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s;
}

button:hover {
    background: #d4591a;
}

/* =========================================
   FOOTER 
   ========================================= */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 20px 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 40px; 
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f36d21;
}

.footer-copy {
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

/* Für Smartphones: Bild wandert sauber über den Text */
@media (max-width: 650px) {
    .maschine-card {
        flex-direction: column;
    }
    .maschine-bild {
        width: 100%;
        flex: 0 0 200px;
        height: 200px;
    }
}