/*
 * Global Styles for the ANC Automobile website.
 * This stylesheet defines a clean, modern look with a limited color palette
 * and responsive layout to ensure usability on both desktop and mobile devices.
 */

/* Basic resets and typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Verwende die elegante Schriftart Outfit in einem besonders dünnen Gewicht für den Fliesstext */
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    /* Haupttextfarbe in dunklem Blau angelehnt an das Visitenkarten‑Design */
    color: #263658;
    /* Helle, leicht beige Hintergrundfarbe angelehnt an die Visitenkarte */
    background-color: #F8F0EB;
}

a {
    color: #263658; /* Dunkles Blau aus dem Logo */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1B2E4C;
}

/* Container for layout constraints */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Heading styling */
h1, h2, h3, h4, h5, h6 {
    /* Stärkere Gewichtung der Überschriften für klare Hierarchie */
    font-weight: 500;
    /* Einheitliche Farbe für Überschriften entsprechend der Unternehmensfarben */
    color: #263658;
}

/* Header and navigation */
header {
    /* Navigationbar mit dunklem Hintergrund im Farbton des Logos */
    background-color: #263658;
    border-bottom: 1px solid #1B2E4C;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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


/* Logo styling */
.logo-img {
    height: 50px;
    width: auto;
}

/* Logo invertieren, wenn es im Header auf dunklem Hintergrund erscheint */
header .logo-img {
    /* Invertiert die Farben des SVG-Logos, damit es auf dunklem Hintergrund sichtbar bleibt */
    filter: brightness(0) invert(1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav li {
    font-size: 1rem;
}

nav a {
    padding: 10px 0;
    /* Navigationslinks leicht verstärkt damit sie sich vom Fliesstext abheben */
    font-weight: 400;
    /* Helle Schriftfarbe für die dunkelblaue Navigationsleiste */
    color: #F8F0EB !important;
}

nav a:hover {
    /* Beim Hover die Unterstreichung und Schriftfarbe in Beige für besseren Kontrast */
    border-bottom: 2px solid #F8F0EB;
    color: #F3EBE5 !important;
}

/* Hero section */
.hero {
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f5f1eb;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: #263658; /* Dunkles Blau */
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background-color: #1B2E4C;
}

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

/* Helle Sektion mit leichtem Beige als Hintergrund */
.dark-section {
    background-color: #F3EBE5;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.section p {
    margin-bottom: 20px;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.95rem;
    color: #555;
}

/* Forms */
.form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #e6f9e6;
    border: 1px solid #b3e6b3;
    color: #006600;
    border-radius: 4px;
    font-weight: 500;
}

/* Call-to-Action section */
.cta-section {
    /* Dunkler Hintergrund entsprechend der Navigationsfarbe */
    background-color: #263658;
    color: #F8F0EB;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #F8F0EB;
}

/* Reuse btn-primary for call-to-action button; add margin for spacing */
.cta-section .btn-primary {
    margin-top: 10px;
}

/* Contact summary within CTA section */
.contact-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    margin: 20px;
    text-align: center;
    flex: 1 1 200px;
}

.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #F8F0EB;
}

.contact-item p {
    font-size: 1rem;
    color: #F3EBE5;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Home content layout */
.home-content .home-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.home-text {
    flex: 1 1 400px;
}

.home-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #263658;
}

.home-text p {
    margin-bottom: 20px;
}

.home-form {
    flex: 1 1 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #263658;
}

.home-form p {
    margin-bottom: 20px;
}

/* Values section for Fahrzeuge */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-item {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.value-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #263658;
}

.value-item p {
    font-size: 0.95rem;
    color: #555;
}

/* Contact section layout */
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 350px;
}

.contact-form-wrapper {
    flex: 1 1 350px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #263658;
}

.contact-form-wrapper p {
    margin-bottom: 20px;
}

.opening-hours-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    line-height: 1.6;
}

.opening-hours-list li {
    margin-bottom: 8px;
}