/* Hauptcontainer */
.profilneu {
  margin: auto;
  width: 1000px;
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
}

/* Header-Bereich */
.profilneu_head {
  position: relative; /* Ermöglicht das Verankern des Gruppenbildes */
  padding: 15px;
  background: var(--designbg);
}

.profilneu_name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: var(--color4);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Grimoire', serif;
}

.profilneu_headnameu {
  font-size: 14px;
  text-align: center;
  font-style: italic;
  margin-top: 5px;
}

/* Positionierung des Gruppenbildes im Header rechts oben */
.profilneu_gruppe {
  position: absolute;
  top: 5px;
  right: 15px;
  z-index: 1;
}

.profilneu_gruppebild {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid #db715b;
  background: #db715b;
  object-fit: cover;
}

/* Flexbox Spalten-Layout */
.profilneu_flex {
  display: flex;
  justify-content: space-evenly;
  margin-top: 15px;
}

/* Spalte 1 (Charakter-Info & Away) */
.profilneu_row1 {
  width: 340px;
  margin-right: 5px;
}

.profilneu_character {
  padding: 0;
}

.profilneu_charactertitle {
  background-color: #414c46;
  height: 40px;
  font-size: 24px;
  text-transform: uppercase;
  font-family: 'Grimoire', serif;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.profilneu_charactercontent {
  background: var(--designbg);
  height: 250px;
  text-align: justify;
  overflow: auto;
  padding: 20px;
}

.profilneu_row1link {
  background-color: #414c46;
  height: 38px;
  font-size: 22px;
  font-family: 'Grimoire', serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.profilneu_row1on {
  font-size: 12px;
  font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif;
}

.profilneu_away {
  width: 179%;
  box-sizing: border-box;
  background: var(--designbg);
  margin-top: 10px;
  height: 110px;
  overflow: auto;
}

.profilneu_away::-webkit-scrollbar {
    width: 6px;
}

.profilneu_away::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.profilneu_away::-webkit-scrollbar-thumb {
    background: #db715b;
    border-radius: 10px;
}

/* Spalte 2 (Avatar & Icon) */
.profilneu_row2 {
  width: 250px;
  margin-right: 5px;
	height: 400px;
}

.profilneu_avatar {
  margin-top: 10px;
  text-align: center;
}

.profilneu_icon img {
	  margin-top: 10px;
    width: 100%;
    max-width: 250px;
    height: 120px;
    object-fit: cover;
}

/* Spalte 3 (Statistiken) */
.profilneu_row3 {
  width: 330px;
  margin-left: 5px;
}

.profilneu_stattitle {
  background-color: #414c46;
  height: 40px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Grimoire', serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.profilneu_stat-content {
  background: var(--designbg);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 300px;
  overflow: auto;
  padding: 10px 20px;
  box-sizing: border-box;
}

.profilneu_stat-tab {
  background-color: #414c46;
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 2px auto;
}

.profilneu_accbox {
  height: 150px;
  box-sizing: border-box;
  overflow: auto;
  margin-top: 10px;
}

/* TAB SYSTEME (Gemeinsame Radio-Korrektur für Barrierefreiheit) */
.tabscharacter input[type=radio],
.MB_profilneutab input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Charakter Tabs (Ausgabe Infos - Look - Living) */
.tabscharacter {
  width: 100%;
  list-style: none;
  position: relative;
  height: 330px;
  margin-top: 10px;
  padding: 0;
  background: var(--designbg);
  box-sizing: border-box;
}

.tabscharacter li {
  float: left;
  width: 33.33%; /* Teilt die 3 Tabs gleichmäßig auf */
}

.tabscharacter label {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 22px;
  font-family: 'Grimoire', serif;
  letter-spacing: 2px;
  background: #333; /* Optionale Abhebung des inaktiven Tabs */
}

.tabscharacter label:hover {
  color: #db715b;
}

.tabscharacter [type=radio]:checked ~ label {
  background: var(--designbg);
  color: #db715b;
}

.tabscharacter [type=radio]:checked ~ label ~ .tab-content-char {
  display: block;
}

.tab-content-char {
  box-sizing: border-box;
  z-index: 2;
  display: none;
  text-align: justify;
  font-size: 11px;
  width: 100%;
  height: 290px;
  overflow: auto;
  position: absolute;
  left: 0;
  top: 40px;
  padding: 20px;
}

/* Große untere Profil-Tabs (Szenen - Relations - Gesuche - Awards) */

.MB_profilneutab {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    box-sizing: border-box;
}

.MB_profilneutab label {
    flex: 1;
    min-width: 150px;
    padding: 8px 10px;
    margin: 0 5px 0 0;
    text-align: center;
    cursor: pointer;
    background: #414c46;
    color: #d5dcd5;
    font-size: 26px;
    font-family: var(--headerfont);
    
    /* Optimiert: 'background' statt 'background-color' */
    transition: background 0.3s, color 0.3s; 
}

/* Last tab */
.MB_profilneutab label:last-of-type {
    margin-right: 0;
}

/* Hover */
.MB_profilneutab label:hover {
    background: #db715b;
}

/* Active tab (Jetzt inklusive Tab 4!) */
#profneutab1:checked ~ label[for="profneutab1"],
#profneutab2:checked ~ label[for="profneutab2"],
#profneutab3:checked ~ label[for="profneutab3"],
#profneutab4:checked ~ label[for="profneutab4"] {
    background: #db715b;
}

/* Panel container */
.MB_profilneutab-panels {
    width: 100%;
    position: relative;
	background: #2b2b2b;
}

/* Hide all panels */
.MB_profilneutab-content {
    display: none;
    padding: 20px 15px;
    animation: fadeIn 0.4s ease;
}

/* Unterdrückt ungewollte Zeilenumbrüche aus Foren-Systemen/CMS */
.MB_profilneutab-content > br:first-child,
.MB_profilneutab-content + br {
    display: none;
}

/* Show active panel */
#profneutab1:checked ~ .MB_profilneutab-panels .panel1,
#profneutab2:checked ~ .MB_profilneutab-panels .panel2,
#profneutab3:checked ~ .MB_profilneutab-panels .panel3,
#profneutab4:checked ~ .MB_profilneutab-panels .panel4 {
    display: block;
}

/* Simple fade animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}