/* ======================================================================
 * WELLENSITTICH-NAMEN-GENERATOR CSS (Optimiert)
 * ====================================================================== */

.wip-ng {
    /* 1. Zentrale Variablen für einfache Pflege */
    --wip-primary: #5f934f;
    --wip-primary-hover: #477a3a;
    --wip-primary-dark: #457936;
    --wip-bg: #ffffff;
    --wip-surface: #f4faf2;
    --wip-text: #26362a;
    --wip-text-muted: #59655b;
    --wip-border: #dfe7de;
    --wip-border-input: #a9b9a9;
    --wip-radius-lg: 16px;
    --wip-radius-md: 12px;
    --wip-radius-sm: 9px;

    /* 2. Layout & Basis-Styling */
    margin: 32px 0;
    padding: 28px;
    background: var(--wip-bg);
    border: 1px solid var(--wip-border);
    border-radius: var(--wip-radius-lg);
    box-shadow: 0 8px 24px rgba(27, 62, 33, 0.08);
    scroll-margin-top: 120px; /* Für den Anchor-Jump (Sticky Header) */
}

/* Typografie */
.wip-ng h2 {
    margin: 0 0 10px;
    color: var(--wip-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

.wip-ng__intro {
    max-width: 680px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--wip-text);
}

/* Formular-Grid */
.wip-ng__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.wip-ng__field label {
    display: block;
    margin-bottom: 7px;
    color: var(--wip-text);
    font-weight: 700;
}

.wip-ng__field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--wip-text);
    background: var(--wip-bg);
    border: 1px solid var(--wip-border-input);
    border-radius: var(--wip-radius-sm);
    box-sizing: border-box;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.wip-ng__field select:focus {
    outline: 3px solid rgba(95, 147, 79, 0.25);
    border-color: var(--wip-primary);
}

/* Button */
.wip-ng__button {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--wip-primary);
    border: none;
    border-radius: var(--wip-radius-sm);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.wip-ng__button:hover {
    background: var(--wip-primary-hover);
}

.wip-ng__button:active {
    transform: translateY(2px);
}

/* Barrierefreier Fokus für den Button */
.wip-ng__button:focus-visible {
    outline: 3px solid var(--wip-primary-dark);
    outline-offset: 2px;
}

/* Ergebnis-Bereich */
.wip-ng__result {
    margin-top: 24px;
    animation: fadeIn 0.4s ease-out; /* Weiches Einblenden beim Seiten-Reload */
}

.wip-ng__card {
    padding: 28px;
    text-align: center;
    background: var(--wip-surface);
    border: 2px solid #6ca85a;
    border-radius: var(--wip-radius-md);
}

.wip-ng__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--wip-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wip-ng__name {
    display: block;
    color: var(--wip-primary-dark);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.1;
}

.wip-ng__meta {
    margin: 12px 0 0;
    color: var(--wip-text-muted);
}

/* Alternativen / Listen */
.wip-ng__alternatives {
    margin-top: 24px;
    text-align: left;
}

.wip-ng__alternatives h3 {
    margin-bottom: 12px;
    color: var(--wip-primary-dark);
    font-size: 1.05rem;
}

.wip-ng__alternatives ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding-left: 20px;
}

/* Hinweis-Box (Easter Egg) */
.wip-ng__notice {
    padding: 24px;
    color: #6c5606;
    background: #fff7db;
    border: 1px solid #e4c45c;
    border-radius: var(--wip-radius-md);
}

.wip-ng__notice strong {
    display: block;
    margin-bottom: 6px;
}

.wip-ng__notice p {
    margin: 0 0 12px;
}

.wip-ng__notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Keyframe für sanftes Einblenden der Box */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
    .wip-ng {
        padding: 20px;
    }

    .wip-ng__form,
    .wip-ng__alternatives ul {
        grid-template-columns: 1fr;
    }
}