/* ==========================================================================
   vigo — Premium-Atmosphäre
   ========================================================================== */

:root {
    --navion-green: #15C183;
    --navion-green-light: #41EDAE;
    --navion-green-glow: rgba(65, 237, 174, 0.5);
    --navion-blue: #AAC0C9;

    --bg: #0B100D;
    --bg-elev: #141A16;
    --bg-elev-2: #1B231E;
    --bg-elev-3: #232C26;
    --fg: #F4F5F1;
    --fg-muted: #A8B0AB;
    --fg-subtle: #6B736E;
    --fg-faint: #4A524D;
    --border: rgba(244, 245, 241, 0.08);
    --border-strong: rgba(244, 245, 241, 0.16);

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

    --container: 1440px;
    --gutter: 24px;

    --ease-out: cubic-bezier(.2, .9, .1, 1);
    --dur: 280ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: radial-gradient(120% 90% at 50% 10%, #1B2620 0%, #0F1411 45%, #080808 100%);
    background-attachment: fixed;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

button { font-family: inherit; }

a { color: inherit; }

.hidden { display: none !important; }

/* ==========================================================================
   Atmosphäre — Topo, Glows, Embers, Sparks
   ========================================================================== */

.topo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    animation: topoDrift 22s linear infinite;
}

@keyframes topoDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

.atmosphere-glow {
    position: fixed;
    width: 1400px;
    height: 1400px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(21, 193, 131, 0.22), rgba(21, 193, 131, 0) 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); }
}

.atmosphere-glow-2 {
    position: fixed;
    width: 1000px;
    height: 1000px;
    top: -10%;
    right: -10%;
    background: radial-gradient(closest-side, rgba(170, 192, 201, 0.12), rgba(170, 192, 201, 0) 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    animation: breathe-2 8s ease-in-out infinite;
}

@keyframes breathe-2 {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.04); }
}

.ember {
    position: fixed;
    bottom: -20px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--navion-green-light);
    filter: blur(0.3px);
    pointer-events: none;
    z-index: 0;
    animation: emberRise 8s linear infinite;
}

@keyframes emberRise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { transform: translateY(-50vh) translateX(20px); opacity: 0.6; }
    100% { transform: translateY(-105vh) translateX(-30px); opacity: 0; }
}

.spark {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--navion-green-light);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.6); }
    50%      { opacity: 0.9; transform: scale(1); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    background: rgba(11, 16, 13, 0.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-decoration: none;
    cursor: pointer;
}

.logo__dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--navion-green-light);
    box-shadow: 0 0 16px var(--navion-green-glow);
    transform: translateY(-1px);
    animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 16px var(--navion-green-glow); }
    50%      { box-shadow: 0 0 32px var(--navion-green-glow); }
}

.logo__tag {
    font-weight: 400;
    font-size: 14px;
    color: var(--fg-subtle);
    letter-spacing: 0;
}

.nav-link {
    font-size: 14px;
    color: var(--fg-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    font-family: inherit;
}

.nav-link:hover {
    color: var(--fg);
    background: rgba(244, 245, 241, 0.06);
}

.logout-form { margin: 0; }

/* ==========================================================================
   Main + Split-Layout
   ========================================================================== */

.main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 3;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    min-height: calc(100vh - 73px);
    align-items: start;
}

/* ==========================================================================
   Hero (links, sticky)
   ========================================================================== */

.hero {
    position: sticky;
    top: 73px;
    padding: 4rem 0 4rem;
    max-height: calc(100vh - 73px);
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(65, 237, 174, 0.12);
    color: var(--navion-green-light);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(65, 237, 174, 0.20);
    backdrop-filter: blur(8px);
    position: relative;
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navion-green-light);
    animation: eyebrowBlink 1.6s infinite;
}

@keyframes eyebrowBlink {
    50% { opacity: 0.35; }
}

.eyebrow::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 1.5px solid var(--navion-green-light);
    opacity: 0;
    animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.18); }
}

.quote {
    margin-bottom: 3rem;
    max-width: 520px;
}

.quote__text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    line-height: 1.4;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    opacity: 0.78;
}

.quote__author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--fg-subtle);
    letter-spacing: 0.02em;
}

.quote__author::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--border-strong);
}

.headline {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--fg);
    margin-bottom: 1.75rem;
}

.headline__accent {
    color: var(--navion-green-light);
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 0 60px rgba(65, 237, 174, 0.5);
    animation: accentGlow 3s ease-in-out infinite;
}

@keyframes accentGlow {
    0%, 100% { text-shadow: 0 0 40px rgba(65, 237, 174, 0.4); }
    50%      { text-shadow: 0 0 80px rgba(65, 237, 174, 0.7); }
}

