/*
Theme Name: georegio.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://arminoppliger.ch/
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: georegio-ch
Tags: 
*/

@import url('responsive.css');

/* Global */
body {
    padding: 0 20px;
}

h2 {
    color:#ea7c24;
}

:focus,
button:focus,
a:focus {
    outline: none;
}

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

ul.wp-block-list {
    margin-left: -18px !important;
}
.linkedin-icon {}
.linkedin-icon a {
    text-decoration: none;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    border-radius: 50%;
    font-weight: 800;
    transition: background 0.3s ease, color 0.3s ease;
    
    border-color: #EA7C24;
    color:#EA7C24;    
}
.linkedin-icon a:hover {
    color: #fff;
    background: #EA7C24;
}
header .linkedin-icon {
    margin: 0;
}
/*header .linkedin-icon a {*/
/*    border-color: #EA7C24;*/
/*    color:#EA7C24;*/
/*}*/
/*header .linkedin-icon a:hover {*/
/*    color: #fff;*/
/*    background: #EA7C24;*/
/*}*/

.home main {
    padding-top: 0;
}

main {
    padding-top: 0;
    /*padding-top: 100px;*/
}

/* Header */
.home header .header-group {
    padding-top:55px;
}
.home header .custom-logo-link img {
    width:427px;
    height:auto;
}
.header-wrapper {
    position: relative;
}
header .wp-block-site-logo img{
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
header .wp-block-site-logo img:hover {
    opacity: .5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body header nav {
    margin: 0;
    width: 75px;
    top: -2px;
    left: 35px;
}
body.home header nav {
    top: 20px;
}

header .header-soc {
    padding-top: 10px;
}
.home header .header-soc {
    padding-top: 20px;
}

.wp-block-navigation__responsive-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    z-index: 9999;
}
.wp-block-navigation.menu-open .wp-block-navigation__responsive-container {
    display: block;
}
.wp-block-navigation:not(.menu-open) .wp-block-navigation__responsive-container {
    display: none;
}
.wp-block-navigation__responsive-container-close {
    display: none !important;
}
.wp-block-navigation__responsive-dialog {
    all: unset;
}
.wp-block-navigation__responsive-container-open svg {
    display: none;
}
.wp-block-navigation__responsive-container-open {
    cursor: pointer;
    background: #EA7C24;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;  
}
.wp-block-navigation__responsive-container-open:hover {
    /* color swap handled by JS toggling .is-open; keep hover neutral */
}
.wp-block-navigation__responsive-container-open.is-open {
    background: #333;
}
.wp-block-navigation__responsive-container-open::before{
    content: none;
}

button.wp-block-navigation__responsive-container-open {
    margin-left: -35px;
}

/* Ensure closed/open background colors override responsive.css specificity */
button.wp-block-navigation__responsive-container-open { background: #EA7C24; }
button.wp-block-navigation__responsive-container-open:hover { background: #EA7C24; }
button.wp-block-navigation__responsive-container-open.is-open { background: #333; }
button.wp-block-navigation__responsive-container-open.is-open:hover { background: #333; }

/* Animated hamburger: nav-icon3 */
#nav-icon3 {
    width: 38px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
}
#nav-icon3 span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
#nav-icon3 span:nth-child(1) {
    top: 0px;
}
#nav-icon3 span:nth-child(2) {
    top: 10.5px;
}
#nav-icon3 span:nth-child(3) {
    top: 21px;
}
.wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(1) {
    top: 10.5px;
    transform: rotate(135deg);
}
.wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(3) {
    top: 10.5px;
    transform: rotate(-135deg);
}

/* Responsive sizing for hamburger/cross within the 40x40 button */
@media screen and (max-width: 781px) {
    #nav-icon3 {
        width: 20px;
        height: 13px;
    }
    #nav-icon3 span {
        height: 2px;
    }
    #nav-icon3 span:nth-child(1) {
        top: 0px;
    }
    #nav-icon3 span:nth-child(2) {
        top: 5.5px;
    }
    #nav-icon3 span:nth-child(3) {
        top: 11px;
    }
    .wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(1) {
        top: 5px;
        transform: rotate(135deg);
    }
    .wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    .wp-block-navigation__responsive-container-open.is-open #nav-icon3 span:nth-child(3) {
        top: 5px;
        transform: rotate(-135deg);
    }
}
header .wp-block-navigation__container.wp-block-navigation {
    flex-direction: column;
    background: #fff;
    width: 100%;
    min-width: 290px;
    margin-left: -35px;
    margin-top:29px;
}
header .wp-block-navigation__container.wp-block-navigation li {
    width: 100%;
    padding: 0;
    border-bottom: 1px dotted #333;
}
header .wp-block-navigation__container.wp-block-navigation li a:hover,
header .wp-block-navigation__container.wp-block-navigation .current-menu-item a {
    background: #F4BE85;
}
header .wp-block-navigation__container.wp-block-navigation li a {
    width: 100%;
    text-align: center;
    font-weight: 700;
    padding: 16px 0;
}

