 /* =======================================================
   FORMULARE & BUTTONS
======================================================= */
.form_group {
    position: relative; margin-bottom:22px;
}
.form_group input[type="text"],
.form_group input[type="password"] {
    width: 100%; padding:14px 12px 10px;
    border:1px solid var(--bg-gray-light); border-radius:6px;
    background: var(--bg-gray-transparent); color: var(--text-light-gray);
    font-size:16px; transition:border 0.2s, background 0.2s;
}
.form_group input:focus {
    border-color: var(--bg-yellow);
    outline:none;
}

.form_badge {
    position:absolute; top:-12px; left:15px;
    background: var(--bg-gray-dark);
    color: var(--bg-green); font-size:11px; padding:2px 8px;
    border-radius:5px; font-weight:600;
    border:1px solid var(--bg-green-accent);
    box-shadow:0 0 10px rgba(0,0,0,0.95);
}

/* BUTTONS IN FORMEN & GENERELL */
.btn {
    display: inline-block; padding: 12px 20px;
    border: none; border-radius: 5px;
    font-weight: bold; text-align: center; cursor: pointer;
    transition: background 0.2s;
}

.btn_confirm {
	background: var(--btn-bg-confirm);
	color: var(--btn-text-confirm);
	border: var(--btn-border);
	border-radius: var(--btn-radius);
	padding: var(--btn-padding);
	transition:  var(--transition);
	cursor: var(--cursor-pointer);
}

.btn_confirm:hover {
	background: var(--btn-bg-confirm-hover);
}


.btn_cancel { background: var(--btn-bg-cancel); color: var(--btn-text-cancel); border: var(--btn-border); border-radius: var(--btn-radius);  transition:  var(--transition);  }
.btn_cancel:hover { background: var(--btn-bg-cancel-hover); }

.btn_admin { background: var(--btn-bg-admin); color: var(--btn-text-admin); border:1px solid var(--btn-border-admin); border: var(--btn-border); border-radius: var(--btn-radius);  transition:  var(--transition);  }
.btn_admin:hover { background: var(--btn-bg-admin-hover); }

.btn_admin.close { border-color: var(--btn-border-admin-close); color: var(--btn-text-admin-close); }
.btn_admin.reopen { border-color: var(--btn-border-admin-reopen); color: var(--btn-text-admin-reopen); }
.btn_admin.delete { border-color: var(--btn-border-admin-delete); color: var(--btn-text-admin-delete); }
.btn_admin.delete:hover { background: var(--btn-bg-admin-delete-hover); }

/* BUTTON GROUPS */
.button_group {
    display:flex; justify-content:space-between; gap:10px; padding:5px 0;
}
.button_group button { flex:1; padding:10px; }

/* =======================================================
   BOXES
======================================================= */
.box {
    display:flex; flex-direction:column;
    border:1px solid var(--border-box); border-radius:5px;
    background-color: var(--bg-gray-box);
    color: var(--text-white); min-height:300px;
    box-shadow: -5px 5px 10px var(--bg-box-shadow), 5px 5px 10px var(--bg-box-shadow);
}
.box_header {
    padding:12px; font-weight:bold; border-bottom:2px solid var(--border-gray-light);
    border-radius:5px 5px 0 0; background-color: var(--bg-gray);
}
.box_content { flex:1; padding:20px 15px; overflow:hidden; color: var(--text-white); }

/* =======================================================
   COPYRIGHT
======================================================= */
.copyright { margin-top:10px; font-size:12px; color:#666; }

/* =======================================================
   RESPONSIVE
======================================================= */
@media(max-width:768px){
    .checkbox{ font-size:14px; }
    .checkbox label::before { width:18px; height:18px; font-size:12px; }
    .content_wrapper { grid-template-columns:1fr !important; }
    .headline_bar { flex-direction:column; align-items:flex-start; padding:10px 15px; }
    .headline_left { font-size:1.2em; margin-bottom:6px; }
    .headline_right { font-size:0.85em; gap:8px; }
}

/* -------------------------- */

.account_form {
	width: 350px;
    max-width: 90%;
	background						:	#161822;
	border          				:	1px solid #2a2c32;
	margin							:	50px auto;
	padding         				:	10px;
	border-radius   				:	5px;
	
	background-color				:	rgba(10, 13, 19, 0.7); /* 10% transparentes Dunkel */
    color							:	#fcfcfe; /* Text bleibt sichtbar */

	box-shadow						:	-5px 5px 10px rgba(0, 0, 0, 0.65), /* links unten */
										5px 5px 10px rgba(0, 0, 0, 0.65); /* rechts unten */
}

.account_form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.account_form p {
    margin-bottom: 25px;
	text-align: center;
}

.twofa-inputs {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin: 0 0 30px 0;
}

.twofa-inputs input {
	width: 40px;
	height: 50px;
    color: #fcfcfe;
    font-size: 20px;
	font-weight: bold;        /* fett */
	text-align: center;
	transition: border-color 0.2s;
    border: 1px solid #2a2c32;
    border-radius: 5px;
    background-color: rgba(20, 25, 35, 0.7);
    box-sizing: border-box;
}

.twofa-inputs input:focus {
	border-color: #007bff;
	outline: none;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .twofa-inputs {
        gap: 10px;
    }
}

/* =======================================================
   DASHBOARD GRID
======================================================= */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .box {
        height: auto; /* flexible Höhe für kleine Bildschirme */
    }

    .box_content {
        padding: 15px 10px;
    }
}

