/*
 * IBAN zu BIC Rechner Styles
 * Version: 1.0.0
 * Author: Dein Name
 */

/* Basis-Container */
.iban-bic-rechner-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 650px; /* GEÄNDERT: Breiterer Container */
    margin: 30px auto; /* Zentrierung */
    color: #333;
    box-sizing: border-box;
}

.iban-bic-rechner-body {
    padding: 0;
}

/* Eingabefeld Gruppe */
.iban-bic-rechner-input-group {
    margin-bottom: 25px;
}

.iban-bic-rechner-input-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.iban-bic-rechner-input-wrapper {
    position: relative;
    display: flex; /* Für Inputfeld und Button nebeneinander */
    gap: 10px;
}

.iban-bic-rechner-input-wrapper input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.iban-bic-rechner-input-wrapper input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Button "Jetzt BIC ermitteln" */
.iban-bic-rechner-button {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.iban-bic-rechner-button:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.iban-bic-rechner-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Ergebnisbereich (initial ausgeblendet) */
.iban-bic-rechner-results {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.iban-bic-rechner-results.show {
    opacity: 1;
}

.iban-bic-rechner-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.iban-bic-rechner-result-item:last-child {
    border-bottom: none;
}

.iban-bic-rechner-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.iban-bic-rechner-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
    text-align: right;
    margin-right: 10px;
}

/* Kopier-Button (wie bei MwSt-Rechner) */
.iban-bic-rechner-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iban-bic-rechner-copy:hover {
    color: #007bff;
    background-color: #e6f2ff;
}

.iban-bic-rechner-copy::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
    display: inline-block;
    vertical-align: middle;
    transition: stroke 0.2s ease;
}

.iban-bic-rechner-copy:hover::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
}


/* Fehlermeldungen (wie bei MwSt-Rechner) */
.iban-bic-rechner-error-message {
    color: #dc3545; /* Rot für Fehler */
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .iban-bic-rechner-container {
        padding: 20px;
        margin: 15px auto;
        border-radius: 8px;
    }

    .iban-bic-rechner-input-wrapper {
        flex-direction: column; /* Input und Button untereinander auf kleinen Bildschirmen */
        gap: 15px;
    }

    .iban-bic-rechner-button {
        width: 100%; /* Button volle Breite */
    }
    
    .iban-bic-rechner-value {
        font-size: 18px;
    }
}