/* =============================================
   ALGO CMS — Frame Styles
   Getranke Kirchgasser | Bierdepot.at
   Template: (de) Claude Content
   Version: 4.0

   Page shell only: header, hero, footer,
   mobile menu, brands bar, accessibility.
   Content element styles → cl_content.css
   Responsive layout     → cl_responsive.css
   ============================================= */


/* ==============================================
   1. CSS VARIABLES — Design Tokens
   Colors, fonts, spacing base values.
   Single source of truth for the entire site.
   ============================================== */
:root {
    --color-primary: #00402E;
    --color-bg: #F6F3E9;
    --color-text: #00402E;
    --color-text-light: #E3E0D6;
    --color-accent: #92908C;
    --color-white: #FFF;

    --font-heading: 'Open Sans', 'Times New Roman', serif;
    --font-body: 'Poppins', Verdana, sans-serif;

    --space-l: 85px;
    --space-s: 42.5px;
    --content-max: 1440px;
}


/* ==============================================
   2. RESET & BASE
   Browser normalization, box-sizing, base font.
   ============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color .3s, opacity .3s;
}
a:hover { opacity: .8; }
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Screenreader-only — accessibility helper */
.offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Accessibility skip navigation — visible on Tab focus */
.as_map_c {
    position: absolute;
    top: -200px;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--color-primary);
    transition: top .3s;
}
.as_map_c:focus-within {
    top: 0;
}
.as_map_c a {
    color: var(--color-text-light);
    padding: 8px 20px;
    display: inline-block;
}


/* ==============================================
   3. PAGE CONTAINER
   Top-level wrapper, overflow hidden for layout.
   ============================================== */
.page_c {
    width: 100%;
    overflow-x: hidden;
}

.main_c {
    /* Main content wrapper */
}


/* ==============================================
   4. HEADER
   Fixed header with navigation, centered logo,
   contact links. Decorative border-bottom stripe.
   ============================================== */
.cl_head_c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-primary);
    height: 114px;
    border-bottom: 12px solid var(--color-accent);
    transition: box-shadow .3s ease;
}

.cl_head_content {
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 114px;
    padding: 0 80px;
    position: relative;
}

/* Logo — centered, overlaps header bottom */
.cl_logo_c {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    z-index: 10;
}
.cl_logo_c img {
    width: 176px;
    height: auto;
}

/* Desktop navigation — [[menu]] snippet outputs ul>li>a>span */
.cl_nav {
    display: flex;
    align-items: center;
}

.cl_nav > ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl_nav > ul > li {
    position: relative;
}

/* Dropdown submenu — light background, dashed separators */
.cl_nav > ul > li > ul {
    width: 225px;
    padding: 17px 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    margin-left: -20px;
    opacity: 0;
    visibility: hidden;
    transition: all ease 0.5s;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    list-style: none;
    background: var(--color-bg);
    box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}
.cl_nav > ul > li:hover > ul,
.cl_nav > ul > li.opened > ul {
    visibility: visible;
    opacity: 1;
}

.cl_nav > ul > li > ul > li {
    width: 100%;
}

.cl_nav > ul > li > ul > li > a {
    display: block;
    width: 100%;
    padding: 11px 0 0;
    border-bottom: 1px dashed var(--color-primary);
    font: 300 1.125rem/180% var(--font-body);
    color: var(--color-primary);
    text-decoration: none;
    text-align: left;
    transition: color ease 0.5s;
}
.cl_nav > ul > li > ul > li > a:hover,
.cl_nav > ul > li > ul > li > a:focus {
    text-decoration: underline;
}
.cl_nav > ul > li > ul > li:last-child > a {
    border-bottom: none;
}

.cl_nav a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 17px;
    color: rgba(227, 224, 214, .93);
    transition: color .3s;
    white-space: nowrap;
    text-decoration: none;
}
.cl_nav a span { color: inherit; }
.cl_nav a:hover,
.cl_nav a:hover span,
.cl_nav .current_link > a,
.cl_nav .current_link > a span {
    color: var(--color-text-light);
    text-decoration: underline;
    opacity: 1;
}

/* Contact links (right side) */
.cl_head_links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cl_head_links a {
    color: var(--color-text-light);
    display: flex;
    align-items: center;
}
.cl_head_links svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-light);
}

/* Language switcher */
.cl_lang_btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 20px;
    color: var(--color-text-light);
    background: none;
    border: none;
    cursor: pointer;
}

/* Enquiry button (desktop only) */
.cl_anfragen_btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-light);
}

