:root {
    --green: #22c55e;
    --purple: #a855f7;
    --dark: #1a1a2e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Anta', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #3b0764);
    color: white;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

.container {
    max-width: 620px;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.title {
    font-size: 2.6rem;
    background: linear-gradient(to right, var(--green), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-weight: 700;
}

.container h3,
.h3 {
    font-size: 1.0rem;
    background: linear-gradient(to right, var(--green), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 8px;
    font-weight: 700;
}

.btn {
    padding: 12px 16px;
    font-size: 1.15rem;
    font-family: inherit;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 10px 0;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.btn font {
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.30) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.18) 100%
    );
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn.primary {
    /* gleiche Glass-Optik; Farbe kommt ggf. per Inline */
}

.btn.secondary {
    font-size: 1rem;
}

.btn.yes-btn {
    background: linear-gradient(to right, #22c55e, #16a34a);
    border-color: rgba(34, 197, 94, 0.5);
}

.btn.no-btn {
    background: linear-gradient(to right, #ef4444, #dc2626);
    border-color: rgba(239, 68, 68, 0.5);
}

.code-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #c026d3;
    border-radius: 18px;
    padding: 16px 20px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.code-text {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #fff;
}

.code-copy-btn {
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #fff;
    border-radius: 9999px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.helper-text {
    color: #aaa;
    font-size: 0.9rem;
}

.input-wrapper {
    margin: 18px 0;
    width: 100%;
}

#codeInput {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 12px;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: bold;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
}

#codeInput:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3);
}

.logo-link {
    display: inline-block;
    margin: 0 auto 12px;
    line-height: 0;
    text-decoration: none;
}

.logo-img {
    width: 160px;
    height: auto;
    max-width: 40vw;
    border-radius: 16px;
    display: block;
    object-fit: contain;
}

.img-box {
    margin: 10px auto;
    padding: 4px;
    max-width: 100%;
}

.img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.legal-container {
    text-align: left;
    max-width: 720px;
}

.legal-container h1 {
    background: linear-gradient(to right, #22c55e, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 35px;
    font-size: 2.6rem;
}

.legal-container h2 {
    color: #c026d3;
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.legal-container p {
    color: #ddd;
    line-height: 1.75;
    margin-bottom: 14px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 26px;
    margin: 20px 0;
}

.legal-container .small {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
}

.matches li {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    margin: 10px 0;
    border-radius: 16px;
    font-size: 1.1rem;
    border-left: 6px solid var(--green);
    text-align: left;
    transition: all 0.3s ease;
}

.matches li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}