#allgemeines { width: 100%; }

.grid4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.grid4 > div {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	gap: 0.1em;
	justify-content: center;
	align-items: center;
}

.grid4 input {
	width: 100%;
	box-sizing: border-box;
}

.grid4 span {
	white-space: nowrap;
}

/* Bei kleinen Bildschirmen: nur 2 Spalten */
@media (max-width: 900px) {
	.grid4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 500px) {
	.grid4 {
		grid-template-columns: repeat(1, 1fr);
	}
	#vorteilemodal > div, 
	#spellmodal > div, 
	#spellinfomodal > div, 
	#trickmodal > div, 
	#trickinfomodal > div, 
	#charManagerModal > div {
		width: 94% !important;
		height: 94% !important;
		margin-right: 1em;
	}
}


.black { color: black; }



section {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0,0,0,0.5);
	border-radius: 0.5em;
	margin-bottom: 0.5em;
	overflow: hidden;
}
section > div {
	padding: 0.3em;
}
section input { margin: 0; }
.toggleSection { cursor: pointer; }


.atitles {
	color: #58180D;
    font-family: Cinzel;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.5);
}
.atitles > div {
	display: inline-block;
}
.atitles > div.klappdiv {
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.atitles > div:first-child { 
    font-family: Cinzel;
	width: 100%;
}


#attribute {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.3em;
}
#attribute .attr {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.3em;
}
#attribute .attr_name { text-wrap: nowrap; }
#attribute .attr_basis input {
	width: 3em;
}

#nebenwerte, #short_nebenattribute {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5em;
}
#nebenwerte > div, #short_nebenattribute > div {
	text-wrap: nowrap;
	display: inline-block;
}
#nebenwerte input, #short_nebenattribute input {
	width: 4em;
	font-size: 0.7em;
}


#magic tr:nth-child(even), #waffen > div:nth-child(odd) {
	background-color: #ECC9AD;
}
#magic td {
	padding: 0.2em;
}


#fertigkeiten td { padding: 0.2em; }
.fert_basis input { width: 3em; }
#fertigkeiten th, #magic th { text-align: left; }
.fert_tal { font-size: 0.8em; }
#fertigkeiten .fcolor { background-color: #ECC9AD; }
.fcolorkategorie { background-color: rgba(255,255,255,0.6); }
.fcolorkategorie td { font-weight: bold; }
.fert_tal > div {
	display: inline-block;
	margin: 0 0.3em 0.3em 0;
}




.modale {
	top:0; left:0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	width: 100vw;
	height: 100vh;
	background-color: rgba(255,255,255,0.8);
	z-index: 100;
}
.modale > div {
	background-color: white;
	border: 3px solid black;
	border-radius: 1em;
	width: 80%;
	height: 80%;
	max-width: 1024px;
	padding: 1em;
	display: flex;
	flex-direction: column;
}
.modale > div > h3 { margin-top: 0; }

#charManagerModal button { cursor: pointer; }

#userModal {}
.userbtn { display: none; }
.userbtn i { margin-left: 0.4em; }

#userModal input, #userModal select, #userModal button {
	width: 100%;
	font-size: 1em;
	padding: 0.2em;
	margin: 0 0 0.3em 0;
}
#userModal > div {
	width: 260px;
	height: auto;
}
#usererror {
	font-weight: bold;
	color: red;
	margin: 0.3em 0 0.5em 0;
}
#success {
	font-weight: bold;
	color: darkgreen;
	margin: 0.3em 0 0.5em 0;
}
#passHinweis {
	font-size: 0.7em;
}


#ilarisDiceModal { display: none; }
#ilarisDiceModal > div {
	background-color: white;
	border: 3px solid black;
	border-radius: 1em;
	padding: 1em;
	width: auto;
	height: auto;
}
.idice {
	background-image: url(/modules/ilaris/w20y);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 60px;
	height: 60px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.idice > div {
	font-size: 1em;
	font-weight: bold;
	padding-top: 0.2em;
}
.diceb { background-image: url(/modules/ilaris/w20b); }
.dicey { background-image: url(/modules/ilaris/w20y); }
.diceg { background-image: url(/modules/ilaris/w20g); }
.rollDice { 
	cursor: pointer; 
	color: darkblue;
}

#allevorteile, #spells, #tricks, #charlists {
	position:relative;
	height:100%;
	overflow: auto;
}
.vorteilselect {
	display: inline-block;
	margin: 0 0.3em 0.3em 0;
	background-color: white;
	border: 1px solid grey;
	border-radius: 0.3em;
	padding: 0.3em;
	cursor: pointer;
}
.vorteilselect:hover, .vselected:hover {
	background-color: lightpink;
}
.vorteilselect input { 
	width: 3em; 
	margin:0; padding:0;
	font-size: 0.8em;
}
.vselected {
	background-color: lightgreen;
}
.vorteildel {
	cursor: pointer;
}
.vorteildel:hover { color: red; }
#addvorteil, #addfreie, #addwaffe, #addtrick { cursor: pointer; font-size: 0.8em; }