/* Hamburger button (hidden on desktop, shown on tablet) */
.cl_mobile_menu_btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.cl_mobile_menu_btn .line {
    width: 28px;
    height: 2px;
    background: var(--color-text-light);
    margin: 6px 0;
    transition: .3s;
}


/* ==============================================
   5. HERO
   Full-width header image with logo overlay.
   Height based on aspect ratio (1920:1132).
   No margin-top — fixed header overlaps the hero.
   ============================================== */
.cl_hero {
    position: relative;
    width: 100%;
    height: 58.95vw;
    min-height: 522px;
    overflow: hidden;
}

/* Dark overlay */
.cl_hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Background image — direct child only (not the logo) */
.cl_hero > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Centered overlay container for logo */
.cl_hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 2;
}

/* Hero text logo — 43% max-width as on main site */
.cl_hero_logo {
    max-width: 43%;
    height: auto;
}


/* ==============================================
   6. FOOTER — Reproducing original footer_c v1
   Two-row layout: logo + contact top, legal bottom.
   ============================================== */
.footer_c {
    width: 100%;
    float: left;
    position: relative;
    z-index: 2;
}

.footer_c.v1 .footer_top {
    width: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    background: var(--color-primary);
    border-top: 27px solid var(--color-accent);
}

.footer_c.v1 .footer_top_c {
    width: 100%;
    max-width: 1490px;
    margin: 0 auto;
    padding: 184px 7% 0;
    font: 400 1.125rem/114% var(--font-body);
    letter-spacing: 0.005em;
    color: var(--color-white);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer_c.v1 .f_logo img {
    max-width: 100%;
}

.footer_c.v1 .footer_top_c a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer_c.v1 .footer_right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 7%;
    align-self: flex-start;
}

.footer_c.v1 .contact_info {
    padding-top: 63px;
    padding-bottom: 17px;
}

.footer_c.v1 .contact_links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer_c.v1 .contact_links > a {
    color: var(--color-white);
    text-decoration: none;
}

.footer_c.v1 .contact_links > a:hover,
.footer_c.v1 .contact_links > a:focus {
    text-decoration: underline;
}

/* Legal links row */
.footer_c.v1 .f_si {
    width: 50%;
    position: relative;
    margin-top: 143px;
    padding-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer_c.v1 .f_impressum {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer_c.v1 .f_impressum > a {
    font: 400 0.8125rem/129% var(--font-body);
    letter-spacing: 0.007em;
    color: var(--color-text-light);
    text-decoration: none;
    margin: 5px 12px;
}

.footer_c.v1 .f_impressum > a:hover,
.footer_c.v1 .f_impressum > a:focus {
    text-decoration: underline;
}

.footer_c.v1 .f_impressum .algo_link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer_c.v1 .f_impressum .algo_link img {
    width: 32px;
    height: auto;
}


/* ==============================================
   7. BRANDS BAR
   Partner logos on dark background,
   separator stripe below.
   ============================================== */
.cl_brands {
    background-color: var(--color-primary);
    padding: 40px 0;
}
.cl_brands_inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 40px;
}
.cl_brands_separator {
    width: 100%;
    height: 27px;
    background-color: var(--color-accent);
}


/* ==============================================
   8. GALLERY
   Image slider with dot navigation and lightbox.
   ============================================== */
.cl_gallery_section {
    padding: 100px 0;
    text-align: center;
}

.cl_gallery_slider {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 40px auto;
    max-width: 1302px;
    padding: 0 40px;
    overflow: hidden;
}

.cl_gallery_slider .slide {
    flex: 0 0 calc(33.333% - 17px);
    overflow: hidden;
    cursor: pointer;
}
.cl_gallery_slider .slide img {
    width: 100%;
    height: 301px;
    object-fit: cover;
    transition: transform .4s;
}
.cl_gallery_slider .slide img:hover {
    transform: scale(1.05);
}

.cl_gallery_dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.cl_gallery_dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    transition: background .3s;
}
.cl_gallery_dots span.active { background: var(--color-primary); }


/* ==============================================
   9. MOBILE MENU
   Fullscreen overlay menu for tablet/mobile.
   Triggered by hamburger button.
   ============================================== */
.cl_mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.cl_mobile_menu.open { display: flex; }

.cl_mobile_menu a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 22px;
    color: var(--color-text-light);
}
.cl_mobile_menu a span { color: inherit; }
.cl_mobile_menu a:hover,
.cl_mobile_menu a:hover span { text-decoration: underline; }

.cl_mobile_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.cl_mobile_menu ul ul {
    margin-top: 10px;
    gap: 10px;
}
.cl_mobile_menu ul ul a { font-size: 18px; opacity: .8; }

.cl_mobile_menu .close_btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 32px;
    cursor: pointer;
}
