/* Google Icons einbinden */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    font-size: 18px;
    color: #333;
}

.wrapper {
    max-width: 700px;
    width: 95%;
    margin: auto;
    padding: 20px 10px;
}

.logo {
    max-width: 380px;
    width: 90%;
    margin-bottom: 30px;
}

/* --- EINHEITLICHES PILL-DESIGN (Eingabe & Ergebnis) --- */
.code-form,
.result-pill {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 550px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 50px;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

input[type="text"],
.pill-text {
    flex: 1;
    padding: 15px 25px;
    font-size: 18px;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
    font-weight: 500;
    text-align: left;
}

/* --- BUTTONS (BLAU -> ORANGE) --- */
button[type="submit"],
.main-btn,
.icon-btn {
    background: linear-gradient(180deg, #008ecc 0%, #006ea0 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"] {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 40px;
    text-transform: uppercase;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    margin-left: 5px;
}

button[type="submit"]:hover,
.icon-btn:hover {
    background: #F8b334;
    transform: scale(1.05);
}

.btn-success {
    background: #4CAF50 !important;
}

/* --- BOXEN (VERLOSUNG) --- */
.box {
    margin: 25px auto;
    padding: 25px;
    background: #ffffff;
    border: 2px dashed #008ecc;
    border-radius: 30px;
    max-width: 600px;
}

.result-msg {
    margin: 20px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #006ea0;
}

/* Tooltips */
.icon-btn {
    position: relative;
}

.icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.icon-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 550px) {

    .code-form,
    .result-pill {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        box-shadow: none;
    }

    input[type="text"],
    .pill-text {
        background: #f0f0f0;
        border-radius: 30px;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    button[type="submit"],
    .icon-group {
        width: 100%;
        justify-content: center;
    }

    .icon-group {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }
}