.subline {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg-muted);
    max-width: 500px;
    font-weight: 400;
}

.subline strong {
    color: var(--fg);
    font-weight: 500;
}

/* ==========================================================================
   Panel (rechts, scrollbar)
   ========================================================================== */

.panel {
    padding: 4rem 0 6rem;
    position: relative;
    z-index: 1;
}

.panel__card,
.loading-card,
.result {
    background: rgba(20, 26, 22, 0.7);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(21, 193, 131, 0.06);
}

.panel__section { margin-bottom: 2.5rem; }
.panel__section:last-child { margin-bottom: 0; }

hr.panel__section-divider {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    color: inherit;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(244, 245, 241, 0.06) 35%,
        rgba(244, 245, 241, 0.06) 65%,
        transparent 100%
    );
    margin: 2.5rem 0;
    overflow: hidden;
}

.section-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--fg);
    margin-bottom: 0.375rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-bottom: 1.25rem;
}

.hint {
    font-size: 13px;
    color: var(--fg-subtle);
    margin-top: 8px;
}
.hint.subtle { color: var(--fg-faint); }

/* ==========================================================================
   Goals
   ========================================================================== */

.goal-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.goal-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navion-green);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(21, 193, 131, 0.4);
}

.goal-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.6);
    color: var(--fg);
    transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.goal-input:focus {
    outline: none;
    border-color: var(--navion-green-light);
    background: rgba(11, 16, 13, 0.9);
    box-shadow: 0 0 0 4px rgba(65, 237, 174, 0.15);
}

.goal-input::placeholder { color: var(--fg-faint); }

.btn-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur);
}

.btn-icon:hover {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
}

.add-goal-btn {
    margin-top: 8px;
    padding: 9px 16px;
    background: transparent;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    color: var(--fg-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--dur);
}

.add-goal-btn:hover:not(:disabled) {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
    border-style: solid;
}

.add-goal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Inspirations-Chips & Edit-Chips
   ========================================================================== */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.chips__label {
    font-size: 11px;
    color: var(--fg-subtle);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 4px;
}

.chip {
    padding: 6px 14px;
    background: rgba(11, 16, 13, 0.4);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--dur);
}

.chip:hover {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
    background: rgba(65, 237, 174, 0.08);
}

.chip.used {
    background: rgba(65, 237, 174, 0.15);
    color: var(--navion-green-light);
    border-color: var(--navion-green-light);
}

/* ==========================================================================
   Radio-Cards (Format, Style)
   ========================================================================== */

.radio-grid { display: grid; gap: 8px; }
.radio-grid--cols-2 { grid-template-columns: 1fr 1fr; }
.radio-grid--cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.radio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(11, 16, 13, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--dur);
    text-align: left;
}

.radio-card:hover {
    border-color: var(--border-strong);
    background: rgba(11, 16, 13, 0.6);
}

.radio-card.is-active {
    border-color: var(--navion-green-light);
    background: rgba(65, 237, 174, 0.08);
}

.radio-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
}

.radio-card__subtitle {
    font-size: 12px;
    color: var(--fg-subtle);
    line-height: 1.4;
}

.radio-card.is-active .radio-card__title { color: var(--navion-green-light); }

.radio-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    background: var(--navion-green);
    color: var(--bg);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* Resolution-Detail (Custom-Picker) */
.resolution-detail {
    margin-top: 14px;
    padding: 14px;
    background: rgba(11, 16, 13, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.7);
    color: var(--fg);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2341EDAE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.select:focus {
    outline: none;
    border-color: var(--navion-green-light);
}

.select option,
.select optgroup {
    background: var(--bg-elev);
    color: var(--fg);
}

/* ==========================================================================
   Generate-Row + Button
   ========================================================================== */

.generate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.generate-meta {
    font-size: 13px;
    color: var(--fg-muted);
}

.generate-meta strong {
    color: var(--fg);
    font-weight: 500;
}

.generate-btn {
    padding: 14px 28px;
    background: var(--navion-green);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
    box-shadow: 0 0 32px rgba(21, 193, 131, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShine 3s linear infinite;
}

@keyframes btnShine {
    to { left: 100%; }
}

.generate-btn:hover:not(:disabled) {
    background: var(--navion-green-light);
    transform: translateY(-1px);
    box-shadow: 0 0 48px rgba(65, 237, 174, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.generate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-label { position: relative; z-index: 1; }

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    vertical-align: -2px;
    animation: spinnerSpin 0.8s linear infinite;
    position: relative;
    z-index: 1;
}

.is-loading .btn-spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.8; }

@keyframes spinnerSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Loading-State
   ========================================================================== */

.loading-card {
    text-align: center;
    padding: 5rem 2.5rem;
    position: relative;
}

.loading-orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--navion-green-light) 0%, transparent 70%);
    animation: orbPulse 2s ease-in-out infinite;
    position: relative;
}