header .wp-block-navigation-submenu {
    flex-direction: column;
}
/*header .wp-block-navigation__container.wp-block-navigation ul.wp-block-navigation-submenu li a {*/
/*    padding: 10px 0;*/
/*}*/
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu {
    position: relative !important;
    left: unset !important;
    top: unset !important;
    width: 100% !important;
    /*border: none !important;*/
    border-top: 1px dotted #333 !important;
    border-bottom:0 !important;
    border-left:0 !important;
    border-right:0 !important;
}
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu li:last-child {
    border: none;
}
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu li a {
    font-weight: 400;
    background: #fff !important;
}
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu li a:hover,
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu li.current-menu-item a {
    background: #F4BE85 !important;
    color:#000;
}
header li.wp-block-navigation-submenu ul.wp-block-navigation-submenu li a span {
    margin: 0 auto;
}

li.current-menu-ancestor > ul.wp-block-navigation__submenu-container,
li.current-menu-item > ul.wp-block-navigation__submenu-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}
.wp-block-navigation-item.has-child .wp-block-navigation__submenu-container,
.wp-block-navigation-item.has-child:hover .wp-block-navigation__submenu-container {
    display:none;
}

header .wp-block-search {
    position: absolute;
    bottom:35px;
    right: 35px;
}


/* Front Page */
body.home .wp-block-post-featured-image img {
    /*max-height: 933px;*/
    max-height: 45vh;
}

.slider-wrapper {
    margin:100px 0 0;
}
.home .swiper-button-prev {
    left: -60px;
}
.home .swiper-button-next {
    right: -60px;
}
.swiper-slide {
    margin:0;
    padding:0;
}
.swiper-slide a {
    text-decoration:none;
}
.swiper-slide img {
    width: 100%;
    object-fit: cover;
    min-height: 320px;
    height: auto;
    opacity:1;
}

.swiper-slide h3 {
  display: inline-block;
  padding: 10px 15px;
  background: rgb(244, 190, 133);
  font-weight: 700;
  margin: 0;
  color: rgb(51, 51, 51);
}
.swiper-slide a:hover h3 {
    color:#fff;
}
.swiper-slide h2 {
    color:#fff;
    text-decoration:none;
    background: #333;
    margin: 15px 0 0;
    font-size: 1.1rem;
    padding: 15px 0;    
    text-align:center;
    transition: background 0.3s ease, color 0.3s ease; 
}
.swiper-slide h2 p {
    padding:0;
    margin:0;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #999;
}
.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #EA7C24;
}
.project-img {
    line-height:0;
    transition: background 0.3s ease, color 0.3s ease; 
}
.swiper-slide a:hover .project-img,
.swiper-slide a:hover h3 {
    background: #EA7C24;
}
.swiper-slide a:hover img {
    opacity:0.6;
}


/* Pages */
body .wp-block-post-featured-image {
    margin: 0;
}
body .wp-block-post-featured-image img {
    /*max-height: 545px;*/
    max-height: 45vh;
}

/* Page: Aktuell */
.aktuell .wp-block-post:last-child .entry-content {
    border-bottom: none !important;
}

.aktuell-archive ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aktuell-archive .entry-content{
    border-bottom-width: 1px;
    border-bottom-color: var(--wp--preset--color--custom-black);
    border-bottom-style: dotted;
    padding-top: 0px;
    padding-bottom: 39px;
    margin-top: 0px;
}
.orange-button a {
    transition: background 0.3s ease, color 0.3s ease;
}
.orange-button a:hover {
    background: #EA7C24;
    color: #fff !important;
}

