:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #ff5722;
    --light-color: #f5f5f5;
    --dark-color: #121212;
    --text-color: #333;
    --text-light: #666;
    --success-color: #4caf50;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f9f9f9;
}

/* Header Styles */
.header-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-title.scrolled {
    padding: 0.7rem 2rem;
    background: var(--primary-color);
}

.header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.phone-number {
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-number i {
    font-size: 1.2rem;
}

/* Burger Menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.8rem;
    margin-left: 1rem;
    justify-content: center;
    align-items: center;
}

.burger-menu div {
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.burger-menu:hover div {
    width: 32px;
}

/* Mobile Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 90%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 90px 0 20px;
    box-sizing: border-box;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.menu.active {
    transform: translateX(0);
}

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

.menu ul li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.menu ul li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    transition: color 0.2s ease;
}

.menu ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    margin-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 35, 126, 0.9), rgba(57, 73, 171, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, var(--accent-color), #e64a19);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    background: linear-gradient(135deg, #e64a19, var(--accent-color));
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.services {
    padding: 6rem 1rem;
    background-color: white;
}

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

.service-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

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

.service-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.service-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* Team Section */
.team {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--light-color), #f5f7fa);
}

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

.team-member {
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-member p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
    padding: 1rem 1rem;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Specific styling for contact page */
.kontakt-page .contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item span {
    font-size: 1.1rem;
}

.contact-form {
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 1rem 2rem;
}

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

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    padding: 8rem 1rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Reference Styles */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.reference-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.reference-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reference-logo {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.reference-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.reference-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reference-content {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.reference-quote {
    font-style: italic;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.reference-rating {
    display: flex;
    gap: 0.3rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

/* Additional Info Styles */
.additional-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.additional-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.additional-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.additional-info ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.additional-info li {
    margin-bottom: 0.8rem;
}

/* Impressum Styles */
.impressum-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.impressum-section {
    margin-bottom: 2.5rem;
}

.impressum-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.impressum-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Datenschutz Styles */
.datenschutz-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.datenschutz-section {
    margin-bottom: 2.5rem;
}

.datenschutz-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.datenschutz-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.datenschutz-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.datenschutz-section ul {
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.datenschutz-section li {
    margin-bottom: 0.5rem;
}

/* Service Details Styles */
.service-details {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.service-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.service-details ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.service-details li {
    margin-bottom: 0.8rem;
}

/* Team Details Styles */
.team-details {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.team-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.team-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-details ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.team-details li {
    margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }

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

    .header-title h1 {
        font-size: 1.3rem;
    }

    .phone-number {
        font-size: 0.9rem;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}