/* ==========================================================
   GrowTek Homepage
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #121212;
    color: white;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================================
   Header
   ========================================================== */

header {
    background: #181818;
    padding: 20px 0;
    border-bottom: 2px solid #33cc66;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 28px;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s ease;
}

nav a:visited {
    color: white;
}

nav a:hover {
    color: #33cc66;
}

nav a:active {
    color: #33cc66;
}


/* ==========================================================
   Hero
   ========================================================== */

.hero {
    text-align: center;
    padding: 120px 20px;

    background:
        radial-gradient(
            circle at center,
            #1c2a20 0%,
            #121212 55%
        );
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ccc;
}


/* ==========================================================
   Button
   ========================================================== */

.button {
    display: inline-block;

    background: #33cc66;
    color: white;

    padding: 15px 35px;

    border-radius: 40px;

    text-decoration: none;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.button:visited {
    color: white;
}

.button:hover {
    background: #29aa55;
    color: white;

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(51, 204, 102, 0.2);
}


/* ==========================================================
   Kartenbereiche
   ========================================================== */

.cards {
    padding: 70px 0;
}

.cards .container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}


/* ==========================================================
   Karten
   ========================================================== */

.card {
    display: block;

    background: #1c1c1c;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #2c2c2c;

    color: white;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.card:visited {
    color: white;
}

.card:hover {
    color: white;

    transform: translateY(-8px);

    border-color: #33cc66;

    background: #202020;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.card:active {
    color: white;
}

.card h3 {
    margin-bottom: 15px;

    color: #33cc66;

    font-size: 21px;
}

.card p {
    color: #bbb;
}


/* ==========================================================
   Teststation
   ========================================================== */

/*
   Der letzte Kartenbereich enthält die GrowTek-Teststation.
   Dadurch bekommt sie etwas mehr Gewicht als die normalen
   Projektkarten.
*/

.cards:last-of-type {
    padding-top: 0;
}

.cards:last-of-type .card {
    border-color: #33cc66;

    background:
        linear-gradient(
            135deg,
            #1c241f,
            #1c1c1c
        );
}

.cards:last-of-type .card h3 {
    font-size: 24px;
}


/* ==========================================================
   Footer
   ========================================================== */

footer {
    background: #181818;

    text-align: center;

    padding: 40px;

    margin-top: 60px;

    border-top: 2px solid #33cc66;

    color: #888;
}

footer p {
    margin-bottom: 5px;
}

footer p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width: 800px) {

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        padding: 45px 0;
    }

}


/* ==========================================================
   Kleine Smartphones
   ========================================================== */

@media (max-width: 500px) {

    .container {
        width: 92%;
    }

    header h1 {
        font-size: 25px;
    }

    nav a {
        font-size: 14px;
        margin: 4px 7px;
    }

    .hero {
        padding: 65px 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .button {
        padding: 13px 28px;
    }

    .card {
        padding: 25px;
    }

}