
:root {
    --primary-color: #6b7054; /* warme Olivfarbe für große Akzente */
    --heading-black: #000000; /* schwarzer Farbton für Überschriften */
    --accent-color: #B1893D;  /* warmes Ocker */
    --secondary-color: #7F8B5E; /* olivgrün */
    --light-bg: #F5EEE3;        /* cremehintergrund */
    --card-bg: #FFFFFF;
    --border-color: #D8CFC3;
    --text-color: #232A24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

#projekt .project-intro {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 1.5rem;
    color: var(--secondary-color);
}

#projekt .project-intro p {
    margin: 0.75rem auto;
    line-height: 1.8;
}

.bg-light {
    background-color: rgba(245, 238, 227, 0.75);
}

.target-blocks,
.target-overview {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
}

.target-blocks::before,
.target-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('assets/hands.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.6);
    transform: scale(1.04);
    z-index: 0;
}

.target-blocks .container,
.target-overview .container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 50px rgba(17, 24, 21, 0.08);
    padding: 3rem 2rem;
}

.target-blocks .container > p {
    margin: 0 auto 2rem;
    text-align: center;
    max-width: 760px;
}

.target-blocks h2,
.target-overview h2 {
    margin-bottom: 1rem;
    color: var(--heading-black);
}

.target-blocks p,
.target-overview p {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    max-width: 780px;
}

.target-grid,
.target-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
}

.target-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(107, 112, 84, 0.12);
    box-shadow: 0 18px 30px rgba(50, 57, 52, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 34px rgba(50, 57, 52, 0.12);
    border-color: rgba(107, 112, 84, 0.25);
}

.target-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.target-card h3 {
    margin: 0;
    color: var(--heading-black);
    font-size: 1.2rem;
}

.target-card p {
    margin: 0;
    line-height: 1.65;
}

.target-card .card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.target-card .card-link::after {
    content: "→";
}

.target-info {
    margin-top: 2rem;
    padding: 2rem;
    background: #f4f5f7;
    border-radius: 20px;
    border: 1px solid rgba(107,112,84,0.12);
}

.target-info h2 {
    margin-bottom: 1rem;
}

.target-info h3 {
    margin: 0.5rem 0 1rem;
    color: var(--primary-color);
}

.target-info ul {
    margin: 0;
    padding-left: 1.3rem;
    list-style-type: disc;
    color: var(--text-color);
}

.target-info li {
    margin-bottom: 0.8rem;
}

@media (max-width: 980px) {
    .target-grid,
    .target-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    height: 90px;
    padding: 0 2rem;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 42, 36, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: height 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

header.shrink {
    min-height: 60px;
    height: 60px;
    padding: 0 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px; /* Passt das Logo gut an */
    max-height: 70px;
    width: auto;
}

.hm-logo,
.sce-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.sce-logo {
    filter: saturate(0.95);
}

/* Ensure logos sit on a true white background so their edges don't show against translucent header */
.logo,
.hm-logo,
.sce-logo {
    background-color: #ffffff;
    display: inline-block;
}

header.shrink .logo {
    height: 50px;
}

header.shrink .hm-logo {
    height: 34px;
}

main {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a:hover {
    color: var(--accent-color);
}

nav li {
    position: relative;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    transform-origin: center;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
    top: 10px;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 10px;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        display: none;
        z-index: 100;
        border-top: 1px solid var(--border-color);
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem 1.5rem;
        margin: 0;
    }

    nav li {
        width: 100%;
    }

    nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        min-width: auto;
    }

    nav .dropdown-menu a {
        padding-left: 1.2rem;
    }
}

@media (min-width: 981px) {
    nav {
        position: static;
        display: block;
        width: auto;
        background: transparent;
    }

    nav ul {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0;
    }

    nav li {
        width: auto;
    }

    .menu-toggle {
        display: none;
    }
}

header.shrink nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    background-color: #fff;
    z-index: 100;
}

header.shrink .menu-toggle {
    display: inline-flex;
}

header.shrink nav.open {
    display: block;
}

header.shrink nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem 1.5rem;
    margin: 0;
}

header.shrink nav li {
    width: 100%;
}

header.shrink nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    min-width: auto;
}

header.shrink nav .dropdown-menu a {
    padding-left: 1.2rem;
}

nav .dropdown:hover > a,
nav .dropdown.open > a {
    color: var(--accent-color);
}

nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
}

@media (min-width: 981px) {
    nav .dropdown:hover > .dropdown-menu,
    nav .dropdown.open > .dropdown-menu {
        display: flex;
    }
}

@media (max-width: 980px) {
    nav .dropdown:hover > .dropdown-menu {
        display: none !important;
    }

    nav .dropdown.open > .dropdown-menu {
        display: flex !important;
    }
}

nav .dropdown-menu li {
    width: 100%;
}

nav .dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

nav .dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-align: center;
    padding: 6rem 2rem;
    isolation: isolate;
    border-bottom: 1px solid var(--border-color);
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('assets/hands.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(1px) brightness(0.85) contrast(0.95);
    transform: scale(1.02);
    opacity: 1;
    z-index: -2;
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 238, 227, 0.32) 0%, rgba(245, 238, 227, 0.32) 100%);
    z-index: -1;
    pointer-events: none;
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

#hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--heading-black);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    color: #41493f;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--card-bg);
    text-decoration: none;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(31, 42, 36, 0.13);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(31, 42, 36, 0.18);
}

/* Typografie */
h2 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0;
}

/* Überschriftenfarben: H1/H3 schwarz, H2 oliv */
h1,
.card h3 {
    color: var(--heading-black);
}

h2 {
    color: var(--primary-color);
}

h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 1rem auto 0;
    background-color: var(--accent-color);
    border-radius: 999px;
}

.site-content {
    flex: 1;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #3a3f34;
}

/* Cards für Pädagogik */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 24px rgba(31, 42, 36, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 8px;
    background-color: var(--accent-color);
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(177, 137, 61, 0.3);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(31, 42, 36, 0.08);
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.placeholder {
    color: #888;
    font-size: 1.2rem;
    font-weight: bold;
    border: 3px dashed #bbb;
    background-color: #f9f9f9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

footer p {
    max-width: 900px;
    margin: 0 auto 0.7rem;
    line-height: 1.8;
}
