/* Kochclub Gourmet Hemsbach | Joomla 4 / Cassiopeia
   Bereinigte Fassung, 24.10.2026
   Grundlage: funktionierende Desktop- und Android-Ansicht
*/

:root {
    --kochclub-width: 920px;
    --kochclub-border: #ddd;
    --kochclub-line: #e5e5e5;
}

/* Grundfarben */
body {
    background: #f4f5f6;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

/* Gemeinsamer weißer Seitenrahmen für Kopf und Inhalt */
body.wrapper-static .container-header,
body.wrapper-static .site-grid {
    width: min(var(--kochclub-width), calc(100% - 32px));
    max-width: none;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
}

body.wrapper-static .container-header {
    display: block;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 12px 20px 0;
    border: 1px solid var(--kochclub-border);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background-image: none;
    box-shadow: none;
}

body.wrapper-static .site-grid {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 12px 20px 20px;
    border: 1px solid var(--kochclub-border);
    border-top: 0;
    border-radius: 0 0 6px 6px;
}

/* Interne Cassiopeia-Header-Container nicht zusätzlich begrenzen */
body.wrapper-static .container-header .grid-child,
body.wrapper-static .container-header .container-header-inner,
body.wrapper-static .container-header .container-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Vereinsname */
.container-header .navbar-brand {
    padding-top: 8px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.container-header .site-title,
.container-header .navbar-brand a {
    color: #102536;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1.3;
}

/* Navigation und Trennlinien */
body.wrapper-static .container-header .container-nav {
    margin-top: -8px;
    padding: 10px 0;
    border-top: 1px solid var(--kochclub-line);
    border-bottom: 1px solid var(--kochclub-line);
}

.container-header .mod-menu {
    font-size: 14px;
}

.container-header .mod-menu,
.container-header .mod-menu a,
.container-header .mod-menu .nav-link {
    color: #0088cc;
}

.container-header .mod-menu a:hover {
    color: #005580;
    text-decoration: underline;
}

/* Normale Inhalte im Grid gegen Überlaufen absichern */
.site-grid > *,
.container-component,
.com-content-article {
    min-width: 0;
}

/* Protostar-artige Hauptinhaltsspalte auf Desktop */
@media (min-width: 768px) {
    body.com_content.wrapper-static .site-grid > .container-component {
        width: 100%;
        max-width: 780px;
        min-width: 0;
        justify-self: start;
        margin-left: 0;
        margin-right: auto;
    }
}

/* Artikelüberschriften und Trennlinie */
body.wrapper-static .site-grid .page-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kochclub-line);
}

body.wrapper-static .site-grid .page-header h1,
body.wrapper-static .site-grid .page-header h2,
body.wrapper-static .site-grid .com-content-article h1,
body.wrapper-static .site-grid .com-content-article h2 {
    font-size: 25px;
    font-weight: 400;
    line-height: 1.3;
}

body.wrapper-static .site-grid .page-header h1,
body.wrapper-static .site-grid .page-header h2 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Bilder */
.container-component img,
.com-content-article img {
    max-width: 100%;
    height: auto;
}

/* Login-Modul: bestehendes Verhalten beibehalten */
.container-bottom-a,
.container-bottom-b,
.container-bottom-a .mod-login,
.container-bottom-b .mod-login {
    max-width: 420px;
}

.mod-login .form-control {
    max-width: 340px;
}

