/*
    design_v2.css zum Plugin "Solarkonfigurator v2"
    (Grüne Farbgebung und leichte Anpassungen für A/B-Test)
*/

/* Grundlayout */
#solarkonfigurator-body-v2 {
    font-family: Arial, sans-serif;
    background-color: #ffffff; 
    color: #333;
    margin: 0;
    padding: 20px;
}

#solarkonfigurator-body-v2 h1, 
#solarkonfigurator-body-v2 h2 {
    color: #333;
    margin-bottom: 10px;
}

#solarkonfigurator-body-v2 label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

#solarkonfigurator-body-v2 input[type=text],
#solarkonfigurator-body-v2 input[type=email],
#solarkonfigurator-body-v2 input[type=number],
#solarkonfigurator-body-v2 select,
#solarkonfigurator-body-v2 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #4CAF50; /* grün */
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#solarkonfigurator-body-v2 input[type=checkbox],
#solarkonfigurator-body-v2 input[type=radio] {
    margin-right: 5px;
    cursor: pointer;
}

#solarkonfigurator-body-v2 small {
    font-style: italic;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

/* ---------------- RANGE-SLIDER in Grün ---------------- */
#solarkonfigurator-body-v2 input[type=range] {
    -webkit-appearance: none; 
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    margin-bottom: 10px;
}

#solarkonfigurator-body-v2 input[type=range]:hover {
    opacity: 1;
}

/* WebKit - Daumen */
#solarkonfigurator-body-v2 input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #4CAF50; 
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* WebKit - Track */
#solarkonfigurator-body-v2 input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 5px;
    background: #eee;
}

/* Firefox - Daumen */
#solarkonfigurator-body-v2 input[type=range]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Firefox - Track */
#solarkonfigurator-body-v2 input[type=range]::-moz-range-track {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

/* Buttons */
#solarkonfigurator-body-v2 button,
#solarkonfigurator-body-v2 input[type=submit] {
    background-color: #4CAF50;
    color: #fff;
    padding: 14px 20px;
    margin: 2px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#solarkonfigurator-body-v2 button:hover,
#solarkonfigurator-body-v2 input[type=submit]:hover {
    background-color: #45a049;
}

#solarkonfigurator-body-v2 .btn-small {
    width: 300px;
    margin-top: 10px;
}

/* Spezielle Buttons im Button-Container */
#solarkonfigurator-body-v2 .button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#solarkonfigurator-body-v2 .btn-back {
    background-color: transparent;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    font-weight: normal;
}

#solarkonfigurator-body-v2 .btn-back:hover {
    background-color: #ddffdd;
    color: #000;
}

/* Progress-Bar */
#solarkonfigurator-body-v2 .progress-container {
    width: 100%;
    background-color: #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 24px;
    margin: 0 auto 20px auto;
}

#solarkonfigurator-body-v2 .progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

#solarkonfigurator-body-v2 .progress-bar1,
#solarkonfigurator-body-v2 .progress-bar2,
#solarkonfigurator-body-v2 .progress-bar3,
#solarkonfigurator-body-v2 .progress-bar4,
#solarkonfigurator-body-v2 .progress-bar5,
#solarkonfigurator-body-v2 .progress-bar6,
#solarkonfigurator-body-v2 .progress-bar7,
#solarkonfigurator-body-v2 .progress-bar8 {
    height: 100%;
    background-color: #4CAF50;
}

/* Grid für manche Formulare */
#solarkonfigurator-body-v2 .form-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#solarkonfigurator-body-v2 .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hilfs-Tooltip */
#solarkonfigurator-body-v2 .help-tooltip {
    display: inline-block;
    margin-left: 5px;
    background-color: #4CAF50;
    color: #fff;
    width: 18px;
    height: 18px;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    line-height: 18px;
    cursor: help;
}

/* Modulkarten */
#solarkonfigurator-body-v2 .module-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#solarkonfigurator-body-v2 .module-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    flex: 1;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease;
}

#solarkonfigurator-body-v2 .module-card:hover {
    border-color: #4CAF50;
}

#solarkonfigurator-body-v2 .module-card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

#solarkonfigurator-body-v2 .module-card ul {
    margin: 0;
    padding-left: 1.2em;
    list-style-type: disc;
}

#solarkonfigurator-body-v2 .module-card li {
    margin-bottom: 0.3em;
}

#solarkonfigurator-body-v2 .module-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.4);
    cursor: pointer;
}

/* Farbgebung der Module */
#solarkonfigurator-body-v2 .module-card.basismodul {
    background-color: #e6ffe6; /* leichtes Grün */
}

#solarkonfigurator-body-v2 .module-card.premiummodul {
    background-color: #fffbd7; /* leichtes Gelb */
}

#solarkonfigurator-body-v2 .module-card.allincludemodul {
    background-color: #e6f7ff; /* leichtes Blaugrün */
}

/* Visuelle Darstellung Dachneigung */
#solarkonfigurator-body-v2 .dachneigung-visual-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
#solarkonfigurator-body-v2 .dachneigung-visual {
    margin-top: 10px;
    max-width: 300px;
}
#solarkonfigurator-body-v2 .dachneigung-visual img {
    width: 100%;
    transition: transform 0.3s;
    transform-origin: bottom center;
}
