/* ========================================
   Mittelstandsexperten MKK e.V. Stylesheet
   ======================================== */

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31E24;
    --dark-red: #C41E1E;
    --black: #1A1A1A;
    --dark-gray: #4A4A4A;
    --medium-gray: #808080;
    --light-gray: #E5E5E5;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

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

/* ========================================
   Header & Navigation
   ======================================== */

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
}

.badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    text-align: center;
}

section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--black);
}

section p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   Info Grid (Programm-Überblick)
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(227, 30, 36, 0.2);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    margin: 0;
}

/* ========================================
   USP Grid
   ======================================== */

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.usp-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    transition: transform 0.3s;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.usp-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.usp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.usp-card p {
    font-size: 1rem;
}

/* ========================================
   Angebote & Cards
   ======================================== */

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.angebot-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
}

.angebot-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 5px 20px rgba(227, 30, 36, 0.2);
}

.angebot-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

/* ========================================
   Experten Section
   ======================================== */

.experten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experte-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid var(--light-gray);
}

.experte-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.experte-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--light-gray);
}

.experte-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.experte-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

.experte-detail {
    text-align: left;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.experte-detail ul {
    list-style-position: inside;
    margin-top: 0.5rem;
}

.experte-detail li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Zielgruppe
   ======================================== */

.zielgruppe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.zielgruppe-item {
    padding: 1rem;
    background-color: var(--white);
    border-left: 4px solid var(--primary-red);
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s;
}

.zielgruppe-item:hover {
    transform: translateX(5px);
}

/* ========================================
   Module
   ======================================== */

.module-container {
    margin-top: 3rem;
}

.modul {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.modul:hover {
    border-color: var(--primary-red);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.modul.intensiv {
    border-color: var(--primary-red);
    background-color: #FFF5F5;
}

.modul.optional {
    border-style: dashed;
    background-color: #F9F9F9;
}

.modul-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modul-nr {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modul-date {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.modul h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.modul p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.referent {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
}

.additional-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

/* ========================================
   Vorteile
   ======================================== */

.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vorteil {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    transition: transform 0.3s;
}

.vorteil:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.vorteil-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vorteil h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quote {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.author {
    font-weight: 600;
    color: var(--black);
    text-align: right;
    font-size: 0.95rem;
}

/* ========================================
   Forms
   ======================================== */

.anmelde-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.hinweis-box {
    background-color: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.hinweis-box p {
    margin: 0;
    color: var(--black);
}

/* ========================================
   Kontakt Section
   ======================================== */

.kontakt-section {
    background-color: var(--light-gray);
    padding: 4rem 2rem;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.kontakt-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.kontakt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.kontakt-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.kontakt-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.kontakt-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.kontakt-card a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.kontakt-ansprechpartner {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-ansprechpartner h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.kontakt-ansprechpartner a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.kontakt-ansprechpartner a:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--medium-gray);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    /* Grids */
    .angebote-grid {
        grid-template-columns: 1fr;
    }

    .experten-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

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

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        height: 50px;
    }

    nav {
        padding: 0.8rem 1rem;
    }
}