/* style.css */
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #f0f2f5; margin: 0; padding: 0; }
.container {
    max-width: 850px; margin: 30px auto; background: white; padding: 40px;
    border: 1px solid #ddd; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding-bottom: 200px; /* Platz für Footer + Sticky Price Bar */
}

header { border-bottom: 2px solid #0056b3; padding-bottom: 15px; margin-bottom: 30px; display: flex; justify-content: space-between; }
.header-left h1 { margin: 0; font-size: 22px; color: #0056b3; text-transform: uppercase; }
.slogan { color: #d4ac0d; font-weight: bold; font-style: italic; }

section { margin-bottom: 30px; padding: 20px; border: 1px solid #eee; border-radius: 4px; background: #fafafa; }
h2 { font-size: 17px; margin-top: 0; border-bottom: 1px solid #ddd; padding-bottom: 8px; text-transform: uppercase; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    min-width: 0;
}
label { font-weight: 600; font-size: 13px; margin-bottom: 5px; color: #555; }
label[for] { cursor: pointer; }
input,
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 86, 179, 0.2);
    outline-offset: 1px;
    border-color: #0056b3;
}

.option-fieldset {
    margin: 0 0 20px 0;
    padding: 15px;
    border: 2px solid #0056b3;
    border-radius: 8px;
    background: #f9f9f9;
    min-width: 0;
}
.option-fieldset legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0056b3;
}
.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.checkbox-group:last-child {
    margin-bottom: 0;
}
.checkbox-group label {
    margin-bottom: 0;
    flex: 1;
    line-height: 1.45;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    margin: 2px 0 0 0;
    padding: 0;
    flex: 0 0 20px;
}
.checkbox-group input:disabled + label {
    opacity: 0.7;
}
.payment-grid {
    align-items: start;
}

.sticky-price {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #2c3e50; color: white; padding: 18px;
    text-align: center; font-weight: bold; font-size: 20px; z-index: 1000;
}
.sticky-price small {
    font-weight: 600;
}

.btn-submit { background: #27ae60; color: white; padding: 16px; border: none; width: 100%; font-size: 19px; font-weight: bold; cursor: pointer; border-radius: 5px; margin-top: 25px; }

.container-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 13px; }
.container-footer a { color: #0056b3; text-decoration: none; font-weight: bold; margin: 0 10px; }

.full-width {
    grid-column: span 2;
}

@media (max-width: 650px) {
    .container {
        margin: 0;
        padding: 16px 12px 140px;
        border: none;
        box-shadow: none;
    }

    .grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .full-width {
        grid-column: span 1;
    }

    header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    section {
        margin-bottom: 18px;
        padding: 14px;
    }

    h2 {
        font-size: 16px;
        padding-bottom: 6px;
        margin-bottom: 12px;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    input,
    select {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .option-fieldset {
        padding: 12px;
        margin-bottom: 16px;
    }

    .checkbox-group {
        gap: 10px;
        padding: 10px 12px;
        margin-bottom: 8px;
        border: 1px solid #e4e7eb;
        border-radius: 8px;
        background: #fff;
    }

    .checkbox-group input[type="checkbox"],
    .checkbox-group input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        max-width: 22px;
        flex-basis: 22px;
        margin-top: 1px;
    }

    .sticky-price {
        padding: 12px 14px;
        font-size: 17px;
        line-height: 1.3;
    }

    .sticky-price small {
        display: block;
        margin-top: 4px;
        font-size: 0.78em;
    }

    .btn-submit {
        font-size: 18px;
        padding: 15px;
    }

    .container-footer {
        margin-top: 24px;
        padding-top: 16px;
    }
}

.check-wrap {
    max-width: 600px;
    margin: 0 auto 10px auto;
}

.check-box {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.check-box-blue {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
}

.check-box-yellow {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 2px 0 0 0;
    padding: 0;
    flex: 0 0 18px;
}

.check-row span {
    display: block;
    flex: 1;
    line-height: 1.5;
    font-weight: 400;
    color: inherit;
}

@media (max-width: 640px) {
    .check-wrap,
    .check-box {
        max-width: 100%;
    }

    .check-wrap {
        padding-left: 13px;
    }

    .check-box {
        padding: 12px;
    }

    .check-row {
        gap: 8px;
    }

    .check-row input[type="checkbox"] {
        width: 17px;
        height: 17px;
        min-width: 17px;
        max-width: 17px;
        margin-top: 1px;
    }

    .check-row span {
        line-height: 1.45;
    }
}

/* Modal / Rechtstexte / Preisliste */
#agbModal,
.modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#modalContent {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

#modalContent * {
    box-sizing: border-box;
    max-width: 100%;
}

#modalContent .legal-content {
    width: 100%;
    max-width: 100%;
}

#modalContent a,
#modalContent p,
#modalContent div,
#modalContent span,
#modalContent li,
#modalContent h1,
#modalContent h2,
#modalContent h3,
#modalContent h4,
#modalContent h5,
#modalContent h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#modalContent img,
#modalContent iframe,
#modalContent video,
#modalContent canvas,
#modalContent svg {
    max-width: 100%;
    height: auto;
}

#modalContent table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

#modalContent pre,
#modalContent code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#modalContent .modal-preisliste {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.5;
}

#modalContent .modal-preisliste h3 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 6px;
    font-size: 1.5em;
}

#modalContent .modal-preisliste .stand {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.95em;
    margin: 0 0 18px;
}

#modalContent .modal-preisliste .pl-rabatt {
    margin-bottom: 18px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 8px;
    color: #1b5e20;
    text-align: center;
    font-size: 1.02em;
}

#modalContent .modal-preisliste .pl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

#modalContent .modal-preisliste .pl-card {
    background: #fff;
    border: 1px solid #eee;
    border-top: 5px solid #3498db;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

#modalContent .modal-preisliste .pl-card.premium {
    border-top-color: #f1c40f;
}

#modalContent .modal-preisliste .pl-card h4 {
    margin: 0 0 12px;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

#modalContent .modal-preisliste .pl-price {
    font-size: 1.5em;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 15px;
}

#modalContent .modal-preisliste .pl-price small {
    font-size: 0.6em;
    color: #7f8c8d;
    font-weight: normal;
}

#modalContent .modal-preisliste .pl-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95em;
}

#modalContent .modal-preisliste .pl-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

#modalContent .modal-preisliste .pl-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

#modalContent .modal-preisliste .pl-sonder {
    margin-top: 18px;
    background: #2c3e50;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95em;
}

@media (min-width: 650px) {
    #modalContent .modal-preisliste .pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    #modalContent {
        font-size: 15px;
        line-height: 1.55;
    }

    #modalContent .modal-preisliste h3 {
        font-size: 1.25em;
    }

    #modalContent .modal-preisliste .pl-rabatt,
    #modalContent .modal-preisliste .pl-sonder,
    #modalContent .modal-preisliste .pl-card {
        padding: 14px;
    }

    #modalContent .modal-preisliste .pl-price {
        font-size: 1.35em;
    }

    #modalContent .modal-preisliste .pl-features li {
        padding-left: 22px;
    }
}
