:root{
  --green:#173f35;
  --green2:#24574a;
  --cream:#f7f3e9;
  --white:#ffffff;
  --text:#24312d;
  --muted:#68736f;
  --line:#dfe5df;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#fbfaf7;
  color:var(--text);
}

.topbar{
  min-height:76px;
  padding:0 6vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--white);
  border-bottom:1px solid var(--line);
}

.brand{
  color:var(--green);
  text-decoration:none;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:700;
}

.cart-link{
  color:var(--green);
  text-decoration:none;
  font-weight:700;
}

main{
  width:min(1120px,90%);
  margin:auto;
}

.hero{
  padding:72px 0 46px;
  max-width:760px;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--green2);
  font-size:12px;
  font-weight:800;
}

h1,
h2{
  font-family:Georgia,serif;
  color:var(--green);
}

h1{
  font-size:clamp(40px,6vw,68px);
  line-height:1;
  margin:10px 0 20px;
}

.intro{
  font-size:20px;
  line-height:1.6;
}

.ref-note{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  background:#e8efe9;
  color:var(--green);
  font-weight:700;
}

.products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
  padding-bottom:70px;
}

.product-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 45px rgba(20,55,45,.08);
}

.image-box{
  min-height:360px;
  background:var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:35px;
}

.image-box img{
  width:100%;
  max-width:320px;
  max-height:330px;
  object-fit:contain;
}

.product-content{
  padding:30px;
}

.product-content h2{
  font-size:30px;
  margin:4px 0 15px;
}

.product-content p{
  line-height:1.6;
}

.buy-row{
  margin-top:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.price{
  display:block;
  font-size:28px;
  color:var(--green);
}

small{
  display:block;
  color:var(--muted);
  margin-top:5px;
}

button,
.button-link{
  border:0;
  border-radius:10px;
  padding:14px 20px;
  background:var(--green);
  color:white;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
}

.recommend{
  margin-bottom:70px;
  padding:38px;
  border-radius:24px;
  background:var(--green);
  color:white;
}

.recommend h2{
  color:white;
  margin-top:0;
  font-size:34px;
}

footer{
  padding:32px;
  text-align:center;
  border-top:1px solid var(--line);
  color:var(--muted);
}

.cart-page{
  max-width:850px;
  padding:60px 0;
}

.cart-page h1{
  font-size:46px;
}

.cart-row{
  display:grid;
  grid-template-columns:1fr 90px 130px;
  gap:20px;
  align-items:center;
  background:white;
  padding:22px;
  border-bottom:1px solid var(--line);
}

.cart-row input{
  width:75px;
  padding:10px;
}

.cart-total{
  display:flex;
  justify-content:space-between;
  padding:25px;
  background:var(--cream);
  font-size:23px;
}

.cart-actions{
  display:flex;
  gap:20px;
  align-items:center;
  margin-top:25px;
}

.checkout-note{
  color:var(--muted);
}

@media(max-width:760px){

  .products{
    grid-template-columns:1fr;
  }

  .image-box{
    min-height:280px;
  }

  .buy-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .cart-row{
    grid-template-columns:1fr;
  }
}


/* ==========================================================
   BalancePlus Kundenkonto
   ========================================================== */

.account-narrow{
  max-width:620px;
  padding:64px 0 90px;
}

.account-page{
  padding:60px 0 90px;
}

.intro-small{
  font-size:18px;
  line-height:1.6;
  margin-bottom:30px;
}

.account-form{
  display:grid;
  gap:18px;
}

.account-form label{
  display:grid;
  gap:7px;
  font-weight:700;
  color:var(--green);
}

.account-form input{
  width:100%;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  font:inherit;
}

.checkline{
  grid-template-columns:22px 1fr !important;
  align-items:start;
  font-weight:400 !important;
  line-height:1.5;
}

.checkline input{
  width:auto;
  margin-top:4px;
}

.account-switch{
  margin-top:28px;
}

.message{
  padding:14px 16px;
  margin:20px 0;
  border-radius:10px;
  background:#edf3ef;
}

.message.error{
  background:#f7e8e5;
}

.account-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.account-card{
  padding:28px;
  background:white;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 12px 35px rgba(20,55,45,.06);
}

.customer-qr{
  width:220px;
  max-width:100%;
  height:auto;
  background:white;
  padding:10px;
}

.referral-url{
  overflow-wrap:anywhere;
  margin-top:15px;
  padding:12px;
  background:var(--cream);
  border-radius:8px;
  font-size:14px;
}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:25px;
}