.loading-orb::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--navion-green-light);
    opacity: 0;
    animation: orbRing 2.4s ease-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 1; }
}

@keyframes orbRing {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

.loading-status {
    font-size: 1.125rem;
    color: var(--fg);
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: opacity var(--dur);
}

.loading-detail {
    font-size: 14px;
    color: var(--fg-subtle);
}

/* ==========================================================================
   Result-State
   ========================================================================== */

.result {
    padding: 1.5rem;
}

.result__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f4d3a 0%, #15C183 50%, #2a6b5b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 80px rgba(65, 237, 174, 0.2);
}

.result__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.result__loading-veil {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 13, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.result__loading-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.result__loading-ring {
    position: relative;
    width: 96px;
    height: 96px;
}

.result__loading-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.ring-bg {
    fill: none;
    stroke: rgba(244, 245, 241, 0.12);
    stroke-width: 4;
}

.ring-fg {
    fill: none;
    stroke: var(--navion-green-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 175.93;
    stroke-dashoffset: 175.93;
    transition: stroke-dashoffset 0.6s var(--ease-out);
    filter: drop-shadow(0 0 6px var(--navion-green-glow));
}

.ring-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.result__loading-status {
    font-size: 13px;
    color: var(--fg);
    text-align: center;
    max-width: 320px;
    background: rgba(11, 16, 13, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    line-height: 1.4;
}

.result__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    padding: 11px 16px;
    background: rgba(11, 16, 13, 0.6);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--dur);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn--primary {
    background: var(--navion-green);
    color: var(--bg);
    border-color: var(--navion-green);
    box-shadow: 0 0 24px rgba(21, 193, 131, 0.4);
}

.action-btn--primary:hover { background: var(--navion-green-light); }

.action-btn:hover:not(.action-btn--primary) {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
}

.result__meta {
    font-size: 12px;
    color: var(--fg-faint);
    margin-bottom: 1.25rem;
    text-align: center;
}

/* ==========================================================================
   Edit-Section
   ========================================================================== */

.edit-section {
    padding: 1.25rem;
    background: rgba(11, 16, 13, 0.4);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.edit-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 4px;
}

.edit-subtitle {
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

.edit-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.edit-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.6);
    color: var(--fg);
}

.edit-input:focus {
    outline: none;
    border-color: var(--navion-green-light);
}

.edit-input::placeholder { color: var(--fg-faint); }

.edit-submit {
    padding: 10px 18px;
    background: var(--navion-green);
    border: none;
    border-radius: 10px;
    color: var(--bg);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--dur);
    position: relative;
    overflow: hidden;
}

.edit-submit:hover:not(:disabled) { background: var(--navion-green-light); }
.edit-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.edit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edit-chips-dynamic { margin-top: 8px; }

.edit-chip {
    padding: 5px 12px;
    background: rgba(11, 16, 13, 0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-muted);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--dur);
}

.edit-chip:hover {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
}

/* ==========================================================================
   Sticky-CTA (nur Mobile)
   ========================================================================== */

.sticky-cta {
    display: none;
}

@media (max-width: 980px) {
    .sticky-cta {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px 10px 18px;
        background: rgba(11, 16, 13, 0.92);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid var(--border-strong);
        border-radius: 999px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(21, 193, 131, 0.15);
    }
    .sticky-cta.hidden { display: none; }
}

.sticky-cta-counter {
    font-size: 13px;
    color: var(--fg-muted);
}

.sticky-cta-btn {
    padding: 10px 18px;
    background: var(--navion-green);
    color: var(--bg);
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--dur);
    box-shadow: 0 0 24px rgba(21, 193, 131, 0.45);
}

.sticky-cta-btn:hover:not(:disabled) { background: var(--navion-green-light); }
.sticky-cta-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   Klärungs-Modal
   ========================================================================== */

.clarify-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 16, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.clarify-modal-card {
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: rgba(20, 26, 22, 0.92);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 2rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 120px rgba(21, 193, 131, 0.10);
}

.clarify-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin-bottom: 6px;
}

.clarify-modal-lead {
    font-size: 14px;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.clarify-phase {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navion-green-light);
    font-weight: 600;
    margin-bottom: 14px;
}

.clarify-item-original {
    font-size: 13px;
    color: var(--fg-subtle);
    margin-bottom: 10px;
}

.clarify-item-original strong { color: var(--fg); font-weight: 500; }

.clarify-item-question {
    font-size: 1rem;
    color: var(--fg);
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
}

.clarify-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.clarify-option {
    padding: 9px 14px;
    background: rgba(11, 16, 13, 0.5);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--fg-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--dur);
}

