/* ==========================================================================
   HCGS Template
   Bereinigte Fassung mit responsivem Haupt- und Untermenü
   ========================================================================== */

@font-face {
    font-family: 'HCGS-Script';
    src: url('fonts/KaushanScript-Regular.woff2') format('woff2'),
         url('fonts/KaushanScript-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    background: #FCFCFC;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: #993300;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #cc3300;
    text-decoration: underline;
}

.cleaner {
    clear: both;
}

.float_l {
    float: left;
}

.float_r {
    float: right;
}

/* ==========================================================================
   Layout
   ========================================================================== */

#hcgs_wrapper {
    width: 94%;
    max-width: 956px;
    margin: 0 auto;
    background: #FCFCFC;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.18);
}

#hcgs_header {
    padding: 1rem 4% 0.5rem 4%;
    background: #FCFCFC;
}

#hcgs_middle {
    width: 100%;
    aspect-ratio: 2006 / 349;
    background-color: #FCFCFC;
}

#hcgs_middle {
    width: 100%;
    aspect-ratio: 2006 / 349;
    background-color: #FCFCFC;
}

#hcgs_middle img {
    width: 100%;
    height: 100%;
    display: block;
}

#hcgs_submenu_wrap {
    padding: 0 4% 0.8rem 4%;
    border-bottom: none;
    background: #FCFCFC;
}

#hcgs_main {
    padding: 1.25rem 4% 2rem 4%;
    background: #FCFCFC;
}

#hcgs_content {
    clear: both;
    padding-top: 0;
}

#hcgs_footer {
    clear: both;
    padding: 120px 38px 24px 38px;
    background-color: #d80000;
    background-image: url(images/footer.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    color: #ffffff;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
}

#hcgs_footer a {
    color: #fff4d6;
}

#hcgs_footer a:hover,
#hcgs_footer a:focus {
    color: #ffffff;
}

/* ==========================================================================
   Menüs Desktop
   ========================================================================== */

#hcgs_mainmenu_panel,
#hcgs_submenu_panel,
#hcgs_menu_top,
#hcgs_menu_meta,
#hcgs_menu_sub {
    width: 100%;
}

#hcgs_menu_top {
    padding: 0.75rem 0 0.2rem 0;
}

#hcgs_menu_meta {
    padding: 0 0 0.8rem 0;
}

#hcgs_menu_sub {
    padding: 0;
}

#hcgs_menu_top ul,
#hcgs_menu_meta ul,
#hcgs_menu_sub ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#hcgs_menu_top ul li,
#hcgs_menu_meta ul li,
#hcgs_menu_sub ul li {
    margin: 0;
    padding: 0;
    display: inline;
}

#hcgs_menu_top ul li a,
#hcgs_menu_meta ul li a,
#hcgs_menu_sub ul li a {
    float: left;
    display: block;
    margin: 0 1.5rem 0.35rem 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    outline: none;
}

/* Ebene 2 und 4 auf Desktop leicht eingerückt, falls verschachtelt */
#hcgs_menu_top ul ul,
#hcgs_menu_meta ul ul,
#hcgs_menu_sub ul ul {
    margin-left: 1rem;
}

#hcgs_menu_top ul ul li a,
#hcgs_menu_meta ul ul li a,
#hcgs_menu_sub ul ul li a {
    font-size: 0.95em;
}

/* Hauptnavigation */
#hcgs_menu_top ul li a {
    font-size: 15px;
    font-weight: 400;
    color: #993300;
}

#hcgs_menu_top ul li a:hover,
#hcgs_menu_top ul li a:focus {
    color: #000;
}

#hcgs_menu_top ul li.menu-current a:link,
#hcgs_menu_top ul li.menu-current a:visited {
    color: #000;
    font-weight: 700;
}

#hcgs_menu_top ul li.menu-parent a:link,
#hcgs_menu_top ul li.menu-parent a:visited {
    color: #993300;
    font-weight: 700;
}

/* Servicenavigation */
#hcgs_menu_meta ul li a {
    font-size: 13px;
    font-weight: 400;
    color: #993300;
}

#hcgs_menu_meta ul li a:hover,
#hcgs_menu_meta ul li a:focus {
    color: #000;
}

#hcgs_menu_meta ul li.menu-current a:link,
#hcgs_menu_meta ul li.menu-current a:visited {
    color: #993300;
    font-weight: 700;
}

#hcgs_menu_meta ul li.menu-parent a:link,
#hcgs_menu_meta ul li.menu-parent a:visited {
    color: #000;
    font-weight: 700;
}

/* Unternavigation */
#hcgs_menu_sub ul li a {
    font-size: 14px;
    font-weight: 400;
    color: #993300;
}

#hcgs_menu_sub ul li a:hover,
#hcgs_menu_sub ul li a:focus {
    color: #000;
}

#hcgs_menu_sub ul li.menu-current a:link,
#hcgs_menu_sub ul li.menu-current a:visited {
    color: #000;
    font-weight: 700;
}

#hcgs_menu_sub ul li.menu-parent a:link,
#hcgs_menu_sub ul li.menu-parent a:visited {
    color: #993300;
    font-weight: 700;
}

/* ==========================================================================
   Menüschalter
   ========================================================================== */

#hcgs_menu_toggle,
#hcgs_submenu_toggle {
    display: none;
    padding: 0.5rem 0;
    color: #993300;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#hcgs_menu_toggle:hover,
