/* ======================================= */
/* COMBAT CORPS – GLOBAL DESIGN VARIABLES */
/* ======================================= */

:root {
    --green-dark: #121b12;
    --green-mid:  #1d2d1d;
    --green-light:#324b32;
    --green-accent:#4fa34f;

    --ink: #f0f0f0;
    --muted: #a0a7a0;

    --panel-bg: #1a1a1a;
    --shadow: rgba(0,0,0,0.5);
}

/* =============================== */
/* GLOBAL BASE                    */
/* =============================== */

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

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(
            180deg,
            #000000 0%,
            #080808 25%,
            #121212 60%,
            #1a1a1a 100%
    );
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================== */
/* HERO SECTION (INDEX)           */
/* =============================== */

.hero {
    flex: 1;
    text-align: center;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease forwards;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-top: 25px;
    background: linear-gradient(90deg, var(--green-accent), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(79,163,79,0.4);
    opacity: 0;
    animation: fadeUp .8s ease forwards .4s;
}

.hero p {
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp .8s ease forwards .6s;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeUp .8s ease forwards .8s;
}

/* =============================== */
/* BUTTONS                        */
/* =============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--green-accent);
    background: transparent;
    color: var(--green-accent);
    text-decoration: none;
    transition: all .3s ease;
}

.btn.primary {
    background: var(--green-accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79,163,79,.3);
}

.btn.primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.btn.ghost:hover {
    background: var(--green-accent);
    color: #fff;
}

/* =============================== */
/* SCROLL-GALLERY (INDEX)         */
/* =============================== */

#scroll-section {
    position: relative;
    width: 100%;
    padding: 80px 0 120px;
    text-align: center;
    overflow: visible;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2em;
    color: var(--ink);
    margin-bottom: 70px;
    text-shadow: 0 0 10px rgba(79,163,79,0.3);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    height: 4px;
    width: 80%;
    max-width: 380px;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--green-accent) 20%,
    var(--green-light) 50%,
    var(--green-accent) 80%,
    transparent 100%
    );
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(79,163,79,0.6);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: .8; box-shadow: 0 0 12px rgba(79,163,79,0.6); }
    50%      { opacity: 1; box-shadow: 0 0 20px rgba(79,163,79,0.9); }
}

.scroll-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.scroll-gallery {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scrollLoop 100s linear infinite;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 auto;
    width: 350px;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

@keyframes scrollLoop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================== */
/* GALLERY PAGE (galerie.php)     */
/* =============================== */

.page {
    flex: 1;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.gallery-container {
    width: 100%;
    max-width: 1600px;
    text-align: center;
}

/* Masonry layout */
.photo-gallery {
    column-count: 3;
    column-gap: 16px;
    width: 100%;
}
@media (max-width: 1200px) { .photo-gallery { column-count: 2; } }
@media (max-width: 800px)  { .photo-gallery { column-count: 1; } }

.photo-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
    background: var(--panel-bg);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.photo-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform .4s ease, filter .3s ease;
}

.photo-wrapper:hover img {
    transform: scale(1.04);
    filter: brightness(1.15);
}

.download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    display: none;
}
.photo-wrapper:hover .download-btn {
    display: block;
}

/* =============================== */
/* LIGHTBOX (Bild-Overlay)        */
/* =============================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    animation: fadeIn .4s ease;
    box-shadow: 0 0 25px rgba(79,163,79,0.6);
}

/* =============================== */
/* LOGIN POPUP                    */
/* =============================== */

.login-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-accent);
    color: white;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 500;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: all .3s ease;
}
.login-fab:hover {
    background: var(--green-light);
    transform: scale(1.05);
}

.login-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--panel-bg);
    border: 1px solid var(--green-accent);
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 501;
    transition: all .4s ease;
}
.login-popup.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.login-popup input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--green-accent);
    background: #0f0f0f;
    color: var(--ink);
    margin-bottom: 10px;
}

/* =============================== */
/* ABOUT / TEAM PAGE              */
/* =============================== */

.about-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card {
    background: var(--panel-bg);
    border: 1px solid #262626;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    max-width: 1100px;
    width: 100%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-card h1 {
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--green-accent), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-intro {
    color: var(--muted);
    line-height: 1.7;
    max-width: 820px;
    font-size: 1.05rem;
}

.highlight {
    color: var(--green-accent);
    font-weight: 600;
}

.team-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .team-grid { grid-template-columns: 1fr; } }

.member-card {
    background: #111;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid rgba(79,163,79,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: .25s;
}
.member-card:hover {
    border-color: var(--green-accent);
    transform: translateY(-4px);
}

.member-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 0 0 3px rgba(79,163,79,0.4);
}

.member-card h2 {
    margin: 0;
}

.member-role {
    color: var(--green-accent);
    font-size: .9rem;
    font-weight: 600;
}

.member-text {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

.member-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.member-tags span {
    padding: 4px 8px;
    font-size: .78rem;
    border-radius: 999px;
    border: 1px solid rgba(79,163,79,0.5);
    background: rgba(20,40,20,0.8);
}

/* =============================== */
/* FOOTER                         */
/* =============================== */

.footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    background: #0c0c0c;
    border-top: 1px solid #2a2a2a;
}

/* =============================== */
/* ANIMATIONS                     */
/* =============================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}
/* === SOCIAL MEDIA ICONS === */
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 40px 0 60px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0f0f0f, #1a1f1a);
    border: 1px solid var(--green-accent);
    box-shadow: 0 0 12px rgba(79,163,79,0.35);
    transition: all 0.3s ease;
}

.social-links a img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0.9);
}

/* Hover Effekt */
.social-links a:hover {
    transform: scale(1.15);
    background: var(--green-light);
    box-shadow: 0 0 16px rgba(79,163,79,0.6);
}

.social-links a:hover img {
    filter: brightness(1.1);
}
/* === EVENTS SEITE === */
.events-page {
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--green-accent), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(79,163,79,0.4);
    text-align: center;
}

.events-subtitle {
    max-width: 700px;
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

.events-list {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Event-Banner */
.event-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    padding: 20px 24px;
    background: var(--panel-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid #262626;
}

.event-card.with-image {
    background-size: cover;
    background-position: center;
}

.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    pointer-events: none;
}

.event-card-content {
    position: relative;
    z-index: 1;
}

.event-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.event-meta span::before {
    content: "• ";
    color: var(--green-accent);
}
.event-meta span:first-child::before {
    content: "";
}

.event-desc {
    margin: 0 0 12px;
    color: #e5e7eb;
}

.event-calendar-btn {
    margin-top: 4px;
}

.events-empty {
    text-align: center;
    color: var(--muted);
}


