/* =========================================
   WIZARD OVERLAY
========================================= */

#wizard-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.65);
display:none;
align-items:center;
justify-content:center;
z-index:999;
}

#wizard-overlay.active{
display:flex;
}


/* =========================================
   CONTAINER
========================================= */

.wizard-container{
background:white;
width:680px;
max-width:92%;
border-radius:16px;
animation:wizardFadeIn .35s ease;
box-shadow:0 30px 80px rgba(0,0,0,0.3);

max-height:90vh;
display:flex;
flex-direction:column;
overflow:hidden;
}

@keyframes wizardFadeIn{
from{
transform:translateY(40px);
opacity:0;
}
to{
transform:translateY(0);
opacity:1;
}
}


/* =========================================
   HEADER
========================================= */

.wizard-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 24px;
background:#f7f8fb;
border-bottom:1px solid #e6e8ef;
}

.wizard-close{
background:none;
border:none;
font-size:22px;
cursor:pointer;
opacity:0.7;
flex-shrink:0;
}

.wizard-close:hover{
opacity:1;
}


/* =========================================
   STEP NAVIGATION
========================================= */

.wizard-progress-wrapper{
flex:1;
overflow:hidden;
}

.wizard-steps{
display:flex;
gap:20px;
font-size:13px;
color:#9aa1ab;
align-items:center;
}

.wizard-step-indicator{
display:flex;
align-items:center;
gap:6px;
position:relative;
padding-bottom:6px;
opacity:0.6;
transition:all .2s ease;
white-space:nowrap;
}

.wizard-step-indicator i{
width:16px;
height:16px;
opacity:0.7;
}


/* LABEL STANDARD AUSBLENDEN */

.wizard-step-indicator span{
display:none;
}


/* AKTIVER STEP */

.wizard-step-indicator.active{
color:#2b5f9e;
font-weight:600;
opacity:1;
}

.wizard-step-indicator.active i{
opacity:1;
}

/* LABEL NUR BEIM AKTIVEN STEP */

.wizard-step-indicator.active span{
display:inline;
}


/* PROGRESS LINE */

.wizard-step-indicator.active::after{
content:"";
position:absolute;
left:0;
right:0;
bottom:-6px;
height:3px;
background:#2b5f9e;
border-radius:3px;
}


/* =========================================
   BODY
========================================= */

.wizard-body{
flex:1;
overflow-y:auto;
padding:24px;
}

.wizard-step{
display:none;
}

.wizard-step.active{
display:block;
}


/* TITEL */

.wizard-step h3{
font-size:24px;
font-weight:600;
color:#2b5f9e;
margin:0 0 6px 0;
}


/* BESCHREIBUNG */

.wizard-info{
font-size:15px;
color:#666;
line-height:1.45;
margin:0 0 14px 0;
max-width:560px;
}


/* FEHLERMELDUNG */

.wizard-error{
color:#d93025;
font-size:14px;
display:none;
margin:0 0 6px 0;
}

.wizard-error.active{
display:block;
}


/* =========================================
   INPUTS
========================================= */

.wizard-step input{
box-sizing:border-box;
width:100%;
padding:14px;
margin-bottom:14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
}

.wizard-step input:focus{
outline:none;
border-color:#2b5f9e;
box-shadow:0 0 0 2px rgba(43,95,158,0.1);
}


/* =========================================
   OPTION BUTTONS
========================================= */

.wizard-options{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:18px;
}

.wizard-options button{
padding:10px 16px;
border:1px solid #ccc;
background:white;
border-radius:8px;
cursor:pointer;
transition:all .2s;
}

.wizard-options button:hover{
border-color:#2b5f9e;
color:#2b5f9e;
}

.wizard-options button.active{
background:#2b5f9e;
border-color:#2b5f9e;
color:white;
}


/* =========================================
   FOOTER
========================================= */

.wizard-footer{
display:flex;
align-items:center;
justify-content:space-between;
margin-top:24px;
gap:12px;
}

