/*--------------------------------------------+
| PHP-Fusion v9-Theme: LH_Music               |
+--------------------------------------------*/
@import url("css/redirect.css");
@import url("css/profiledit.css");
@import url("css/profilview.css");
@import url("css/sidebarnav.css");
@import url("css/rssbuttons.css");
@import url("css/userbox.css");
@import url("css/useronline.css");
@import url("css/blogfilter.css");
@import url("css/contact.css");
@import url("css/breadcrumb.css");
@import url("css/shoutbox.css");
@import url("css/search.css");
@import url("css/memberlist.css");

/* ============================================
   CSS-VARIABLEN (zentrale Steuerung)
   ============================================ */
:root {
    --color-accent:        #a23fbc;
    --color-accent-hover:  #c45fdc;
    --color-bg-dark:       #515151;
    --color-bg-wrapper:    rgba(55,55,55,0.8);
    --color-bg-box:        rgba(55,55,55,0.8);
    --color-bg-input:      rgba(55,55,55,0.8);
    --color-border:        #333;
    --color-text:          #fff;
    --color-text-muted:    #555;
    --color-text-body:     #ddd;

    --box-radius:          4px;
    --box-shadow:          0 4px 12px rgba(0, 0, 0, 0.6);
    --transition:          0.2s ease;

    --bar-bg:              #000 url(images/button_oben1.png) repeat-x;
}

/* ============================================
   GRUNDLAGEN / RESET
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: "Tahoma", Arial, Sans-Serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* ============================================
   HINTERGRUND + WRAPPER
   ============================================ */
.bg {
    width: 100%;
    background-color: var(--color-bg-dark);
}

.lhm-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-bg-wrapper);
}

/* ============================================
   HEADER
   ============================================ */
.headerpic {
    width: 100%;
    height: 400px;
    background: #000 url(images/header.png) no-repeat center top;
    background-size: cover;
}

/* ============================================
   NAVIGATION – mit Dropdown
   ============================================ */
.nav-oben {
    width: 100%;
    background: var(--bar-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-inner > ul > li,
.nav-inner ul li.dropdown {
    position: relative;
}

.nav-inner a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color var(--transition);
}

.nav-inner a:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.nav-inner .caret {
    display: inline-block;
    margin-left: 5px;
    border-top: 4px solid #fff;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    vertical-align: middle;
}

/* ---- Dropdown: standardmäßig versteckt ---- */
.nav-inner .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-bg-wrapper);
    border: 1px solid var(--color-accent);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    flex-direction: column;
}

.nav-inner .dropdown:hover > .dropdown-menu {
    display: flex;
}

.nav-inner .dropdown-menu li {
    width: 100%;
}

.nav-inner .dropdown-item {
    padding: 8px 16px;
    font-size: 11px;
    text-transform: none;
    font-weight: normal;
    border-bottom: 1px solid var(--color-border);
}

.nav-inner .dropdown-item:hover {
    background-color: var(--color-accent);
}

/* ============================================
   SIDEBAR USER-NAVIGATION
   ============================================ */
#navigation-user ul.block {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navigation-user ul.block li {
    width: 100%;
}

#navigation-user ul.block li a {
    display: block;
    padding: 6px 10px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

#navigation-user ul.block li a:hover {
    background-color: var(--color-accent);
}

#navigation-user li:hover > .panel-collapse.collapse,
#navigation-user .panel-collapse.collapse.in,
#navigation-user .panel-collapse.collapse.show {
    display: block;
}

#navigation-user .side.p-l-15 {
    padding-left: 20px;
    font-size: 11px;
}

/* ============================================
   CONTENT-BEREICH + Layouts
   ============================================ */
.lhm-content {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 15px;
    padding: 15px;
}

.lhm-main {
    flex: 1;
    min-width: 0;
}

.lhm-sidebar {
    flex: 0 0 220px;
    min-width: 200px;
}

.layout-none .lhm-main {
    flex: 1 1 100%;
}

/* ============================================
   BOXEN (Opentable / Panel / News / Article)
   – gemeinsame Grundstruktur
   ============================================ */
.lhm-opentable,
.lhm-panel,
.lhm-news,
.lhm-article {
    margin-bottom: 15px;
    background-color: var(--color-bg-box);
    border: 1px solid var(--color-border);
    border-radius: var(--box-radius);
    overflow: hidden;
}

/* Title-Bars (Opentable + Panel) */
.ot-title,
.panel-title {
    background: var(--bar-bg);
    font-weight: bold;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-accent);
}

.ot-title {
    padding: 10px 14px;
    font-size: 13px;
}

.panel-title {
    padding: 9px 12px;
    font-size: 12px;
}

.ot-title span,
.panel-title span {
    color: #fff;
}

/* Body-Bereiche */
.ot-main-body {
    padding: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
}

.side-body {
    padding: 12px;
    color: var(--color-text-body);
    line-height: 1.5;
    font-size: 12px;
}

