
/* ===== Modern Theme - Additional Styles ===== */

/* Forum */
.forum-head, .forumhead {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
}

table.forum td, table.forum th {
    padding: 6px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

table.forum tr:hover td {
    background: #f9fafb;
}

/* User profile */
.profil-box {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

/* News */
.news-head {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

/* Login box */
.login-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
}

/* Tag / Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Pagination */
.pagination a, .pagination span {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: background 0.15s;
}
.pagination a:hover {
    background: #eff6ff;
}
.pagination .current {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

/* Alerts / Messages */
.event-msg, .success-msg {
    padding: 10px 14px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 10px;
}

.error-msg, .alert-msg {
    padding: 10px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Shoutbox */
.shoutbox {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 8px;
}

/* Image styles */
img { max-width: 100%; height: auto; }

/* ===== Login-Sidebar-Box ===== */
.art-login-sidebar {
    padding: 10px !important;
}
.art-login-sidebar input[type="text"],
.art-login-sidebar input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}
.art-login-sidebar input[type="submit"] {
    width: 100%;
}
.art-login-sidebar a {
    font-size: 12px;
    color: #1d4ed8;
}

/* ===== Video Cards (Div-basiert Modern) ===== */

/* Video-Grid: 4 Spalten */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 12px;
}

/* Einzelne Video-Card */
.video-card {
    background: linear-gradient(160deg, #ffffff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(99,132,255,0.18);
    box-shadow:
        0 2px 0 #b8c8ff,
        0 4px 0 #a0b4f0,
        0 6px 0 #8aa0e0,
        0 8px 18px rgba(29,78,216,0.18);
    overflow: hidden;
    width: 100%;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    position: relative;
    transform-style: preserve-3d;
}
.video-card:hover {
    transform: translateY(-5px) scale(1.025);
    border-color: rgba(99,132,255,0.45);
    box-shadow:
        0 2px 0 #b8c8ff,
        0 4px 0 #a0b4f0,
        0 6px 0 #8aa0e0,
        0 14px 32px rgba(29,78,216,0.28),
        0 0 0 2px rgba(99,132,255,0.18);
}
.video-card:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 1px 0 #b8c8ff,
        0 2px 0 #a0b4f0,
        0 4px 10px rgba(29,78,216,0.15);
}

/* Play-Button Overlay beim Hover */
.video-card-thumb {
    width: 100%;
    overflow: hidden;
    background: #0b1d45;
    line-height: 0;
    position: relative;
}
.video-card-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    font-size: 28px;
    color: rgba(255,255,255,0.9);
    background: rgba(29,78,216,0.65);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 44px;
    text-indent: 3px;
    opacity: 0;
    transition: opacity 0.18s, transform 0.18s;
    pointer-events: none;
    z-index: 1;
}
.video-card:hover .video-card-thumb::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.video-card-thumb img,
.video-card-thumb a img {
    width: 100% !important;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.25s, filter 0.25s;
    filter: brightness(0.97);
}
.video-card:hover .video-card-thumb img,
.video-card:hover .video-card-thumb a img {
    transform: scale(1.06);
    filter: brightness(0.8);
}

/* Card-Inhalt */
.video-card-body {
    padding: 9px 11px 10px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-top: 1px solid rgba(99,132,255,0.1);
}
.video-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}
.video-card-views {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
}
.video-card-desc {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}
.video-card-comment,
.video-card-rating {
    font-size: 11px;
    color: #374151;
    margin-top: 4px;
}

/* Glanz-Linie oben auf der Card */
.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.18s;
    z-index: 2;
    border-radius: 12px 12px 0 0;
}
.video-card:hover::before {
    opacity: 1;
}

