/* ============================================================
   PALETTE + SECTION SYSTEM
   Three independent axes you can set per section:
     1) ii-bg-*      → background color
     2) ii-scheme-*  → text / heading / accent / link / rule color
     3) ii-padding-* + ii-border-top-*  → spacing & top rule
   Colours are driven by CSS custom properties, so bg and scheme
   are fully independent. The old bg-hell / bg-hell-alt / bg-orange
   classes are kept as back-compat aliases at the bottom.
   ============================================================ */

:root {
    --ii-dunkel: #5A438D;
    --ii-hell:   #9988BC;
    --ii-orange: #F29678;
    --ii-red:    #DA3922;
    --ii-white:  #fff;
}

html {
    background-color: var(--ii-dunkel);
}

body {
    /* default scheme tokens (= "white" scheme on the dunkel background) */
    --ii-text:       var(--ii-white);
    --ii-heading:    var(--ii-white);
    --ii-accent:     var(--ii-orange);   /* strong, section-title, credits label, swiper arrows, dividers */
    --ii-link:       var(--ii-orange);
    --ii-link-hover: var(--ii-white);
    --ii-rule:       var(--ii-red);      /* hr + scheme-driven borders */

    color: var(--ii-text);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
}


@media (min-width: 960px) {
    body {
        font-size: 24px;
        line-height: 32px;
    }


}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; /* Bold */
    color: var(--ii-heading);
}

p {
    margin:0 0 16px 0;
}

header {
    border-bottom: solid 2px #DA3922;
    height: 81px;
}

@media (min-width: 960px) {
    header {
        height: 144px;
    }
}

/* NAVBAR */

/* 1. Default state: Links when the page first loads */

.uk-navbar-nav {
    gap: 0;
    padding: 0 21px;
    line-height: 16px;
}
.uk-navbar-nav > li > a {
    color: #FFFFFF; /* Replace with your custom default color */
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 2px;
    line-height: 16px;
}

/* 2. Hover state: When a user mouses over a link */
.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li > a.uk-open {
    color: #DA3922; /* Replace with your custom hover color */
}

/* 3. Active state: The link representing the current page */
.uk-navbar-nav > li.uk-active > a {
    color: #FFFFFF; /* Replace with your custom active color */
}

/* 4. On-Click (Active/Focus) state: When the link is physically clicked */
.uk-navbar-nav > li > a:active {
    color: #DA3922; /* Replace with your custom click color */
}

.uk-navbar-container.bg-hell a:visited {
    color: #ffffff;
}

.uk-navbar-container.bg-hell a:visited:hover {
    color: #DA3922;
}


/* 1. Add the separator after every menu item */
.uk-navbar-nav.ii-main-menu > li:not(:last-child)::after {
    content: "|";
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    color:#DA3922; /* Change this to your preferred separator color */

    margin-left: 16px;
    margin-right: 16px;

    font-size: 0.9rem; /* Adjust size if needed */
}

/* 2. Fix UIkit's layout behavior with custom pseudo-elements */
.uk-navbar-nav > li {
    display: inline-flex;
    align-items: center;
}


/* LOGO */

.uk-logo {
    position: relative;
    top: -4px;
    left: 16px;
}


.uk-logo img {
    height: 40px;
}

 @media (min-width: 960px) {
     .uk-logo img {
         height: 62px;
         position: relative;
         top: 48px;
         left: 23px;
     }
 }


/* ==========================================================================
   MOBILE FULL-SCREEN DRAWER CUSTOMIZATION
   ========================================================================== */

/* 1. Target the off-canvas panel container */
#mobile-menu .uk-offcanvas-bar {
    background-color: #F29678;    /* Customize your background color here */
    box-sizing: border-box;
    width: 100%;
    padding:0;
    /* Perfect vertical and horizontal centering of menu items */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 2. Style the Close Button in the top corner */
#mobile-menu .uk-offcanvas-close {
    top: 16px;
    right: 16px;
    color: #ffffff;              /* Color of the close 'X' */
    background-color: #5A438D;
    padding: 9px;
}

/* 3. Increase the size and spacing of the menu links */