/* Untere Abschluss-Leisten */
.ot-unten,
.panel-unten {
    height: 4px;
    background-color: #000;
}

/* ============================================
   NEWS / ARTICLE – Meta & Body
   ============================================ */
.news-meta,
.article-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.news-meta a,
.article-meta a {
    color: var(--color-accent);
}

.news-body,
.article-body {
    color: var(--color-text-body);
    line-height: 1.6;
}

.article-subject {
    color: var(--color-text);
}

.lhm-news .news-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    background: url(images/news.png) no-repeat center;
}

.lhm-news .news-subject {
    vertical-align: middle;
}

/* ============================================
   FOOTER
   ============================================ */
.bottom {
    width: 100%;
    background: var(--bar-bg);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 10px;
}

.footer-copy {
    font-size: 11px;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 200px;
}

.footer-copy a {
    color: var(--color-accent);
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    display: block;
}

/* ============================================
   BUTTONS / FORMULARE
   ============================================ */
.button,
input[type="submit"],
input[type="button"],
button {
    background-color: var(--color-accent);
    color: #fff;
    border: 0;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background-color: var(--color-accent-hover);
}

.textbox,
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    background-color: var(--color-bg-input);
    color: #fff;
    border: 1px solid #555;
    padding: 6px;
    font-size: 12px;
    border-radius: 3px;
}

/* ============================================
   QUOTE / CODE
   ============================================ */
.quote {
    background-color: #2a2a2a;
    border-left: 3px solid var(--color-accent);
    padding: 10px;
    margin: 10px 0;
    color: #ccc;
}

.code {
    background-color: var(--color-bg-wrapper);
    border: 1px solid #444;
    padding: 10px;
    margin: 10px 0;
    font-family: "Courier New", monospace;
    color: #0f0;
    overflow-x: auto;
}

/* ============================================
   GALERIE
   ============================================ */
.gallery {
    padding: 16px 0 8px 0;
}

.gallery img {
    border: 1px solid #ccc;
    transition: border-color var(--transition);
}

.gallery:hover img {
    border: 1px solid red;
}

img.activegallery {
    border: 1px solid green;
}

/* ============================================
   TABELLEN
   ============================================ */
table {
    border-collapse: collapse;
}

.tbl-table {
    width: 100%;
}

.tbl-table th {
    background-color: #000;
    color: #fff;
    padding: 8px;
    text-align: left;
}

.tbl-table td {
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.nav-toggle {
    display: none;
    width: 100%;
    padding: 13px 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    letter-spacing: 1px;
}

.nav-toggle:hover {
    background-color: var(--color-accent);
}

.nav-toggle-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-toggle-text {
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE – Tablet (max 1024px)
   ============================================ */
@media (max-width: 1024px) {

    .lhm-wrapper {
        max-width: 100%;
    }

    .lhm-sidebar {
        flex: 0 0 180px;
        min-width: 180px;
    }

    .headerpic {
        height: 250px;
    }

    .nav-inner a {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* ============================================
   RESPONSIVE – Mobile (max 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Hamburger sichtbar */
    .nav-toggle {
        display: block;
    }

    /* Nav versteckt bis .nav-open gesetzt */
    .nav-inner {
        display: none;
        width: 100%;
    }

    .nav-inner.nav-open {
        display: block;
    }

    .nav-inner ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-inner a {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--color-border);
        padding: 12px 16px;
        font-size: 12px;
    }

    /* Dropdown auf Mobile: statisch, nur per .open (JS) */
    .nav-inner .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--color-accent);
        background-color: #111;
        width: 100%;
    }

    .nav-inner .dropdown.open > .dropdown-menu {
        display: block;
    }

    /* Hover-Öffnen auf Mobile deaktivieren */
    .nav-inner .dropdown:hover > .dropdown-menu {
        display: none;
    }

    /* Layout: Spalten gestapelt */
    .lhm-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .lhm-main {
        width: 100%;
        order: 1;
    }

    .lhm-sidebar {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        order: 2;
    }

    /* Header */
    .headerpic {
        height: 120px;
        background-position: center center;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .footer-copy {
        min-width: 0;
        width: 100%;
    }

    /* Formulare voll */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        width: 100%;
        max-width: 100%;
    }

    /* Tabellen scrollbar */
    .tbl-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Eckige Boxen auf Mobile */
    .lhm-panel,
    .lhm-opentable,
    .lhm-news,
    .lhm-article {
        border-radius: 0;
    }
}

/* ============================================
   RESPONSIVE – Klein-Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {

    body {
        font-size: 12px;
    }

    .headerpic {
        height: 80px;
    }

    .ot-main-body,
    .side-body {
        padding: 10px;
    }

    .ot-title,
    .panel-title {
        font-size: 12px;
        padding: 8px 10px;
    }

    .footer-logo img {
        width: 120px;
        height: auto;
    }
}