/* =======================================================
   FORUM SPECIFIC
======================================================= */

.forum-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.category-header th {
    font-size: 1.2rem;
    padding: 10px;
}

.subcategory {
    border-bottom: 1px solid #101412;
}

.subcategory .title {
    width: 40%;
}

.subcategory .last-post {
    font-size: 0.9rem;
}

.subcategory .last-post a {
    text-decoration: none;
}

.subcategory .last-post a:hover {
    text-decoration: underline;
}

/* Forum Zitat Box */
.forum_quote {
    padding: 5px;
    margin: 5px 10px;
    border: 1px solid #666666;
    background: #151a18;
    border-radius: 4px; /* optional für globalen Look */
}

/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 768px) {
    .forum-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .table th, .table td {
        padding: 8px;
    }
    
    .subcategory .title {
        width: auto;
    }
}


/* ============================
   GRID / CONTENT BLOCKS
============================ */
.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* gleiche Höhe */
    gap: 20px;
}

.content-block {
    flex: 1 1 450px;
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #080b10;
    background-color: rgba(30,30,40,0.3);
    border-radius: 5px;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3), 5px 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-block:hover {
    transform: translateY(-2px);
    box-shadow: -6px 6px 12px rgba(0,0,0,0.4), 6px 6px 12px rgba(0,0,0,0.4);
}

.block-title {
    font-size: 18px;
    color: #FFD700;
    text-shadow: 0 0 5px #000;
    margin-bottom: 10px;
    text-align: center;
}

.block-title a {
    color: #FFD700;
    text-decoration: none;
}

.block-title a:hover {
    color: #fffacd;
}

/* GRID CONTAINER */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ITEM CARD */
.item-card {
    display: block;
    padding: 10px;
    margin: 5px;
    color: #cce7ff;
    text-decoration: none;
    transition: 0.2s ease;
    border-radius: 4px;
}

.item-card:hover {
    background: rgba(40,40,60,0.8);
}

.item-list li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: rgba(30,30,40,0.3);
    border: 1px solid #20222f;
    border-radius: 4px;
}

/* Leere Items */
.item-card.empty-item .item-title {
    color: #888888;
}
.item-card.empty-item:hover .item-title {
    color: #aaa;
}

/* ============================
   THREADS / POSTS
============================ */
.thread-container { flex: 1; min-width: 300px; }

.thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thread-list li {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:3px 8px;
    margin-bottom:3px;
    border-radius:3px;
    background-color: rgba(30,30,40,0.3);
    border:1px solid #20222f;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3),5px 5px 10px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
}

.thread-list li:hover {
    background-color: rgba(40,40,50,0.7);
    transform: translateY(-1px);
}

.thread-list li a {
    color: #cce7ff;
    font-size:17px;
    text-decoration:none;
    text-shadow:0 2px 3px rgba(0,0,0,0.8);
    flex-grow:1;
}