/* Edit-Icon über der Card */
.video-edit-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.15s;
}
.video-card:hover .video-edit-btn { opacity: 1; }
.video-edit-btn img {
    width: 16px !important;
    height: 16px !important;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Kategorie-Label in Card (klein, innerhalb einer video-card) */
.video-cat-label {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 0;
}
.video-cat-label a {
    color: #2563eb;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
}

/* Aktive Kategorie-Zeile zwischen Kategorie-Grid und Video-Grid */
.video-gallery > .video-cat-label {
    display: block;
    padding: 6px 12px;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    font-size: 12px;
    font-weight: 500;
    color: #1e3a8a;
    margin: 0;
}
.video-gallery > .video-cat-label a {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Video Kategorie-Grid ===== */
.video-cat-grid-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 12px;
}

.video-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px 12px;
    background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid rgba(99,132,255,0.2);
    border-radius: 12px;
    box-shadow:
        0 2px 0 #c7d6fb,
        0 4px 10px rgba(29,78,216,0.10);
    text-decoration: none !important;
    color: #1e3a8a;
    font-family: 'Inter', sans-serif;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.video-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.18s;
    border-radius: 12px 12px 0 0;
}
.video-cat-card:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(99,132,255,0.45);
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow:
        0 2px 0 #c7d6fb,
        0 10px 24px rgba(29,78,216,0.2);
    color: #1d4ed8;
}
.video-cat-card:hover::before { opacity: 1; }

