* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/11.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.link-item i {
    font-size: 18px;
    justify-self: center;
}

.link-item span {
    text-align: center;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Sections & Sub-links */
.section {
    width: 100%;
    margin-bottom: 5px;
}

.sub-links, .news-ticker, .gallery-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

.sub-links { gap: 8px; }
.news-ticker { text-align: left; }
.gallery-container { padding: 0 15px; }

.section.active .sub-links, 
.section.active .news-ticker, 
.section.active .gallery-container {
    max-height: 1000px; /* Großer Wert für dynamischen Inhalt */
    opacity: 1;
    padding: 15px;
    margin-bottom: 10px;
}

.sub-btn {
    border-radius: 10px;
    grid-template-columns: 30px 1fr;
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.download-all {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img, .lightbox-modal video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 5px;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section.active .map-container {
    display: block;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

input[type="file"] {
    margin: 20px 0;
    color: white;
}

/* Admin Controls & Badges */
.admin-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 15;
}

.admin-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.admin-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.admin-btn.approve {
    background: #2ecc71;
}

.admin-btn.delete {
    background: #e74c3c;
}

.status-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffcc00;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.admin-item.pending {
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    border: 1px solid #ffcc00;
}

.admin-item.pending img, .admin-item.pending video {
    opacity: 0.8;
}

/* News Management */
.news-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-manage-item span {
    font-size: 14px;
    text-align: left;
    flex: 1;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.05);
}

/* Z-Index Fix */
.download-btn {
    z-index: 10;
}
