/* === ANGEBOT ABR SPEZIFISCHE STYLES === */

/* Email Section */
.email-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--grau-hell);
    border-radius: 8px;
}

.email-input {
    flex: 0 0 400px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
}

.email-input:focus {
    outline: none;
    border-color: var(--gelb-warm);
}

/* Control Section */
.control-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.control-group h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--anthrazit);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gelb-warm);
    padding-bottom: 5px;
}

.control-group-wide {
    grid-column: span 4;
}

/* Radio & Checkbox Labels */
.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Calculation Rows */
.calculation-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--grau-hell);
    border-radius: 4px;
}

.calculation-row .checkbox-label {
    flex: 0 0 180px;
    margin-bottom: 0;
}

.calc-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.calc-inputs label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}

.calc-inputs input[type="number"],
.calc-inputs input[type="text"] {
    width: 100px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
}

.calc-result {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--anthrazit);
    margin-left: auto;
}

.calc-result strong {
    color: var(--gelb-warm);
    font-size: 1.3rem;
}

/* Bandname Select */
.bandname-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

.bandname-select:focus {
    outline: none;
    border-color: var(--gelb-warm);
}

/* === ANGEBOTSVORLAGE (Brief-Design) === */
.angebot-vorlage {
    max-width: 21cm;
    margin: 40px auto;
    padding: 2.5cm 2.5cm 2cm 2.5cm;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 29.7cm;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    line-height: 1.5;
}

/* Logo */
.vorlage-logo {
    text-align: center;
    margin-bottom: 25px;
}

.vorlage-logo img {
    max-width: 180px;
    height: auto;
}

/* Briefkopf */
.briefkopf {
    margin-bottom: 40px;
}

.briefkopf-absender {
    font-size: 8pt;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 3px;
    border-bottom: 1px solid #ddd;
    max-width: 50%;
}

.briefkopf-empfaenger {
    margin-top: 20px;
}

.empfaenger-label {
    font-size: 10pt;
    color: #666;
    margin-bottom: 5px;
}

.empfaenger-input {
    display: block;
    width: 100%;
    max-width: 400px;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    background-color: transparent;
}

.empfaenger-input:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Datum (rechtsbündig) */
.datum-zeile {
    text-align: right;
    margin-bottom: 30px;
}

.datum-input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    background-color: transparent;
    text-align: right;
}

.datum-input:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Betreff */
.betreff-block {
    margin-bottom: 30px;
}

.betreff {
    font-family: 'Oswald', sans-serif;
    font-size: 13pt;
    font-weight: 500;
    color: var(--gelb-warm);
    line-height: 1.6;
}

.betreff strong {
    color: var(--anthrazit);
}

/* Anrede Block */
.anrede-block {
    margin-bottom: 20px;
}

.anrede-input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    background-color: transparent;
    min-width: 250px;
}

.anrede-input:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Einleitung */
.einleitung {
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Inline Inputs */
.inline-input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    background-color: transparent;
    min-width: 200px;
}

.inline-input-small {
    min-width: 150px;
}

.inline-input-date {
    min-width: 130px;
}

.inline-input-tiny {
    min-width: 40px;
    width: 40px;
    text-align: center;
}

.inline-input:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Angebote Container */
#angeboteContainer {
    margin: 30px 0;
}

/* Angebot Block */
.angebot-block {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-left: 4px solid var(--gelb-warm);
}

.angebot-block h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 12pt;
    font-weight: 600;
    color: var(--anthrazit);
    margin-bottom: 15px;
    text-decoration: underline;
}

/* Abschnitt innerhalb eines Angebotsblocks */
.angebot-section {
    margin-bottom: 14px;
}

.angebot-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    font-size: 11pt;
    margin-bottom: 4px;
}

.angebot-section-header .section-preis {
    font-weight: 600;
    color: var(--gelb-warm);
    font-size: 12pt;
    white-space: nowrap;
    margin-left: 10px;
}

.angebot-section-header input[type="number"] {
    width: 80px;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    font-weight: 600;
    color: var(--gelb-warm);
    background-color: transparent;
    text-align: right;
}

.angebot-section-header input[type="number"]:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

.angebot-section-body {
    font-size: 10.5pt;
    color: #444;
    padding-left: 0;
    line-height: 1.6;
}

.angebot-section-body .sub-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.angebot-section-body .sub-row .sub-preis {
    font-weight: 500;
    color: var(--gelb-warm);
    white-space: nowrap;
    margin-left: 10px;
}

