/* ========================================
   Allgemeine Stile für alle Seiten
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Afacad&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Afacad', Arial, sans-serif;
    /* Schriftart Afacad */
    background: #ffffff;
    /* Weißer Hintergrund */
    color: #333;
    text-align: center;
    overflow-x: hidden;
}

header {
    position: relative;
    padding: 40px 0;
    font-family: 'Afacad', serif;
    /* Schriftart Afacad für den Header */
    font-size: 2rem;
    overflow: hidden;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   Animations-Element: Kugel im Header
======================================== */
.animation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circle {
    position: absolute;
    top: 50%;
    left: calc(50% + 250px);
    width: 0;
    height: 0;
    background: linear-gradient(45deg, #2a9d8f, #f4a261);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 2s ease-in-out;
}

.circle.animate {
    width: 100px;
    height: 100px;
    opacity: 1;
}

/* ========================================
   Startseite: Flexbox Layout
======================================== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px auto;
    gap: 30px;
    padding: 20px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.vertical-box {
    height: 60vh;
    background: linear-gradient(45deg, #2a9d8f, #f4a261);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vertical-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.vertical-box:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Breite & Schmale Box */
.wide-box {
    width: 50%;
}

.narrow-box {
    width: 30%;
}

/* ========================================
   Footer-Stile mit farbigem Button
======================================== */
footer {
    margin-top: 10px; /* Reduzierter Abstand nach oben */
    padding: 10px 20px; /* Weniger vertikales Padding */
    text-align: center; /* Zentriert die Buttons */
    display: flex; /* Flexbox zur Anordnung der Buttons */
    justify-content: center; /* Buttons horizontal zentrieren */
    gap: 15px; /* Abstand zwischen den Buttons */
    position: relative; /* Standardmäßig relativ */
}

/* Farbiger Button für alle Seiten */
.colored-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #2a9d8f, #f4a261);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.colored-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.colored-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Projects-Seite (flexibel für alle Projekte)
======================================== */
.projects-container {
    margin: 50px auto;
    padding: 20px;
}

.project-year {
    margin-bottom: 40px;
}

.project-year h2 {
    font-size: 24px;
    color: #333;
    font-family: 'Afacad', serif;
    /* Schriftart Afacad */
}

.project-item {
    display: inline-block;
    width: 250px;
    height: 200px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
}

.project-item img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

.project-item span {
    display: block;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
    font-family: 'Afacad', serif;
    /* Schriftart Afacad */
}

.project-item a {
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Einheitliches Grid-Layout für Projektseiten
======================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.grid-item img:hover {
    transform: scale(1.05);
}

/* ========================================
   Textbox für Projektbeschreibungen
======================================== */
.text-box {
    grid-column: 1 / -1;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-box h2 {
    font-family: 'Afacad', serif;
    color: #2a9d8f;
    margin-bottom: 10px;
}

.text-box p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    font-family: 'Afacad', serif;
}
