/* style.css Design für Backend */

@font-face {
	font-family: 'DM Sans';
	src: url('../fonts/DMSans-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('../fonts/DMSans-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('../fonts/DMSans-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('../fonts/DMSans-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'DM Sans';
	src: url('../fonts/DMSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f4f5f9;
	color: #1d3e5b;
    margin: 0;
    padding: 0;
    display: flex;
	flex-direction: column;
    align-items: center;
   justify-content: center;
    min-height: 100vh;
}

a{
    color: #1c5e9a;
}

/*.create-card{
	display: none;
}*/

/*.edit-fields{
	display: none;
}*/

.container{
    background: white;
    max-width: 360px;
    width: 90%;
    padding: 10px 2rem 20px;
	margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}	

h1, h2, h3, h4, h5{
	margin-bottom: 1rem;
    text-align: center;
	color: #1d3e5b;
}

h1{
    font-size: 1.5rem;
	text-transform: uppercase;
}

h2{
    font-size: 1.3rem;
}

h3{
    font-size: 1rem;
}

label{
	font-weight: bold;
    width: 100%;
    display: block;
    margin: 20px 0px 6px;
}

.two-labels label{
    margin: 6px 0px 6px;
}

input{
	padding: 0.5rem;
	width: 100%;
	margin-bottom: 1rem;
}

.feldsteuerung input{
	width: auto !important;
}

select{
	padding:0.5rem;
	width:100%;
	margin-top:1rem;
}


.feldsteuerung select{
	margin-top:0px !important;
}

.top-header h1{
	font-size: 1.8rem;
    text-transform: none;
    font-weight: 500;
    margin: 0px;
    color: #5b7c99;
}

.top-header p{
	font-size: 1.2rem;
    text-align: center;
    margin-top: -10px;
    font-weight: 400;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
    font-family: 'DM Sans', sans-serif;
	padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
	margin: 3px 0px
}
textarea {
    min-height: 110px;
	max-width: 100%;
	max-height: 250px;
}

.phone-input input[type="text"]:first-child{
	width: 17%;
}

.phone-input input[type="text"]:nth-child(2){
	width: 81%;
}

.superadmin-controls{
    max-width: calc(360px + 4rem);
    width: 90%;
}

/*
button{
    background-color: #1B5E99;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.55em 1em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, a.btn:hover {
    background-color: #c4cfe4;
}*/

.btn{
	background-color: #1b5e99;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1em;
    font-size: 0.9rem;
	line-height: 1rem;
	text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	width: 100%;
	margin-top: 10px; 
}

.btn:hover {
  background-color: #5B7C99;
}

.btn-blue{
	background-color: #d9dee8;
    color: #1b5e9a;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1em;
    font-size: 0.9rem;
	line-height: 1rem;
	text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	width: 100%;
	margin-top: 10px; 
}

.btn-blue:hover {
  background-color: #c4cfe4;
}

.btn-red{
	background-color: #f0d8d8;
    color: #ce3636;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1em;
    font-size: 0.9rem;
	line-height: 1rem;
	text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	width: 100%;
	margin-top: 10px; 
}

.btn-red:hover {
  background-color: #eac9c9;
}


.btn-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
	column-gap: 10px;
    max-width: calc(360px + 4rem);
    width: 90%;
	margin-bottom: 20px;
}

.custom-file-upload{
	background-color: #d9dee8;
    color: #1b5e9a;
    border: none;
    border-radius: 6px;
    padding: 0.55em 1em;
    font-size: 0.9rem;
	text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	width: 100%;
	margin-top: 16px;
}

.custom-file-upload:hover{
  background-color: #c4cfe4;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.btn-flex{
	display: flex;
	justify-content: space-between;
    align-items: center;
    column-gap: 10px;
}

/*
.btn-top a{
	padding: 0.5rem;
    background-color: #1B5E99;
    color: white;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 44%;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 6px;
}

.btn-top a:hover {
    background-color: #5B7C99;
}*/

p.success {
    background: #dff0d8;
    color: #3c763d;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
	text-align: center;
}

p.success a{
    padding: 0.75rem;
    background-color: #1B5E99;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
	display: block;
    width: fit-content;
    text-decoration: none;
    margin: 15px auto 0px;
}

p.success a:hover{
    background-color: #5B7C99;
}

.form-errors p{
	background: #f2dede;
    color: #a94442 !important;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
	text-align: center;
}

p.error {
    background: #f2dede;
    color: #a94442;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
	text-align: center;
}


hr{
	border-top: 1px solid #ccc;
	margin-top: 30px;
	width: 100% !important;
}

.image-upload-preview {
	margin-bottom: 1rem;
}

.image-upload-preview img {
	max-width: 120px;
	height: auto;
	display: block;
	margin-bottom: 0.5rem;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	background: #f6f6f6;
}

#cropperModal, .cropper-content, .cropper-container, .cropper-wrap-box, .cropper-canvas, .cropper-drag-box, .cropper-crop .cropper-modal, .cropper-crop-box{
	margin-top: 0px !important;
}

.cropper-container {
    max-width: 100%;
}

#cropperModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.cropper-content{
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    max-width: 80vw;
}


.footer{
	text-align: center;
	font-size: 0.9rem;
    margin-bottom: 10px;
}

@media (max-width: 500px) {
    body {
    	min-height: 90vh;
	}
	.container{
        padding: 1.5rem;
		width: 80%;
    }
	
	.btn-top{
    width: 90%;
	}

    h1, h2 {
        font-size: 1.3rem;
    }
	
	.top-header h1{
	font-size: 2rem;
	}

    button {
        font-size: 0.95rem;
    }
}