.stats div{
  padding:18px;
  background:var(--cream);
  border-radius:12px;
}

.stats strong{
  display:block;
  font-size:32px;
  color:var(--green);
}

.stats span{
  display:block;
  margin-top:6px;
  color:var(--muted);
}

.money-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.bank-status{
  padding:13px;
  background:var(--cream);
  border-radius:9px;
}

.logout-form{
  margin:0;
}

.link-button{
  background:transparent;
  color:var(--green);
  padding:0;
}

.commission-list{
  margin-top:24px;
}

.commission-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

@media(max-width:760px){

  .account-grid{
    grid-template-columns:1fr;
  }

  .commission-row{
    grid-template-columns:1fr;
  }

}


/* Kundenkonto Navigation */

.customer-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 42px;
  padding:7px;
  border:1px solid var(--line);
  background:white;
  border-radius:14px;
}

.customer-tabs a{
  padding:11px 17px;
  border-radius:9px;
  text-decoration:none;
  color:var(--green);
  font-weight:700;
}

.customer-tabs a:hover{
  background:var(--cream);
}

.customer-tabs a.active{
  background:var(--green);
  color:white;
}

.personal-card{
  max-width:760px;
}

.form-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.postal-row{
  grid-template-columns:160px 1fr;
}

.customer-number{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:15px 17px;
  background:var(--cream);
  border-radius:10px;
}

.customer-number span{
  color:var(--muted);
}

.customer-number strong{
  color:var(--green);
}

@media(max-width:760px){

  .customer-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .form-two,
  .postal-row{
    grid-template-columns:1fr;
  }

}

/* Vertriebsstruktur */

.structure-section{
  margin-top:24px;
}

.structure-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}

.structure-row:last-child{
  border-bottom:0;
}

.structure-badge{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  background:var(--cream);
  color:var(--green);
  font-weight:700;
  white-space:nowrap;
}



/* ==========================================================
   BALANCEPLUS CHECKOUT V1
   ========================================================== */

.checkout-page,
.confirmation-page {
    width: min(980px, calc(100% - 32px));
    margin: 42px auto 80px;
}

.checkout-page > h1 {
    margin-top: 6px;
}

.checkout-form {
    display: grid;
    gap: 20px;
}

.checkout-card,
.confirmation-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

.checkout-card h2,
.confirmation-card h2 {
    margin-top: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-grid label,
.checkout-card > label {
    display: grid;
    gap: 7px;
}

.checkout-grid .wide {
    grid-column: 1 / -1;
}

.checkout-card input[type="text"],
.checkout-card input[type="email"],
.checkout-card input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #ccd4cf;
    border-radius: 10px;
    font: inherit;
}

.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
}

.check-row input {
    margin-top: 4px;
}

.shipping-fields {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.checkout-account-note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f2f5f2;
}

.payment-option {
    padding: 16px;
    border: 1px solid #dbe2dd;
    border-radius: 12px;
}

.payment-option p {
    margin-bottom: 0;
}

.checkout-product,
.checkout-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.checkout-product {
    padding: 14px 0;
    border-bottom: 1px solid #ecefec;
}

.checkout-product div {
    display: grid;
    gap: 4px;
}

.checkout-product span {
    opacity: .72;
}

.checkout-totals {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.checkout-totals .grand-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px solid #183c32;
    font-size: 1.18rem;
}

.checkout-submit {
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #183c32;
    color: #fff;
}

.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-legal-note,
.country-note {
    opacity: .72;
    font-size: .92rem;
}

.order-number {
    display: inline-block;
    margin: 8px 0 22px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef3ef;
    font-size: 1.2rem;
    font-weight: 700;
}

.confirmation-section {
    margin: 24px 0;
}

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

    .checkout-grid .wide {
        grid-column: auto;
    }

    .checkout-account-note {
        flex-direction: column;
    }
}
