/*
 * RPG Oase
 * Grund-CSS
 *
 * Standard-Theme: Dark
 * Zusätzliches Theme: Light
 *
 * Das Theme wird benutzerabhängig über
 * data-theme="dark" bzw. data-theme="light" gesetzt.
 */


/* =========================================================
   THEME-VARIABLEN – DARK
   ========================================================= */

:root {
    --color-background: #111318;
    --color-surface: #191c23;
    --color-surface-light: #20242d;
    --color-surface-hover: #272c36;

    --color-border: #303641;

    --color-text: #f1f3f5;
    --color-text-muted: #a9afb9;
    --color-text-dark: #111318;

    --color-primary: #8b5cf6;
    --color-primary-hover: #7c3aed;

    --color-link: #a78bfa;
    --color-link-hover: #c4b5fd;

    --color-success: #4ade80;
    --color-warning: #facc15;
    --color-danger: #f87171;

    --color-input-background: #111318;
    --color-input-border: #3a404c;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 14px;
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html[data-theme="light"] {
    --color-background: #e7e4dc;

    --color-surface: #f3f1ea;

    --color-surface-light: #e9e6de;

    --color-surface-hover: #ddd9d0;

    --color-border: #c9c5bb;

    --color-text: #292824;
    --color-text-muted: #6e6a61;
    --color-text-dark: #f3f1ea;

    --color-primary: #7046c1;
    --color-primary-hover: #5f38a8;

    --color-link: #6340aa;
    --color-link-hover: #4f328c;

    --color-success: #398653;
    --color-warning: #a47716;
    --color-danger: #b94a48;

    --color-input-background: #f7f5ef;
    --color-input-border: #bdb8ad;

    --shadow: 0 4px 20px rgba(55, 50, 40, 0.12);

    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 14px;
}


/* =========================================================
   GRUNDLEGENDES
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;

    background: var(--color-background);

    transition:
        background-color 0.2s ease;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--color-background);
    color: var(--color-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

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

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

    transition:
        color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* =========================================================
   HAUPTLAYOUT
   ========================================================= */

.site-layout {
    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr)
        180px;

    gap: 8px;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 20px;

    align-items: stretch;
}


/* =========================================================
   LINKE LEISTE
   ========================================================= */

.sidebar-left {
    min-width: 0;

    background: var(--color-surface);

    border: 0;
    border-radius: var(--radius-medium);

    box-shadow: none;

    transform: translateX(0);
}


/* =========================================================
   MITTLERE SPALTE
   ========================================================= */

.main-content {
    min-width: 0;

    background: var(--color-surface);

    border: 0;
    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

    padding: 30px;

    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   RECHTE LEISTE
   ========================================================= */

.sidebar-right {
    min-width: 0;

    background: var(--color-surface);

    border: 0;
    border-radius: var(--radius-medium);

    box-shadow: none;

    transform: translateX(0);
}


/* =========================================================
   ALLGEMEINE BOXEN
   ========================================================= */

.box {
    background: var(--color-surface-light);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow);

    padding: 20px;
    margin-bottom: 20px;
}

.box:last-child {
    margin-bottom: 0;
}

.box-title {
    margin: 0 0 15px 0;

    color: var(--color-text);

    font-size: 18px;
    font-weight: 700;
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--color-text);

    line-height: 1.3;
}

h1 {
    margin-bottom: 25px;
    font-size: 32px;
}

h2 {
    margin-bottom: 20px;
    font-size: 26px;
}

h3 {
    margin-bottom: 15px;
    font-size: 21px;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}


/* =========================================================
   FORMULARE
   ========================================================= */

label {
    display: block;

    margin-bottom: 6px;

    color: var(--color-text);

    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;

    padding: 10px 12px;

    background: var(--color-input-background);
    color: var(--color-text);

    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-small);

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(112, 70, 193, 0.15);
}

textarea {
    min-height: 150px;
    resize: vertical;
}


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

button,
.button {
    display: inline-block;

    padding: 10px 18px;

    background: var(--color-primary);
    color: #ffffff;

    border: 0;
    border-radius: var(--radius-small);

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

button:hover,
.button:hover {
    background: var(--color-primary-hover);

    color: #ffffff;
    text-decoration: none;
}

button:active,
.button:active {
    transform: translateY(1px);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {
    background: var(--color-surface-light);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow);

    padding: 10px;
}

.navigation a {
    display: block;

    padding: 10px 12px;

    border-radius: var(--radius-small);

    color: var(--color-text-muted);
}

.navigation a:hover {
    background: var(--color-surface-hover);

    color: var(--color-text);

    text-decoration: none;
}


/* =========================================================
   LISTEN
   ========================================================= */

ul,
ol {
    padding-left: 25px;
}


/* =========================================================
   HINWEISE / STATUS
   ========================================================= */

.message {
    padding: 12px 15px;

    margin-bottom: 20px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    background: var(--color-surface-light);
}

.message-success {
    border-color: var(--color-success);
}

.message-warning {
    border-color: var(--color-warning);
}

.message-danger {
    border-color: var(--color-danger);
}


/* =========================================================
   TRENNLINIE
   ========================================================= */

hr {
    height: 1px;

    margin: 25px 0;

    background: var(--color-border);

    border: 0;
}


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

@media (max-width: 1100px) {
    .site-layout {
        grid-template-columns:
            180px
            minmax(0, 1fr)
            180px;

        gap: 6px;

        padding: 20px;

        align-items: stretch;
    }

    .main-content {
        padding: 25px;
    }
}


@media (max-width: 800px) {
    .site-layout {
        grid-template-columns:
            150px
            minmax(0, 1fr)
            150px;

        gap: 5px;

        padding: 20px;

        align-items: stretch;
    }

    .main-content {
        padding: 20px;
    }
}


@media (max-width: 500px) {
    .site-layout {
        grid-template-columns:
            120px
            minmax(0, 1fr)
            120px;

        gap: 4px;

        padding: 20px;

        align-items: stretch;
    }

    .main-content {
        padding: 15px;
    }
}