/* ===== Solar Kosten Schweiz – Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --teal:#0f766e;--teal-dark:#0d6560;--teal-light:#14b8a6;
  --amber:#d97706;--amber-dark:#b45309;--amber-light:#f59e0b;
  --off-white:#fafaf9;--stone-100:#f5f5f4;--stone-200:#e7e5e4;
  --stone-300:#d6d3d1;--stone-500:#78716c;--stone-600:#57534e;
  --stone-700:#44403c;--stone-800:#292524;--stone-900:#1c1917;
  --radius:8px;--radius-lg:12px;--radius-xl:16px;
  --shadow:0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.1),0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:0 20px 25px rgba(0,0,0,.1),0 8px 10px rgba(0,0,0,.04);
  --max-w:1200px;
}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Source Sans 3',sans-serif;color:var(--stone-800);background:var(--off-white);line-height:1.7;overflow-x:hidden}
h1,h2,h3,h4,h5,h6{font-family:'Plus Jakarta Sans',sans-serif;line-height:1.25;color:var(--stone-900)}
h1{font-size:clamp(2rem,4vw,3rem);font-weight:800}
h2{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700}
h3{font-size:clamp(1.2rem,2.5vw,1.5rem);font-weight:700}
h4{font-size:1.15rem;font-weight:600}
p{margin-bottom:1rem}
a{color:var(--teal);text-decoration:none;transition:color .2s}
a:hover{color:var(--amber)}
img{max-width:100%;height:auto;display:block}
ul,ol{margin-left:1.5rem;margin-bottom:1rem}
li{margin-bottom:.35rem}

/* --- Utilities --- */
.container{max-width:var(--max-w);margin:0 auto;padding:0 1.5rem}
.text-center{text-align:center}
.text-teal{color:var(--teal)}
.text-amber{color:var(--amber)}
.text-white{color:#fff}
.bg-teal{background:var(--teal)}
.bg-amber{background:var(--amber)}
.bg-off-white{background:var(--off-white)}
.bg-stone-100{background:var(--stone-100)}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.section-padding{padding:5rem 0}
.section-title{margin-bottom:.75rem}
.section-subtitle{color:var(--stone-600);font-size:1.1rem;max-width:700px;margin:0 auto 2.5rem}

/* --- Text on image overlays (VISIBILITY) --- */
.overlay-dark{position:relative}
.overlay-dark::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(15,118,110,.85),rgba(28,25,23,.75));z-index:1}
.overlay-dark>*{position:relative;z-index:2}
.overlay-amber{position:relative}
.overlay-amber::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(217,119,6,.88),rgba(180,83,9,.8));z-index:1}
.overlay-amber>*{position:relative;z-index:2}

