﻿/* =========================================================
   CDL MicroProjects – Minimal Glass Header + Grid Cards
   Author: Mader Studio | Clean Version v1.5
   ========================================================= */


/* =========================================================
   1. HERO / HEADER
   ========================================================= */
.micro-hero {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(150%);
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    text-align: center;
    margin: 3rem auto 2rem;
    max-width: 1100px;
}

    .micro-hero h1 {
        font-weight: 800;
        font-size: clamp(2rem, 4vw, 2.8rem);
        background: linear-gradient(120deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: .6rem;
    }

    .micro-hero p {
        color: var(--muted);
        font-size: 1.05rem;
        max-width: 60ch;
        margin-inline: auto;
    }


/* =========================================================
   2. PROJECT GRID (Übersicht)
   ========================================================= */
#cards {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

    #cards .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
        justify-items: stretch;
    }

    #cards .card {
        background: rgba(255,255,255,0.55);
        backdrop-filter: blur(18px) saturate(160%);
        border-radius: 18px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.06);
        padding: 1.4rem 1.6rem;
        text-align: center;
        cursor: pointer;
        transition: all .3s ease;
    }

        #cards .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            background: rgba(255,255,255,0.68);
        }

        #cards .card h3 {
            font-weight: 700;
            font-size: 1.1rem;
            color: #1a1a1a;
            margin-bottom: .4rem;
        }

        #cards .card p {
            font-size: 0.95rem;
            color: #444;
            margin-bottom: .4rem;
        }

        #cards .card .mini {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono";
            font-size: 0.9rem;
            color: #555;
            opacity: 0.8;
        }

        #cards .card .badge {
            display: inline-block;
            font-weight: 600;
            font-size: 0.8rem;
            padding: 0.25rem 0.7rem;
            border-radius: 999px;
            margin-bottom: 0.4rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
            transition: all .25s ease;
        }

            #cards .card .badge:hover {
                filter: brightness(1.1) saturate(1.1);
                transform: scale(1.05);
            }


/* =========================================================
   3. PROJECT DETAIL SECTIONS
   ========================================================= */
