/*
Theme Name: Bude Theme
Theme URI: https://energieberatung-bude.de
Author: Stefan Klebowski / Energieberatung Bude
Description: Custom one-page theme for Energieberatung Bude (flags + i18n + backend overrides).
Version: 1.0.0
Text Domain: bude-theme
*/

:root{
  --bg:#ffffff;
  --surface:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);
  --brand:#21b35d;
  --brandDark:#1f6f3b;
  --accent:#f2c94c;
  --shadow: 0 18px 45px rgba(2, 6, 23, .10);
  --radius:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  line-height:1.6;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 22px;}



/* Topbar (eigene Leiste) */
.topbar{
  background: var(--surface);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  padding:8px 0;
}
@media (max-width: 980px){
  .topbar-inner{justify-content:flex-start;}
}

.header{
      position:sticky; top:0; z-index:99;
      background: #ffffff;
      border-bottom:1px solid var(--line);
      box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
    }
.header-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:12px 0;
}

.brand{display:flex; align-items:center; gap:12px; min-width: 240px;}
.logoWrap{
  width:52px; height:52px;
  display:grid; place-items:center;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  overflow:hidden;
  flex:0 0 auto;
}
.logoSvg{width:44px; height:44px; display:block;}
.brand-title{display:flex; flex-direction:column; line-height:1.15;}
.brand-title strong{font-size:14px; letter-spacing:.2px}
.brand-title span{font-size:12px; color:var(--muted)}

.nav{display:flex; gap:10px; justify-content:center; align-items:center; overflow:hidden;}
.nav a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:999px;
  border:1px solid transparent; transition: all .18s ease;
  white-space:nowrap;
}
.nav a:hover{color:var(--text); border-color: var(--line); background: rgba(2,6,23,.03);}

.cta{display:flex; gap:10px; align-items:center; justify-content:flex-end; min-width:260px; flex-wrap:nowrap;}
.pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  font-size:13px; white-space:nowrap;
}
.pill .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(33,179,93,.18);
}
.pill .dot.wa{background:#25D366; box-shadow: 0 0 0 4px rgba(37,211,102,.16);}
.pill.waMini{padding:10px 12px; gap:8px;}
.pill.waMini span:last-child{max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

.btn{
  padding:10px 14px; border-radius:999px;
  border:1px solid rgba(33,179,93,.35);
  background: linear-gradient(135deg, rgba(33,179,93,.95), rgba(242,201,76,.55));
  color:#062014; font-weight:900; font-size:13px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, filter .16s ease;
  display:inline-flex; align-items:center; gap:10px;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.03);}

.lang{display:flex; gap:8px; align-items:center;}
.lang button{
  width:44px; height:38px; border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:grid;
  place-items:center;
  padding:0;
}
.lang button[aria-current="true"]{outline:2px solid rgba(33,179,93,.55); outline-offset:2px;}

.parallax{
  position:relative;
  min-height: 64vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background-image: var(--bgimg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.90) 0%,
      rgba(255,255,255,.84) 45%,
      rgba(255,255,255,.76) 70%,
      rgba(255,255,255,.64) 100%),
    radial-gradient(800px 340px at 22% 40%, rgba(242,201,76,.20), transparent 62%),
    radial-gradient(800px 340px at 35% 70%, rgba(33,179,93,.20), transparent 62%);
}
.parallax .content{position:relative; z-index:2; width:100%; padding:64px 0;}

.hero-grid{display:grid; grid-template-columns: 1.2fr .9fr; gap:18px; align-items:stretch;}
h1{margin:0; font-size: clamp(30px, 3.4vw, 50px); line-height:1.06; letter-spacing:-.7px;}
.lead{margin:14px 0 18px; color:var(--muted); font-size: clamp(14px, 1.2vw, 16px); max-width: 74ch;}

.row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}
.small-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  font-size:13px;
  transition: transform .16s ease;
  cursor:pointer;
}
.small-btn:hover{transform: translateY(-1px);}
.small-btn.primary{
  background: linear-gradient(135deg, rgba(33,179,93,.95), rgba(242,201,76,.55));
  border-color: rgba(33,179,93,.35);
  color:#062014; font-weight:900;
}

.badge-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;}
.badge{
  font-size:12px; padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.80);
}
.badge b{color: var(--brand)}

.glass{border-radius: var(--radius); border:1px solid var(--line); background: rgba(255,255,255,.92); box-shadow: var(--shadow); padding:18px;}

/* ✅ Jan-Bude-Box: Bild als Hintergrund IN der Box (Text bleibt lesbar) */
.jan-card{
  position: relative;
  overflow: hidden;
  background: transparent; /* Bild kommt über ::before */
}
.jan-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--janbg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Jan-Foto etwas stärker sichtbar (ca. +20%) */
  opacity:.32;
  transform: scale(1.03);
  z-index:0;
}
.jan-card::after{
  content:"";
  position:absolute;
  inset:0;
  /* leichte Aufhellung, damit die Schrift sicher bleibt */
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.66));
  z-index:1;
}
.jan-card > *{
  position: relative;
  z-index:2;
}
.person{display:flex; gap:14px; align-items:center; margin-bottom:12px;}
.avatar{
  width:74px; height:74px; border-radius:22px;
  background: rgba(2,6,23,.03);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; letter-spacing:.5px;
}
.mini{color:var(--muted); font-size:12px;}