/* --- Buttons --- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 2rem;border-radius:var(--radius);font-family:'Plus Jakarta Sans',sans-serif;font-weight:600;font-size:1rem;cursor:pointer;transition:all .25s;border:none;text-decoration:none}
.btn-primary{background:var(--amber);color:#fff}
.btn-primary:hover{background:var(--amber-dark);color:#fff;transform:translateY(-1px);box-shadow:var(--shadow-md)}
.btn-secondary{background:var(--teal);color:#fff}
.btn-secondary:hover{background:var(--teal-dark);color:#fff;transform:translateY(-1px);box-shadow:var(--shadow-md)}
.btn-outline{background:transparent;color:var(--teal);border:2px solid var(--teal)}
.btn-outline:hover{background:var(--teal);color:#fff}
.btn-white{background:#fff;color:var(--teal)}
.btn-white:hover{background:var(--stone-100);color:var(--teal-dark)}
.btn-lg{padding:1rem 2.5rem;font-size:1.1rem;border-radius:var(--radius-lg)}
.btn svg{width:20px;height:20px;fill:currentColor}

/* --- Navbar --- */
.navbar{background:#fff;border-bottom:1px solid var(--stone-200);position:sticky;top:0;z-index:1000;box-shadow:var(--shadow)}
.navbar .container{display:flex;align-items:center;justify-content:space-between;height:70px}
.navbar-logo img{height:40px;width:auto}
.navbar-links{display:flex;align-items:center;gap:1.75rem;list-style:none;margin:0;padding:0}
.navbar-links a{font-family:'Plus Jakarta Sans',sans-serif;font-weight:500;color:var(--stone-700);font-size:.95rem}
.navbar-links a:hover{color:var(--teal)}
.navbar-links .btn{padding:.6rem 1.4rem;font-size:.9rem}
.navbar-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.navbar-toggle span{display:block;width:24px;height:2px;background:var(--stone-800);margin:5px 0;transition:all .3s}

/* --- Hero --- */
.hero{background-size:cover;background-position:center;min-height:600px;display:flex;align-items:center;color:#fff}
.hero h1{color:#fff;margin-bottom:1rem}
.hero p{font-size:1.2rem;margin-bottom:2rem;max-width:650px}
.hero-badge{display:inline-block;background:var(--amber);color:#fff;font-size:.85rem;font-weight:600;padding:.35rem 1rem;border-radius:50px;margin-bottom:1rem;font-family:'Plus Jakarta Sans',sans-serif}

/* --- Cards --- */
.card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.card-img{width:100%;height:220px;object-fit:cover}
.card-body{padding:1.5rem}
.card-body h3{margin-bottom:.5rem}
.card-body p{color:var(--stone-600);font-size:.95rem}
.card-tag{display:inline-block;background:var(--teal);color:#fff;font-size:.75rem;font-weight:600;padding:.2rem .7rem;border-radius:50px;margin-bottom:.75rem}
.card-meta{color:var(--stone-500);font-size:.85rem;margin-top:.75rem}

/* --- Grid --- */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}

/* --- Price Table --- */
.price-table{width:100%;border-collapse:separate;border-spacing:0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg)}
.price-table thead th{background:var(--teal);color:#fff;padding:1rem;font-family:'Plus Jakarta Sans',sans-serif;font-weight:600;font-size:.95rem}
.price-table tbody td{padding:1rem;border-bottom:1px solid var(--stone-200);text-align:center}
.price-table tbody tr:last-child td{border-bottom:none}
.price-table tbody tr:nth-child(even){background:var(--stone-100)}
.price-table tbody tr:hover{background:rgba(15,118,110,.05)}
.price-table .highlight{background:rgba(217,119,6,.1);font-weight:600;color:var(--amber-dark)}
.price-table td:first-child{text-align:left;font-weight:600}

/* --- ROI Calculator --- */
.calculator{background:#fff;border-radius:var(--radius-xl);padding:2.5rem;box-shadow:var(--shadow-lg)}
.calc-group{margin-bottom:1.5rem}
.calc-group label{display:block;font-weight:600;margin-bottom:.5rem;font-family:'Plus Jakarta Sans',sans-serif}
.calc-group input[type=range]{width:100%;accent-color:var(--teal)}
.calc-output{display:flex;justify-content:space-between;font-size:.9rem;color:var(--stone-600)}
.calc-result{background:var(--stone-100);border-radius:var(--radius-lg);padding:1.5rem;margin-top:1.5rem}
.calc-result-item{display:flex;justify-content:space-between;padding:.65rem 0;border-bottom:1px solid var(--stone-200)}
.calc-result-item:last-child{border-bottom:none}
.calc-result-item .label{color:var(--stone-600)}
.calc-result-item .value{font-weight:700;color:var(--teal);font-family:'Plus Jakarta Sans',sans-serif;font-size:1.1rem}

/* --- FAQ Accordion --- */
.faq-item{background:#fff;border-radius:var(--radius-lg);margin-bottom:.75rem;box-shadow:var(--shadow);overflow:hidden}
.faq-question{width:100%;padding:1.25rem 1.5rem;background:none;border:none;text-align:left;font-family:'Plus Jakarta Sans',sans-serif;font-weight:600;font-size:1.05rem;color:var(--stone-800);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:color .2s}
.faq-question:hover{color:var(--teal)}
.faq-question::after{content:'+';font-size:1.4rem;color:var(--teal);transition:transform .3s}
.faq-item.active .faq-question::after{content:'-';transform:rotate(180deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-answer-inner{padding:0 1.5rem 1.25rem;color:var(--stone-600);line-height:1.7}
.faq-item.active .faq-answer{max-height:500px}

/* --- Stats / Numbers --- */
.stat-box{text-align:center;padding:2rem 1.5rem}
.stat-number{font-family:'Plus Jakarta Sans',sans-serif;font-size:2.5rem;font-weight:800;color:var(--teal)}
.stat-label{color:var(--stone-600);font-size:.95rem;margin-top:.35rem}

/* --- Facts list --- */
.fact-card{background:#fff;border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow);border-left:4px solid var(--teal)}
.fact-card h4{color:var(--teal);margin-bottom:.5rem}
.fact-number{font-family:'Plus Jakarta Sans',sans-serif;font-size:1.5rem;font-weight:800;color:var(--amber);margin-bottom:.25rem}

/* --- Canton Card --- */
.canton-card{background:#fff;border-radius:var(--radius-lg);padding:1.25rem;text-align:center;box-shadow:var(--shadow);transition:all .25s;border:2px solid transparent}
.canton-card:hover{border-color:var(--teal);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.canton-card h4{font-size:.95rem;color:var(--stone-800);margin-bottom:.25rem}
.canton-card p{font-size:.8rem;color:var(--stone-500);margin:0}

/* --- Canton Hero --- */
.canton-hero{min-height:400px;display:flex;align-items:center}

/* --- Info Box --- */
.info-box{background:var(--stone-100);border-radius:var(--radius-lg);padding:2rem;border-left:4px solid var(--teal)}
.info-box.amber{border-left-color:var(--amber)}
.info-box h3{margin-bottom:.75rem}

/* --- Breadcrumb --- */
.breadcrumb{padding:1rem 0;font-size:.9rem;color:var(--stone-500)}
.breadcrumb a{color:var(--stone-500)}
.breadcrumb a:hover{color:var(--teal)}
.breadcrumb span{margin:0 .5rem}

/* --- Footer --- */
.footer{background:var(--stone-900);color:var(--stone-300);padding:4rem 0 0}
.footer h4{color:#fff;font-size:1rem;margin-bottom:1rem}
.footer a{color:var(--stone-300)}
.footer a:hover{color:var(--amber)}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{margin-bottom:.5rem}
.footer-bottom{border-top:1px solid var(--stone-700);margin-top:3rem;padding:1.5rem 0;text-align:center;font-size:.85rem;color:var(--stone-500)}
.footer-logo img{height:35px;margin-bottom:1rem;filter:brightness(10)}
.footer-desc{font-size:.9rem;line-height:1.6;margin-bottom:1rem;max-width:300px}

/* --- Cookie Banner --- */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:var(--stone-900);color:#fff;padding:1.25rem 1.5rem;z-index:9999;display:none;box-shadow:0 -2px 10px rgba(0,0,0,.2)}
.cookie-banner.show{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.cookie-banner p{margin:0;font-size:.9rem;flex:1;min-width:250px}
.cookie-banner a{color:var(--amber)}
.cookie-btns{display:flex;gap:.75rem}
.cookie-btns .btn{padding:.6rem 1.2rem;font-size:.85rem}

/* --- Blog Article --- */
.article-header{margin-bottom:2rem}
.article-header h1{margin-bottom:1rem}
.article-meta{color:var(--stone-500);font-size:.9rem;display:flex;gap:1.5rem;margin-bottom:1.5rem}
.article-img{width:100%;height:350px;object-fit:cover;border-radius:var(--radius-lg);margin-bottom:2rem}
.article-content{max-width:800px;margin:0 auto}
.article-content h2{margin-top:2.5rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--stone-200)}
.article-content h3{margin-top:2rem;margin-bottom:.75rem}
.article-content ul,.article-content ol{margin-bottom:1.25rem}
.article-content blockquote{border-left:4px solid var(--teal);padding:1rem 1.5rem;background:var(--stone-100);border-radius:0 var(--radius) var(--radius) 0;margin:1.5rem 0;font-style:italic}
.article-content table{width:100%;border-collapse:collapse;margin:1.5rem 0}
.article-content table th{background:var(--teal);color:#fff;padding:.75rem 1rem;text-align:left}
.article-content table td{padding:.75rem 1rem;border-bottom:1px solid var(--stone-200)}
.article-content table tr:nth-child(even){background:var(--stone-100)}

/* --- Sidebar --- */
.content-layout{display:grid;grid-template-columns:1fr 340px;gap:3rem}
.sidebar .widget{background:#fff;border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow);margin-bottom:1.5rem}
.sidebar .widget h4{margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--stone-200)}

/* --- Schema / Meta hidden --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* --- Back to top --- */
.back-to-top{position:fixed;bottom:2rem;right:2rem;width:45px;height:45px;background:var(--teal);color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:1.2rem;display:none;align-items:center;justify-content:center;z-index:999;box-shadow:var(--shadow-md);transition:all .25s}
.back-to-top.show{display:flex}
.back-to-top:hover{background:var(--amber);transform:translateY(-2px)}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .grid-4{grid-template-columns:repeat(3,1fr)}
  .content-layout{grid-template-columns:1fr}
  .sidebar{order:2}
}
@media(max-width:768px){
  .navbar-links{position:fixed;top:70px;left:0;right:0;background:#fff;flex-direction:column;padding:1.5rem;gap:1rem;transform:translateY(-120%);transition:transform .3s;box-shadow:var(--shadow-lg);border-top:1px solid var(--stone-200)}
  .navbar-links.active{transform:translateY(0)}
  .navbar-toggle{display:block}
  .hero{min-height:450px}
  .hero h1{font-size:1.75rem}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .section-padding{padding:3rem 0}
  .price-table{font-size:.85rem}
  .price-table thead th,.price-table tbody td{padding:.65rem .5rem}
  .footer .grid-4{grid-template-columns:repeat(2,1fr)}
  .cookie-banner{flex-direction:column;text-align:center}
  .stat-number{font-size:2rem}
  .canton-hero{min-height:300px}
  .card-img{height:180px}
}
@media(max-width:480px){
  .container{padding:0 1rem}
  .footer .grid-4{grid-template-columns:1fr}
  .price-table{font-size:.8rem}
  h1{font-size:1.5rem}
}
