.close-button {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    user-select: none;
    background: #888;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 1000;
}

.close-button:hover {
    background: #fff;
}

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
    --font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #303242, #555);
    /* Farbverlauf von Blau zu Lila */
}

/* Container & Card */
.container {
    width: 100%;
    max-width: 626px;
    padding: 20px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 10px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-0px);
}

header {
    text-align: left;
    margin-bottom: 32px;
}

h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #38a;
}

.subtitle {
    font-size: 0.95rem;
    color: rgb(255, 255, 255);
}

/* Info Details Box */
.info-details {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-details[open] {
    background-color: rgba(255, 255, 255, 0.08);
}

.info-details summary {
    font-weight: 600;
    margin-bottom: 4px;
}

.info-details[open] summary {
    margin-bottom: 12px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.select-wrapper {
    position: relative;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
    appearance: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Result Area */
.result-area {
    margin-top: 32px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-area.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
    /* Use display none to prevent layout shifts if needed, or just visibility */
}

/* Better handling for hidden state with animation */
.result-area.hidden {
    display: none;
}

.result-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--card-border), transparent);
    margin-bottom: 24px;
}

.result-grid {
    display: grid;
    gap: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-item.highlight {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.value.large {
    font-size: 2rem;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    max-width: 90%;
}

@media (max-width: 480px) {
    .glass-card {
        padding: 24px;
    }

    h1 {
        font-size: 1.75rem;
    }
}