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

body {
    background-color: white;
    margin: 0;
    padding: 0;
}

img {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0; 
}

h1 {
    font-family: "Arial";
    font-size: 40px;
    color: #A52A2A;
    text-align: center;
    margin-top: -15px;
    animation: fadeIn 1.3s ease 0.3s forwards; 
    opacity: 0;
}

#einleitung_text {
    font-family: "Arial";
    font-size: 20px;
    color: #A52A2A;
    text-align: center;
    margin: 0 20px; 
    padding: 0 20px; 
    animation: fadeIn 1.5s ease 0.6s forwards;
    opacity: 0;
}

.wichtige_infos_text {
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 1.5s ease 0.8s forwards; 
    opacity: 0;
}

.wichtige_infos_text h2 {
    font-family: "Arial";
    font-size: 28px;
    color: #A52A2A;
    margin: 10px 0; 
}

.unterlinie {
    width: 240px;
    height: 4px;
    background-color: #A52A2A;
    margin: 0 auto 20px; 
    border-radius: 2px;
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    animation: fadeIn 1.5s ease 0.9s forwards; 
    opacity: 0;
}

.phase {
    width: calc(50% - 30px);
    max-width: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + label .arrow {
    transform: rotate(90deg);
}

input[type="checkbox"]:checked + label + .details {
    max-height: 1000px;
    opacity: 1;
    padding: 15px;
}

label {
    display: block;
    cursor: pointer;
    position: relative;
}

.phase h2 {
    font-family: "Arial";
    font-size: 24px;
    color: #A52A2A;
    padding: 15px;
    margin: 0;
    text-align: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phase:hover h2 {
    background-color: #A52A2A;
    color: #fff;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

strong {
    color: #A52A2A;
}

.details {
    font-family: "Arial";
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 0 15px;
    color: #333;
    line-height: 1.6;
}

.mehr-infos {
    display: block;
    text-align: center;
    color: #A52A2A;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    font-family: "Arial";
    transition: color 0.3s ease;
}

.mehr-infos:hover {
    text-decoration: underline;
    color: #800000;
}

.karte-text {
    text-align: center;
    margin-top: 100px;
    animation: fadeIn 1.5s ease 1.2s forwards;
    opacity: 0;
}

.karte-header {
    font-family: "Arial";
    font-size: 28px;
    color: #A52A2A;
    margin: 10px 0;
}

.karte-text .unterlinie {
    width: 80px;
    height: 4px;
    background-color: #A52A2A;
    margin: 0 auto 20px; 
    border-radius: 2px;
}

.karte-image {
    width: 30%; 
    border-radius: 10px; 
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease;
    mask-image: radial-gradient(farthest-side, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.karte-image:hover {
    transform: scale(1.05);
}

.kontakt-text {
    text-align: center;
    margin-top: 100px;
    animation: fadeIn 1.5s ease 1.2s forwards;
    opacity: 0;
}

.kontakt-text h2 {
    font-family: "Arial";
    font-size: 28px;
    color: #A52A2A;
    margin-bottom: 10px;
}

.kontakt-text .unterlinie {
    width: 200px;
    height: 4px;
    background-color: #A52A2A;
    margin: 10px auto 20px;
    border-radius: 2px;
}

.kontakt-text p {
    font-family: "Arial";
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.kontakt-text a {
    color: #A52A2A;
    text-decoration: none;
}

.kontakt-text a:hover {
    text-decoration: underline;
}






@media (max-width: 768px) {
    h1 {
        font-size: 24px; 
        margin-top: -10px; 
    }

    #einleitung_text {
        font-size: 16px; 
    }

    .container {
        flex-direction: column; 
        gap: 15px; 
    }

    .phase {
        width: 100%; 
        max-width: none; 
    }

    .karte-image {
        width: 80%; 
        margin: 0 auto; 
    }
}