.micro-project-section {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px) saturate(160%);
    border-radius: 22px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.06);
    max-width: 1000px;
    margin: 2rem auto;
    padding: clamp(1.2rem, 3vw, 1.8rem);
}

    .micro-project-section h2 {
        text-align: center;
        font-size: clamp(1.8rem, 3vw, 2.2rem);
        font-weight: 800;
        margin: 0.5rem auto 0.8rem;
        background: linear-gradient(120deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .micro-project-section .meta {
        font-size: 0.95rem;
        color: var(--muted);
        margin-bottom: 1rem;
        text-align: center;
    }

    .micro-project-section p,
    .micro-project-section li {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #222;
    }

    .micro-project-section ul,
    .micro-project-section ol {
        padding-left: 1.25rem;
        margin: 0.3rem 0;
    }

    .micro-project-section li {
        margin-bottom: 0.25rem;
    }

    /* kleine Kapsel oben (Projekt X) */
    .micro-project-section .pill {
        display: inline-block;
        font-weight: 700;
        font-size: .8rem;
        padding: .25rem .65rem;
        border-radius: 999px;
        background: #fff1db;
        color: #6b4a12;
        margin-bottom: .5rem;
    }

    /* Unterblöcke (Ziel, Auftrag, Lernziele, etc.) */
    .micro-project-section .block {
        border-radius: 18px;
        padding: 1rem 1.25rem 1.1rem;
        margin: 1.2rem 0;
        box-shadow: 0 3px 12px rgba(0,0,0,0.04);
        transition: all .3s ease;
    }

        .micro-project-section .block:hover {
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            transform: translateY(-1px);
        }

        .micro-project-section .block h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #5a3a16;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

/* Farbcodierte Unterblöcke */
.block-goal {
    background: linear-gradient(135deg, #fff9f2, #fff3e0);
    border-left: 4px solid var(--primary);
}

.block-task {
    background: linear-gradient(135deg, #fefefe, #fff9f9);
    border-left: 4px solid #f3b38b;
}

.block-learn {
    background: linear-gradient(135deg, #f8fffa, #f3fff6);
    border-left: 4px solid #7acb91;
}

.block-reflect {
    background: linear-gradient(135deg, #f4f8ff, #edf4ff);
    border-left: 4px solid #8bb7f3;
}

.block-present {
    background: linear-gradient(135deg, #fff6fb, #fff0f7);
    border-left: 4px solid #d88fc7;
}

.block-extra {
    background: linear-gradient(135deg, #f9fcff, #f3f8ff);
    border-left: 4px solid #6fa6ff;
}

/* Nach-oben-Link */
.toplink {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.9rem;
}

    .toplink a {
        color: #aa6c39;
        font-weight: 600;
        text-decoration: none;
    }

        .toplink a:hover {
            text-decoration: underline;
        }


/* =========================================================
   4. FORMEL / HIGHLIGHT BOXES
   ========================================================= */
.formula, .highlight {
    background: #fff8ec;
    border: 1px solid rgba(170,108,57,.2);
    border-left: 3px solid #aa6c39;
    border-radius: 12px;
    padding: .75rem .9rem;
    color: #352415;
}


/* =========================================================
   5. BADGES – Bereichsfarben
   ========================================================= */
.badge-physik {
    background: linear-gradient(90deg, #b1c6ff, #d6e2ff);
    color: #223a7a;
}

.badge-chemie {
    background: linear-gradient(90deg, #a2e2c5, #c3f5dc);
    color: #0c4b2a;
}

.badge-bio {
    background: linear-gradient(90deg, #91f0cf, #c2ffe2);
    color: #0a5643;
}

.badge-technik {
    background: linear-gradient(90deg, #ffda9e, #fff2d2);
    color: #6b4a12;
}

.badge-elektro {
    background: linear-gradient(90deg, #ffc2d4, #ffe5ec);
    color: #7a123a;
}

.badge-mechanik {
    background: linear-gradient(90deg, #ffd0a3, #fff0e0);
    color: #7a3d12;
}

.badge-informatik {
    background: linear-gradient(90deg, #aee0ff, #d6f3ff);
    color: #004a75;
}

.badge-mathe {
    background: linear-gradient(90deg, #e0d0ff, #f2e8ff);
    color: #4b2a7a;
}

.badge-oeko {
    background: linear-gradient(90deg, #c7f4c2, #e6ffe5);
    color: #1e6920;
}


/* =========================================================
   CDL MicroProjects – Übersicht (Startseite)
   ========================================================= */

/* =========================================================
   CDL MicroProjects – Übersicht (Final Look v1.6)
   ========================================================= */

.micro-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem auto 6rem;
    max-width: 1250px;
    padding: 0 1rem;
}

/* Card Look */
.micro-overview-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(170%);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    transition: all .35s ease;
    transform: translateY(0);
    animation: fadeUp 0.6s ease forwards;
}

    .micro-overview-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
        background: rgba(255, 255, 255, 0.8);
    }

    .micro-overview-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .micro-overview-card .body {
        padding: 1.8rem 1.8rem 2rem;
    }

    .micro-overview-card h5 {
        font-weight: 800;
        font-size: 1.25rem;
        color: #1c1c1c;
        margin-bottom: 0.6rem;
    }

    .micro-overview-card p {
        color: #555;
        font-size: 1.05rem;
        line-height: 1.6;
        min-height: 60px;
        margin-bottom: 1.3rem;
    }

    /* Buttons */
    .micro-overview-card .btn-gold,
    .micro-overview-card .btn-outline-gold {
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 999px;
        padding: 0.65rem 1.5rem;
        box-shadow: 0 4px 12px rgba(170, 108, 57, 0.15);
        transition: all .3s ease;
    }

        .micro-overview-card .btn-gold:hover {
            box-shadow: 0 8px 24px rgba(170, 108, 57, 0.25);
            transform: translateY(-2px);
        }

    .micro-overview-card .btn-outline-gold {
        border: 2px solid var(--primary);
        color: var(--primary);
        background: transparent;
    }

        .micro-overview-card .btn-outline-gold:hover {
            background: var(--primary);
            color: #fff;
        }

/* Sanfte Einblendung */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    .micro-overview-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.75);
    }

    .micro-overview-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .micro-overview-card .body {
        padding: 1.4rem 1.5rem 1.8rem;
    }

    .micro-overview-card h5 {
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .micro-overview-card p {
        color: #555;
        font-size: 0.95rem;
        min-height: 60px;
        margin-bottom: 1rem;
    }

    .micro-overview-card .btn {
        margin-top: .5rem;
    }


/* =========================================================
   CDL MicroProjects – Breadcrumb Styling
   ========================================================= */
.micro-breadcrumb {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

    .micro-breadcrumb a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .micro-breadcrumb a:hover {
            color: var(--secondary);
        }

    .micro-breadcrumb img {
        opacity: 0.7;
        transform: translateY(-1px);
    }



.micro-projects-wrapper {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px) saturate(160%);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    padding: clamp(2rem, 5vw, 3rem);
    margin: 3rem auto 5rem;
    max-width: 1300px;
    position: relative;
}

    .micro-projects-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
        z-index: -1;
    }

.micro-section-divider {
    height: 2px;
    width: 60%;
    margin: 4rem auto;
    background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.12), rgba(0,0,0,0));
    opacity: 0.6;
    border-radius: 2px;
}


.micro-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem 3rem;
}

.micro-overview-card {
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .micro-overview-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }


/* Harmonischer CDL-Stil: ruhig, glasig, edel */
.calm-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(150%);
    border-radius: 22px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.05);
    padding: 2rem 1.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: all .3s ease;
}

    .calm-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 36px rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.7);
    }

    .calm-card h3 {
        font-weight: 700;
        font-size: 1.2rem;
        color: #1c1c1c;
        margin-bottom: .75rem;
    }

    .calm-card p {
        color: #555;
        font-size: 0.98rem;
        line-height: 1.5;
        flex-grow: 1;
    }

    .calm-card .bottom {
        margin-top: auto;
    }

    .calm-card .btn {
        width: 100%;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.6rem 1.4rem;
    }

.btn-gold {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-outline-gold {
    border: 1.8px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
