/* ==========================================
   ALLGEMEINE STILE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2f3d2b;
    background-color: #f5f7f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background-color: #3e4e2d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.55rem;
    font-weight: bold;
    color: #dfeec0;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo::before {
    content: '';
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 9px;
    background: url('../images/Sloman_Logos/dekr_hell_64.png') center / cover no-repeat;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.35rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.65rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #dfeec0;
    border-bottom: 2px solid #dfeec0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background-image: linear-gradient(135deg, rgba(122, 143, 69, 0.72) 0%, rgba(77, 93, 46, 0.72) 100%), url('../images/test.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background-color: #7a8f45;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #7a8f45;
}

.cta-button:hover {
    background-color: #697d39;
    border-color: #697d39;
    transform: translateY(-3px);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: 4rem 0;
    background-color: white;
}

.about h2,
.members-preview h2,
.quick-links h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

/* ==========================================
   MEMBERS SECTION
   ========================================== */

.members-preview {
    padding: 4rem 0;
    background-color: #ecf0f1;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.member-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 2rem;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eef1e6;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.16);
}

.hero-content::before {
    content: '';
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 1.25rem;
    border-radius: 24px;
    background: url('../images/Sloman_Logos/dekr_dunkel_192.png') center / cover no-repeat;
    box-shadow: 0 14px 35px rgba(28, 40, 20, 0.28);
    animation: slideDown 0.8s ease;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.btn-small {
    display: inline-block;
    background-color: #7a8f45;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: #697d39;
}

/* ==========================================
   QUICK LINKS
   ========================================== */

.quick-links {
    padding: 4rem 0;
    background-color: white;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background: linear-gradient(135deg, #7a8f45 0%, #4d5d2e 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    font-size: 0.95rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: #3e4e2d;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer .container::before {
    content: '';
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    background: url('../images/Sloman_Logos/dekr_hell_128.png') center / contain no-repeat;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 90px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .logo::before { width: 34px; height: 34px; flex-basis: 34px; border-radius: 7px; }
    .hero-content::before { width: 88px; height: 88px; border-radius: 19px; }
    .footer .container::before { width: 62px; height: 62px; }

    .hero-content p {
        font-size: 1rem;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: 1px solid #dfeec0;
    }

    .members-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .about h2,
    .members-preview h2,
    .quick-links h2 {
        font-size: 2rem;
    }

    .member-photo-collage {
        grid-template-columns: repeat(5, 20vw);
        min-height: 150px;
        margin-bottom: 1.5rem;
    }

    .member-photo-card {
        width: min(100%, 20vw);
        padding: 0.4rem 0.4rem 1.3rem;
    }

    .member-photo-card:nth-child(1) {
        margin-left: 0;
        margin-top: 12px;
    }

    .member-photo-card:nth-child(2) {
        margin-left: -4vw;
    }

    .member-photo-card:nth-child(3) {
        margin-left: -5vw;
        margin-top: 8px;
    }

    .member-photo-card:nth-child(4) {
        margin-left: -6vw;
    }

    .member-photo-card:nth-child(5) {
        margin-left: -8vw;
        margin-top: 10px;
    }

    .member-photo-card img {
        height: 95px;
    }
}

/* ==========================================
   GALERIE STYLES
   ========================================== */

.gallery {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #7a8f45 0%, #4d5d2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

/* ==========================================
   KONTAKT STYLES
   ========================================== */

.contact-section {
    padding: 4rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #7f8c8d;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7a8f45;
    box-shadow: 0 0 5px rgba(122, 143, 69, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    background-color: #7a8f45;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.form-btn:hover {
    background-color: #697d39;
    transform: translateY(-2px);
}

/* ==========================================
   MEMBER PAGE STYLES
   ========================================== */

.member-detail {
    padding: 3rem 0;
}

.member-detail-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.member-large-image {
    font-size: 6rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.18);
    border: 1px solid rgba(52, 152, 219, 0.18);
    background: #f4f7fa;
}

.member-large-image img {
    display: block;
    width: 200px;
    height: 275px;
    object-fit: cover;
    border-radius: 22px;
}

.member-large-image--polaroid {
    background: #fffaf3;
    padding: 0.7rem 0.7rem 2.5rem 0.7rem;
    border-radius: 10px;
    transform: rotate(-1.5deg);
    box-shadow: 0 15px 25px rgba(44, 62, 80, 0.16);
    border: 1px solid rgba(128, 128, 128, 0.15);
}

.member-large-image--polaroid img {
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.member-large-image--minimal {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.08);
}

.member-large-image--minimal img {
    border-radius: 18px;
}

.member-photo-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 150px);
    justify-content: center;
    align-items: end;
    gap: 0;
    max-width: 860px;
    margin: 1rem auto 2rem;
    min-height: 280px;
}

.member-photo-card {
    position: relative;
    width: min(100%, 150px);
    justify-self: start;
    background: #fffaf3;
    padding: 0.65rem 0.65rem 2.3rem;
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.15);
    box-shadow: 0 15px 25px rgba(44, 62, 80, 0.16);
    transform: rotate(var(--angle));
    margin-left: -30px;
    z-index: 1;
}

.member-photo-card:first-child {
    margin-left: 0;
}

.member-photo-card:nth-child(1) {
    --angle: -12deg;
    margin-left: 0;
    margin-top: 20px;
    z-index: 5;
}

.member-photo-card:nth-child(2) {
    --angle: 9deg;
    margin-left: -30px;
    z-index: 4;
}