#mobile-menu .uk-nav-default  li > a {
    padding: 16px 32px;
}

#mobile-menu .uk-nav-default  li > ul  {
    padding: 0 0 16px;
}

#mobile-menu .uk-nav-default  li > ul > li > a {
    padding: 0 32px 8px;
    font-weight: 700;
    letter-spacing: 3.3px;
    font-size: 12px;
    color: #5A438D;
}

#mobile-menu .uk-nav-default  li > ul > li > a:hover,
#mobile-menu .uk-nav-default  li > ul > li > a:focus {
    color: #ffffff;
}

#mobile-menu .uk-nav-default > li > a {
    font-size: 18px;              /* Adjust size of mobile menu links */
    font-weight: 700;
    text-transform: uppercase;
    color: #5A438D;               /* Default link color */
    text-align: center;
    transition: color 0.3s ease;
}

#mobile-menu .uk-nav-default > li {
    border-bottom: solid 1px #5A438D;
}

/* 4. Active state (current page link) */
#mobile-menu .uk-nav-default > li.uk-active > a {
    color: #5A438D;               /* Change to your highlight/brand color */
}

/* 5. Hover state (also triggers on touch press) */
#mobile-menu .uk-nav-default > li > a:hover,
#mobile-menu .uk-nav-default > li > a:focus {
    color: #ffffff;               /* Hover color */
}

/* Target the toggle button and force it to be a square */
.uk-navbar-toggle.square-burger {
    /* 1. Override UIkit's navbar-height stretching */
    position:relative;
    top: -8px;
    right:16px;
    height: 32px !important;
    min-height: 32px !important;
    align-self: center; /* Prevents it from stretching to fill the header vertical space */

    /* 2. Dimensions & Padding */
    width: 32px !important;
    padding: 8px !important;
    box-sizing: border-box !important;

    /* 3. Colors & Alignments */
    background-color: #5A438D !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Force the hamburger lines & the "X" lines to be white */
.uk-navbar-toggle.square-burger svg {
    color: #ffffff !important;
}

/* Prevent UIkit hover background from overriding your purple */
.uk-navbar-toggle.square-burger:hover,
.uk-navbar-toggle.square-burger:focus,
.uk-navbar-toggle.square-burger.uk-open {
    background-color: #5A438D !important;
    opacity: 0.9;
}


/* ============================================================
   AXIS 1 — BACKGROUND
   ============================================================ */

.ii-bg-dunkel { background-color: var(--ii-dunkel); }
.ii-bg-hell   { background-color: var(--ii-hell); }
.ii-bg-orange { background-color: var(--ii-orange); }


/* ============================================================
   AXIS 2 — COLOUR SCHEME (only re-sets the tokens)
   ============================================================ */

.ii-scheme-white {
    --ii-heading:    var(--ii-white);
    --ii-accent:     var(--ii-orange);
    --ii-link:       var(--ii-orange);
    --ii-link-hover: var(--ii-white);
    --ii-rule:       var(--ii-red);
}
.ii-scheme-red {
    --ii-heading:    var(--ii-red);
    --ii-accent:     var(--ii-red);
    --ii-link:       var(--ii-red);
    --ii-link-hover: rgba(218, 57, 34, 0.8);
    --ii-rule:       var(--ii-dunkel);
}
.ii-scheme-dunkel {
    --ii-heading:    var(--ii-dunkel);
    --ii-accent:     var(--ii-dunkel);
    --ii-link:       var(--ii-dunkel);
    --ii-link-hover: var(--ii-orange);
    --ii-rule:       var(--ii-dunkel);
    /* Want dark body text on light sections? uncomment:
    --ii-text:       var(--ii-dunkel); */
}


/* FONTS */

strong {
    font-weight: 700;
    letter-spacing: 2.3px;
    color: var(--ii-accent);
}

.ii-page-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 32px 0 !important;
}


.ii-section-title {
    font-size: 14px;
    line-height: 48px;
    letter-spacing: 1.3px;
    font-weight: 700;
    color: var(--ii-accent);
}

.ii-title-project {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 2px;
    font-weight: 700;
}

