
:root{
    --brand-green: #165833;
}
.logo {
    width: clamp(40px, 8vw, 80px);
    height: auto;
    display: inline-block;
}
.center {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    background-color: rgb(255, 255, 255);  /* Hintergrundbild hier ändern */
}
h1 {
    font-family: Arial, sans-serif;
    color: var(--brand-green);
    margin: 0.5rem 0;
    line-height: 1.05;
    font-size: clamp(1.5rem, 6.5vw, 4rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

/* Stil für h2 und p in .fotos */
.fotos h2 {
    font-family: 'Cinzel', serif;
    color: #fffbe6;
    font-size: clamp(1.3rem, 5vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 12px rgba(10,68,35,0.18);
    text-transform: uppercase;
    border-bottom: 2px solid #fffbe6;
    display: inline-block;
    padding-bottom: 0.2em;
}
.fotos p {
    color: #f7f3e7;
    font-size: clamp(0.98rem, 3vw, 1.08rem);
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.7;
    font-family: 'Merriweather', serif;
    text-shadow: 0 1px 8px rgba(10,68,35,0.10);
    letter-spacing: 0.5px;
    background: rgba(30,30,20,0.08);
    border-left: 3px solid #fffbe6;
    padding-left: 1em;
    border-radius: 2px;
}

@keyframes drop-in {
    from {
        opacity: 0;
        transform: translateY(-150px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.drop-in {
    animation: drop-in 1s ease-out forwards;
}
@keyframes expand-in {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}
.expand-in {
    animation: expand-in 1s ease-out forwards;
    transform-origin: center;
}

nav {
    width: 100%;
    background-color: #3CB371;
    padding: 0.8rem 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    border-radius: 16px;
}
nav a,
nav .nav-item > a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-family: Arial, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: 
        background 0.3s,
        color 0.3s,
        transform 0.2s cubic-bezier(.4,2,.6,1),
        box-shadow 0.2s;
    position: relative;
    z-index: 1;
}
nav a:first-child,
nav .nav-item:first-child > a {
    border-left: 1px solid rgba(255,255,255,0.2);
}
nav a:hover,
nav .nav-item > a:hover {
    background: rgba(255,255,255,0.15);
    color: #eaffea;
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 2px 12px 0 rgba(60,183,113,0.12);
}
nav a.active,
nav .nav-item > a.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 12px 0 rgba(60,183,113,0.18);
}
nav .nav-item { position: relative; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2E8B57;
    display: none;
    flex-direction: column;
    min-width: 180px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    z-index: 50;
    border-radius: 0 0 8px 8px;
    animation: fade-slide 0.3s ease forwards;
}
.dropdown-menu a {
    color: white;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    transform: translateY(-10px);
    animation: item-in 0.25s forwards;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}
.dropdown-menu a:hover {
    background: rgba(60,183,113,0.18);
    color: #eaffea;
}
nav .nav-item:hover .dropdown-menu { display: flex; }
nav .nav-item:hover .dropdown-menu a { animation-delay: 0.05s; }

@keyframes fade-slide {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes item-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:768px) {
    nav { gap: 0; }
    nav a, nav .nav-item > a { padding: 0.6rem 1rem; }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        position: static;
    }
}
@media (max-width:420px){
    h1 { font-size: clamp(1.25rem, 8vw, 2.2rem); }
    nav a, nav .nav-item > a { padding: 0.6rem 0.8rem; font-size: 0.85rem; }

    .home-card {
        padding: 1.2rem;
    }

    .friendships-grid {
        grid-template-columns: 1fr;
    }
}

.fotos {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: white;
    background-color: #0a4423;
}

/* Produktkarten Styles */
.product-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 68, 35, 0.3);
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-description {
    padding: 1rem;
}

.product-description h3 {
    font-family: 'Cinzel', serif;
    color: #fffbe6;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.product-description p {
    color: #f7f3e7;
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.home-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    color: #163322;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
    align-items: start;
}

.home-layout > * {
    position: static;
    z-index: auto;
}

.home-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,246,0.96) 100%);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 14px 36px rgba(5, 38, 19, 0.2);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.calendar-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(22, 88, 51, 0.12);
    color: var(--brand-green);
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-card h2,
.calendar-card h2,
.friendships-header h2 {
    margin: 0 0 1rem;
    font-family: 'Cinzel', serif;
    color: var(--brand-green);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.calendar-card h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.story-card p,
.calendar-item p,
.friendship-item p {
    margin: 0 0 1rem;
    font-family: 'Merriweather', serif;
    line-height: 1.75;
    color: #22352b;
}

.story-card p {
    font-size: 1.1rem;
}

.story-card p:last-child,
.calendar-item p:last-child,
.friendship-item p:last-child {
    margin-bottom: 0;
}

.story-card {
    min-height: 0;
    height: auto;
    overflow: visible;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#story-content {
    line-height: 1.75;
    font-family: 'Merriweather', serif;
    color: #22352b;
    overflow-wrap: anywhere;
}

.story-subheading {
    margin: 1.1rem 0 0.55rem;
    font-family: 'Cinzel', serif;
    color: #0f4c2b;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.calendar-card {
    position: static;
}

.calendar-list {
    display: grid;
    flex: 1;
    min-height: 0;
    gap: 1rem;
    max-height: none;
    overflow-y: auto;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.calendar-list::-webkit-scrollbar {
    width: 8px;
}

.calendar-list::-webkit-scrollbar-track {
    background: rgba(22, 88, 51, 0.05);
    border-radius: 4px;
}

.calendar-list::-webkit-scrollbar-thumb {
    background: rgba(22, 88, 51, 0.25);
    border-radius: 4px;
}

.calendar-list::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 88, 51, 0.4);
}

.calendar-item {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22,88,51,0.08) 0%, rgba(22,88,51,0.02) 100%);
    border: 1px solid rgba(22,88,51,0.12);
}

.calendar-item.calendar-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #346048;
    font-style: italic;
}

.calendar-item h3,
.friendship-item h3 {
    margin: 0 0 0.5rem;
    font-family: 'Cinzel', serif;
    color: #0f4c2b;
    font-size: 1.15rem;
}

.calendar-date {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--brand-green);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.calendar-meta {
    color: #346048;
    font-size: 0.95rem;
}

.friendships-banner {
    margin-top: 0;
    background: #f6faf6;
    backdrop-filter: none;
    position: static;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.friendships-header {
    margin-bottom: 1.2rem;
}

.friendships-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

.friendship-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 240px;
    min-width: 240px;
    max-width: 100%;
    gap: 0.85rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(22,88,51,0.12);
}

.friendship-item-half {
    flex: 0 1 calc(50% - 0.5rem);
}

.friendship-item p,
.friendship-item h3 {
    overflow-wrap: anywhere;
}

.friendship-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 0.45rem;
    box-shadow: 0 6px 18px rgba(10, 68, 35, 0.12);
}

@media (max-width:768px) {
    .friendship-item-half {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .home-page {
        padding: 1.25rem 0.75rem 2rem;
    }

    .home-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "story"
            "calendar";
        gap: 1rem;
    }

    .story-card {
        grid-area: story;
        border-radius: 20px;
    }

    .calendar-card {
        grid-area: calendar;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .calendar-list {
        max-height: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}
