: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.8), rgba(255,255,255,0.9)),
        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 {
    width: 40px;
    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 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ── PAGE HEADER ── */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    margin-bottom: 6px;
}
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 8px;
}
.page-sub {
    color: #6a8c88;
    font-size: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;   /* Profilkarte breiter */
    gap: 28px;
    align-items: start;
}

.profile-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    padding: 36px 24px;
    text-align: center;
    animation: fadeInUp 0.7s ease both;
}

.profile-img-wrap {
    width: 180px;          
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid var(--accent-color);
    box-shadow: 0 6px 28px rgba(111,168,168,0.4);
}
.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 6px;
}
.profile-sub {
    font-size: 0.85rem;
    color: #6a8c88;
}

.info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.7s ease both;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}
.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(47,93,80,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--main-color);
    font-size: 1.1rem;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 12px;
}
.info-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4e6a67;
    margin-bottom: 6px;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.hobby-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--main-color);
    background: rgba(47,93,80,0.08);
    border: 1px solid rgba(47,93,80,0.2);
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.hobby-tag:hover {
    background: rgba(47,93,80,0.15);
    transform: translateY(-2px);
}

.friends-section {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 36px 36px 32px;
    animation: fadeInUp 0.7s ease both;
}

.friends-text {
    position: relative;
    max-width: 680px;
    margin: 0 auto 32px auto;
    text-align: center;
}
.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.4;
    display: block;
    margin-bottom: 10px;
}
.friends-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4e6a67;
    font-style: italic;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.friend-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.friend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.friend-card:hover img {
    transform: scale(1.07);
}

.friend-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47,93,80,0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.friend-card:hover .friend-overlay {
    opacity: 1;
}
.friend-overlay span {
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
}

.timeline {
	margin-top: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--main-color));
    border-radius: 2px;
}

.timeline-item {
	margin-top: 40px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 36px;
    animation: fadeInUp 0.7s ease both;
}
.timeline-item:last-child { 
    padding-bottom: 0; 
}

.timeline-dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--main-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(47,93,80,0.15);
    position: relative;
    z-index: 1;
}

.timeline-item--current .timeline-dot {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    box-shadow: 0 4px 20px rgba(47,93,80,0.35);
}

.timeline-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 24px 28px;
    flex: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}
.timeline-item--current .timeline-card {
    border-left: 4px solid var(--main-color);
}

.timeline-card--with-photo {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
}
.timeline-card-content {
    flex: 1;
    padding: 25px ;
}

.timeline-school-photo {
    width: 320px;
    min-width: 320px;
    overflow: hidden;
}
.timeline-school-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition:  0.4s ease;
}
.timeline-card--with-photo:hover .timeline-school-photo img {
    transform: scale(1.05);
}


.school-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--main-color);
    text-decoration: none;
    background: rgba(47,93,80,0.08);
    border: 1px solid rgba(47,93,80,0.2);
    border-radius: 50px;
    padding: 6px 14px;
    margin-top: 12px;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
}
.school-link:hover {
    background: rgba(47,93,80,0.16);
    transform: translateY(-2px);
}

.timeline-year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(111,168,168,0.15);
    border: 1px solid rgba(111,168,168,0.3);
    border-radius: 50px;
    padding: 3px 12px;
    margin-bottom: 10px;
}
.timeline-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 4px;
}
.timeline-school {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}
.timeline-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #4e6a67;
}
.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--main-color);
    background: rgba(47,93,80,0.10);
    border: 1px solid rgba(47,93,80,0.2);
    border-radius: 50px;
    padding: 4px 12px;
}


@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(24px); 
    }
    to   { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }

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: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .timeline-school-photo {
        width: 140px;
    }
    .friends-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    main { padding: 30px 16px; }

    .timeline-card--with-photo {
        flex-direction: column;
    }
    .timeline-school-photo {
        width: 100%;
        height: 160px;
        align-self: auto;
    }
    .timeline-school-photo img {
        border-radius: 0 0 18px 18px;
    }
    .timeline-card-content {
        padding: 20px;
    }
}