.thread-list li a:hover { color:#FFD700; }
.active-thread { font-weight:bold; color:#3aa0f0; }
.thread-user { font-size:0.85em; color:#aaa; }

/* POST BLOCK */
.post-block {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 3px;
    border: 1px solid #2a2c32;
    background-color: rgba(40, 40, 50, 0.5);
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3), 5px 5px 10px rgba(0, 0, 0, 0.3);
    color: #fcfcfe;
}

.post-block .thread-user {
    font-size: 0.85em;
    color: #aaaaaa;
}

/* COMMENTS */
.post-comment {
    padding: 14px;
    margin-bottom: 12px;
    border-left: 3px solid #6e6e6e;
    border-radius: 3px;
    background-color: rgba(30,30,40,0.3);
    color: #d0d0d0;
}

.post-comment:hover {
    background-color: #1a1d26;
    border-left-color: #3a3c42;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1400px) {
    .content-block { flex: 0 0 auto; min-width: 250px; max-width: 425px; padding: 0; }
    .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .item-card { margin: 0; }
}

@media (max-width: 900px) {
    .content-block { min-width: 100%; padding: 0; }
    .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .item-card { padding: 5px 10px; margin: 5px 0; }
    .block-title { font-size: 1.2em; font-weight: bold; margin-bottom: 5px; text-align: center; }
}

.gallery_box {
	padding: 10px;
	min-height: 170px;
	background-color: #101413;
}

.randomImage {
	width: 288px;
	height: 175px;
	background-size: cover; /* Bild proportional skalieren */
	background-position: center 10%; /* Bild mittig positionieren */
	background-repeat: no-repeat; /* Keine Wiederholung */
	box-sizing: border-box; /* Sicherstellen, dass Rahmen berücksichtigt wird */
}

.gallery_select {
  width: 300px; /* Feste Breite von 300px für den linken Bereich */
  background-color: #f0f0f0; /* Hintergrundfarbe für den linken Bereich */
}

.gallery_images {
  flex-grow: 1; /* Der rechte Bereich wächst, um den verbleibenden Platz einzunehmen */
  min-width: 500px; /* Mindestbreite von 500px */
  background-color: #d0d0d0; /* Hintergrundfarbe für den rechten Bereich */
}

.gallery_select {
	width: 300px;
}

.gallery_list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.gallery_list li {
    border: 1px solid #ccc; /* Rahmen um jedes Listenelement */
    margin: 5px;
    padding: 10px;
    cursor: pointer; /* Zeigt an, dass die Elemente klickbar sind */
    transition: background-color 0.3s ease; /* Übergangseffekt für den Hintergrund */
}

/* Standard Hintergrundfarbe */
.gallery_list li:hover {
    background-color: #f0f0f0; /* Leichte Änderung der Hintergrundfarbe bei Hover */
}

/* Hintergrundfarbe für geklickte Elemente */
.gallery_list li.active {
    background-color: #007bff; /* Markiert das geklickte Element */
    color: white; /* Weißer Text bei aktivem Element */
}

/* ============================
   Grundlayout & Container
============================ */
.poll-container {
    max-width: 100%;
    padding: 10px;
    color: #fff;
    font-family: Tahoma, sans-serif;
    border-radius: 8px;
    box-sizing: border-box;
}

.poll-description {
    margin-bottom: 20px;
}

/* ============================
   Headline Bar
============================ */
.poll-headline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: rgba(40,40,50,0.6);
    border: 1px solid #42454f;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.poll-headline-left {
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* ============================
   Poll Optionen
============================ */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option {
    padding: 10px;
	margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #20222f;
    background-color: rgba(30,30,40,0.3);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3),
                5px 5px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.poll-option:hover {
    transform: scale(1.02);
    background-color: rgba(40,40,50,0.35);
}

.poll-option.selected {
    background-color: rgba(40,40,50,0.5);
    border: 1px solid #42454f;
    box-shadow: 0 0 10px rgba(0,0,0,0.95);
}

.poll-option.selected:hover {
    transform: scale(1.025);
}

.poll-option {
    position: relative;
}

.my-vote-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #0f1f14;
    color: #00ff88;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 600;
	border: 1px solid #1f8b4c;
    box-shadow: 0 0 10px rgba(0,0,0,0.95);
}

.poll-option.has-vote {
	border: 1px solid #1f8b4c;
    border-color: #1f8b4c;
    background: rgba(31, 139, 76, 0.08);
}

.poll-option-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

/* ============================
   Status Icons
============================ */
.status-icon {
    font-size: 1.5em;
    margin-right: 5px;
}

.status-icon.closed { color: red; }
.status-icon.open   { color: limegreen; }

/* ============================
   Antworttext & Stimmen
============================ */
.poll-answer {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.poll-count {
    width: 80px;
    text-align: center;
}

/* ============================
   Benutzerliste
============================ */
.toggle-users {
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.poll-users {
    display: none;
    padding: 5px;
    margin-top: 5px;
}

.user-vote {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px;
    margin: 2px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-vote:hover { background: #333; }

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================
   Fortschrittsbalken
============================ */
.poll-bar-wrapper {
    margin-top: 5px;
    width: 100%;
}

.poll-bar {
    height: 20px;
    overflow: hidden;
}

.poll-progress {
    height: 100%;
    background: #fad73c;
    color: #fff;
    text-align: center;
    line-height: 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000,
         0   -2px 0 #000,
         0    2px 0 #000,
         0    0    3px rgba(0,0,0,0.7);
}

/* ============================
   Poll Cards (Liste)
============================ */
.poll-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 2px 0;
}

.poll-card {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #20222f;
    background-color: rgba(30,30,40,0.3);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3),
                5px 5px 10px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
}

.poll-card:hover {
    transform: scale(1.01);
    background-color: rgba(40,40,50,0.5);
}

.poll-title { font-weight: bold; }

.poll-status-icon { margin-right: 5px; }

.poll-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #aaa;
}

/* ============================
   Buttons
============================ */
.poll-submit-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.poll-submit {
    background: #0a0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.poll-submit:hover {
    background: #0f0;
    transform: scale(1.05);
}

.btn_cancel, .btn_confirm {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(60, 60, 80, 0.7);
    border: 1px solid #50536a;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.2s ease;
}

.btn_cancel:hover, .btn_confirm:hover {
    transform: scale(1.03);
    background-color: rgba(80, 80, 110,0.9);
}

/* ============================
   Meldungen
============================ */
.poll-message {
    text-align: center;
    margin-top: 10px;
    color: #aaa;
}

/* ============================
   Neue Poll Responsive Inputs
============================ */
.poll-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.poll-section label {
    margin-bottom: 5px;
    font-weight: bold;
}

/* ============================
   Poll Inputs Full Width, Resize nur vertikal
============================ */
.poll-section input[type="text"],
.poll-section input[type="number"],
.poll-section textarea,
.poll-section select {
    width: 100%;           /* Immer volle Breite */
    box-sizing: border-box;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #50536a;
    background-color: rgba(60,60,80,0.7);
    color: #fff;
    resize: none;      /* nur Höhe veränderbar */
}

/* Speziell für Textareas */
.poll-section textarea {
    height: 200px;
}


.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.poll-option-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ulpoll {
    list-style: decimal;
    padding-left: 20px;
}

.ulpoll li {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.ulpoll input { flex: 1; }

/* ============================
   Responsive Anpassungen
============================ */
@media (max-width: 600px){
    .flex-wrap { flex-direction: column; }
    .poll-submit-wrapper { flex-direction: column; align-items: stretch; }
    .poll-submit-wrapper button { width: 100%; }
}


/* Dark Design für das Dropdown */
.darkSelect {
    background-color: #222;
    color: #eee;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.darkSelect option {
    background-color: #333;
    color: #eee;
}

.darkSelect:focus {
    border-color: #888;
}

/* ====================
   Buttons Styling
==================== */

/* Standard Join Button */
.join-button {
    padding: 10px 16px;
    margin: 15px 0;
    background-color: #2c2d38;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.join-button:hover {
    background-color: #66cc66;
    color: #000;
    transform: translateY(-1px);
}

/* Sekundärer Button */
.join-button.secondary {
    background-color: #555;
    color: #ddd;
}

.join-button.secondary:hover {
    background-color: #888;
    color: #000;
    transform: translateY(-1px);
}
/* ====================

   Status Styling
==================== */
.status-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95em;
}
.status-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(30,30,40,0.3);
    transition: 0.3s;
}
.status-row:hover {
    background-color: rgba(50,50,70,0.5);
}
.status-label {
    font-weight: 600;
    color: #ccc;
}
.status-value {
    font-weight: 500;
    color: #fff;
    text-align: right;
}

.back-button { padding:6px 12px; background:#2c2d38; color:#fff; border:none; border-radius:4px; cursor:pointer; font-weight:600; }
.back-button:hover { background:#66cc66; color:#000; transform:translateY(-1px); }


.orga-subtabs { display:flex; gap:8px; margin-bottom:10px; }
.orga-subtabs button { padding:6px 10px; border:none; background:#444; color:#fff; border-radius:4px; cursor:pointer; }
.orga-subtabs button.active { background:#66cc66; color:#000; }
.orga-subtab { display:none; }
.orga-subtab.active { display:block; }

@media(max-width:900px){ .event-tabs { display:none !important; } .event-dropdown { display:block !important; } }

/* Grid Layout */
.participants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.participant-card {
    display: flex;
    flex-direction: column;
    align-items: center;          /* Horizontal zentriert */
    justify-content: center;      /* Vertikal zentriert */
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(60,60,80,0.35);
    border: 1px solid #3a3d4f;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #fff;
    min-width: 80px;
}
.participant-card:hover {
    background-color: rgba(70,70,100,0.45);
    transform: translateY(-2px);
}
.participant-avatar {
	width: 45px;
	height: 45px;
	border-radius: 5px;
    object-fit: cover;
    margin-bottom: 6px;
    border: 2px solid #444;
}
.participant-name {
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    word-break: break-word; /* Username wird nicht abgeschnitten */
}

/* Farbe nach Status */
.participants-grid.paid .participant-card { border: 1px solid #20222f; }
.participants-grid.unpaid .participant-card { border: 1px solid #20222f; }

h3 {
    font-size: 1em;
    color: #66cc66;
    margin-bottom: 8px;
    text-align: center; /* Überschrift zentriert */
}

/* --------------------
   Buttons
-------------------- */
.ok-btn {
    padding: 2px 6px;
    margin-left: 4px;
    border: none;
    border-radius: 4px;
    background: #444;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.ok-btn:disabled {
    opacity: .5;
    cursor: default;
}

.ok-btn:hover:enabled {
    background: #555;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #444;
    color: #fff;
    transition: all .2s;
}

.action-btn:hover {
    background: #555;
}

.swal-btn-full {
    display: block !important;
    width: 80% !important;
    margin: 4px 0; /* Abstand zwischen den Buttons */
    font-weight: bold;
    text-align: center;
}

.roundmail-form { display:flex; flex-direction:column; gap:12px; }
.roundmail-form .form-group { display:flex; flex-direction:column; }
.roundmail-form input, .roundmail-form select, .roundmail-form textarea { padding:8px; border-radius:6px; border:1px solid #444; background-color: rgba(30,30,40,0.7); color:#fff; }
.roundmail-form button.join-button { background:#66cc66; color:#000; border:none; padding:10px; border-radius:6px; cursor:pointer; }

.forum-readall-row {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    flex-basis: 100%; /* sicherstellen, dass es eine neue Zeile nimmt */
}

.subboard-unread-count {
    display: inline-block;
    min-width: 22px;          /* Platz für 3-stellige Zahlen */
    padding: 2px 6px;
    margin-left: 6px;
    font-size: 0.75em;
    font-weight: bold;
    color: #fff;
    background-color: #1e6bb8; /* dunkleres Blau */
    border-radius: 12px;       /* rund */
    text-align: center;
    line-height: 1.2;
}

.subboard-unread-count:hover {
    background-color: #66b3ff; /* heller beim Hover */
}

.btn-readall {
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: bold;
    background-color: #1e6bb8; /* dunkles Blau passend zum Badge */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-readall:hover {
    background-color: #155a9c;
}

.forum-readall-container {
    margin-bottom: 10px;
    text-align: right;
}

/* -----------------------------
   Thread / Comment Layout
----------------------------- */

.post-block {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
	border: 1px solid #2a2c32;
	background-color: rgba(40, 40, 50, 0.5);
	box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3), 5px 5px 10px rgba(0, 0, 0, 0.3);
    color: #fcfcfe;                 /* Textfarbe passend zum Body */
}

.comment-block {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: rgba(20, 23, 30, 0.8);
    border: 1px solid #2a2c32;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.5);
}

.post-user, .comment-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
}

.post-user img, .comment-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    border: 2px solid #555;
}

.post-username, .comment-username {
    font-size: 0.85em;
    color: #ced1dd;
    text-align: center;
    word-break: break-word;
}


.post-content, .comment-content {
	border-left: 1px solid #2a2c32;
	padding: 10px;
}


.post-content, .comment-content {
    flex: 1;
    position: relative;
}

.post-date, .comment-date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.75em;
    color: #888;
}

/* Inhalt */
.post-content p,
.comment-content p {
    word-break: break-all;       /* zwingt Zeilenumbruch mitten im Wort, wenn nötig */
    overflow-wrap: break-word;   /* bricht lange Wörter um */
    hyphens: auto;               /* optional: Bindestriche einfügen, wenn möglich */
}

.post-content h3, .comment-content p {
    margin: 0;
}

.comment-content p {
    margin-top: 5px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .post-block, .comment-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-user, .comment-user {
        flex-direction: row;
        align-items: center;
        width: auto;
    }
    .post-user img, .comment-user img {
        margin-right: 10px;
        margin-bottom: 0;
    }
    .post-date, .comment-date {
        position: static;
        margin-left: auto;
        margin-bottom: 5px;
    }
}

.subforum-list li {
    display: flex;
    justify-content: space-between;
    width: 100%; /* volle Seitenbreite */
    padding: 6px 12px;
    margin-bottom: 4px;
    background-color: rgba(30,30,40,0.3);
    border: 1px solid #20222f;
    border-radius: 4px;
}

/* Leere Unterforen haben andere Textfarbe */
.forum-card.empty-subforum .forum-card-title { color: #888888; }
.forum-card.empty-subforum:hover .forum-card-title { color: #aaa; }

/* Threads */
.forum-threads { flex: 1; min-width: 300px; }
.thread-list { list-style: none; padding-left: 0; margin: 0; }
.thread-list li { display:flex; justify-content:space-between; align-items:center; padding:3px 8px; margin-bottom:3px; border-radius:3px; background-color: rgba(30,30,40,0.3); border:1px solid #20222f; box-shadow: -5px 5px 10px rgba(0,0,0,0.3),5px 5px 10px rgba(0,0,0,0.3); transition: background 0.3s, transform 0.2s; }
.thread-list li:hover { background-color: rgba(40,40,50,0.7); transform: translateY(-1px); }
.thread-list li a { color: #cce7ff; font-size:17px; text-decoration:none; text-shadow:0 2px 3px rgba(0,0,0,0.8); flex-grow:1; }
.thread-list li a:hover { color:#FFD700; }
.active-thread { font-weight:bold; color:#3aa0f0; }
.thread-user { font-size:0.85em; color:#aaa; }


/* ============================
   Thread Detail / Posts Dark Style
============================ */

/* Einzelner Post */
.thread-post {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 3px;
    border: 1px solid #2a2c32;     /* wie container border */
	background-color: rgba(40, 40, 50, 0.5);
	box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3), 5px 5px 10px rgba(0, 0, 0, 0.3);
    color: #fcfcfe;                 /* Textfarbe passend zum Body */
}
.thread-post .thread-user {
    font-size: 0.85em;
    color: #aaaaaa;                 /* Userinfo dezenter */
}

/* Kommentare unter Posts */
.thread-comments .comment {
    padding: 14px;
    margin-bottom: 12px;
	border-left: 3px solid #6e6e6e;
	border: 1px solid #080b10;
	border: 1px solid #080b10;
	border: 1px solid #080b10;
    border-radius: 3px;
	background-color: rgba(30,30,40,0.3);
    color: #d0d0d0;                 /* Text hell und gut lesbar */
}

.thread-comments .comment:hover {
    background-color: #1a1d26;      /* minimaler Hover-Effekt */
    border-left-color: #3a3c42;     /* Linie leicht heller */
}

/* ============================
   Mobile
============================ */
/* Responsive Anpassung für Mobile */
@media (max-width: 1400px) {
    .forum-block {
        flex: 0 0 auto;
        min-width: 250px;
        max-width: 425px;
        padding: 0px;
        border: 1px solid #080b10;
        background-color: rgba(30,30,40,0.3);
    }
	
	/* 2-Spalten Grid */
	.forum-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 5px;
	}
	
	.forum-card {
		margin: 0px;
	}
}

/* Responsive Anpassung für Mobile */
@media (max-width: 900px) {
    .forum-block {
		flex: 0 0 auto;
		min-width: 300px;
		max-width: 100%;
		width: 100%;
		padding: 0px;
		border: 1px solid #080b10;
		background-color: rgba(30,30,40,0.3);
	}
	
	.forum-grid {
	  display: block;
	  flex-wrap: none;
	}
	
	/* 2-Spalten Grid */
	.forum-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 5px;
	}
	
	.forum-card {
		padding: 5px 10px;
		margin: 5px 0;
	}
	
	.forum-block-title {
		font-size: 1.2em; font-weight: bold;
		margin-bottom: 5px;
		text-align: center;
	}

}


/* ===============================
   FORM GROUP / DROPDOWN
================================ */
.form_group {
    position: relative;
    margin: 30px 0 25px 0; /* mehr Abstand oben */
}

/* Badge über dem Select */
.form_badge {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background-color: #1a1d26; /* dunkler Hintergrund */
    color: #9aa3b2;
    border: 1px solid #42454f;
    border-radius: 4px;
    pointer-events: none;
}

/* Dropdown selbst */
.form_group select {
    width: 100%;
    padding: 20px 40px 12px 12px; /* Platz oben für Badge, rechts für Pfeil */
    border-radius: 5px;
    border: 1px solid #2a2c32;
    background-color: #1a1d26; /* dunkler Hintergrund */
    color: #fcfcfe; /* helle Schrift */
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

/* Custom Pfeil */
.form_group::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    font-size: 12px;
    pointer-events: none;
}

/* Hover / Selected */
.form_group select option:hover,
.form_group select option:checked {
    background-color: #2a2c32; /* etwas heller */
    color: #ffd700;
}

/* Option Styling */
.form_group select option {
    background-color: #1a1d26;  /* dunkel */
    color: #fcfcfe;             /* helle Schrift */
    padding: 8px 12px;
}

/* Hover / Auswahl in Dropdown */
.form_group select option:hover,
.form_group select option:checked {
    background-color: #2a2c32;
    color: #ffd700;
}

/* ===============================
   RESPONSIVE GALLERY
================================ */
.gallery_thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    width: 100%;
}

/* Thumbnail */
.thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1; /* perfekte Quadrate */
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .gallery_thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 4px;
    }
}


/* Container für die Galerie */
.galleryContent {
    position: relative;
    width: 100%;
    height: 100%; /* Höhe wird per JS gesetzt */
    overflow: hidden;
    background-color: #000;
	border-radius: 0 0 5px 5px;
}

/* Bilder */
.galleryContent img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;            
    object-position: top 5%;
    opacity: 0;                   
    transition: opacity 0.8s ease, object-position 0.5s ease;
    z-index: 2;
    border-radius: 0;             
}

/* Bild aktiv → sichtbar */
.galleryContent img.active {
    opacity: 1;
}

/* Blur-Hintergrund */
.bg-blur {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 1;
    background-size: cover;
    background-position: center;
    border-radius: 0;           
}

.imageDesc {
    position: absolute;
    bottom: 8px;
    left: 8px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.7); /* weicher Schatten für bessere Lesbarkeit */
    z-index: 3;
    font-size: 14px;
    font-weight: 500;

    /* Halbtransparenter schwarzer Hintergrund */
    background-color: rgba(0,0,0,0.65); /* etwas weniger hart als vorher */
    padding: 6px 10px;                 /* mehr Luft um den Text */
    border-radius: 8px;                 /* runder, moderner Look */

    opacity: 1;       /* Immer sichtbar */
    transition: none;

    display: inline-block;       
    max-width: calc(100% - 16px); /* 8px links + 8px rechts Abstand */
    word-wrap: break-word;       
    box-sizing: border-box;      
}

.tsUsersBox {
    max-height: 300px;
    overflow-y: auto;
    position: relative; /* für absolute Positionierung der Pagination */
    padding-bottom: 40px; /* Platz für Pagination */
}

.ts_user {
    padding: 4px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ced1dd;
}

.ts3UserEmpty {
    padding: 10px;
    color: #888;
    text-align: center;
}

.ts_pagination {
    position: absolute;
    bottom: 5px; /* immer unten */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.ts_pagination a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    transition: background 0.2s;
    display: inline-block;
    white-space: nowrap; /* kein Zeilenumbruch */
}

.ts_pagination a:hover {
    background: #4CAF50;
    color: #fff;
}

/* --- Map Controls --- */
.map_controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}
.map_controls input.live-search-box {
    flex: 1;
    padding: 14px 12px 10px 12px;
    border: 1px solid #3a3c42;
    border-radius: 6px;
    background-color: rgba(30,30,40,0.3);
    color: #ced1dd;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.2s ease, background 0.2s ease;
}
.map_controls input.live-search-box::placeholder {
    color: #aaa;
}
.map_controls button#back_button {
    padding:8px 15px;
    border:none;
    border-radius:5px;
    background:#3498db;
    color:#FFF;
    cursor:pointer;
    font-weight:bold;
    transition: background 0.2s;
}
.map_controls button#back_button:hover{
    background:#444;
}

/* --- Map & Layout --- */
.map_layout{ display:flex; gap:20px; flex-wrap:wrap; }
#map_wrapper{ flex:1 1 60%; min-width:300px; height:500px; border-radius:10px; box-shadow:0 3px 10px rgba(0,0,0,0.5); }

/* --- Userlist --- */
.map_userlist_container{
    flex:1 1 35%;
    min-width:200px;
    display:flex;
    flex-direction:column;
    height:500px;
}
.map_userlist_container ul#myUL{
    flex:1;
    overflow-y:auto;
    scroll-behavior:smooth;
    margin:0;
    padding:0;
    list-style:none;
    scrollbar-width:none;
    -ms-overflow-style:none;
}
.map_userlist_container ul#myUL::-webkit-scrollbar{ display:none; }