.clarify-option:hover {
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
}

.clarify-option.chosen {
    background: rgba(65, 237, 174, 0.15);
    border-color: var(--navion-green-light);
    color: var(--navion-green-light);
}

.clarify-option-custom {
    flex: 1 1 100%;
    margin-top: 4px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.6);
    color: var(--fg);
}

.clarify-option-custom:focus {
    outline: none;
    border-color: var(--navion-green-light);
}

.clarify-option-custom::placeholder { color: var(--fg-faint); }

.clarify-skip {
    background: transparent;
    border: none;
    color: var(--fg-subtle);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 4px;
    text-decoration: underline;
    text-decoration-color: var(--fg-faint);
}

.clarify-skip:hover { color: var(--fg-muted); }

.clarify-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.clarify-actions .action-btn { flex: 0 0 auto; min-width: 120px; }
.clarify-actions .generate-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   Person-Mode (im Klärungs-Modal)
   ========================================================================== */

.person-mode {
    display: grid;
    gap: 8px;
}

.person-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(11, 16, 13, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--dur);
}

.person-mode-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--navion-green-light);
    cursor: pointer;
}

.person-mode-option:has(input:checked) {
    border-color: var(--navion-green-light);
    background: rgba(65, 237, 174, 0.08);
}

.person-mode-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.person-mode-label strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
}

.person-mode-option:has(input:checked) .person-mode-label strong {
    color: var(--navion-green-light);
}

.person-mode-label small {
    font-size: 12px;
    color: var(--fg-subtle);
    line-height: 1.4;
}

.person-details-hint {
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 10px;
}

.person-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.person-details-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.person-details-field span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
}

.person-details-field-wide { grid-column: 1 / -1; }

.person-details-field input,
.person-details-field select {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.6);
    color: var(--fg);
    appearance: none;
    -webkit-appearance: none;
}

.person-details-field select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2341EDAE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.person-details-field input:focus,
.person-details-field select:focus {
    outline: none;
    border-color: var(--navion-green-light);
}

.person-details-field option,
.person-details-field optgroup {
    background: var(--bg-elev);
    color: var(--fg);
}

.person-details-note {
    font-size: 11px;
    color: var(--fg-faint);
    margin-top: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.vigo-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 26, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    color: var(--fg);
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    z-index: 300;
    pointer-events: none;
}

.vigo-toast.shown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Error-Box
   ========================================================================== */

.error-box {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 250;
    max-width: 480px;
    width: calc(100% - 32px);
    padding: 14px 18px;
    background: rgba(80, 22, 22, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 120, 120, 0.4);
    border-radius: 12px;
    color: #ffd5d5;
    font-size: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Login-Card
   ========================================================================== */

.login-wrap {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(20, 26, 22, 0.7);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(21, 193, 131, 0.06);
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 1.75rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--fg-muted);
    margin-bottom: 1.75rem;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(11, 16, 13, 0.6);
    color: var(--fg);
}

.login-input:focus {
    outline: none;
    border-color: var(--navion-green-light);
    box-shadow: 0 0 0 4px rgba(65, 237, 174, 0.15);
}

.login-submit { width: 100%; }

.login-error {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(80, 22, 22, 0.5);
    border: 1px solid rgba(255, 120, 120, 0.3);
    border-radius: 10px;
    color: #ffd5d5;
    font-size: 13px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 980px) {
    .split {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }
    .hero {
        position: static;
        max-height: none;
        padding: 3rem 0 2rem;
        overflow: visible;
    }
    .hero__content { max-width: 100%; }
    .panel { padding: 2rem 0 6rem; }
    .panel__card, .loading-card, .result { padding: 1.5rem; }
    .quote__text { font-size: 1.125rem; }
    .quote__text br { display: none; }
    .headline { font-size: clamp(2rem, 8vw, 2.75rem); }
    .subline { font-size: 0.9375rem; }
    .radio-grid--cols-3 { grid-template-columns: 1fr; }
    .generate-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .generate-btn { width: 100%; }
    .clarify-modal-card { padding: 1.5rem; }
}

@media (max-width: 540px) {
    .header__inner { padding: 14px 16px; }
    .logo__tag { display: none; }
    .main { padding: 0 16px; }
    .radio-grid--cols-2 { grid-template-columns: 1fr; }
    .person-details-grid { grid-template-columns: 1fr; }
    .edit-input-row { flex-direction: column; }
    .edit-submit { width: 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .topo, .atmosphere-glow, .atmosphere-glow-2, .ember, .spark,
    .logo__dot, .eyebrow::before, .eyebrow::after,
    .headline__accent, .loading-orb, .loading-orb::after,
    .generate-btn::before, .btn-spinner {
        animation: none !important;
    }
    html { scroll-behavior: auto; }
}
