/* =========================================
   GRUNDLAYOUT – edel, ruhig, fein
   ========================================= */

:root {
    --edel-weiss: #e8ecf5;
    --edel-text: #c9ced8;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: #111;
    color: var(--edel-text);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 300;
    letter-spacing: 0.25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    position: relative;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   EDELE ÜBERSCHRIFTEN
   ========================================= */

h1, h2, h3 {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    color: var(--edel-weiss);
    letter-spacing: 0.35px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

/* =========================================
   Sidebar Navigation (GLOBAL)
   ========================================= */

#sidebar {
    width: 240px;
    min-width: 220px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px 14px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

#sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar li {
    margin-bottom: 8px;
}

#sidebar a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #222;
    color: #b7c9ff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

#sidebar a:hover {
    background: #333;
    color: #dbe6ff;
}

/* =========================================
   GLOBALER CONTENT-BEREICH
   ========================================= */

#content {
    margin-left: 240px;
    padding-left: 28px;
    padding-right: 28px;
}

body.home #content {
    margin-left: 0 !important;
    padding-left: 28px;
}

/* =========================================
   STARTSEITEN-BUTTON OBEN RECHTS
   ========================================= */

.home-link {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2a2a2a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.home-link:hover {
    background: #444;
}

/* =========================================
   BUTTONS ALLGEMEIN
   ========================================= */

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn:hover {
    background: #444;
}

/* =========================================
   HERO / BANNER – klassisch & edel (final korrigiert)
   ========================================= */

.hero {
    width: 100%;
    height: 300px;
    margin: 0 auto 60px auto;
    background: url("/assets/images/header-banner.jpg") center/cover no-repeat;
    border-radius: 6px;
    box-shadow: 0 0 22px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* =========================================
   LOGO-TEXT – Glow + Schatten
   ========================================= */

.logo-text {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 2.6rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 1.5px;

    text-shadow:
        0 2px 4px rgba(0,0,0,0.55),
        0 0 6px rgba(255,255,255,0.35),
        0 0 12px rgba(255,255,255,0.25),
        0 0 18px rgba(255,255,255,0.15);
}

/* =========================================
   INTRO
   ========================================= */

.intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    color: var(--edel-text);
    font-size: 1.05rem;
    line-height: 1.65;
    letter-spacing: 0.25px;
}

/* =========================================
   STARTSEITE GRID
   ========================================= */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.box {
    background: #181818;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(0,0,0,0.28);
}

.box h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--edel-weiss);
}

.box p {
    color: var(--edel-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   TESTBERICHTE
   ========================================= */

.testbericht p {
    margin-bottom: 20px;
    color: var(--edel-text);
    font-size: 1rem;
    line-height: 1.6;
}

.testbericht img {
    max-width: 45%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
}

.testbericht img:hover {
    transform: scale(1.03);
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.image-row img {
    width: 45%;
    max-width: 360px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    transition: transform 0.25s ease;
}

.image-row img:hover {
    transform: scale(1.03);
}

/* =========================================
   TEST-ÜBERSICHT
   ========================================= */

.test-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    padding: 12px 16px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: background 0.2s;
}

.test-button:hover {
    background: #444;
}

.test-button img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 16px;
}

/* =========================================
   VIDEO-GRID
   ========================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-grid iframe {
    width: 100%;
    height: 215px;
    border-radius: 6px;
}

/* =========================================
   STUDIO-SEITE – edle Sidebar & Content
   ========================================= */

.page-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-left: 20px;
}

.page-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: fixed;
    top: 130px;
    left: 20px;
    background: none;
    padding-top: 10px;
    padding-left: 4px;
    border: none;
}

.page-sidebar ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.page-sidebar li {
    margin-bottom: 10px;
    list-style-type: none !important;
}

.page-sidebar a:link,
.page-sidebar a:visited,
.page-sidebar a:active {
    display: block;
    padding: 6px 0;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: #bfc8e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-sidebar a:hover {
    color: #e8ecf5;
}

.page-content {
    flex: 1;
    max-width: 900px;
    padding-left: 28px;
    font-size: 1.05rem;
    line-height: 1.65;
    letter-spacing: 0.25px;
    color: var(--edel-text);
}

.page-content p {
    margin-bottom: 22px;
}

.page-content h2 {
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.35px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--edel-weiss);
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--edel-weiss);
}

.page-title {
    margin-bottom: 70px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 800px) {

    #content {
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    #sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
    }

    .page-layout {
        flex-direction: column;
        margin-left: 0;
    }

    .page-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        margin-top: 20px;
    }
}

/* =========================================
   TABELLEN
   ========================================= */

.page-content table,
.page-content table th,
.page-content table td {
    border: 1px solid #444 !important;
}

.page-content table {
    width: 100%;
    border-collapse: collapse !important;
}

.page-content table th,
.page-content table td {
    padding: 8px;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */

.back-to-top {
    display: inline-block;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.back-to-top:hover {
    background: #555;
}

.back-to-top-container {
    text-align: center;
    margin-top: 40px;
}
