/* ==========================================================================
   Turfsport – Mein Profil
   Eigenständiger Benutzerbereich.
   ========================================================================== */

.portal-userprofile-main{min-width:0}

.portal-userprofile-hero{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
  padding:24px 26px;
  border:1px solid #d8e2dc;
  border-radius:15px;
  background:linear-gradient(135deg,#fff,#f5faf7 72%,#fbf4e6);
  box-shadow:0 8px 22px rgba(20,58,44,.04);
}
.portal-userprofile-hero__avatar,
.portal-userprofile-avatarcard__preview{
  display:flex;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(145deg,#1c684b,#0f4f38);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
}
.portal-userprofile-hero__avatar{
  width:84px;
  height:84px;
  flex:0 0 84px;
  box-shadow:0 5px 16px rgba(22,88,63,.16);
}
.portal-userprofile-hero__avatar img,
.portal-userprofile-avatarcard__preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.portal-userprofile-hero__avatar span{font-size:26px}
.portal-userprofile-hero h1{
  margin:4px 0 5px;
  color:#154c39;
  font-size:30px;
  line-height:1.1;
}
.portal-userprofile-hero p:last-child{
  margin:0;
  color:#68766f;
  font-size:12px;
}

.portal-userprofile-message{
  margin-bottom:14px;
  padding:11px 13px;
  border-radius:9px;
  font-size:11.5px;
  font-weight:800;
}
.portal-userprofile-message.is-success{
  border:1px solid #b8d9c7;
  background:#edf7f1;
  color:#155c43;
}
.portal-userprofile-message.is-error{
  border:1px solid #e1b9b3;
  background:#fff2f0;
  color:#8a332c;
}

.portal-userprofile-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);
  gap:14px;
}
.portal-userprofile-card{
  padding:20px;
  border:1px solid #d8e2dc;
  border-radius:13px;
  background:#fff;
  box-shadow:0 7px 20px rgba(20,58,44,.035);
}
.portal-userprofile-card header{
  margin-bottom:15px;
}
.portal-userprofile-card h2{
  margin:3px 0 0;
  color:#174e3a;
  font-size:20px;
}
.portal-userprofile-card header>p:last-child{
  margin:6px 0 0;
  color:#68766f;
  font-size:11px;
  line-height:1.5;
}

