
/* =====================================
   einfach-pat.de – Fotogalerie
   Gemeinsames dunkles Design
   ===================================== */

:root {
    color-scheme: dark;
    --background: #3e3e3e;
    --surface: #353535;
    --surface-light: #494949;
    --text: #f5f5f5;
    --muted: #c5c5c5;
    --border: #555555;
    --button: #555555;
    --button-hover: #686868;
    --danger: #873d3d;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    font-family: Arial, Helvetica, sans-serif !important;
    background: var(--background) !important;
    color: var(--text) !important;
    max-width: 1100px !important;
    width: calc(100% - 40px);
    margin: 45px auto !important;
    padding: 0 10px !important;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    color: var(--text) !important;
    font-weight: 500;
    line-height: 1.3;
}

h1 {
    font-size: 30px;
    margin-bottom: 28px;
}

h2 {
    font-size: 23px;
    margin-top: 35px;
}

h3 {
    font-size: 19px;
}

p {
    color: var(--text);
}

.meta, small {
    color: var(--muted) !important;
}

/* Links */

a {
    color: var(--text) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Buttons */

button,
input[type="submit"] {
    display: inline-block;
    background: var(--button) !important;
    color: #ffffff !important;
    border: 1px solid #777777 !important;
    border-radius: 4px !important;
    padding: 11px 17px !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--button-hover) !important;
}

button.delete {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.logout {
    background: var(--surface-light) !important;
}

/* Galerie-Karten */

.gallery {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 5px !important;
    padding: 22px !important;
    margin: 22px 0 !important;
}

/* Formulare und Eingabefelder */

input:not([type="hidden"]),
textarea,
select {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 12px;
    margin: 8px 0 18px;
    background: #303030 !important;
    color: #ffffff !important;
    border: 1px solid #777777 !important;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}

input[type="file"] {
    max-width: 100%;
    background: transparent !important;
    border: 0 !important;
    padding-left: 0;
}

input::placeholder,
textarea::placeholder {
    color: #aaaaaa;
}

label {
    color: var(--text);
}

/* Fotogalerie */

img {
    max-width: 100%;
    height: auto;
}

.gallery img {
    border-radius: 3px;
}

/* Hinweise und Meldungen */

.notice,
.message {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 15px;
    color: var(--text);
}

/* Trennlinien */

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* Mobile Darstellung */

@media (max-width: 600px) {
    body {
        width: calc(100% - 24px);
        margin: 25px auto !important;
        padding: 0 4px !important;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 21px;
    }

    .gallery {
        padding: 15px !important;
    }

    button,
    input[type="submit"] {
        max-width: 100%;
    }
}

/* Korrektur: Dashboard und Galerie-Erstellung */

html,
html body {
    background-color: #3e3e3e !important;
    color: #ffffff !important;
}

body,
body p,
body label,
body h1,
body h2,
body h3 {
    color: #f5f5f5 !important;
}

body .gallery {
    background-color: #353535 !important;
    border: 1px solid #606060 !important;
}

body .meta {
    color: #d0d0d0 !important;
}

body input:not([type="hidden"]),
body textarea,
body select {
    background-color: #292929 !important;
    color: #ffffff !important;
    border: 1px solid #777777 !important;
}

body input::placeholder {
    color: #bdbdbd !important;
}

body input[type="date"] {
    color-scheme: dark;
}

body button {
    color: #ffffff !important;
}
