/* Existing Legacy Styles */
.smartbox {
    padding: 5px;
    font-size: 17px;
    border-width: 1px;
    border-color: #CCCCCC;
    background-color: #f6ba61;
    color: #000000;
    border-style: outset;
    border-radius: 0px;
    box-shadow: 4px 1px 5px rgba(66, 66, 66, .75);
    text-shadow: 0px 0px 0px rgba(66, 66, 66, .75);
    width: 60%;
}

.haengend {
    padding-left: 2em;
}

.fancy-input {
    margin: 1em 0 1em 0;
    position: relative;
}

/* Updated .fancy-input label for better look (merged from hfa-peff) */
.fancy-input label {
    position: absolute;
    color: #666;
    background: #fff;
    padding: 0 .5em;
    font-size: .8em;
    top: -.6em;
    left: .5em;
}

.fancy-input label.like-placeholder {
    font-size: 1em;
    top: .5em;
    left: .5em;
}

.fancy-input input {
    padding: .5em;
    border: 1px solid #ddd;
    /* Added for standard look */
    border-radius: 4px;
    /* Added for standard look */
}

.fancy-input result {
    background: #ffa494;
    padding: .5em;
}

.fancy-input halfsize {
    padding: .5em;
}

.lazycell {
    display: inline-block;
}

/* Merged HFA-PEFF Specifics */
.fancy-box {
    border: 1px solid #ddd;
    /* Standardized color */
    padding: 15px;
    /* Standardized padding */
    width: 100%;
    /* Changed from 50% to full width for mobile friendliness/standard */
    margin-bottom: 20px;
    border-radius: 4px;
    /* Added radius */
    background-color: #fff;
    position: relative;
    /* For label positioning */
}

.lazy-box-label {
    position: absolute;
    /* Changed to absolute to sit on border like legend */
    top: -10px;
    left: 10px;
    background-color: white;
    padding: 0 5px;
    font-size: 0.9em;
    color: #34495e;
    /* Standardized color */
    font-weight: bold;
}

.impressum {
    font-size: small;
    font-family: sans-serif;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Button Styles - Map both generic button and .myButton */
button,
.myButton,
.action-button {
    box-shadow: none;
    /* Reset legacy shadows if preferred, or keep them. Let's modernize. */
    background-color: #3498db;
    background-image: none;
    /* Remove gradient */
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    margin-top: 20px;
    display: block;
    font-weight: normal;
    font-family: Arial, sans-serif;
    text-shadow: none;
}

button:hover,
.myButton:hover,
.action-button:hover {
    background-color: #2980b9;
    background-image: none;
}

.floating-icon {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#flip-container {
    width: 100%;
    /* Standardized */
    max-width: 800px;
    perspective: 600px;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
}

#flip-image {
    width: 100%;
    height: auto;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    display: block;
}

#flip-container.flipping #flip-image {
    transform: rotateY(180deg);
    transition: transform 0.8s;
}

@media print {

    .no-print,
    .no-print * {
        display: none !important;
    }
}

/* NEW STANDARDIZED CORE STYLES */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    font-size: 1.2em;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

/* Standard inputs */
select,
input[type="number"],
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Result Box */
.result,
#result {
    /* Map #result ID often used */
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f6f3;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #d4efdf;
    font-size: 1.1em;
}

.score {
    font-size: 2em;
    font-weight: bold;
    color: #27ae60;
    display: block;
    margin-top: 5px;
}

.score-detail {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 10px;
}

.header-info,
.description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Link fixes */
a {
    color: #3498db;
    text-decoration: none;
}


/* Standardized Flex Row Layout */
.input-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    align-items: flex-start;
}

.input-item {
    flex: 1;
    min-width: 150px;
}

/* Restored Utility Classes */
.disabled {
    color: #999;
}

.infobox {
    padding: 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    background-color: #fffc00;
    color: #000;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

/* Ensure fancy-input behaves well in flex */
.fancy-input {
    margin: 1em 0;

    width: 100%;
}