.portal-userprofile-data{
  margin:0;
  border-top:1px solid #e1e8e4;
}
.portal-userprofile-data>div{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:15px;
  align-items:center;
  min-height:48px;
  border-bottom:1px solid #e1e8e4;
}
.portal-userprofile-data dt{
  color:#6c7972;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
}
.portal-userprofile-data dd{
  margin:0;
  color:#243a31;
  font-size:12.5px;
  font-weight:800;
}
.portal-userprofile-status{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#e6f2eb;
  color:#176044;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}

.portal-userprofile-avatarcard__preview{
  width:118px;
  height:118px;
  margin:2px auto 18px;
  box-shadow:0 5px 16px rgba(22,88,63,.14);
}
.portal-userprofile-avatarcard__preview span{font-size:34px}

.portal-userprofile-upload label{
  display:block;
}
.portal-userprofile-upload label>span{
  display:block;
  margin-bottom:6px;
  color:#365a4a;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-userprofile-upload input[type="file"]{
  display:block;
  width:100%;
  padding:9px;
  border:1px solid #d8e2dc;
  border-radius:9px;
  background:#fafcfb;
  color:#4f6259;
  font-size:10.5px;
}
.portal-userprofile-upload small{
  display:block;
  margin:7px 0 10px;
  color:#78847e;
  font-size:9.5px;
  line-height:1.45;
}
.portal-userprofile-upload button,
.portal-userprofile-delete button{
  min-height:34px;
  padding:7px 13px;
  border-radius:8px;
  font:inherit;
  font-size:10.5px;
  font-weight:850;
  cursor:pointer;
}
.portal-userprofile-upload button{
  border:1px solid #78a68e;
  background:linear-gradient(180deg,#75a88e,#62977d);
  color:#fff;
}
.portal-userprofile-delete{
  margin-top:8px;
}
.portal-userprofile-delete button{
  border:1px solid #dfc9c4;
  background:#fff7f5;
  color:#8a493f;
}

.portal-userprofile-teaser{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:14px;
  padding:17px 19px;
  border:1px solid #d8e2dc;
  border-radius:12px;
  background:#fff;
}
.portal-userprofile-teaser>div{
  display:flex;
  align-items:center;
  gap:12px;
}
.portal-userprofile-teaser__icon{
  display:inline-flex;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#fff5e1;
  color:#ae771a;
}
.portal-userprofile-teaser__icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.portal-userprofile-teaser strong{
  display:block;
  color:#174e3a;
  font-size:13px;
}
.portal-userprofile-teaser p{
  margin:3px 0 0;
  color:#6b7871;
  font-size:10.5px;
}
.portal-userprofile-teaser>a{
  color:#176247;
  font-size:10.5px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}

/* rechte Profilnavigation */
.portal-userprofile-side{
  overflow:hidden;
  border:1px solid #d8e2dc;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 20px rgba(25,62,48,.05);
}
.portal-userprofile-side__title{
  margin:0;
  padding:10px 12px;
  background:#176247;
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-userprofile-side nav{
  display:flex;
  flex-direction:column;
  padding:8px;
}
.portal-userprofile-side nav a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:7px 8px;
  border-bottom:1px solid #e3e9e5;
  border-left:3px solid transparent;
  color:#174e3a;
  font-size:11.5px;
  font-weight:850;
  text-decoration:none;
}
.portal-userprofile-side nav a:last-child{border-bottom:0}
.portal-userprofile-side nav a.is-active{
  border-left-color:#176247;
  background:#e9f3ee;
}
.portal-userprofile-side__icon{
  display:inline-flex;
  width:23px;
  height:23px;
  flex:0 0 23px;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:#fbf5e8;
  color:#b47a18;
}
.portal-userprofile-side nav a.is-active .portal-userprofile-side__icon{
  background:#dfeee6;
  color:#176247;
}
.portal-userprofile-side__icon svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Accountbox: kleines Benutzerbild */
.portal-account-user__identity{
  display:flex;
  align-items:center;
  gap:9px;
}
.portal-account-user__identity>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
}
.portal-account-user__avatar{
  display:flex;
  width:35px;
  height:35px;
  flex:0 0 35px;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#155c43;
  color:#fff;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-account-user__avatar img,
img.portal-account-user__avatar{
  width:35px;
  height:35px;
  object-fit:cover;
}

.portal-userprofile-login{
  padding:25px;
  border:1px solid #d8e2dc;
  border-radius:13px;
  background:#fff;
}
.portal-userprofile-login h1{
  margin:4px 0 8px;
  color:#174e3a;
}
.portal-userprofile-login p{color:#66736d}
.portal-userprofile-login a{
  display:inline-block;
  margin:8px 14px 0 0;
  color:#176247;
  font-weight:900;
  text-decoration:none;
}

@media(max-width:900px){
  .portal-userprofile-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .portal-userprofile-hero{
    align-items:flex-start;
    padding:20px 18px;
  }
  .portal-userprofile-data>div{
    grid-template-columns:1fr;
    gap:3px;
    padding:10px 0;
  }
  .portal-userprofile-teaser{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* ==========================================================================
   V189 – persönliche Tippspiel-Statistik
   ========================================================================== */
.portal-userprofile-tipstats{
  margin-top:14px;
  overflow:hidden;
  border:1px solid #d8e2dc;
  border-radius:13px;
  background:#fff;
  box-shadow:0 7px 20px rgba(20,58,44,.035);
}
.portal-userprofile-tipstats__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px 16px;
  border-bottom:1px solid #e1e8e4;
}
.portal-userprofile-tipstats__head h2{
  margin:3px 0 4px;
  color:#174e3a;
  font-size:20px;
}
.portal-userprofile-tipstats__head p:last-child{
  margin:0;
  color:#68766f;
  font-size:10.5px;
}
.portal-userprofile-tipstats__head>a,
.portal-userprofile-tipstats__foot>a{
  color:#176247;
  font-size:10.5px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.portal-userprofile-tipstats__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.portal-userprofile-tipstats__grid>div{
  min-width:0;
  padding:17px 18px;
  border-right:1px solid #e4e9e6;
}
.portal-userprofile-tipstats__grid>div:last-child{
  border-right:0;
}
.portal-userprofile-tipstats__grid span{
  display:block;
  margin-bottom:5px;
  color:#6b7871;
  font-size:9.5px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-userprofile-tipstats__grid strong{
  display:block;
  color:#154f3a;
  font-size:25px;
  line-height:1;
}
.portal-userprofile-tipstats__grid small{
  display:block;
  margin-top:6px;
  color:#7b867f;
  font-size:9px;
  line-height:1.35;
}
.portal-userprofile-tipstats__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 18px;
  border-top:1px solid #e1e8e4;
  background:#fbfcfb;
  color:#66756d;
  font-size:9.8px;
}

@media(max-width:760px){
  .portal-userprofile-tipstats__head,
  .portal-userprofile-tipstats__foot{
    align-items:flex-start;
    flex-direction:column;
  }
  .portal-userprofile-tipstats__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .portal-userprofile-tipstats__grid>div:nth-child(2){
    border-right:0;
  }
  .portal-userprofile-tipstats__grid>div:nth-child(-n+2){
    border-bottom:1px solid #e4e9e6;
  }
}
