/* Base Styles */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: #f9f9f9;
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-description {
    margin-bottom: 1rem;
    color: #555;
}

.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: none;
}

.markdown-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.markdown-content h1 {
    font-size: 1.5rem;
}

.markdown-content h2 {
    font-size: 1.3rem;
}

.markdown-content h3 {
    font-size: 1.1rem;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content a {
    color: var(--primary);
    text-decoration: underline;
}

.markdown-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-left: 0;
    color: #555;
    font-style: italic;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background: #f5f5f5;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Angepasste Stile für die neue Ausklapp-Logik */
.service-card.expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    background: #fff;
    border-radius: 10px;
    grid-column: 1 / -1 !important;
}

.service-card.expanded .service-details {
    display: block;
}

.service-card.expanded .service-description {
    display: none;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f9f9f9;
}

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

.about-content {
    flex: 1;
    padding-right: 2rem;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: #fff;
    padding: 3rem 0 0;
}

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

.footer-logo .logo {
    color: #fff;
}

.footer-logo p {
    margin-top: 1rem;
    color: #aaa;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero .container,
    .about .container {
        flex-direction: column;
    }

    .hero-content,
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-image,
    .about-image {
        order: -1;
    }

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

    .service-card.expanded {
        position: relative;
        width: 100%;
        padding: 2rem;
    }
}
