/* Refined styles.css using forum.css structure - Mobile friendly without media queries */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #d5d5d5;
}

html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* important for vertical stretching */
}

.main-content {
    flex: 1; /* take up remaining vertical space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../images/logo/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}


.main-content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.admin-tools {
    position: absolute;
    top: 7px;
    left: 15px;
}

.admin-button {
    background-color: #2c7c5e;
    color: white;
    border: none;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.admin-button:hover {
    background-color: #1e5a42;
    transform: scale(1.05);
}

.top-bar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 20px;
    background-color: #222;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.top-bar {
    display: flex;
    font-weight: bold;
    justify-content: flex-end;
    gap: 4px;
    padding: 10px 15px;
    background-color: #222;
    color: #fff;
    width: 100%;
}

.top-bar .top-link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    transition: color 0.3s ease-in-out;
}

.top-bar .top-link:hover {
    color: #4caf50;
}

.contact-link i {
    color: white;
    transition: color 0.3s ease;
}

.contact-link:hover i {
    color: #4caf50; /* green on hover */
}

.top-role {
    font-size: 0.85rem;
    color: #ffffff;
    text-align: right;
    width: 100%;
    padding-right: 15px;
}

.header {
    width: 100vw;
    max-width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.logo-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: cover;
}

.logo {
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    width: 100%;
}

.tagline {
    font-size: 1rem;
    text-align: center;
    padding: 5px 20px;
    color: #d5d5d5;
    font-style: italic;
    display: inline-block;
}

.navbar {
    width: 100%;
    background-color: black;
    padding: 0.5rem;
    margin: auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    justify-content: center;
    padding: 0 10px;
    list-style: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: max-content;
    white-space: nowrap;
}

.nav-text {
    display: block !important;
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    margin: 2px;
}

.nav-list .active a {
    color: #4CAF50;
    font-weight: bold;
}

.main {
    text-align: center;
    margin: 0px 10px;
}

.main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/*erinnerung.php*/
.memory-section {
    max-width: 900px;
    width: 100%;
    padding: 30px 20px;
    background: radial-gradient(rgba(30, 30, 30, 0.95), rgba(10, 10, 10, 0.95));
    border-radius: 12px;
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    font-family: 'Garamond', 'Georgia', serif;
    text-align: center;
    margin: 0 auto;
    max-height: calc(100vh - 120px); /* ✅ Leaves room for footer/header */
    overflow-y: auto; /* ✅ Handles overflow gracefully */
}


.memory-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-style: italic;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.memory-section::before,
.memory-section::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px double #4caf50;
    opacity: 0.3;
}

.memory-section::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.memory-section::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}


.brother-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brother-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.brother-card img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    object-fit: cover;
    filter: grayscale(100%);

}

.brother-card p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d5d5d5;
}

.gothic-cross {
    position: relative;
    width: 28px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.gothic-cross::before,
.gothic-cross::after {
    content: "";
    position: absolute;
    background-color: #ffffffcc;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Vertical shaft */
.gothic-cross::before {
    width: 8px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 1px;
}

/* Horizontal crossbar */
.gothic-cross::after {
    width: 100%;
    height: 8px;
    top: 20px;
    left: 0;
    border-radius: 1px;
}

/* Gothic touches — triangle caps */
.gothic-cross::before,
.gothic-cross::after {
    clip-path: polygon(
            50% 0%,
            60% 0%,
            60% 10%,
            100% 10%,
            100% 90%,
            60% 90%,
            60% 100%,
            40% 100%,
            40% 90%,
            0% 90%,
            0% 10%,
            40% 10%,
            40% 0%
    );
}


.footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: #fff;
    font-size: 0.9rem;
}