#hcgs_menu_toggle:focus,
#hcgs_submenu_toggle:hover,
#hcgs_submenu_toggle:focus {
    color: #000;
}

/* ==========================================================================
   Seitentitel
   ========================================================================== */

#site_title {
    width: 90%;
    margin: 2rem auto 0 auto;
    text-align: center;
}

#site_title {
    width: 90%;
    max-width: 860px;
    margin: 2rem auto 0 auto;
    text-align: center;
    container-type: inline-size;
}

#site_title h1 a {
    display: block;
    width: 100%;
    color: rgba(0, 0, 0, 0.70);
    font-family: 'HCGS-Script', cursive;
    font-size: clamp(1.5rem, 5.5cqw, 4rem);
    font-weight: 400;
    text-decoration: none;
    text-shadow: none;
    line-height: 1.1;
    white-space: nowrap;
}

/* 🔥 Mobile: darf umbrechen */
@media screen and (max-width: 700px) {
    #site_title h1 a {
        white-space: normal;
        text-align: center;
        word-break: keep-all;
    }
}

#site_title h1 a:hover,
#site_title h1 a:focus {
    color: rgba(0, 0, 0, 0.70);
    text-decoration: none;
}

#site_title p {
    margin: 0.15rem 0 0 0;
    color: rgba(0, 0, 0, 0.70);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.35rem);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* ==========================================================================
   Spalten
   ========================================================================== */

.col_w880 {
    clear: both;
    margin-bottom: 40px;
}

.col_w260 {
    float: left;
    width: 27%;
    margin-right: 4%;
}

.col_w260b {
    width: 27%;
}

.col_w400 {
    width: 400px;
}

.col_w570 {
    width: 68%;
}

.col_last {
    margin: 0;
}

/* ==========================================================================
   Formulare / Suche
   ========================================================================== */

#search_box {
    float: right;
    width: 242px;
    min-height: 29px;
    background: transparent;
}

#search_box form {
    clear: both;
    width: 242px;
    margin: 0;
    padding: 0;
}

#searchfield {
    width: 200px;
    height: 23px;
    padding: 2px 5px 2px 8px;
    font-size: 12px;
    color: #222;
    line-height: 120%;
    background: #fff;
    border: 1px solid #d9d9d9;
    float: left;
    box-sizing: border-box;
}

#searchbutton {
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0 0 0 5px;
    cursor: pointer;
    background: #993300;
    color: #fff;
    border: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1023px) {
    #hcgs_wrapper {
        width: 100%;
        box-shadow: none;
    }

    #hcgs_footer {
        padding-top: 95px;
        background-size: 100% auto;
    }
}

@media screen and (max-width: 700px) {
    #hcgs_header {
        padding-left: 5%;
        padding-right: 5%;
    }

    #hcgs_main,
    #hcgs_submenu_wrap {
        padding-left: 5%;
        padding-right: 5%;
    }

    #hcgs_menu_toggle,
    #hcgs_submenu_toggle {
        display: block;
    }

    /* Panels animiert einklappen */
    #hcgs_mainmenu_panel,
    #hcgs_submenu_panel {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    #hcgs_mainmenu_panel.active,
    #hcgs_submenu_panel.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menüs immer blockbasiert, auch im geschlossenen Zustand */
    #hcgs_menu_top,
    #hcgs_menu_meta,
    #hcgs_menu_sub,
    #hcgs_menu_top ul,
    #hcgs_menu_meta ul,
    #hcgs_menu_sub ul {
        width: 100%;
    }

    #hcgs_menu_top ul li,
    #hcgs_menu_meta ul li,
    #hcgs_menu_sub ul li {
        display: block;
        width: 100%;
    }

    #hcgs_menu_top ul li a,
    #hcgs_menu_meta ul li a,
    #hcgs_menu_sub ul li a {
        float: none;
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.45rem 0;
        text-align: left;
        border-bottom: 1px solid rgba(153, 51, 0, 0.12);
    }

    #hcgs_menu_top ul li:last-child a,
    #hcgs_menu_meta ul li:last-child a,
    #hcgs_menu_sub ul li:last-child a {
        border-bottom: none;
    }

    /* Ebene 2 im Hauptmenü / Meta-Menü leicht eingerückt */
    #hcgs_menu_top ul ul a,
    #hcgs_menu_meta ul ul a {
        padding-left: 1.25rem;
        font-size: 0.95em;
    }

    /* Ebene 4 im Untermenü leicht eingerückt */
    #hcgs_menu_sub ul ul a {
        padding-left: 1.25rem;
        font-size: 0.95em;
    }

    #site_title {
        width: 90%;
        margin: 1.25rem auto 0 auto;
    }

    #site_title h1 a {
        font-size: clamp(1.1rem, 4.8vw, 2.3rem);
    }

    #site_title p {
        letter-spacing: 0.16em;
    }
}

@media screen and (max-width: 500px) {
    .col_w260,
    .col_w260b,
    .col_w570 {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    #site_title {
        width: 94%;
    }

    #site_title h1 a {
        font-size: clamp(1rem, 5.3vw, 1.8rem);
    }

    #site_title p {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }

    #hcgs_footer {
        padding: 72px 20px 20px 20px;
        font-size: 12px;
    }
}