body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 90%;
    box-sizing: border-box;
    margin: auto;
}




h1 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
    color: #0077cc;
}

h1 span.h1-add {
    font-size: 50%;
    margin-left: 10px;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
    color: #333;
    transition: border 0.2s;
}

input:focus {
    border-color: #0077cc;
    outline: none;
}

button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background: #0077cc;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #005fa3;
}

#result {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    word-break: break-word;
    color: #2e7d32;
}

input,
button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


input#useCustom {
    width: 20px;
    height: 20px;
}

/* Wrapper mit Ein-/Ausblendanimation */
.alias-wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.alias-wrapper.visible {
    max-height: 100px;
    /* reicht locker für 1 input */
    opacity: 1;
}

/* Stylisierte Checkbox */
.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 0.5px solid #bbb;
    border-radius: 4px;
    background-color: #fff;
    margin-right: 10px;
    transition: background-color 0.2s;
    position: relative;
}

.checkbox-wrapper input:checked+.checkmark {
    background-color: #4caf50;
    border: 0.5px solid #bbbbbb00;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked+.checkmark::after {
    display: block;
}