:root {
    --header-height: 70px;
    --main-color:    #2f5d50;
    --accent-color:  #6fa8a8;
    --light-accent:  #8fd6d6;
    --text-color:    #2f3e3e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Poppins", sans-serif;
    background:
        linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.92)),
        url("../Bilder/berge.jpg") center / cover no-repeat fixed;
    padding-top: var(--header-height);
    color: var(--text-color);
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    padding: 0 30px;
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo img { 
    border-radius: 8px; 
    transition: 0.3s; 
}

.logo img:hover { 
    transform: scale(1.15) rotate(3deg); 
}

.title {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
}

.navbar-collapse {
    justify-content: flex-end; 
}

.nav-link {
    color: var(--main-color) ;
    font-size: 0.9rem;
    padding: 6px 10px ;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover { 
    background: rgba(47,93,80,0.08); 
}

.nav-link.active { 
    font-weight: 600; 
    background: rgba(47,93,80,0.12); 
}

.nav-link::after { 
    display: none; 
}

.navbar-nav {
     gap: 4px; 
}

.navbar-toggler {
    border: 1.5px solid rgba(47,93,80,0.4);
    border-radius: 8px;
    padding: 6px 10px;
    margin-left: auto;
    transition: background 0.2s;
}

.navbar-toggler:focus { 
    box-shadow: 0 0 0 3px rgba(47,93,80,0.15); 
}

.navbar-toggler:hover { 
    background: rgba(47,93,80,0.08); 
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232f5d50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
    .navbar-nav { 
        gap: 2px; 
    }
    .nav-link { 
        padding: 10px 14px; 
        font-size: 1rem; 
    }
}

/* MAIN */
main {
    padding: 50px 30px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 8px;
}
.page-header p {
    color: #6a8c88;
    font-size: 1rem;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s;
}
.card.visible {
    opacity: 1; 
    transform: translateY(0);
}
.card.visible:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 48px rgba(0,0,0,0.16); }

.card-img-wrap { 
    position: relative; 
    width: 100%; 
    height: 200px; 
    overflow: hidden; 
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.card:hover .card-img-wrap img { 
    transform: scale(1.07);
}

.card-overlay {
    position: absolute; inset: 0;
    background: rgba(47,93,80,0.58);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.35s;
}
.card:hover .card-overlay {
    opacity: 1; 
}

.card-overlay i { 
    font-size: 2rem; 
    color: #fff; 
}


.card-body { 
    padding: 22px 24px 24px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    flex: 1; 
}

.card-tag {
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    font-size: 0.78rem; 
    font-weight: 500;
    color: var(--accent-color);
    background: rgba(111,168,168,0.15);
    border: 1px solid rgba(111,168,168,0.35);
    border-radius: 50px; 
    padding: 3px 12px; 
    width: fit-content;
}

.card-body h2 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--main-color); 
}
.card-body p { 
    font-size: 0.9rem; 
    line-height: 1.65; 
    color: #4e6a67; 
    flex: 1; 
}

.card-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 7px;
    color: var(--main-color);
    font-size: 0.88rem; 
    font-weight: 600;
    text-decoration: none; 
    border: 2px solid var(--main-color);
    border-radius: 50px; 
    padding: 8px 20px; 
    width: fit-content;
    transition: all 0.3s; 
    margin-top: 4px;
}
.card-btn:hover { 
    background: var(--main-color); 
    color: #fff; 
    transform: translateX(3px); 
}

/* FOOTER */
footer {
    background:rgba(255,255,255,0.55);
    backdrop-filter:blur(18px);
    text-align: center;
    padding: 40px;
    color: #7a9a97;
    font-size: 0.88rem;
}
footer a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    main { padding: 30px 15px 60px; }
    .portfolio { grid-template-columns: 1fr; }
}