.ii-category-title-mobile {
    font-weight: 700;
    letter-spacing: 2px;
    color: #DA3922;
}


@media (min-width: 960px) {
    .ii-page-title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: 2.3px;
        color: #fff;
        margin: 0 !important;
    }


    .ii-section-title {
        font-size: 18px;
        line-height: 64px;
        letter-spacing: 2px;
        color: var(--ii-accent);
    }

    .ii-title-project {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 2.3px;
    }

}

h1.ii-section-headline, h2.ii-section-headline, .ii-section-headline p, .ii-section-headline p strong{
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3.3px;
    line-height: 49px;
    color: #fff !important;
}




/* HELPERS */

.ii-text-red {
    color:#DA3922 !important;
}

.ii-text-violet {
    color:#9988BC !important;
}

.ii-text-purple {
    color:#5A438D !important;
}


.ii-no-margin-last-p p:last-of-type {
    margin: 0;
}

 @media (min-width: 960px) {
     .ii-padding-top-14-lg {
         padding-top: 14px;
     }
 }


 @media (min-width: 960px) {
     .ii-pading-left-32-lg {
         padding-left: 32px;
     }
 }

 .ii-padding-top-64 {
     padding-top: 64px;
 }

 .ii-padding-bottom-64 {
     padding-bottom: 64px;
 }


 .ii-padding-top-48 {
     padding-top: 48px;
 }

 .ii-padding-bottom-48 {
     padding-bottom: 48px;
 }


.ii-padding-top-32 {
    padding-top: 32px;
}

.ii-padding-bottom-32 {
    padding-bottom: 32px;
}

.ii-padding-top-16 {
    padding-top: 16px;
}

.ii-padding-bottom-16 {
    padding-bottom: 16px;
}

@media (min-width: 960px) {
    .ii-margin-top-32-lg {
        margin-top:32px;
    }
}


.ii-text-red {
    color:#DA3922 !important;
}

.ii-text-orange {
    color:#F29678 !important;
}



.text-24 {
    font-size:24px !important;
    line-height: 32px !important;
}

/* SECTIONS */

/* AXIS 3 — top border */
.ii-border-top {
    border-top: 2px solid var(--ii-rule) !important;  /* follows the scheme */
}

.ii-border-top-red {
    border-top: 2px solid var(--ii-red) !important;
}

.ii-border-top-dunkel {
    border-top: 2px solid var(--ii-dunkel) !important;
}


/* LINKS */

a {
    color: var(--ii-link);
}

a:visited {
    color: var(--ii-link);
}

a:hover {
    color: var(--ii-link-hover);
}


/* LINIE */

p:has(+ hr) {
    margin-bottom: 32px;
}

hr, .uk-hr {
    border-top: 2px solid var(--ii-rule);
    margin: 16px 0 !important;
}


@media (min-width: 960px) {
    hr, .uk-hr {
        margin: 32px 0 !important;
    }
}


/* FOOTER */

.footer {
    font-size: 14px;
}