.wizard-footer .wizard-next,
.wizard-footer .wizard-submit{
margin-left:auto;
}

.wizard-back{
background:none;
border:none;
color:#777;
font-size:15px;
cursor:pointer;
}

.wizard-back:hover{
color:#2b5f9e;
}

.wizard-next,
.wizard-submit{
background:#ff7a00;
border:none;
color:white;
padding:14px 26px;
border-radius:10px;
cursor:pointer;
font-size:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
transition:all .2s;
}

.wizard-next:hover,
.wizard-submit:hover{
transform:translateY(-2px);
box-shadow:0 15px 35px rgba(0,0,0,0.25);
}

.wizard-submit:disabled{
background:#ccc;
cursor:not-allowed;
box-shadow:none;
}


/* =========================================
   LEGAL TEXT
========================================= */

.wizard-legal{
margin-top:16px;
font-size:13px;
color:#555;
line-height:1.5;
max-width:480px;
}

.wizard-legal label{
display:grid;
grid-template-columns:18px 1fr;
gap:10px;
align-items:start;
cursor:pointer;
}

.wizard-legal input{
margin-top:3px;
}

.wizard-legal a{
color:#2b5f9e;
text-decoration:none;
}

.wizard-legal a:hover{
text-decoration:underline;
}


/* =========================================
   UPLOAD BOX
========================================= */

.upload-box{
border:2px dashed #dcdcdc;
border-radius:10px;
padding:26px 20px;
text-align:center;
cursor:pointer;
margin-bottom:14px;
transition:all 0.2s ease;
position:relative;
background:#fafafa;
}

.upload-box:hover{
border-color:#1a73e8;
background:#f5f9ff;
}

.upload-box input{
position:absolute;
width:100%;
height:100%;
opacity:0;
cursor:pointer;
left:0;
top:0;
}

.upload-box i{
width:30px;
height:30px;
margin-bottom:10px;
color:#1a73e8;
}

.upload-box p{
margin:0;
font-weight:500;
}

.upload-box span{
display:block;
font-size:13px;
color:#777;
margin-top:5px;
}


/* =========================================
   IMAGE PREVIEW
========================================= */

#upload-preview{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:10px;
margin-bottom:10px;
}

.upload-thumb{
position:relative;
width:70px;
height:70px;
border-radius:8px;
overflow:hidden;
border:1px solid #ddd;
background:#fff;
}

.upload-thumb img{
width:100%;
height:100%;
object-fit:cover;
}

.upload-remove{
position:absolute;
top:3px;
right:3px;
background:#fff;
border-radius:50%;
border:1px solid #ccc;
font-size:11px;
width:18px;
height:18px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}

.upload-remove:hover{
background:#f44336;
color:#fff;
border-color:#f44336;
}


/* =========================================
   SELECT DROPDOWN
========================================= */

.wizard-select{
width:100%;
padding:14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
background:white;
appearance:none;

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

background-repeat:no-repeat;
background-position:right 14px center;

cursor:pointer;
margin-bottom:18px;
}

.wizard-select:focus{
outline:none;
border-color:#2b5f9e;
box-shadow:0 0 0 2px rgba(43,95,158,0.1);
}


/* =========================================
   CONTENT DIVIDER
========================================= */

.wizard-divider{
height:1px;
width:100%;
margin:26px 0 18px 0;
background:#f44336;
}

.wizard-divider-inline{
height:1px;
width:100%;
margin-top:24px;
margin-bottom:18px;

background:linear-gradient(
to right,
transparent,
rgba(104,104,104,0.35),
transparent
);
}


/* =========================================
   UNFALL HINWEIS
========================================= */

.wizard-hint{
margin-top:14px;
padding:12px 14px;
background:#f5f9ff;
border-left:4px solid #2b5f9e;
border-radius:6px;
font-size:14px;
line-height:1.5;
display:none;
}