/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BASE COLORS
========================= */
:root {
    --bg-main: #0b1e3a;
    --bg-box: #102b52;
    --bg-dark: #0F3764;
    --bg-card: #111;
    --accent: #00FFFF;
    --accent-hover: #00FF88;
    --text-dark: #000;
}

/* =========================
   BODY
========================= */
body {
    background: var(--bg-main);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--accent);
}

/* =========================
   MAIN CONTAINER
========================= */
#main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-box);
    border-radius: 10px;
    line-height: 1.6;
    text-align: center;
}

/* =========================
   BANNER
========================= */
#banner {
    width: 100%;
    height: 100px;
    background: url('/bilder/banner.jpg') center center no-repeat;
    background-size: contain;
    background-color: var(--bg-box);
    margin-bottom: 20px;
}

/* =========================
   NAVIGATION
========================= */
#navicon {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

#menubar1 {
    list-style: none;
    display: flex;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 0 15px;
}

#menubar1 > li {
    position: relative;
}

#menubar1 > li > a {
    display: block;
    padding: 12px 22px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

#menubar1 > li > a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 6px;
}

/* Dropdown */
#menubar1 li ul {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: var(--bg-dark);
    min-width: 180px;
    border-radius: 8px;
    display: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

#menubar1 li ul li a {
    display: block;
    padding: 10px 18px;
    color: var(--accent);
    text-decoration: none;
}

#menubar1 li ul li a:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

#menubar1 li:hover > ul {
    display: block;
}

/* =========================
   HEADINGS & TEXT
========================= */
#main h2 {
    font-size: 17px;
    font-weight: 600;
}

#main p {
    margin-bottom: 15px;
}

/* =========================
   INFO BOX
========================= */
.gscript-wrapper {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.info-box h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.warning-box {
    border-bottom: 1px solid var(--accent-hover);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--accent-hover);
}

/* =========================
   IRC BUTTON
========================= */
.irc-link {
    margin-top: 20px;
}

.irc-link a {
    display: inline-block;
    padding: 10px 20px;
    background: #FF0000;
    color: #FFFFFF;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.irc-link a:hover {
    background: var(--accent);   /* #00FFFF */
    color: #0b1e3a;              /* dunkle Schrift */
    box-shadow: 0 0 10px var(--accent);
}


/* =========================
   DOWNBOX
========================= */
.downbox {
    background: #0f0f0f;
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.downbox h3 {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

.downbox ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.downbox li {
    margin: 10px 0;
}

.downbox a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.downbox a:hover {
    color: var(--accent-hover);
}

.dl-count {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* =========================
   GALLERY
========================= */
.gallery {
    display: flex;
    flex-direction: column;   /* untereinander */
    align-items: center;      /* horizontal zentriert */
    gap: 20px;
    padding: 20px;
}

.gallery img {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
}

p.irc-link a {
    background: red !important;
    color: white !important;
    padding: 10px 20px !important;
    display: inline-block !important;
}
/* =========================
   NEWS MODERN STYLE
========================= */

#text {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

#text h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent);
}

/* Card */
.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,255,255,0.3);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
    transition: 0.3s ease;
    position: relative;
}

/* Hover Effekt */
.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0,255,255,0.25);
}

/* Titel */
.news-header h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--accent);
}

/* Content */
.news-content {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Datum */
.news-date {
    font-size: 12px;
    color: #888;
    text-align: right;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}
/* =========================
   DOWNLOAD PAGE
========================= */

.download-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 10px;
    padding: 18px 25px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.download-info {
    flex: 1;
}

.download-title {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.download-meta {
    font-size: 12px;
    color: #aaa;
}

.download-actions a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: #0b1e3a;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.download-actions a:hover {
    background: var(--accent-hover);
}
.alphabet-nav {
    margin: 15px 0 20px 0;
    text-align: center;
}

.alphabet-nav a {
    display: inline-block;
    min-width: 16px;
    padding: 1px 4px;
    margin: 2px;
    font-size: 10px;
    background: #111;
    border: 1px solid #33C1CA;
    color: #00FFFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: 0.15s ease-in-out;
}

.alphabet-nav a:hover {
    background: #00FFFF;
    color: #000;
}


.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
}
.lightbox img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    image-rendering: auto;
}.lightbox img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    image-rendering: auto;
}

.download-actions {
    display: flex;
    flex-direction: column;   /* untereinander */
    gap: 6px;
    align-items: flex-end;    /* rechts ausgerichtet */
}

.btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    min-width: 90px;
}
.version {
    font-size: 11px;
    color: #aaa;
    margin-left: 6px;
}
.btn-download {
    display: inline-block;
    padding: 10px 18px;
    background: var(--accent);
    color: #0b1e3a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent);
}
.btn-back {
    display: inline-block;
    padding: 10px 18px;
    background: var(--accent);
    color: #0b1e3a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.3s ease;
}

.btn-back:hover {
    background: #00ffff;
    box-shadow: 0 0 12px #00ffff;
    transform: translateY(-1px);
}
.stat-user-name {
    font-size: 20px;
    text-align: left;
}

.stat-user-box {
    background: #000;
    padding: 6px 8px;
    border: 1px solid var(--accent);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    text-align: center;
}

.stats-grid div {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1f2f4a;
}
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.user-card {
    background: #111;
    border: 1px solid #00FFFF;
    padding: 12px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.user-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px #00FFFF55;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 8px;
}

.user-stats {
    font-size: 13px;
    color: #ccc;
}
.guide-list {
    margin: 15px 0;
    padding-left: 20px;
}

.guide-list li {
    margin-bottom: 8px;
}

.box {
    display: block;
    margin: 15px auto;
    border: 1px solid #00FFFF;
    border-radius: 6px;
    max-width: 100%;
}
.enter a {
    font-size: 30pt;
    font-weight: 900;
    color: #00E5FF;
    text-decoration: none;
    letter-spacing: 2px;
}

.enter a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px #00FFFF;
}
input, textarea, button {
    font-family: inherit;
    padding: 6px;
}

button {
    cursor: pointer;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
	table-layout: fixed;
}

.admin-table th,
.admin-table td {
    padding: 8px;
    text-align: left;
	word-wrap: break-word;
}

.admin-table th {
    border-bottom: 2px solid #00FFFF;
}

.admin-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table tr:hover {
    background: rgba(0,255,255,0.05);
}
.admin-message {
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #00FFFF;
    background: rgba(0,255,255,0.05);
}
.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 120px;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
    width: 160px;
}
.admin-table td:last-child {
    text-align: center;
}
/* BADGES */

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Bearbeiten – Cyan */
.badge-edit {
    color: #00FFFF;
    border-color: #00FFFF;
    background: transparent;
}

.badge-edit:hover {
    background: #00FFFF;
    color: #000;
}

/* Löschen – leicht rötlich */
.badge-delete {
    color: #ff6666;
    border-color: #ff6666;
    background: transparent;
}

.badge-delete:hover {
    background: #ff4444;
    color: #fff;
}
.admin-actions {
    padding-right: 3px;
    text-align: right;
}

.admin-actions .action-block {
    display: inline-block;
    text-align: center;
}

.admin-actions input[type="number"] {
    width: 80px;
    display: block;
    margin: 0 auto 3px auto;
}

.admin-actions .badge {
    display: block;
    width: 100%;
    margin-bottom: 3px;
}
.download-links {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px;
    background-color: #0b1e3a;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.2s ease;
}

.download-btn:hover {
    background-color: #2f82db;
}
.webchat-container {
    margin-top: 15px;
    border: 1px solid #3a6ea5;
    border-radius: 6px;
    overflow: hidden;
}