.footer a {
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.footer a:hover {
    color: #DA3922;
    text-decoration: none;
}

.footer-menu {
    padding-left: 16px;
}

@media (min-width: 960px) {
    .footer-menu {
        padding:0;
    }
}

/* TEXT SEPARATOR */
.link-separator {
    display: inline-block;
    padding: 0 16px 0 16px;
}

/* SLIDESHOW & CREDITS */



/* Pfeile: kleiner + in der Akzentfarbe des Schemas */
.swiper {
    --swiper-navigation-size: 24px;
    --swiper-navigation-color: var(--ii-accent);
    --swiper-navigation-sides-offset: 12px;
    margin-bottom: 0;
}

@media (min-width: 960px) {
    .swiper {
        margin-bottom:16px;
    }
}

.swiper-button-prev .swiper-navigation-icon,
.swiper-button-next .swiper-navigation-icon {
    width: 14px;   /* overall size — keep small-ish now */
    height: auto;
    color: var(--ii-accent);
    overflow: visible;   /* so the stroke isn't clipped at the viewBox edge */
}

.swiper-navigation-icon path {
    stroke: currentColor;   /* same color as the fill */
    stroke-width: 2;        /* THIS is the fatness knob */
    stroke-linejoin: round; /* rounded corners instead of sharp spikes */
}

.ii-credits__label,.ii-credits__project,.ii-credits__name,.ii-credits__scope,.ii-credits__client {
    margin:0;
}
.ii-credits__label,.ii-credits__project {
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ii-accent);
}
.ii-credits__name,.ii-credits__scope,.ii-credits__client {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.ii-credits__col .ii-credits__name:not(:last-of-type) {
    margin-bottom:16px;
}

/* Mobil: gestapelt, ohne Linien */
.ii-credits__col {
    margin-top: 16px;
}

/* Ab Tablet: Zeile mit Trennlinien (ab der zweiten Spalte) */
@media (min-width: 960px) {
    .ii-credits__col {
        margin-top: 0;
    }
    .ii-credits__col + .ii-credits__col {
        margin-left: 16px;
        padding-left: 16px;
        border-left: 2px solid var(--ii-accent);  /* follows the scheme */
    }
    
    /* Einzelne Trennlinie abschalten */
    .ii-credits__col + .ii-credits__col.ii-credits__col--no-divider {
        border-left: 0;
    }
}

/* Credits: columns fill full container width, equal shares */
.ii-credits-fill {
    width: 100%;
}

@media (min-width: 960px) {
    .ii-credits-fill .ii-credits__col {
        flex: 1 1 0;      /* equal-width columns */
        min-width: 0;     /* let long names wrap instead of overflowing */
    }

    /* neutralise the auto-left push so cols start at the container edge */
    .ii-credits-fill .ii-credits__col.uk-margin-auto-left\@m {
        margin-left: 0;
    }
}


/* SUBMENU (standalone, no uk-navbar-nav) */

.ii-submenu-item.uk-active > a {
    color: #DA3922;
}

.ii-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;   /* makes the separator borders full-height */
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 14px;
    font-size: 12px;
}

@media (min-width:960px){
    .ii-submenu {
        font-size: 14px;
        line-height: 16px;
    }
}

.ii-submenu-item > a {
    display: inline-block;
    color: #FFFFFF;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 16px;
    text-decoration: none;
}

.ii-submenu-item > a:hover,
.ii-submenu-item > a:focus {
    color: #DA3922;
}

.ii-submenu-item + .ii-submenu-item {
    margin-left: 32px;
    padding-left: 32px;
    border-left: 2px solid #DA3922;
}

/* ANCHORS */

#kontakt,
#team,
#leistungen {
    scroll-margin-top: 80px;
}
@media (min-width: 960px) {
#kontakt,
#team,
#leistungen {
    scroll-margin-top: 144px;
}}


/* ============================================================
   BACK-COMPAT — old single classes = background + scheme fused.
   These keep existing pages rendering identically. Migrate to
   ii-bg-* + ii-scheme-* over time, then delete this block.
     bg-hell     = ii-bg-hell   + ii-scheme-red
     bg-hell-alt = ii-bg-hell   + ii-scheme-dunkel
     bg-orange   = ii-bg-orange + ii-scheme-dunkel
   ============================================================ */

.bg-hell, .bg-hell-alt {
    background-color: var(--ii-hell) !important;
}
.bg-orange {
    background-color: var(--ii-orange) !important;
}

.bg-hell {
    --ii-heading:    var(--ii-red);
    --ii-accent:     var(--ii-red);
    --ii-link:       var(--ii-red);
    --ii-link-hover: rgba(218, 57, 34, 0.8);
    --ii-rule:       var(--ii-dunkel);
}
.bg-hell-alt {
    --ii-heading:    var(--ii-dunkel);
    --ii-accent:     var(--ii-dunkel);
    --ii-link:       var(--ii-dunkel);
    --ii-link-hover: var(--ii-orange);
    --ii-rule:       var(--ii-dunkel);
}
.bg-orange {
    --ii-heading:    var(--ii-dunkel);
    --ii-accent:     var(--ii-dunkel);
    --ii-link:       var(--ii-dunkel);
    --ii-link-hover: rgba(218, 57, 34, 0.8);
    --ii-rule:       var(--ii-red);
}
