:root {
    --base-bg: #1a1a1a;  /* globaler Hintergrund dunkel */
}

/* ===========================
   BODY & GLOBAL
=========================== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #1a1a1a; /* vorher f5f5f5 */
    color: #e6e6e6;
    display: flex;
    flex-direction: column;
}

/* ===========================
   HEADER
=========================== */
header {
    position: relative;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #111;       /* vorher #333 */
    color: #e6e6e6;
    padding: 20px;
    text-align: center;
}

.header-link {
    text-decoration: none;
    color: inherit;
}

/* Hamburger Menü */
.hamburger-menu {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

#hamburger-btn {
    background: #333; /* vorher 444 */
    color: #e6e6e6;
    border: none;
    padding: 12px 18px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

#hamburger-btn:hover {
    background: #444; /* vorher 555 */
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #2a2a2a; /* vorher 444 */
    min-width: 140px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    z-index: 1000;
    flex-direction: column;
}

.dropdown-content a {
    color: #e6e6e6;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #3a3a3a; /* vorher 555 */
}

/* Header Icon */
#top-left-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 85px;
    height: 85px;
    z-index: 1000;
    border-radius: 16px;
}

/* ===========================
   TABS
=========================== */
#tabs {
    display: flex;
    background: #0f0f0f; /* vorher 222 */
    padding: 10px;
    justify-content: center;
    gap: 10px;

    overflow: visible;
    flex-wrap: wrap;
    white-space: normal;
	
	width: 100%
}

#tabs::-webkit-scrollbar {
    height: normal;
}

#tabs .tab {
    flex: 0 0 auto;
}

.tab {
    color: #e6e6e6;
    padding: 8px 15px;
    background: #333; /* vorher 444 */
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab:hover { background: #444; }
.tab.active { background: #0088ff; }

/* Versions Tabs */
#subtabs {
    display: flex;
    background: #161616; /* vorher 333 */
    padding: 8px;
    justify-content: center;
    gap: 8px;
	
	width: 100%
}

#subtabs .tab {background: #444; padding: 6px 12px; } /* vorher 555 */
#subtabs .tab.active { background: #0088ff; }

/* ===========================
   MAIN CONTAINER
=========================== */
#main-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    align-items: flex-start;
	
	width: 100%
}

/* Content Panel */
#content {
    flex: 2.0;
    padding-left: 0;
}

/* Collapsible Panels */
.collapsible {
    background-color: #2a2a2a; /* vorher eee */
    color: #e6e6e6;           /* vorher 444 */
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 5px;
    transition: background 0.2s;
}
.collapsible.active { background-color: #3a3a3a; } /* vorher ccc */

.content-panel {
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #1e1e1e; /* vorher white */
    border-radius: 0 0 5px 5px;
    margin-bottom: 5px;
}

/* ===========================
   PACK CARDS
=========================== */
.pack-card {
    background: #262626; /* vorher fafafa */
    border: 1px solid #444; /* vorher ddd */
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.pack-icon { width: 48px; height: 48px; border-radius: 0; }
.pack-card h3 { margin: 0; font-size: 18px; }

.download-btn {
    margin-left: auto;
    padding: 8px 14px;
    background: #0088ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}
.download-btn:hover { background: #006cd1; }

/* ===========================
   PREVIEW
=========================== */
#preview {
   flex: 0 0 520px;
   min-width: 520px;
   max-width: 520px;
   background: #262626; /* vorher white */
   border: 1px solid #444; /* vorher ddd */
   border-radius: 8px;
   padding: 10px;
   box-shadow: 0 2px 6px rgba(0,0,0,0.6);
   position: sticky;
   top: 20px;
   display: flex;
   flex-direction: column;
   align-items: stretch;
   height: auto; max-height: none;
}

#preview img {
   width: 100%;
   border-radius: 8px;
   margin-bottom: 10px;
}

#preview h3 {
   text-align: center;
   margin: 10px 0;
}

#preview .preview-description {
    margin-bottom: 10px;
}

#preview p {
   text-align: left;
   margin: 10px 0;
}

#preview .placeholder {
   text-align: center;
   font-size: 18px;
   font-weight: bold;
   color: #e6e6e6;
   margin: 80px 0;
   opacity: 0.9;
}

/* Tags unten */
#preview .pack-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 4px; margin-top: auto;
}

#preview .pack-tag {
   background-color: #333; /* vorher eee */
   color: #e6e6e6;         /* vorher 333 */
   padding: 2px 6px;
   border-radius: 12px;
   font-size: 0.8em;
   display: inline-flex;
   align-items: center;
   gap: 4px;
}

#preview .pack-tag:hover { background-color: #444; }

/* Tooltip */
#tag-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    z-index: 9999;
}

/* ===========================
   FOOTER
=========================== */
footer {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin-top: auto;
    background: #1A1A1A; /* vorher f5f5f5 */
    color: #e6e6e6;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-link {
    color: #0088ff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.separator {
    opacity: 0.7;
}

/* ========================
   About-Seite Styles
=========================== */
#about-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

#about-content h1,
#about-content h2 {
    font-size: 2.7em;
    margin-bottom: 20px;
}

#about-content h3 {
    font-size: 2em;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: left;
}

#about-content h4 {
    font-size: 1.5em;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

#about-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: left;
    color: #e6e6e6;
}

#about-content .custom-code-block {
    font-family: monospace;
    font-size: 1.2em;
    background-color: #2a2a2a; /* vorher f5f5f5 */
    border-radius: 5px;
    border: 1px solid #444; /* vorher ddd */
    white-space: pre-line;
    word-break: break-word;
    margin: 0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    color: #e6e6e6;
}

ul, ol {
    text-align: left;
    margin-left: 5px;
    font-size: 1.1em;
    color: #e6e6e6;
}