/* Smartphone: Rahmen, Titel, Navigation, Inhaltsbreite */
@media (max-width: 767px) {
    body.wrapper-static .container-header,
    body.wrapper-static .site-grid {
        width: calc(100% - 24px);
        max-width: none;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        background: #fff;
    }

    body.wrapper-static .container-header {
        margin-top: 12px;
        margin-bottom: 0;
        padding: 24px 18px 0;
        border: 1px solid var(--kochclub-border);
        border-bottom: 0;
        border-radius: 6px 6px 0 0;
    }

    body.wrapper-static .site-grid {
        display: grid;
        grid-template-columns: [full-start main-start] minmax(0, 1fr) [main-end full-end];
        margin-top: 0;
        margin-bottom: 20px;
        padding: 18px;
        border: 1px solid var(--kochclub-border);
        border-top: 0;
        border-radius: 0 0 6px 6px;
    }

    .container-header .navbar-brand {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0 18px;
        text-align: center;
    }

    .container-header .site-title,
    .container-header .navbar-brand a {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: clamp(25px, 6vw, 32px);
        font-weight: 500;
        line-height: 1.35;
        letter-spacing: .3px;
        white-space: normal;
        overflow-wrap: normal;
        text-align: center;
    }

    body.wrapper-static .container-header .container-nav {
        margin-top: 0;
        padding: 12px 0;
        border-top: 1px solid var(--kochclub-line);
        border-bottom: 1px solid var(--kochclub-line);
    }

    .container-header .navbar-toggler {
        padding: 5px 9px;
        color: #666;
        background: #eee;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: none;
    }

    .container-header .mod-menu {
        font-size: 16px;
    }

    .container-header .mod-menu a {
        padding: 8px 4px;
    }

    body.wrapper-static .site-grid > .container-component {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        justify-self: stretch;
    }

    body.wrapper-static .container-component main,
    body.wrapper-static .container-component .com-content-article,
    body.wrapper-static .container-component .com-content-article__body {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }

    body.com_content.wrapper-static .container-component {
        font-size: 16px;
        line-height: 1.55;
    }

    body.com_content.wrapper-static .com-content-article {
        padding-left: 0;
        padding-right: 0;
    }

    body.wrapper-static .site-grid .page-header {
        width: 100%;
        max-width: 100%;
        margin: 0 0 18px;
        padding-bottom: 12px;
        text-align: left;
    }

    body.wrapper-static .site-grid .page-header h1,
    body.wrapper-static .site-grid .page-header h2,
    body.wrapper-static .site-grid .com-content-article h1,
    body.wrapper-static .site-grid .com-content-article h2 {
        font-size: 24px;
        font-weight: 400;
    }
}

/* ==================================================
   Beitragslisten in Joomla-Kategorieblogs
   ================================================== */
body.com_content .com-content-category-blog .item-content .page-header,
body.com_content .com-content-category-blog .blog-item .page-header {
    margin: 0;
    padding: 0;
}

body.com_content .com-content-category-blog .page-header h2,
body.com_content .com-content-category-blog .page-header h2 a,
body.com_content .com-content-category-blog .item-title,
body.com_content .com-content-category-blog .item-title a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #0088cc;
    text-decoration: none;
}

body.com_content .com-content-category-blog .page-header h2 a:hover,
body.com_content .com-content-category-blog .item-title a:hover {
    color: #005580;
    text-decoration: underline;
}

body.com_content .com-content-category-blog .blog-item {
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

body.com_content .com-content-category-blog .blog-item .page-header {
    border: 0;
}

/* ==================================================
   Kategorienübersichten, z. B. Bilderjahrgänge
   ================================================== */
body.com_content .com-content-categories.categories-list .category-desc h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

body.com_content .com-content-categories.categories-list .category-desc h4 a {
    color: #0088cc;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

body.com_content .com-content-categories.categories-list .category-desc h4 a:hover {
    color: #005580;
    text-decoration: underline;
}

body.com_content .com-content-categories.categories-list .category-desc hr {
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
    margin: 16px 0;
}

body.com_content .com-content-categories.categories-list .category-desc {
    padding: 0;
}

/* ==================================================
   Kochabend-Links innerhalb von Rezept-/Bilderartikeln
   Endgültige Einstellung: 18 px / 600
   ================================================== */
body.com_content .com-content-article__body h3:has(> a) {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 12px;
}

body.com_content .com-content-article__body h3 > a {
    color: #0088cc;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

body.com_content .com-content-article__body h3 > a:hover {
    color: #005580;
    text-decoration: underline;
}

body.com_content .com-content-article__body hr {
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
    margin: 14px 0;
}

/* ==================================================
   Kompaktes Loginformular (Kontaktseite)
   ================================================== */
body.com_content .mod-login {
    width: 100%;
    max-width: 280px;
    font-size: 14px;
}

body.com_content .mod-login .form-control {
    width: 100%;
    max-width: 280px;
    font-size: 14px;
}

body.com_content .mod-login button[type="submit"],
body.com_content .mod-login .btn-primary {
    width: auto;
    max-width: 100%;
    display: inline-block;
    padding: 7px 14px;
    font-size: 14px;
}

body.com_content .mod-login .mod-login__username,
body.com_content .mod-login .mod-login__password {
    margin-bottom: 10px;
}

body.com_content .mod-login a {
    font-size: 14px;
}

/* ==================================================
   Speisenüberschriften in Rezeptartikeln
   Endgültige Einstellung: H3 mit STRONG, 20 px / 700
   ================================================== */
body.com_content .com-content-article__body h3:has(strong) {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

body.com_content .com-content-article__body h3:has(strong) strong,
body.com_content .com-content-article__body h3:has(strong) span {
    font-size: inherit;
    font-weight: inherit;
}