.angebot-section-body .sub-row input[type="number"] {
    width: 70px;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 10.5pt;
    color: var(--gelb-warm);
    background-color: transparent;
    text-align: right;
}

.angebot-section-body .sub-row input[type="number"]:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

.angebot-section-body input[type="text"] {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 10.5pt;
    background-color: transparent;
    min-width: 180px;
}

.angebot-section-body input[type="text"]:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Optionale Abschnitte - Toggle */
.optional-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.optional-toggle input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--gelb-warm);
}

.angebot-section.optional-hidden .angebot-section-body {
    display: none;
}

.angebot-section.optional-hidden .angebot-section-header .section-preis {
    display: none;
}

.angebot-section.optional-hidden .angebot-section-header input[type="number"] {
    display: none;
}

.angebot-section.optional-hidden .angebot-section-header {
    opacity: 0.45;
}

/* Fahrtkosten Zeile */
.fahrtkosten-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    font-weight: 600;
    font-size: 11pt;
}

.fahrtkosten-row input[type="text"] {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
    font-style: italic;
    color: #555;
    background-color: transparent;
    text-align: right;
    min-width: 80px;
}

.fahrtkosten-row input[type="text"]:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

.angebot-divider {
    border: none;
    border-top: 1px solid #999;
    margin: 15px 0 10px 0;
}

.angebot-footer {
    font-size: 9pt;
    color: #666;
    font-style: italic;
}

/* Fußnoten */
.fussnoten-block {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 9.5pt;
    color: #444;
    line-height: 1.7;
}

.fussnote-zeile {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: flex-start;
}

.fussnote-zeile .fussnote-marker {
    flex: 0 0 30px;
    font-weight: 600;
    color: var(--anthrazit);
}

.fussnote-zeile .fussnote-text {
    flex: 1;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 2px 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 9.5pt;
    background-color: transparent;
    width: 100%;
}

.fussnote-zeile .fussnote-text:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Hinweis-Block */
.hinweis-block {
    margin: 15px 0;
    font-size: 9.5pt;
    color: #444;
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
}

.hinweis-block textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 9.5pt;
    background-color: transparent;
    resize: vertical;
    min-height: 60px;
}

.hinweis-block textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--gelb-warm);
    background-color: #fffef0;
}

/* Zusätzliche Informationen */
.zusatz-info {
    margin-top: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 11pt;
}

.zusatz-info h3 {
    font-size: 12pt;
    font-weight: 600;
    color: var(--anthrazit);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gelb-warm);
    padding-bottom: 5px;
}

.info-row {
    margin-bottom: 12px;
    line-height: 1.8;
}

.checkbox-inline,
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.checkbox-inline input,
.radio-inline input {
    width: 16px;
    height: 16px;
}

.radio-block {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-block input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.schlusssatz-block {
    margin-top: 20px;
}

.gruss {
    margin-top: 30px;
    line-height: 1.6;
}

/* Footer */
.vorlage-footer-divider {
    margin-top: 40px;
    margin-bottom: 15px;
    border-top: 2px solid var(--gelb-warm);
}

.vorlage-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 8pt;
    line-height: 1.4;
    color: #555;
}

.footer-col strong {
    display: block;
    margin-bottom: 3px;
    color: var(--anthrazit);
    font-size: 9pt;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin: 40px 0;
    clear: both;
}

.btn-large {
    padding: 15px 50px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .control-section {
        grid-template-columns: 1fr;
    }
    .control-group-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .angebot-vorlage {
        padding: 1.5cm 1cm;
    }
    .calculation-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-inputs {
        flex-direction: column;
        width: 100%;
    }
    .vorlage-footer {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .briefkopf-absender {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .page-title,
    .email-section,
    .control-section,
    .submit-section {
        display: none !important;
    }

    .angebot-vorlage {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 2.5cm 2.5cm 2cm 2.5cm;
    }

    body {
        background-color: white;
    }

    .inline-input,
    .empfaenger-input,
    .datum-input,
    .anrede-input {
        border-bottom: none !important;
        background-color: transparent !important;
    }

    .angebot-section.optional-hidden {
        display: none !important;
    }

    .optional-toggle input[type="checkbox"] {
        display: none !important;
    }
}

/* Layout Fix */
.content-container {
    display: block !important;
    width: 100% !important;
}

.angebot-vorlage {
    display: block !important;
    float: none !important;
    width: 21cm !important;
    max-width: 100% !important;
}

.submit-section {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    text-align: center !important;
    margin: 40px auto !important;
}
