/* ===========================
   Page-Specific Styles for index.html
   =========================== */

/* ----- "About"-Section ----- */
.about {
    background: #f4f2f3;
    padding: 60px 20px;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'open_sansbold', Times, sans-serif;
    color: #2e2c2f;
}

.about p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.cta-link {
    display: inline-block;
    margin-top: 20px;
    background-color: #1e4940;
    color: #f4f2f3;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-link:hover {
    background-color: #1e4940;
}

/* ----- Top News / Projekt-Kacheln ----- */
.top-projects {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: 'merriweatherregular', sans-serif;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    height: 280px;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

/* Für project-card mit <img> */
.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* falls du runde Ecken willst */
    background-color: #0E6650;
}

.overlay {
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
}

.overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'merriweatherregular', Times, sans-serif;
}

.project-card:hover .overlay {
    opacity: 1;
}

.text-card {
    background-color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.text-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'open_sansregular', Times, sans-serif;
}

.text-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #444;
}

.project-button {
    background-color: #2b2b2b;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.project-button:hover {
    background-color: #7fa77b;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .project-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .project-card {
        width: 90%;
        max-width: 400px;
    }
}


/* ===========================
   Auskommentierte, nicht verwendete Regeln
   (gehalten zur Referenz)
   =========================== */
/*
.hero { … }
.hero h1 { … }
.hero p { … }
.cta-button { … }
.landing-links { … }
.box { … }

.skills-section { … }
.skills-title { … }
.skills-intro { … }
.skills-grid { … }
.tool { … }
.tool img { … }
.tool span { … }
.collab-line { … }
.collab-line a { … }
*/