.aktuell h2,
.archiv h2 {
    font-size: 1.2rem;
    color: #333;
}

/* Team Custom Loop */
.custom-team-loop ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 90px;
    box-sizing: border-box;
    list-style: none;
    padding:0;
}
.custom-team-loop figure {
    margin:0 0 20px;
}
.custom-team-loop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 545px;
}
.custom-team-loop h2 {
    padding:0;
    margin:0;
    font-size: var(--wp--preset--font-size--medium) !important;
}

/* Projekt Custom Loop */
.custom-project-loop ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    box-sizing: border-box;
    list-style: none;
    padding:0;
}
.custom-project-loop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 545px;
}
.custom-project-loop h2 {
    padding:15px 0;
    background:#333;
    text-align:center;
    font-size: var(--wp--preset--font-size--medium) !important;
}
.custom-project-loop h2 a{
    color:#fff;
    text-decoration:none;
}
.custom-project-loop h2 a:hover{
    color:#EA7C24;
}

/* Single Page: Projekt */
.single-projekt .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    display: grid;
    margin:50px auto;
}
.single-projekt .gallery-item {
    margin:0;
    padding:0;
    line-height:0;
}
.single-projekt .gallery-icon {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    align-items: center;
    justify-content: center;    
}
.single-projekt .gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.pdf-file {
    text-decoration: none;
    display: inline-flex;
    flex-direction: row;
    gap:15px;
    align-items: self-end;
}
.pdf-file img {
    width: 56px;
}
.pdf-file span {
    color: #EA7C24;
    border:1px solid #EA7C24;
    padding:5px 12px;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease;
}
.pdf-file:hover span {
    background: #EA7C24;
    color: #fff;
}

/* Single Page: Dienstleistungen */
.page-template-wp-custom-template-dienstleistungen-single-page h3 {}
.page-template-wp-custom-template-dienstleistungen-single-page .entry-content {
    /*width: 1100px;*/
    display: flex;
    gap: 60px;
    position: relative;
    margin-left:0 !important;
}
.page-template-wp-custom-template-dienstleistungen-single-page .entry-content .wp-block-group {
    margin-left:0 !important;
}
.auto-toc {
    position: sticky;
    top: 20px;
    margin-left: -360px !important;
    height: fit-content;
    width: 300px;
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
.toc-list li {
    margin: 0 0 23px 0;
    text-wrap:nowrap;
}
.toc-list li a {
    padding: 3px 5px;
    border: 1px solid #EA7C24;
    color: #EA7C24;
    text-decoration: none;
}
.toc-list li a:hover,
.toc-list li.active a {
    color: #fff;
    background: #EA7C24;
    text-decoration: none;
}

.page-template-wp-custom-template-dienstleistungen-single-page h3 {
    padding-top:20px;
}
h3.active-h3 {
    color: #ea7c24;
}

/* Page: Offene Stellen */
.offene-stellen-title {
    font-size: 1.2rem;
    font-weight:700;
    color: #333;
    margin: 50px 0 0;
}
.offene-stellen-list .offene-stellen-item:first-child {
    padding-top:0;
    border:none;
}
.offene-stellen-list .offene-stellen-item {
    padding-bottom: 40px;
    padding-top: 40px;
    border-top: 1px dotted #000;
}
.offene-stellen-list h2 {
    color: #EA7C24;
}

/*Page: Search*/
.search .footer-img-slogan {
    display:none;
}

/* Footer */
/*footer .linkedin-icon a:hover {*/
/*    color: #fff;*/
/*    background: #333;*/
/*}*/

footer .footer-img-slogan img {
    width: 605px;
    height: 886px;
    object-fit: cover;
    margin:150px 0;
}

/* GENERAL */
.aktuell-content,
footer .copy-wrapper,
footer .footer-img-slogan {
    margin-left: 290px !important;
}
body section.no-toc-nav {
    padding:0 0 0 290px !important;
}

.aktuell .wp-block-post-title,
.archiv .wp-block-post-title,
.projekt-label {
    display: inline-block;
    padding: 10px 15px;
    background: #F4BE85;
    font-weight: 700;
    margin: 0 0 20px -15px;
    color:#333;
}