* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background-color: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.app-layout {
    width: 100%;
    max-width: 460px;
}

.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #21262d;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #58a6ff;
    margin-bottom: 4px;
}

.card-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f6fc;
}

.status-indicator {
    font-size: 12px;
    color: #3fb950;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #238636;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ea043;
}

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert.success {
    background: rgba(46, 160, 67, 0.15);
    border: 1px solid rgba(46, 160, 67, 0.4);
    color: #56d364;
}

.alert.error {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #ff7b72;
}

/* Form */
.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 6px;
}

input {
    width: 100%;
    height: 48px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #f0f6fc;
    padding: 0 12px;
    font-size: 16px; /* Wichtig für iOS gegen Auto-Zoom */
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input::placeholder {
    color: #484f58;
}

.hint {
    display: block;
    font-size: 11px;
    color: #8b949e;
    margin-top: 5px;
}

.hint code {
    background: #21262d;
    padding: 2px 4px;
    border-radius: 4px;
    color: #c9d1d9;
}

/* Kennzeichen-Präfix Feld */
.input-addon {
    display: flex;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #0d1117;
    overflow: hidden;
}

.input-addon:focus-within {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.addon-prefix {
    background: #21262d;
    color: #8b949e;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    border-right: 1px solid #30363d;
    user-select: none;
}

.input-addon input {
    border: none;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: transparent;
}

.input-addon input:focus {
    box-shadow: none;
}

/* Button */
.btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    background: #238636;
    color: #ffffff;
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background: #2ea043;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smartphone-Anpassung */
@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .card {
        padding: 18px 14px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.label-row label {
    margin-bottom: 0;
}

.link-btn {
    background: none;
    border: none;
    color: #58a6ff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.link-btn:hover {
    text-decoration: underline;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    letter-spacing: 0.04em;
    font-weight: 600;
}
