/*
Theme Name: K-R Bauelemente
Theme URI: https://example.com/
Author: K-R Bauelemente UG (haftungsbeschränkt)
Author URI: https://example.com/
Description: Premium WordPress-Theme für K-R Bauelemente.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kr-bauelemente
Tags: custom-logo, custom-menu, featured-images, responsive-layout
*/

:root{
  --ink:#12231f;
  --ink-soft:#22453c;
  --green:#1c5b49;
  --green-dark:#153f34;
  --green-light:#edf5f1;
  --cream:#f5f1e8;
  --sand:#d8ccb6;
  --white:#ffffff;
  --muted:#667670;
  --line:#dfe6e2;
  --panel:#f8faf8;
  --shadow:0 20px 60px rgba(18,35,31,.10);
  --shadow-soft:0 12px 30px rgba(18,35,31,.06);
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(1240px,calc(100% - 40px));margin:auto}

.topbar{
  background:linear-gradient(90deg,var(--green-dark),var(--green));
  color:#fff;
  font-size:.92rem;
}
.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px 24px;
  padding:10px 0;
}
.topbar-note{opacity:.96}
.topbar-contact{display:flex;gap:10px;flex-wrap:wrap}
.topbar-contact a{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(18,35,31,.08);
  box-shadow:0 8px 22px rgba(18,35,31,.04);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:94px;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
  flex-shrink:0;
}
.logo{
  width:58px;
  height:58px;
  border-radius:18px;
  background:linear-gradient(145deg,var(--green),#2e7b63);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:1.25rem;
  box-shadow:0 14px 28px rgba(28,91,73,.25);
}
.brand-copy{
  display:flex;
  flex-direction:column;
  font-weight:850;
  font-size:1.12rem;
  line-height:1.12;
}
.brand-copy small{
  margin-top:5px;
  font-size:.74rem;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.links{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.links a{
  text-decoration:none;
  font-weight:700;
  font-size:.96rem;
}
.menu{
  display:none;
  background:none;
  border:0;
  font-size:1.7rem;
  color:var(--ink);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:14px 22px;
  border-radius:999px;
  border:1px solid transparent;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  transition:.22s ease;
  cursor:pointer;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(28,91,73,.20);
}
.btn.secondary{
  background:#fff;
  color:var(--ink);
  border-color:rgba(255,255,255,.25);
}
.nav-cta{padding:13px 18px}

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, rgba(12,31,25,.94), rgba(28,91,73,.84)),
    url('assets/hero-modern-house.jpg') center/cover no-repeat;
  color:#fff;
}
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(10,28,21,.38),rgba(10,28,21,.12) 55%,rgba(10,28,21,.04));
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .72fr;
  gap:38px;
  align-items:center;
  padding:96px 0 130px;
}
.hero-copy{
  max-width:760px;
}
.eyebrow{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.03em;
}
.hero-badge{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
}
.section-badge{
  background:#eef5f1;
  border:1px solid #d9e8e1;
  color:var(--green);
}
.finance-badge{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.hero h1{
  font-size:clamp(3rem,6vw,5.4rem);
  line-height:.98;
  margin:18px 0 18px;
  max-width:900px;
  letter-spacing:-.03em;
}
.hero p{
  font-size:clamp(1.08rem,2vw,1.26rem);
  max-width:740px;
  color:rgba(255,255,255,.9);
  margin:0;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px;
}
.hero-points{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.hero-points span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size:.9rem;
}
.hero-points span:before{
  content:"•";
}
.hero-panel{
  display:flex;
  justify-content:flex-end;
}
.hero-panel-card{
  width:min(420px,100%);
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 25px 60px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}
.hero-panel-image{
  aspect-ratio:1.08 / 1;
  overflow:hidden;
}
.hero-panel-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-panel-content{
  padding:20px 22px 22px;
}
.hero-panel-content strong{
  display:block;
  font-size:1.2rem;
  margin-bottom:8px;
}
.hero-panel-content p{
  margin:0;
  color:rgba(255,255,255,.88);
  font-size:1rem;
}

.trust{
  margin-top:-56px;
  position:relative;
  z-index:4;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.trust-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px 24px;
  box-shadow:var(--shadow-soft);
  min-height:166px;
}
.trust-item strong{
  display:block;
  margin-bottom:10px;
  font-size:1.12rem;
  line-height:1.2;
}
.trust-item span{
  display:block;
  color:var(--muted);
  line-height:1.6;
  font-size:.98rem;
}

section{padding:96px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:32px;
  margin-bottom:34px;
}
.section-head h2{
  font-size:clamp(2.15rem,4vw,3.9rem);
  line-height:1.04;
  margin:12px 0 0;
  letter-spacing:-.03em;
}
.section-head p{
  max-width:620px;
  color:var(--muted);
  margin:0;
  font-size:1.02rem;
}
.premium-head{margin-bottom:36px}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.card{
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  height:100%;
}
.card-media{
  height:255px;
  overflow:hidden;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.card:hover img{transform:scale(1.04)}
.card-body{
  padding:24px 24px 26px;
}
.card h3{
  margin:0 0 10px;
  font-size:1.3rem;
  line-height:1.22;
}
.card p{
  color:var(--muted);
  margin:0;
  font-size:1rem;
  line-height:1.6;
}
.products-section{
  background:linear-gradient(180deg,#fff,#fbfcfb);
}

.band{background:var(--cream)}
.premium-split{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:58px;
  align-items:center;
}
.premium-collage{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  grid-template-rows:250px 250px;
  gap:16px;
}
.premium-collage img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.premium-collage img:first-child{grid-row:1/3}
.quality-copy p{
  color:var(--muted);
  font-size:1.03rem;
}
.checks{
  display:grid;
  gap:16px;
  margin:28px 0;
}
.check{
  display:flex;
  gap:14px;
}
.check b{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#dcefe7;
  color:var(--green);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.check span{color:var(--muted)}

.references{
  background:#fff;
}
.gallery.clean-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:270px;
  gap:18px;
}
.gallery.clean-gallery figure{
  margin:0;
  overflow:hidden;
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  background:#fff;
}
.gallery.clean-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.funding-section{
  background:linear-gradient(180deg,#fff,#fcfbf8);
}
.finance{
  border-radius:30px;
  padding:48px 50px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
}
.premium-finance{
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  color:#fff;
  box-shadow:var(--shadow);
}
.finance h2{
  font-size:clamp(2rem,4vw,3.2rem);
  margin:10px 0 12px;
  line-height:1.04;
}
.finance p{
  margin:0;
  color:rgba(255,255,255,.82);
  max-width:760px;
}
.notice{
  background:#fbf5e6;
  border:1px solid #ead9a8;
  border-radius:18px;
  padding:18px 20px;
  margin-top:22px;
  color:#5a4d21;
  line-height:1.55;
}

.contact-section{
  background:#fff;
}
.contact-wrap{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:34px;
  align-items:start;
}
.contact-card{
  color:#fff;
  border-radius:28px;
  padding:34px;
}
.premium-contact-card{
  background:linear-gradient(145deg,var(--green-dark),var(--green));
  box-shadow:var(--shadow);
}
.contact-card p{
  color:rgba(255,255,255,.82);
}
.contact-card a{color:#fff}
.contact-card h2{
  margin:14px 0 12px;
  font-size:2.25rem;
  line-height:1.08;
}
.contact-form-shell{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  border-radius:28px;
  padding:32px;
}
.contact-form-shell h2{
  margin:0 0 18px;
  font-size:2rem;
}
form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
label{
  font-weight:750;
  font-size:.92rem;
}
input,select,textarea{
  width:100%;
  padding:14px 15px;
  border:1px solid #ced8d3;
  border-radius:14px;
  font:inherit;
  margin-top:6px;
  background:#fff;
}
textarea{
  min-height:145px;
  resize:vertical;
}
.full{grid-column:1/-1}
.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:.86rem;
  color:var(--muted);
}
.consent input{
  width:auto;
  margin-top:5px;
}
.form-note{
  margin-top:12px;
  color:var(--muted);
  font-size:.83rem;
}

.site-footer{
  background:#101c18;
  color:#fff;
  padding:52px 0 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:34px;
}
.footer-grid h3{margin-top:0}
.footer-grid p{color:rgba(255,255,255,.74)}
.footer-grid a{
  display:block;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  margin:8px 0;
}
.legal-line{
  border-top:1px solid rgba(255,255,255,.14);
  margin-top:32px;
  padding-top:18px;
  color:rgba(255,255,255,.58);
  font-size:.82rem;
}
.legal-page{
  padding:72px 0;
}
.legal-page h1{font-size:3rem}
.legal-page h2{margin-top:34px}
.legal-page p,.legal-page li{color:#42504a}
.cookie{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:99;
  max-width:920px;
  margin:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px 20px;
  display:none;
  gap:16px;
  align-items:center;
}
.cookie.show{display:flex}
.cookie p{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
}
.cookie .actions{
  display:flex;
  gap:8px;
  flex:0 0 auto;
}

@media(max-width:1080px){
  .hero-grid,
  .premium-split,
  .contact-wrap{
    grid-template-columns:1fr;
  }
  .hero-panel{justify-content:flex-start}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:960px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .nav{
    min-height:82px;
    position:relative;
  }
  .links{
    display:none;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    background:#fff;
    padding:20px;
    flex-direction:column;
    align-items:flex-start;
    border:1px solid var(--line);
    border-radius:0 0 20px 20px;
    box-shadow:var(--shadow);
  }
  .links.open{display:flex}
  .menu{display:block}
  .hero-grid{padding:84px 0 110px}
  .trust{margin-top:-34px}
  .section-head{
    display:block;
  }
  .section-head p{
    margin-top:16px;
  }
  .finance{
    grid-template-columns:1fr;
    padding:36px;
  }
  .gallery.clean-gallery{grid-template-columns:repeat(2,1fr)}
  form{grid-template-columns:1fr}
  .full{grid-column:auto}
}

@media(max-width:640px){
  .container{width:min(100% - 28px,1240px)}
  .brand-copy{font-size:1rem}
  .hero h1{font-size:clamp(2.4rem,10vw,3.8rem)}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .hero-actions .btn{width:100%}
  .hero-points{gap:8px}
  .trust{
    margin-top:0;
  }
  .trust-grid,
  .cards,
  .gallery.clean-gallery,
  .footer-grid{
    grid-template-columns:1fr;
  }
  .trust-item{
    min-height:auto;
    padding:24px 22px;
  }
  .card-media{height:230px}
  section{padding:76px 0}
  .premium-collage{
    grid-template-columns:1fr;
    grid-template-rows:260px 200px 200px;
  }
  .premium-collage img:first-child{grid-row:auto}
  .contact-form-shell,
  .contact-card{padding:26px}
  .cookie{
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  .cookie.show{display:flex}
}


.solar-section{
  background:linear-gradient(180deg,#fbfcfb,#f3f7f5);
  padding-top:20px;
}
.solar-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:42px;
  align-items:center;
}
.solar-visual img{
  width:100%;
  border-radius:28px;
  box-shadow:var(--shadow);
  border:1px solid rgba(18,35,31,.06);
}
.solar-copy h2{
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.04;
  margin:14px 0 16px;
  letter-spacing:-.03em;
}
.solar-copy p{
  color:var(--muted);
  font-size:1.04rem;
  line-height:1.7;
  margin:0 0 4px;
}
.premium-card .card-media{
  background:#f6f8f7;
}

@media(max-width:1080px){
  .solar-grid{
    grid-template-columns:1fr;
  }
}


/* Final premium interaction and layout refinements */
.product-card{
  color:inherit;
  text-decoration:none;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 55px rgba(18,35,31,.12);
  border-color:#cbdad3;
}
.product-card:focus-visible{
  outline:3px solid rgba(28,91,73,.28);
  outline-offset:4px;
}
.card-body{
  display:flex;
  flex-direction:column;
  min-height:215px;
}
.card-link{
  display:inline-flex;
  margin-top:auto;
  padding-top:18px;
  color:var(--green);
  font-weight:800;
  font-size:.92rem;
}
.premium-process{
  background:#fff;
  padding-top:30px;
}
.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.process-card{
  padding:28px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fafcfb);
  box-shadow:var(--shadow-soft);
}
.process-card span{
  display:inline-flex;
  font-size:1.8rem;
  font-weight:900;
  color:#a8c2b7;
  margin-bottom:12px;
}
.process-card h3{
  margin:0 0 8px;
  font-size:1.24rem;
}
.process-card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}
.hero-panel-card,
.premium-contact-card,
.premium-finance,
.solar-visual img{
  border:1px solid rgba(255,255,255,.12);
}
@media(max-width:960px){
  .process-grid{grid-template-columns:1fr}
}


.sun-section{
  background:linear-gradient(180deg,#fff,#fbf8f1);
}
.sun-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:48px;
  align-items:center;
}
.sun-copy h2{
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.04;
  margin:14px 0 16px;
  letter-spacing:-.03em;
}
.sun-copy p{
  color:var(--muted);
  font-size:1.04rem;
  line-height:1.7;
}
.sun-visuals{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  grid-template-rows:330px 210px;
  gap:16px;
}
.sun-visuals img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:24px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
}
.sun-main{
  grid-row:1/3;
}
@media(max-width:1080px){
  .sun-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .sun-visuals{
    grid-template-columns:1fr;
    grid-template-rows:250px 210px;
  }
  .sun-main{
    grid-row:auto;
  }
}
