/* Grundlegende Styles */
@font-face {
    font-family: 'Porsche';
    src: url('fonts/911porscha/911porschav3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Porsche';
    src: url('fonts/911porscha/911porschav3bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Porsche';
    src: url('fonts/911porscha/911porschav3ital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Porsche';
    src: url('fonts/911porscha/911porschav3boldital.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3 {
    font-family: 'Porsche', 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.logo img {
    height: 50px;
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    overflow-x: hidden;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
    text-align: center;
    overflow-x: hidden;
}

nav ul li a:hover {
    color: #ccc;
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 0.5rem;
    padding: 0.5rem;
    overflow-x: hidden;
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    overflow-x: hidden;
}

/* Sprachumschaltung */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 3px;
}

.lang-button:hover {
    background-color: #555;
}

.lang-button.active {
    background-color: #000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0.5rem;
    }
    
    .lang-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Hero Styles */
.hero {
    background-color: #000;
    color: #fff;
    padding: 15rem 0 5rem;
    text-align: center;
    margin-top: 70px;
    overflow-x: hidden;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #000;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    overflow-x: hidden;
    font-family: 'Porsche', 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: #000;
    color: #fff;
}

/* Services */
.services {
    padding: 5rem 0;
    background-color: #fff;
    overflow-x: hidden;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    overflow-x: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow-x: hidden;
}

.service-card {
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow-x: hidden;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* About */
.about {
    padding: 5rem 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    overflow-x: hidden;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border: 1px solid #ddd;
    overflow-x: hidden;
}

/* Contact */
.contact {
    padding: 5rem 0;
    background-color: #fff;
    overflow-x: hidden;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    overflow-x: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    overflow-x: hidden;
}

.contact-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-info .btn {
    margin-top: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    overflow-x: hidden;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 0;
    font-family: 'Porsche', 'Montserrat', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.footer-info {
    text-align: center;
    overflow-x: hidden;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-family: 'Porsche', 'Montserrat', sans-serif;
    text-transform: lowercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-icon {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        margin: 0;
        gap: 0;
        overflow-x: hidden;
        /* Safari fix for vertical menu */
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        margin: 0;
    }
    
    .hero {
        padding: 12rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .services h2 {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 10rem 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services h2,
    .about-text h2,
    .contact h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Hero Logo Styles */
.hero .logo-center img {
    max-width: 608px;
    height: auto;
}

@media (max-width: 768px) {
    .hero .logo-center img {
        max-width: 406px;
    }
}

@media (max-width: 480px) {
    .hero .logo-center img {
        max-width: 305px;
    }
}

/* Scroll to Contact Button */
.scroll-to-contact {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.scroll-to-contact {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s;
    transform: translateY(0);
}

.scroll-to-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Impressum */
.impressum {
    padding: 5rem 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.impressum h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.impressum-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.impressum-content strong {
    font-weight: 600;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

/* Improve overall typography */
body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

p, li {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .services h2 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .impressum h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .services h2 {
        font-size: 1.25rem;
    }
    
    .about-text h2 {
        font-size: 1.25rem;
    }
    
    .contact h2 {
        font-size: 1.25rem;
    }
    
    .impressum h2 {
        font-size: 1.25rem;
    }
}