/*
Theme Name: Besalp Base
Theme URI: https://besalp.ch/
Author: Besalp
Author URI: https://besalp.ch/
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tested up to: 7.1
Description: Wiederverwendbares WordPress-Basis-Theme von Besalp für individuelle Unternehmenswebsites. Enthält gemeinsame technische Grundlagen, responsive Navigation und grundlegende Seitentemplates. Kundenspezifische Designs werden als separate Child Themes umgesetzt. Elementor kann optional verwendet werden.
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: besalp-base
*/
:root{--besalp-primary:#1674a5;--besalp-dark:#102b40;--besalp-muted:#607585;--besalp-bg:#fff;--besalp-surface:#f5f8fb;--besalp-max:1180px}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--besalp-bg);color:var(--besalp-dark);font:16px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif}img{max-width:100%;height:auto}a{color:var(--besalp-primary)}a:hover{text-decoration:underline}h1,h2,h3,h4,h5,h6{color:var(--besalp-dark);line-height:1.18;letter-spacing:-.025em}h1{font-size:clamp(2.3rem,4.5vw,4.25rem)}h2{font-size:clamp(1.9rem,3vw,2.8rem)}h3{font-size:clamp(1.2rem,2vw,1.7rem)}.besalp-container{width:min(calc(100% - 40px),var(--besalp-max));margin-inline:auto}.besalp-site-header{background:var(--besalp-bg);border-bottom:1px solid var(--besalp-border);position:relative;z-index:20}.besalp-header-inner{min-height:94px;display:flex;align-items:center;gap:32px;justify-content:space-between}.besalp-brand a{text-decoration:none;color:var(--besalp-dark);font-weight:800;font-size:1.2rem}.besalp-brand img{max-width:170px;max-height:70px;width:auto;height:auto;display:block}.besalp-navigation ul{list-style:none;display:flex;align-items:center;gap:25px;margin:0;padding:0}.besalp-navigation a{color:var(--besalp-dark);text-decoration:none;font-weight:600}.besalp-navigation .current-menu-item>a,.besalp-navigation a:hover{color:var(--besalp-primary)}.besalp-menu-toggle{display:none;padding:10px 14px;border:1px solid var(--besalp-border-strong);border-radius:6px;background:var(--besalp-bg);color:var(--besalp-dark);font:inherit;cursor:pointer}.besalp-main{min-height:45vh}.besalp-page-heading{background:var(--besalp-surface);padding:70px 0;text-align:center}.besalp-page-heading h1{margin:0}.besalp-content{padding:65px 0}.besalp-content>:first-child{margin-top:0}.besalp-button,.wp-block-button__link{display:inline-flex;align-items:center;gap:8px;border-radius:6px;background:var(--besalp-primary);color:var(--besalp-on-primary)!important;padding:13px 22px;text-decoration:none;font-weight:700;border:0}.besalp-button:hover{filter:brightness(.9);text-decoration:none}.besalp-site-footer{background:var(--besalp-dark);color:var(--besalp-on-dark);padding:55px 0 20px}.besalp-site-footer a{color:var(--besalp-on-dark-muted)}.besalp-site-footer h2,.besalp-site-footer h3{color:var(--besalp-on-dark);font-size:1.2rem}.besalp-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}.besalp-footer-bottom{border-top:1px solid var(--besalp-border-on-dark);margin-top:35px;padding-top:17px;font-size:13px}.besalp-widget ul{list-style:none;padding:0}.besalp-widget li{margin-bottom:9px}.besalp-company-lines span{display:block}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;margin:0;background:var(--besalp-bg);padding:15px;z-index:1000}.besalp-post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.besalp-post-card{padding:25px;border:1px solid var(--besalp-border);border-radius:10px}.besalp-post-card h2{font-size:1.35rem}.besalp-pagination{padding-top:25px}
@media(max-width:991px){.besalp-header-inner{min-height:75px}.besalp-menu-ready .besalp-menu-toggle{display:block}.besalp-navigation{display:block;position:absolute;left:0;right:0;top:100%;background:var(--besalp-bg);border-bottom:1px solid var(--besalp-border);padding:20px}.besalp-menu-ready .besalp-navigation{display:none}.besalp-menu-ready .besalp-navigation.is-open{display:block}.besalp-site-header:not(.besalp-menu-ready) .besalp-header-inner{flex-wrap:wrap}.besalp-site-header:not(.besalp-menu-ready) .besalp-navigation{position:static;flex-basis:100%}.besalp-navigation ul{display:block}.besalp-navigation li{margin:12px 0}.besalp-footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.besalp-footer-grid,.besalp-post-list{grid-template-columns:1fr}.besalp-container{width:min(calc(100% - 30px),var(--besalp-max))}.besalp-content{padding:40px 0}.besalp-page-heading{padding:45px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.is-style-besalp-eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.is-style-besalp-lead{font-size:1.1rem;line-height:1.75}
.is-style-besalp-icon img{width:50px;height:50px;object-fit:contain}
.besalp-address{display:flex;flex-direction:column;gap:20px;font-style:normal;margin:0}
.besalp-contact-value{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}

/* Brand marks retain their original colors on a consistent light surface. */
.besalp-site-footer .besalp-social-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.besalp-site-footer .besalp-social-links a{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:none;background:#fff;border:2px solid transparent;border-radius:6px}
.besalp-social-links img{display:block;width:32px;height:32px;object-fit:contain}
.besalp-site-footer .besalp-social-links a:hover{border-color:var(--besalp-primary)}
.besalp-site-footer .besalp-social-links a:focus-visible{outline:3px solid var(--besalp-primary);outline-offset:4px}
.besalp-footer-col{min-width:0;overflow-wrap:anywhere}
.besalp-widget img{max-width:100%;height:auto}
.besalp-footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;align-items:baseline}
.besalp-footer-bottom .besalp-menu-list{display:flex;flex-wrap:wrap;gap:8px 12px;list-style:none;margin:0;padding:0}
.besalp-footer-bottom .besalp-menu-list li{margin:0}
.besalp-footer-bottom .besalp-menu-list li+li::before{content:'·';margin-right:12px}
.besalp-menu-list .sub-menu{list-style:none;padding-left:16px;margin-top:8px}
.besalp-navigation li{position:relative}
.besalp-navigation .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;max-width:calc(100vw - 40px);padding:12px;background:var(--besalp-bg);box-shadow:0 8px 24px var(--besalp-shadow);list-style:none}
.besalp-navigation li:hover>.sub-menu,.besalp-navigation li:focus-within>.sub-menu{display:block}
.besalp-navigation .sub-menu li{margin:0}
.besalp-navigation .sub-menu a{display:block;padding:8px;white-space:normal}
.besalp-navigation .sub-menu .sub-menu{top:0;left:100%}
.besalp-navigation a:focus-visible,.besalp-menu a:focus-visible{outline:2px solid var(--besalp-primary);outline-offset:4px}
@media(max-width:991px){.besalp-navigation .sub-menu,.besalp-navigation .sub-menu .sub-menu{display:block;position:static;min-width:0;max-width:100%;padding:0 0 0 18px;box-shadow:none}.besalp-footer-bottom{align-items:flex-start}}
/* The opt-in modal navigation freezes its background until it is dismissed. */
html.besalp-menu-open { overflow: hidden; }
