*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%
}

body {
    background: #a30000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    height: 100svh;
}

.box {
    max-width: 640px;
    width: 100%;
    background: #7a0000;
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px
}

.icon svg {
    width: 96px;
    height: 96px;
    display: block
}

h1 {
    font-size: 1.9rem;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: .5px
}

.sub {
    font-size: 1.05rem;
    text-align: center;
    margin: 0 0 22px
}

.url-label {
    font-size: .95rem;
    margin-bottom: 6px;
    opacity: .95
}

.url-display {
    background: #3d0000;
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: .95rem;
    word-break: break-all;
    user-select: text;
    color: #ffe9a8;
    margin-bottom: 18px;
}

.url-display .scheme,
.url-display .sub-domain,
.url-display .tail {
    color: #ffd9d9;
    opacity: .85
}

.url-display .main-domain {
    color: #fff;
    font-weight: 700;
    background: #5a0000;
    padding: 1px 4px;
    border-radius: 3px;
}

.hint {
    font-size: .85rem;
    opacity: .85;
    margin: 0 0 18px;
    text-align: center
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
    cursor: pointer;
    user-select: none;
}

.check-row input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #ffcc00;
    flex-shrink: 0;
    cursor: pointer;
}

.check-row span {
    font-size: 1rem
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between
}

.btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .05s;
    display: inline-block;
}

.btn-back {
    background: #fff;
    color: #7a0000
}

.btn-back:hover {
    opacity: .9
}

/* Reine CSS-Logik für die Freischaltung */
#agree {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.btn-continue {
    background: #666;
    color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .7;
}

#agree:checked~.actions .btn-continue {
    background: #ffcc00;
    color: #3d0000;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
}

#agree:checked~.actions .btn-continue:hover {
    opacity: .9
}

.btn:active {
    transform: translateY(1px)
}

.no-url {
    text-align: center;
    font-size: 1.1rem;
    padding: 14px;
    background: #3d0000;
    border-radius: 8px
}

@media (max-width:480px) {
    h1 {
        font-size: 1.5rem
    }

    .box {
        padding: 20px
    }

    .icon svg {
        width: 72px;
        height: 72px
    }
}

/* Visuelles Häkchen über die echte (versteckte) Checkbox steuern */
#agree:checked+label #checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: -1px;
    width: 6px;
    height: 12px;
    border: solid #ffcc00;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}