.video-cat-card-icon {
    font-size: 22px;
    line-height: 1;
    display: block;
    transition: transform 0.18s;
}
.video-cat-card-icon img {
    width: 28px !important;
    height: 28px !important;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(29,78,216,0.2));
    transition: transform 0.18s;
}
.video-cat-card:hover .video-cat-card-icon,
.video-cat-card:hover .video-cat-card-icon img {
    transform: scale(1.15);
}
.video-cat-card-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #1e3a8a;
    line-height: 1.3;
    transition: color 0.15s;
}
.video-cat-card:hover .video-cat-card-name { color: #1d4ed8; }
.video-cat-card-count {
    font-size: 10px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.video-cat-card:hover .video-cat-card-count {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Keine Videos Meldung */
.video-no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Video-Galerie Wrapper */
.video-gallery {
    font-family: 'Inter', sans-serif;
}
.video-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
}
.video-gallery-footer {
    padding: 6px 12px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    text-align: right;
    border-radius: 0 0 8px 8px;
}

/* Tab-Leiste (Startseite) */
.video-tabs-bar {
    background: #1e3a8a;
    border-radius: 8px 8px 0 0;
    padding: 4px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.video-tabs-label {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    color: #374151;
}

/* Kategorie-Zeile */
.video-cat-row {
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}
.video-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}
.video-cat-link:hover { text-decoration: underline; }
.video-cat-count { color: #6b7280; font-size: 12px; }

/* ===== Video Templates ===== */

/* Outer wrapper table for user video gallery */
.modern-theme .userbody {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

/* Header rows in video tables (.heads) */
.modern-theme .heads {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
}
.modern-theme .heads td,
.modern-theme td.heads {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
}

/* Row container for video card grids */
.modern-theme .rowbody {
    background: transparent;
    border-collapse: collapse;
}
.modern-theme .rowbody td {
    padding: 8px 4px;
    vertical-align: top;
}

/* Individual video card (.rahmen) – was fixed 120px, now wider card */
.modern-theme .rahmen {
    width: 160px !important;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    overflow: hidden;
    border: none !important;
    margin: 6px;
    transition: box-shadow 0.2s;
}
.modern-theme .rahmen:hover {
    box-shadow: 0 4px 16px rgba(29,78,216,0.18);
}
.modern-theme .rahmen td,
.modern-theme .rahmen th {
    border: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

/* Standard content cells in video cards */
.modern-theme .standard,
.modern-theme td.standard {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #374151;
    padding: 6px 8px;
    background: transparent;
}

.modern-theme .standard1,
.modern-theme td.standard1 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #374151;
    padding: 5px 8px;
    background: transparent;
    text-align: center;
}
.modern-theme .standard1 b,
.modern-theme td.standard1 b {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 13px;
}

/* Tab navigation bar (home page: Videos / Games / etc.) */
.modern-theme #home_content table.index td {
    background: #1e3a8a !important;
    background-image: none !important;
    border-radius: 8px 8px 0 0;
    padding: 4px 6px;
    height: auto !important;
}

.modern-theme a.topnavinaktiv,
.modern-theme .topnavinaktiv {
    display: inline-block;
    padding: 5px 14px;
    margin: 0 2px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.modern-theme a.topnavinaktiv:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
}

.modern-theme a.topnavaktiv,
.modern-theme .topnavaktiv {
    display: inline-block;
    padding: 5px 14px;
    margin: 0 2px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #f59e0b;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
}

/* Single video page – video player area */
.modern-theme #content_showComFenster {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* "My Videos" / edit video page – form table */
.modern-theme table.videoedit td,
.modern-theme table.myvideo td {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 6px 8px;
}

/* Thumbnail images in video cards */
.modern-theme .rahmen img {
    border-radius: 6px 6px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

/* Edit icon row above each video card – small and compact */
.modern-theme .rahmen td.standard {
    padding: 2px 4px !important;
    line-height: 1;
}
.modern-theme .rahmen td.standard img {
    width: 14px !important;
    height: 14px !important;
    border-radius: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
    display: inline;
}
.modern-theme .rahmen td.standard img:hover {
    opacity: 1;
}

/* Video category row link */
.modern-theme .load_video_cat a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}
.modern-theme .load_video_cat a:hover {
    text-decoration: underline;
}

/* ===== Forum Level-Box (Bedanken.htm) ===== */
.forum-level-box {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 5px 7px;
    margin-top: 4px;
    width: 110px;
}
.forum-level-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 4px;
    border-bottom: 1px solid #dbeafe;
    padding-bottom: 3px;
}
.forum-level-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.forum-level-label {
    font-size: 10px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.forum-level-bar {
    flex: 1;
    height: 7px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.forum-level-fill {
    height: 100%;
    border-radius: 4px;
    min-width: 2px;
}
.forum-level-xp   { background: linear-gradient(90deg, #6366f1, #818cf8); }
.forum-level-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.forum-level-green{ background: linear-gradient(90deg, #10b981, #34d399); }
.forum-level-gold { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.forum-level-pct {
    font-size: 10px;
    color: #6b7280;
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

/* ===== Single Video Page (1video1.htm) ===== */

.video-single-page {
    font-family: 'Inter', sans-serif;
}

.video-single-breadcrumb {
    font-size: 12px;
    color: #6b7280;
    padding: 6px 4px 10px;
}
.video-single-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.video-single-breadcrumb a:hover { text-decoration: underline; }
.video-single-breadcrumb span { color: #374151; font-weight: 500; }

.video-single-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

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

.video-single-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.video-single-player {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.video-single-player video {
    display: block;
    width: 100% !important;
    max-height: 420px;
    border-radius: 10px;
}

.video-single-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    margin-bottom: 12px;
    overflow: hidden;
}
.video-single-section-head {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
}
.video-single-desc {
    padding: 10px 12px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}
#content_showComFenster {
    padding: 10px 12px;
    font-size: 13px;
}

/* Sidebar */
.video-single-sidebar {
    flex: 0 0 210px;
    width: 210px;
}
.video-single-meta {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.video-single-meta-edit {
    margin-bottom: 8px;
}
.video-single-meta-edit .video-edit-btn {
    position: static;
    opacity: 1;
    display: inline-block;
}
.video-single-meta-edit .video-edit-btn img {
    width: 18px !important;
    height: 18px !important;
}
.video-single-meta-item {
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 12px;
    line-height: 1.5;
}
.video-single-meta-item:last-child { border-bottom: none; }
.video-single-meta-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.video-single-meta-item a:hover { text-decoration: underline; }

/* Password form */
.video-password-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    padding: 16px;
    max-width: 400px;
    font-family: 'Inter', sans-serif;
}
.video-password-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.video-password-row label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    min-width: 130px;
}

/* Melden / Disclaimer */
.video-melden {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #78350f;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
}
.video-melden a { color: #b45309; }

/* Video Search Form */
.video-search-form {
    padding: 8px;
}
.video-search-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.video-search-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    #art-main { padding: 0 6px; }
    .art-Header { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
    h1.art-Logo-name, h1.art-Logo-name a { font-size: 20px; }
    .art-contentLayout { flex-direction: column; }
    .art-contentLayout .art-sidebar1,
    .art-contentLayout .art-sidebar2 { width: 100% !important; }
    .art-menu { flex-wrap: wrap; }
    .art-menu a { height: 36px; font-size: 12px; padding: 0 10px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .video-single-layout { flex-direction: column; }
    .video-single-sidebar { width: 100%; flex: none; }
    .video-cat-grid-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-cat-grid-cats { grid-template-columns: repeat(2, 1fr); }
}