/* Userlist Items */
.map_userlist_container ul#myUL li {
    display:flex;
    align-items:center;
    padding:5px 10px;
    margin-bottom:3px;
    cursor:pointer;
    color:#fff;
    border-radius:4px; /* eckiger */
    border: 1px solid #20222f;
    background-color: rgba(30, 30, 40, 0.6);
    box-shadow: -3px 3px 8px rgba(0,0,0,0.4), 3px 3px 8px rgba(0,0,0,0.4);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(2px);
}

.map_userlist_container ul#myUL li:hover {
    background-color: rgba(50, 50, 70, 0.8);
    box-shadow: -5px 5px 12px rgba(0,0,0,0.5), 5px 5px 12px rgba(0,0,0,0.5);
    transform: scale(1.02);
}

.map_userlist_container ul#myUL li.selected{
    font-weight:bold;
    background-color:#3498db;
    color:#fff;
}

.map_userlist_container ul#myUL li img {
    width:30px;
    height:30px;
    border-radius:4px; /* eckig */
    margin-right:8px;
    object-fit:cover;
}

/* --- Pagination --- */
.pagination_buttons{
    display:flex;
    justify-content:space-between;
    margin-top:5px;
}
.pagination_btn{
    flex:1;
    margin:0 2px;
    padding:6px 0;
    border:none;
    border-radius:5px;
    cursor:pointer;
    color:#fff;
    font-weight:bold;
    transition:background 0.2s;
}
.pagination_btn.enabled{ background:#1f1f1f; }
.pagination_btn.enabled:hover{ background:#444; }
.pagination_btn.disabled{ background:#555; cursor:default; color:#aaa; }

/* --- Mobile --- */
@media (max-width:768px){ 
    .map_layout{ flex-direction:column; } 
    #map_wrapper, .map_userlist_container{ flex:1 1 100%; height:auto; max-height:none; }
    .map_controls{ flex-direction:column; align-items:stretch; }
    .map_controls button#back_button{ width:100%; }
    .pagination_buttons{ flex-direction:column; }
}

.poll_section {
    display: block;
    width: 100%;
    box-sizing: border-box;
	margin-top: 5px;
	justify-content: space-between;
	border: 1px solid #20222f;
	margin-bottom: 10px;
	padding: 5px 10px;
	background-color: rgba(40,40,50,0.5);
	box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3), 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.poll_section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.poll_section input[type="text"],
.poll_section textarea,
.poll_section select,
.poll_section input[type="number"] {
    width: 100%;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 6px;
	border: 1px solid #20222f;
	background-color: rgba(10,10,10,0.9);
    color: #ced1dd;
    font-size: 16px;
    transition: border 0.2s ease, background 0.2s ease;
}

.poll_section textarea {
    resize: none;
    min-height: 70px;
}

.poll_section .ulpoll {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.poll_section .ulpoll li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.poll_section .ulpoll li input[type="text"] {
    flex: 1;
    margin-right: 5px;
}

.poll_section .ulpoll img {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flex-col {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    accent-color: #4CAF50;
    cursor: pointer;
}

.btn_confirm,
.btn_cancel {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 5px;
}

.btn_confirm {
    background: #4CAF50;
    color: #fff;
}

.btn_cancel {
    background: #555;
    color: #fff;
}

@media (max-width: 600px) {
    .flex-row {
        flex-direction: column;
    }

    .flex-col {
        min-width: 100%;
    }
}

.user-wrapper { display:flex; gap:40px; margin:20px 0; }
.user-sidebar { width:280px; }
.user-avatar img { width:100%; border-radius:8px; margin-bottom:10px; }
.user-content { flex:1; }
.user-field { margin-bottom:15px; }
.user-field label { font-weight:bold; display:block; margin-bottom:5px; }

5
.account-wrapper { max-width:1400px; margin:40px auto; padding:20px; display:flex; gap:40px; }
.account-sidebar { width:300px; }
.account-content { flex:1; }
.account-avatar img { width:100%; border-radius:8px; margin-bottom:15px; }
.account-tabs { display:flex; gap:10px; margin-bottom:25px; overflow-x:auto; scrollbar-width:thin; }
.account-tabs button { white-space:nowrap; padding:8px 14px; border:none; background:#2c2d38; color:#fff; cursor:pointer; border-radius:4px; }
.account-tabs button.active { background:#66cc66; color:#000; }
.tab-content { display:none; background:rgba(40,40,50,0.4); border:1px solid #42454f; padding:20px; border-radius:8px; }
.tab-content.active { display:block; }
.account-dropdown { width:100%; padding:8px; margin-bottom:15px; border-radius:4px; border:1px solid #42454f; background:#2c2d38; color:#fff; display:none; }
@media (max-width:900px) {
    .account-wrapper { flex-direction:column; }
    .account-sidebar { width:100%; }
    .account-tabs { display:none !important; }
    .account-dropdown { display:block !important; }
}

.cart-head-left{
    display:flex;
    flex-direction:column;
}

.cart-title{
    font-weight:bold;
    font-size:14px;
}

.cart-dates{
    font-size:12px;
    color:#aaa;
}

.cart-head-right{
    text-align:right;
	margin-right: 25px;
}