#vorteile > div {
	display: inline-block;
	border: 1px dotted rgba(0,0,0,0.5);
	padding: 0.2em 0.3em 0 0.3em;
	margin: 0 0.2em 0.2em 0;
}

.btnspellmodal, .btntrickmodal {
	font-size: 0.8em;
	cursor: pointer;
}

.spell, .trick {
	border: 1px dotted grey;
	padding: 0.5em;
	margin-top: 0.6em;
	border-radius: 0.3em;
}
.spellklapp, .trickklapp {
	float: right;
	cursor: pointer;
}
.spellklapp:hover, .trickklapp:hover { color: red; }

.spellbeschreibung, .trickbeschreibung {
	display: none;
}
.spellinfo, .trickinfo {
	display: inline-block;
	border: 1px dotted rgba(0,0,0,0.5);
	padding: 0.2em 0.3em 0 0.3em;
	margin: 0 0.2em 0.2em 0;
	cursor: pointer;
}
.spellinfo:hover, .trickinfo:hover {
	background-color: rgba(255,255,255,0.5);
}
#spellinfobeschreibung, #trickinfobeschreibung {
    position: relative;
    height: 100%;
    overflow: auto;
}

.modus {
	display: flex;
	justify-content: space-between;
	margin: 0 0 1em 0; 
}
.topline {
	font-family: Cinzel;
	display:none;
	align-items: center;
	gap:0.5em;
	color: #58180D;
	font-size: 1.8em;
	width:100%;
}
.topline img {
	max-height: 1.3em; 
	width: auto;
	display: inline-block;
}
.modusChange {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5em;
	width:100%;
}
.modusChange button {
	height: calc(2.1em + 2px);
	text-wrap: nowrap;
}

#waffen > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	padding: 0.3em;
}
#waffen > div > div { 
	text-wrap: nowrap;
}
#waffen input {
	width: 3em;
}
#waffen input[type=text] { width: 10em; }
.name {  }
.wuerfel {  }
.schb {  }
.rw {  }
.wm {  }
.lz {  }
.haerte {  }
.eigenschaften {  }
.be {  }
.kampfstil {  }




.charinfo, .charlimit, #freigabeinfo {
	font-size: 0.7em;
	font-weight: bold;
	color: grey;
}
.charlimit {
	color: red;
}
#mychars, #fremde, #freigaben {
	width: 100%;
}
.cDbBtn { 
	cursor: pointer;
}
.cDbBtn:hover {
	background-color: rgba(0, 255, 0, 0.5);
}
#mychars > tr:nth-child(odd), #fremde > tr:nth-child(odd), #freigaben > tr:nth-child(odd) {
    background-color: #ECC9AD;
}
.charDbName { width: 100%; }
#mychars td, #fremde td, #freigaben td { padding: 0.3em; }



.short {
	display: block;
}
.short > div { margin-top: 1em; }
#short_attribute > div {
	display: inline-block;
	margin: 0 0.3em 0.3em 0;
}
#short_fertigkeiten_not {
	margin-top: 0.3em;
}
#short_waffen > div {
	padding: 0.3em;
}
#short_waffen > div:nth-child(odd) {
    background-color: #ECC9AD;
}
#short_zaubertricks {
	font-size: 0.8em;
}





.upload {
	border: 1px solid lightgrey;
	background-color: white;
	padding: 0.3em;
	margin-top: 0.3em;	
}
.upload button {
	width: 100%;
}
#buttonvault {
	display: flex;
	margin-top: 0.5em;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.3em;
}
.btn { font-size: 1em; }
/*
#buttonvault button {
	padding: 0.3em 0.5em;
	font-size: 1em;
	cursor: pointer;
}
#buttonvault button:hover {
	background-color: #e5007d;
	color: white;
}
#buttonvault > * {
	margin-left: 0.3em;
}
*/