.member-photo-card:nth-child(3) {
    --angle: -5deg;
    margin-left: -40px;
    margin-top: 12px;
    z-index: 3;
}

.member-photo-card:nth-child(4) {
    --angle: 11deg;
    margin-left: -45px;
    z-index: 2;
}

.member-photo-card:nth-child(5) {
    --angle: -9deg;
    margin-left: -60px;
    margin-top: 16px;
    z-index: 1;
}

.member-photo-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}

.member-detail-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.member-detail-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.member-birthday {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    background: #f3f6e8;
    border: 1px solid #dfe9c5;
    border-radius: 999px;
    color: #2f3d2b;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.member-birthday strong {
    color: #6f8657;
}

.member-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.member-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.member-content h2:first-child {
    margin-top: 0;
}

.member-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    background-color: #7f8c8d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background-color: #5d6d7b;
}
.contact-section {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(circle at 10% 8%, rgba(188, 210, 141, 0.22), transparent 28rem),
        #f5f7f0;
}

.contact-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #718443;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-intro h1 {
    color: #263820;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.contact-intro p { color: #667060; font-size: 1.08rem; }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: start;
}

.contact-form {
    max-width: none;
    margin: 0;
    padding: 2.25rem;
    border: 1px solid rgba(77, 93, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(51, 67, 39, 0.09);
}

.contact-form-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.contact-form-heading > span {
    display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 13px; background: #eaf0dc; color: #5f7333; font-size: 1.35rem;
}
.contact-form-heading h2 { color: #263820; font-size: 1.35rem; line-height: 1.2; }
.contact-form-heading p { color: #7b8477; font-size: 0.9rem; }
.contact-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group { margin-bottom: 1.1rem; }
.contact-form .form-group label { color: #34452d; font-size: 0.9rem; font-weight: 700; }
.contact-form .form-group label span { color: #718443; }
.contact-form .form-group input,
.contact-form .form-group textarea {
    background: #fafbf8; border-color: #dce3d3; border-radius: 9px; padding: 0.85rem 0.95rem;
}
.contact-form .form-group textarea { min-height: 150px; }
.contact-form .form-btn { border-radius: 9px; padding: 0.9rem 1.2rem; font-weight: 700; }
.contact-form .form-btn span { margin-left: 0.35rem; }

.contact-aside { display: grid; gap: 1rem; }
.contact-aside-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
    background: #fff; border: 1px solid rgba(77, 93, 46, 0.1); border-radius: 15px;
    box-shadow: 0 8px 24px rgba(51, 67, 39, 0.07);
}
.contact-aside-icon {
    display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 50%; background: #eaf0dc; color: #607534; font-size: 1.2rem;
}
.contact-aside-card div > span { display: block; color: #849079; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-aside-card a { color: #34452d; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-aside-card a:hover { color: #718443; }
.contact-note {
    padding: 2rem; color: #fff; border-radius: 18px;
    background: linear-gradient(145deg, #4d5d2e, #354526);
    box-shadow: 0 14px 30px rgba(51, 67, 39, 0.18);
}
.contact-note > span { color: #dfeec0; font-size: 1.45rem; }
.contact-note h2 { margin: 0.65rem 0 0.7rem; font-size: 1.35rem; line-height: 1.3; }
.contact-note p { color: #e6eddc; font-size: 0.94rem; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 800px) {
    .contact-section { padding: 3.25rem 0 4rem; }
    .contact-intro { margin-bottom: 2.2rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside { grid-template-columns: 1fr 1fr; }
    .contact-note { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .contact-fields-row, .contact-aside { grid-template-columns: 1fr; }
    .contact-note { grid-column: auto; }
    .contact-form { padding: 1.35rem; }
    .contact-intro p { font-size: 1rem; }
}

.home-moments { padding: 4rem 0; background: white; }
.home-moments h2 { text-align: center; color: #2c3e50; margin-bottom: 2rem; }
.home-moments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.home-moment-card { display: grid; grid-template-columns: 42% 1fr; background: #f4f7ed; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; min-height: 190px; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.home-moment-card img { width: 100%; height: 100%; object-fit: cover; }
.home-moment-card div { padding: 1.25rem; align-self: center; }
.home-moment-card span, .birthday-next-card > span { color: #718443; text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 800; }
.home-moment-card h3 { color: #2c3e50; margin: .3rem 0; }
.birthday-next { padding: 2.5rem 0; background: #eaf0dc; }
.birthday-next-card { text-align: center; }
.birthday-next-card h2 { color: #2c3e50; margin: .25rem 0; }
.on-this-day { padding: 2.5rem 0; background: #fff; text-align: center; }
.on-this-day a { color: inherit; text-decoration: none; }
.on-this-day span { color: #718443; text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 800; }
.on-this-day h2 { color: #2c3e50; margin: .3rem 0; }
.on-this-day-photos { padding: 3rem 0; background: #f4f7ed; text-align: center; }
.on-this-day-photos h2 { color: #2c3e50; margin: .25rem 0 1.5rem; }
.home-section-kicker { color: #718443; text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 800; }
.on-this-day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.on-this-day-grid a { position: relative; min-height: 180px; border-radius: 12px; overflow: hidden; color: white; }
.on-this-day-grid img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.on-this-day-grid a > span { position: absolute; inset: auto 0 0; padding: 1.4rem .7rem .6rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: .78rem; font-weight: 700; }
