:root {
    --primary: #A20F0F;
    --secondary: #E31616;
    --gray-100: #f7f7f7;
    --gray-200: #e5e5e5;
    --gray-800: #1f2937;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

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

.logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.section {
    padding: 6rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.content-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.services-content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info {
    margin-top: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.footer {
    position: relative;
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.footer .nav-content {
    flex-direction: column;
    gap: 2rem;
}

.footer .logo {
    height: 60px;
}

.footer .nav-links {
    justify-content: center;
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transform: rotate(-45deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.contact .section-title {
    color: white;
}

.services-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    padding-bottom: 6rem;
    color: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    color: white;
    margin-bottom: 1rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.imprint {
    background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.imprint::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.01) 100%);
    transform: rotate(-45deg);
}

.imprint-info {
    position: relative;
    z-index: 1;
}

.imprint-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* Mobile Navigation */
.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

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

    .hero {
        min-height: auto;
        padding: 0 2rem;
        margin-top: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 220px 0 80px 0;
    }

    .hero-text {
        order: 1;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-image {
        order: 2;
        height: 250px;
        transform: none;
        margin: 0 auto;
        width: 90%;
    }

    .hero-image:hover {
        transform: none;
    }

    .logo {
        height: 60px;
    }

    .navbar.scrolled .logo {
        height: 50px;
    }

    .section {
        min-height: auto;
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .container {
        padding: 0 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .content-box {
        padding: 2rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-item a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

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

    .hero-image {
        height: 200px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Kontakt-Links Styling */
.contact-item a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.contact-item a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Scroll Animations - Startposition sichtbar */
.fade-up, .fade-in-left, .fade-in-right, .scale-up {
    opacity: 1;
    transform: none;
    transition: all 0.6s ease;
}

/* Sanfte Animation beim Scrollen */
.fade-up.animate {
    animation: fadeUpAnimation 0.6s ease forwards;
}

.fade-in-left.animate {
    animation: fadeLeftAnimation 0.6s ease forwards;
}

.fade-in-right.animate {
    animation: fadeRightAnimation 0.6s ease forwards;
}

.scale-up.animate {
    animation: scaleAnimation 0.6s ease forwards;
}

@keyframes fadeUpAnimation {
    from {
        transform: translateY(20px);
        opacity: 0.8;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeLeftAnimation {
    from {
        transform: translateX(-20px);
        opacity: 0.8;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeRightAnimation {
    from {
        transform: translateX(20px);
        opacity: 0.8;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleAnimation {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Basis-Stile für Überschriften - immer sichtbar */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 1 !important;
    transform: none !important;
    color: var(--gray-800);
}

.contact .section-title {
    color: white;
}

/* Scroll Animations - nur für Nicht-Überschriften */
.fade-up:not(.section-title), 
.fade-in-left:not(.section-title), 
.fade-in-right:not(.section-title), 
.scale-up:not(.section-title) {
    opacity: 1;
    transform: none;
    transition: all 0.6s ease;
}

/* Animations nur aktivieren wenn .animate Klasse hinzugefügt wird */
.fade-up.animate:not(.section-title) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.animate.visible:not(.section-title) {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left.animate:not(.section-title) {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-left.animate.visible:not(.section-title) {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right.animate:not(.section-title) {
    opacity: 0;
    transform: translateX(50px);
}

.fade-in-right.animate.visible:not(.section-title) {
    opacity: 1;
    transform: translateX(0);
}

.scale-up.animate:not(.section-title) {
    opacity: 0;
    transform: scale(0.8);
}

.scale-up.animate.visible:not(.section-title) {
    opacity: 1;
    transform: scale(1);
} 