/* ==========================================
   Auto Fischer Worms - Stylesheet
   ========================================== */

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

:root {
    --primary: #2EA3F2;
    --primary-dark: #1a8ad4;
    --dark: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --section-bg: #f7f7f7;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Nunito', sans-serif;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ==========================================
   Header
   ========================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo img {
    height: 55px;
    width: auto;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

#main-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--primary);
    background: rgba(46, 163, 242, 0.08);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background-image: linear-gradient(rgba(26, 26, 46, 0.75), rgba(15, 52, 96, 0.8)), url('../img/AutoFischerTeam.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

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

.hero-logo {
    max-width: 280px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.hero h2 {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 163, 242, 0.4);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

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

.section-alt {
    background: var(--section-bg);
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: var(--white);
}

.section-dark h3,
.section-dark p {
    color: var(--white);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 40px;
}

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

.text-center .section-divider {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   CTA Banner
   ========================================== */
.cta-banner {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.cta-banner .btn {
    white-space: nowrap;
}

/* ==========================================
   Leistungen (Services)
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(46, 163, 242, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================
   Trust / About Section
   ========================================== */
.trust-content {
    max-width: 800px;
}

.trust-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.trust-cta {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    padding: 50px 0;
}

/* ==========================================
   Team Section
   ========================================== */
.team-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.team-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-card .role {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 5px;
}

.team-card .phone {
    color: var(--dark);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.form-group label .required {
    color: #e74c3c;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 163, 242, 0.4);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   Page Header (Unterseiten)
   ========================================== */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
}

.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 900px;
}

.page-content h3 {
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

.page-content p {
    margin-bottom: 15px;
}

/* ==========================================
   Ankauf Page
   ========================================== */
.ankauf-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
}

.ankauf-hero h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ankauf-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

.ankauf-form-section {
    padding: 60px 0;
}

.ankauf-form-section h3 {
    margin-bottom: 30px;
    text-align: center;
}

.ankauf-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Footer
   ========================================== */
#main-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.85);
    padding-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-widget a {
    color: var(--primary);
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-widget strong {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
    }

    #main-nav.open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    #main-nav a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--light-gray);
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .section {
        padding: 50px 0;
    }

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

    .ankauf-form {
        padding: 25px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .header-inner {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    #main-nav {
        top: 70px;
    }
}
