/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

/* Grundfarben */
/*
 * wedema.de – custom.css
 * Dark / technical theme
 */


/* =========================================================
   Grundlayout
   ========================================================= */

/*
 * wedema.de – custom.css
 * Dark / technical theme
 */


/* =========================================================
   Grundlayout
   ========================================================= */

html,
body {
    background: #0f1113;
    color: #e4e4e4;
}

body {
    line-height: 1.7;
    font-size: 18px;
}


/* =========================================================
   Header / Navigation
   ========================================================= */

#header,
.header {
    background: #17191d;
    border-bottom: 1px solid #2c3036;
}

#header a,
.header a,
.dropmenu ul li a {
   /* color: #d7d9dc;*/
}

#header a:hover,
#header a:focus,
.header a:hover,
.dropmenu ul li a:hover {
    color: #d8b36a;
}

/* aktiver Menüpunkt */
.dropmenu ul li.active > a,
.dropmenu ul li.selected > a,
#header .active > a {
    background: transparent;
    color: #f0d39a;
    border-bottom: 2px solid #b58a3a;
}

/* Dropdown */
.dropmenu ul ul {
    background: #1d2024;
    border: 1px solid #32363c;
}

.dropmenu ul ul li a {
    color: #d7d9dc;
}

.dropmenu ul ul li a:hover {
    background: #292d32;
    color: #f0d39a;
}


/* =========================================================
   Inhaltsbereich
   ========================================================= */

.container,
.content-wrapper,
.page-content,
.modular-text,
main {
    color: #e4e4e4;
}

main .container,
.page-content,
.content-wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-content,
.content-wrapper {
    background: #1d2024;
    border-radius: 12px;
    padding: 2.4rem 2.8rem;
}


/* =========================================================
   Typografie
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #f4f4f4;
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 1.65rem;
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #454a51;
}

h2::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 3px;
    background: #b58a3a;
    margin-right: 0.7rem;
    vertical-align: middle;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.15rem;
}

strong {
    color: #f0f0f0;
}


/* =========================================================
   Links
   ========================================================= */

a {
    color: #d8b36a;
    text-decoration: none;
}

a:hover {
    color: #f0d39a;
    text-decoration: underline;
}


/* =========================================================
   Listen
   ========================================================= */

ul,
ol {
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.25rem;
}


/* =========================================================
   Inline-Code
   ========================================================= */

code {
    background: #2a2e33;
    color: #f1d28c;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.93em;
}


/* =========================================================
   Codeblöcke
   ========================================================= */

pre {
    background: #131518;
    color: #ededed;
    padding: 1rem 1.2rem;
    border: 1px solid #32363c;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.4rem 0;
    line-height: 1.55;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}


/* =========================================================
   Blockquotes / Hinweise
   ========================================================= */

blockquote {
    margin: 1.4rem 0;
    padding: 0.9rem 1.2rem;
    background: #24272c;
    border-left: 4px solid #a9843e;
    color: #dddddd;
}

blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Tabellen
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    background: #1b1e22;
}

th,
td {
    border: 1px solid #343940;
    padding: 0.75rem;
    text-align: left;
}

th {
    background: #25292e;
    color: #f0d39a;
}

tr:nth-child(even) {
    background: #202328;
}


/* =========================================================
   Bilder
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* =========================================================
   Horizontale Linien
   ========================================================= */

hr {
    border: 0;
    border-top: 1px solid #3b4046;
    margin: 2rem 0;
}


/* =========================================================
   Beitragslisten / Karten
   ========================================================= */

.problemliste,
.fury-articles {
    margin-top: 2rem;
}