.ticks{list-style:none; padding:0; margin:12px 0 0; display:grid; gap:10px;}
.ticks li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.015);
  color:var(--muted);
  font-size:13px;
}
.ticks li::before{content:"✓"; color:var(--brand); font-weight:900;}

section{padding:56px 0;}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px;}
.section-head h2{margin:0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing:-.4px;}
.section-head p{margin:0; color:var(--muted); font-size:13px; max-width: 66ch;}

.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px;}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:16px;}
.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 26px rgba(2,6,23,.08);
  padding:18px;
}
.card h3{margin:0 0 8px; font-size:16px;}
.card p{margin:0; color:var(--muted); font-size:13px;}
.card p + p{margin-top:10px;}

.icon{
  width:40px; height:40px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  margin-bottom:10px;
}
.icon svg{width:18px; height:18px; fill: var(--accent);}

.parallax-band{min-height: 44vh;}
.band-box{
  max-width:860px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}

.contact{display:grid; grid-template-columns: 1fr 1fr; gap:16px;}
label{display:block; font-size:12px; color:var(--muted); margin:10px 0 6px;}
input, textarea, select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
  color:var(--text);
  padding:12px 12px;
  outline:none;
  font: inherit;
}
textarea{min-height:120px; resize:vertical;}
.hint{font-size:12px; color:var(--muted); margin-top:10px;}

footer{
  padding:26px 0 40px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  background:#fff;
}
.foot{display:flex; gap:14px; justify-content:space-between; flex-wrap:wrap; align-items:center;}

.reveal{opacity:0; transform: translateY(10px); transition: all .6s ease;}
.reveal.on{opacity:1; transform: translateY(0);}

@media (max-width: 980px){
  .header-inner{grid-template-columns: 1fr; gap:10px;}
  .cta{justify-content:flex-start; flex-wrap:wrap; min-width:auto;}
  .brand{min-width:auto}
  .nav{display:none;}
  .grid-3{grid-template-columns: 1fr;}
  .grid-2{grid-template-columns: 1fr;}
  .contact{grid-template-columns: 1fr;}
  .parallax{min-height: 58vh; background-attachment: scroll;}
  .parallax::after{background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));}


  /* mobile-fix-hero */
  .hero-grid{grid-template-columns: 1fr; gap:14px;}
  .brand{justify-content:flex-start;}
  .cta{row-gap:10px;}
  .pill{width:100%; justify-content:flex-start;}
  .btn{width:100%; justify-content:center;}
  .lang{width:100%; justify-content:flex-start;}
  .logoWrap{width:48px; height:48px;}
  .logoSvg{width:40px; height:40px;}

}
@media (max-width: 520px){
  .pill.waMini{display:none;}
  .pill{padding:10px 10px;}
  .btn{width:100%; justify-content:center;}
  .lang{width:100%; justify-content:flex-start;}


  /* mobile-fix-small */
  .row .small-btn{width:100%; justify-content:center;}
  .badge-row{gap:8px;}
  .badge{width:100%; text-align:center;}

}
html[dir="rtl"] body{direction:rtl;}



/* =========================
   Parallax Section (after FAQ)
   ========================= */
.parallax-section{
  position: relative;
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.parallax-overlay{
  width: 100%;
  background: rgba(0,0,0,0.45);
  padding: 90px 0;
}

.parallax-section h2{
  color: #fff;
  margin-bottom: 12px;
}

.parallax-section p{
  color: rgba(255,255,255,0.92);
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 1024px){
  .parallax-section{
    background-attachment: scroll;
  }
}



/* =========================
   Contrast Boost (site-wide)
   ========================= */
body{
  background-color: #f4f6f8;
  color: #1f2933;
}

p{
  color: #2b3642;
}

section{
  padding: 90px 0;
}

section:nth-of-type(even){
  background-color: #ffffff;
}

section:nth-of-type(odd){
  background-color: #eef1f4;
}

h1, h2, h3{
  color: #0f172a;
}

.section-head p{
  color: #4b5563;
}

.card{
  background: #ffffff;
  border: 1px solid #dde3ea;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.card h3{
  color: #111827;
}

.card p{
  color: #374151;
}

.button,
button,
input[type="submit"]{
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.button:hover,
button:hover,
input[type="submit"]:hover{
  background-color: #020617;
}

.parallax-overlay{
  background: rgba(0,0,0,0.55);
}


/* =========================
   FAQ Background Photo (Ruhrgebiet) - Parallax
   ========================= */
#faq{
  position: relative;
  background-image: url("assets/img/faq-ruhrgebiet-industrie.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay for readability */
#faq::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Ensure FAQ content stays above overlay */
#faq > *{
  position: relative;
  z-index: 1;
}

/* Mobile performance fallback */
@media (max-width: 1024px){
  #faq{
    background-attachment: scroll;
  }
}



/* =========================
   FAQ Block Background (only for #faq)
   ========================= */
#faq.faq-parallax{
  position: relative;
  background-image: url("assets/img/faq-green-energy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#faq.faq-parallax::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62); /* matches other parallax overlays */
  pointer-events: none;
}

#faq.faq-parallax > .wrap{
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px){
  #faq.faq-parallax{
    background-attachment: scroll;
  }
}



/* =========================
   FAQ Title Color (white)
   ========================= */
#faq h2,
#faq .section-head h2{
  color: #ffffff;
}



/* =========================
   FAQ Subtitle / Lead Color (white)
   ========================= */
#faq .section-head p{
  color: rgba(255,255,255,0.9);
}
