/* Body und allgemeines */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #eee;
    overflow-x: hidden;
    padding-top: 70px;
    background-color: #121212;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FE0000;
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Navigation */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-nav a {
    color: #eee;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: #FE0000;
    background: rgba(254, 0, 0, 0.1);
}

/* Hintergrund Wrapper */
.background-wrapper {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

/* Großes feststehendes Hintergrundbild */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('pics/Auto.jpg');
    background-size: cover;
    background-position: center center;
    z-index: -2;
    filter: brightness(0.3);
}

/* Dunkle Overlay über dem Bild */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.7);
    z-index: -2;
}

/* Hero Section */
.hero-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 3rem;
    color: #FE0000;
    margin-bottom: 0.5em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(254, 0, 0, 0.7);
}

.hero-overlay p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

/* Content Section */
.content-section {
    background-color: #121212;
    position: relative;
    z-index: 1;
    padding: 100px 0 60px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content h2 {
    color: #FE0000;
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 700;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s ease-out;
}

.reasons-grid.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reason-item {
    background: rgba(30, 30, 30, 0.6);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reason-item:hover {
    border-color: #FE0000;
    transform: translateY(-5px);
    background: rgba(254, 0, 0, 0.1);
}

.reason-number {
    font-size: 2rem;
    color: #FE0000;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(145deg, rgba(254, 0, 0, 0.1), rgba(254, 0, 0, 0.05));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.reason-item h3 {
    color: #FE0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.reason-item p {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0;
}

/* Stats Sidebar */
.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #FE0000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(254, 0, 0, 0.2);
}

.stat-number {
    color: #FE0000;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Certifications */
.certifications {
    background: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(254, 0, 0, 0.2);
}

.certifications h3 {
    color: #FE0000;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    background: rgba(254, 0, 0, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #eee;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(254, 0, 0, 0.3);
}

.cert-item:hover {
    background: rgba(254, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

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

.values-container h2 {
    color: #FE0000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: linear-gradient(145deg, #121212, #1e1e1e);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #2a2a2a;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

.value-card:hover {
    border-color: #FE0000;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(254, 0, 0, 0.15);
}

.value-number {
    font-size: 2.5rem;
    color: #FE0000;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(145deg, rgba(254, 0, 0, 0.1), rgba(254, 0, 0, 0.05));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.value-card h3 {
    color: #FE0000;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.value-card p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Owner Section */
.owner-section {
    background-color: #121212;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.owner-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.owner-container h2 {
    color: #FE0000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.owner-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    text-align: left;
}

.owner-photo-container {
    flex-shrink: 0;
}

.owner-photo {
    width: 250px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.owner-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(254, 0, 0, 0.2);
    border-color: #FE0000;
}

.owner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.owner-info {
    flex: 1;
}

.owner-info h3 {
    color: #FE0000;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.owner-title {
    color: #ff6666;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.owner-description p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.owner-qualifications {
    margin-top: 30px;
    background: rgba(30, 30, 30, 0.6);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #FE0000;
}

.owner-qualifications h4 {
    color: #FE0000;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.owner-qualifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.owner-qualifications li {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.owner-qualifications li::before {
    content: '▶';
    color: #FE0000;
    position: absolute;
    left: 0;
    top: 0;
}

/* Animations */
.animate-left,
.animate-right,
.animate-up {
    opacity: 0;
    transition: all 1.5s ease-out;
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.animate-up {
    transform: translateY(30px);
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.counting {
    animation: countUp 0.5s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        border-top: 1px solid rgba(254, 0, 0, 0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header-nav.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }

    .header-nav li {
        padding: 0 20px;
    }

    .header-nav a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .header-nav a:hover {
        padding-left: 10px;
        background: rgba(254, 0, 0, 0.1);
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 1rem;
    }

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

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

    .values-container h2,
    .owner-container h2 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .owner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .owner-photo {
        width: 200px;
        height: 280px;
    }

    .owner-info {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .header-logo {
        height: 40px;
    }

    .background-wrapper {
        height: 50vh;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 60px 0 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 0 auto;
    }

    .value-card,
    .team-member {
        padding: 25px 20px;
    }

    .certifications {
        padding: 25px 20px;
    }

    .reason-item {
        padding: 20px;
    }

    .values-section,
    .owner-section {
        padding: 60px 0;
    }

    .owner-photo {
        width: 180px;
        height: 250px;
    }

    .owner-info h3 {
        font-size: 1.8rem;
    }

    .owner-title {
        font-size: 1.1rem;
    }

    .owner-description p {
        font-size: 1rem;
    }

    .owner-qualifications {
        padding: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-left,
    .animate-right,
    .animate-up,
    .value-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus States */
.stat-card:focus,
.value-card:focus,
.team-member:focus,
.reason-item:focus {
    outline: 2px solid #FE0000;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        padding-top: 0;
    }

    header {
        display: none;
    }

    .background-wrapper {
        display: none;
    }

    .stat-card,
    .value-card,
    .team-member {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .stat-card h3,
    .value-card h3,
    .team-member h3 {
        color: black;
    }

    .stat-card p,
    .value-card p,
    .member-description {
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .stat-card,
    .value-card,
    .team-member {
        border: 2px solid #FE0000;
        background: #000;
    }
    
    .stat-card p,
    .value-card p,
    .member-description {
        color: #fff;
    }
}