.problem,
.fury-article {
    background: #202328;
    border: 1px solid #343940;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.2rem;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.problem:hover,
.fury-article:hover {
    border-color: #7d6738;
    transform: translateY(-2px);
}

.problem h2,
.fury-article h3 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.problem h2::before,
.fury-article h3::before {
    display: none;
}

.problem h2 a,
.fury-article h3 a {
    color: #f0d39a;
}

.problem h2 a:hover,
.fury-article h3 a:hover {
    color: #ffe1a4;
}


/* =========================================================
   Buttons
   ========================================================= */

button,
.button,
.btn,
input[type="submit"] {
    background: #8a6a2f;
    color: #ffffff;
    border: 1px solid #a98543;
    border-radius: 6px;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover {
    background: #a17c38;
}


/* =========================================================
   Formulare
   ========================================================= */

input,
textarea,
select {
    background: #181b1f;
    color: #ededed;
    border: 1px solid #3b4046;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #a9843e;
    outline: none;
}


/* =========================================================
   Footer
   ========================================================= */

#footer,
.footer {
    background: #17191d;
    color: #aeb2b6;
    border-top: 1px solid #2c3036;
}

#footer a,
.footer a {
    color: #d8b36a;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 17px;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .page-content,
    .content-wrapper {
        border-radius: 0;
        padding: 1.4rem;
    }

    h2::before {
        width: 18px;
        margin-right: 0.5rem;
    }
}
/* =========================================================
   WE·DE·MA Branding
   ========================================================= */

.navbar-brand {
    text-decoration: none !important;
}

.wedema-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.wedema-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;

    color: #f4f4f4;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wedema-logo b {
    color: #d49a32;
    font-weight: 700;
}

.wedema-claim {
    margin-top: 0.32rem;

    color: #b8bbc0;
    font-size: 0.76rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.wedema-claim strong {
    color: #d49a32;
    font-weight: 700;
}

.wedema-claim i {
    color: #777c83;
    font-style: normal;
    margin: 0 0.12rem;
}

.navbar-brand:hover .wedema-logo {
    color: #ffffff;
}

.navbar-brand:hover .wedema-claim {
    color: #d4d6d8;
}


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

    .wedema-logo {
        font-size: 1.25rem;
    }

    .wedema-claim {
        font-size: 0.65rem;
    }
}
/* =========================================================
   Startseite
   ========================================================= */

.wedema-hero {
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;
    padding: 3.2rem 2.8rem 2.8rem 2.8rem;
    background:
        linear-gradient(
            135deg,
            #1c1f23 0%,
            #181a1e 60%,
            #131518 100%
        );
    border: 1px solid #30343a;
    border-radius: 14px;
}

.wedema-hero-inner {
    max-width: 820px;
}

.wedema-hero-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wedema-hero-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #f5f5f5;
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wedema-hero-logo b {
    color: #d49a32;
}

.wedema-hero-claim {
    margin-top: 0.7rem;
    color: #b8bbc0;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.wedema-hero-claim strong {
    color: #d49a32;
}

.wedema-hero-claim i {
    color: #737880;
    font-style: normal;
    margin: 0 0.25rem;
}

.wedema-intro {
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    color: #f0f0f0;
    font-size: 1.45rem;
    font-weight: 500;
}

.wedema-description {
    margin: 0;
    max-width: 760px;
    color: #bfc2c6;
    font-size: 1rem;
}


/* Themenkarten */

/* =========================================================
   Startseite – Themenkarten
   ========================================================= */

.wedema-topics {
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}


/* komplette Karte */
.wedema-topic-card {
    position: relative;
    display: block;

    height: 330px;

    overflow: hidden;

    background: #1d2024;
    border: 1px solid #343940;
    border-radius: 12px;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


/* Bild füllt IMMER die komplette Karte */
.wedema-topic-card .wedema-topic-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    border: 0;
    border-radius: 0;

    transition: transform 0.35s ease;
}


/* dunkler Verlauf für lesbaren Text */
.wedema-topic-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(9, 11, 13, 0.96) 0%,
            rgba(9, 11, 13, 0.82) 25%,
            rgba(9, 11, 13, 0.42) 52%,
            rgba(9, 11, 13, 0.08) 78%,
            rgba(9, 11, 13, 0.00) 100%
        );
}


/* Text unten auf dem Bild */
.wedema-topic-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 1.5rem 1.6rem;
}


/* Kartenüberschrift */
.wedema-topic-card .wedema-topic-card-content h2 {
    margin: 0 0 0.45rem 0;
    padding: 0;

    border: 0;

    color: #f5f5f5;
    font-size: 1.55rem;
    line-height: 1.2;
}


/* globale H2-Markierung hier abschalten */
.wedema-topic-card .wedema-topic-card-content h2::before {
    display: none;
}


/* Beschreibung */
.wedema-topic-card .wedema-topic-card-content p {
    margin: 0 0 0.75rem 0;

    color: #d4d6d8;
    font-size: 0.95rem;
    line-height: 1.45;
}


/* Linktext */
.wedema-topic-link {
    color: #dda63e;
    font-size: 0.95rem;
    font-weight: 600;
}


/* Hover */
.wedema-topic-card:hover {
    transform: translateY(-3px);
    border-color: #9d7732;
}

.wedema-topic-card:hover .wedema-topic-image {
    transform: scale(1.025);
}

.wedema-topic-card:hover .wedema-topic-link {
    color: #f0c66c;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .wedema-topics {
        grid-template-columns: 1fr;
    }

    .wedema-topic-card {
        height: 300px;
    }

    .wedema-topic-card-content {
        padding: 1.25rem 1.3rem;
    }

    .wedema-topic-card .wedema-topic-card-content h2 {
        font-size: 1.4rem;
    }
}

/* unterer Bereich */

.wedema-home-more {
    max-width: 1100px;
    margin: 0 auto 3rem auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}

.wedema-home-panel {
    padding: 1.6rem 1.7rem;

    background: #1d2024;
    border: 1px solid #343940;
    border-radius: 12px;
}

.wedema-home-panel h2 {
    margin-top: 0;
}

.wedema-home-panel a {
    display: inline-block;
    margin-top: 0.4rem;
    font-weight: 600;
}


/* Mobile */

@media (max-width: 768px) {

    .wedema-hero {
        padding: 2rem 1.4rem;
        border-radius: 8px;
    }

    .wedema-hero-logo {
        font-size: 2.1rem;
    }

    .wedema-hero-claim {
        font-size: 0.8rem;
    }

    .wedema-intro {
        font-size: 1.2rem;
    }

    .wedema-topics,
    .wedema-home-more {
        grid-template-columns: 1fr;
    }

    .wedema-topic-card {
        min-height: 160px;
    }
}
/* Bilder Grid*/
/*.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}*/
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    margin: 24px 0;
}

.image-grid figure {
    margin: 0;
    text-align: center;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.image-grid figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #999;
}
/* Bilder in Artikelvorschauen */
.editorial-article-summary img {
    max-width: 180px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Galerien innerhalb der Vorschau */
.editorial-article-summary .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.editorial-article-summary figure {
    margin: 0;
}

.editorial-article-summary figcaption {
    font-size: 0.8rem;
}
