/* ============================================
   Story Sales Generator - Stylesheet v3
   ============================================ */

/* Reset & Basis */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --warm: #f59e0b;
    --warm-dark: #d97706;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f1f5f9;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #1e1b4b;
    --sidebar-text: #c7d2fe;
    --sidebar-active: #4f46e5;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---- Auth Pages (Login/Register) ---- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-logo p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* ---- App Container ---- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-260px);
}

.sidebar-header {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.app-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    text-align: left;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.3);
    color: white;
    border-left-color: var(--primary-light);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 20px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 8px 20px 4px;
}

.nav-upgrade {
    color: var(--warm) !important;
}

.nav-logout {
    color: rgba(255,255,255,0.5) !important;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-info > i {
    font-size: 24px;
    color: rgba(255,255,255,0.5);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.user-plan {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.badge-free { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.badge-pro { background: var(--primary); color: white; }
.badge-premium { background: var(--warm); color: var(--text); }

.sidebar-toggle {
    position: fixed;
    top: 16px;
    left: 264px;
    z-index: 101;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.sidebar-toggle.shifted {
    left: 8px;
}

.sidebar-toggle.shifted i {
    transform: rotate(180deg);
}

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    max-width: 1200px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h1 i {
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 4px;
    font-size: 14px;
}

.page-header-left { flex: 1; }
.page-header-right {
    display: flex;
    gap: 8px;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-highlight {
    border-left: 4px solid var(--primary);
}

.card-wide {
    grid-column: 1 / -1;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 i {
    color: var(--primary);
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-body {
    padding: 24px;
}

/* ---- Dashboard Grid ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Cards (Admin) */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
}

.admin-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 16px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    color: var(--text);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:hover {
    background: var(--bg);
    border-color: #cbd5e1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}

.btn-warm {
    background: var(--warm);
    color: white;
    border-color: var(--warm);
}

.btn-warm:hover {
    background: var(--warm-dark);
    border-color: var(--warm-dark);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

/* ---- Tables ---- */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg);
}

.table tbody tr:hover {
    background: var(--bg);
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-light);
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ---- Alerts ---- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ---- Story Tabs ---- */
.story-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow);
    padding: 8px 8px 0;
}

.story-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
    position: relative;
    min-width: 100px;
    font-family: inherit;
}

.story-tab:hover {
    color: var(--text);
    background: var(--bg);
}

.story-tab.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.story-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.story-tab.has-content .tab-label {
    font-weight: 700;
}

.story-tab i {
    font-size: 18px;
}

.tab-label {
    white-space: nowrap;
    font-size: 11px;
}

.tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--success);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Story Panels ---- */
.story-panel {
    display: none;
}

.story-panel.active {
    display: block;
}

.story-panel > .card {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 0;
}

/* ---- Version Tabs ---- */
.version-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2px;
}

.version-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
}

.version-tab:hover:not(.disabled) {
    background: white;
}

.version-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.version-tab.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ---- Story Actions ---- */
.story-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ---- Story Editor ---- */
.story-editor-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.story-editor {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    outline: none;
    background: #fefefe;
}

.story-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    font-style: italic;
}

.story-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.story-info {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
}

/* ---- Loading ---- */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-indicator p {
    color: var(--text-light);
    font-size: 14px;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Pricing Grid ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.current {
    border-color: var(--success);
}

.pricing-popular {
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
}

.pricing-period {
    color: var(--text-light);
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    width: 18px;
    text-align: center;
}

.pricing-features li .fa-check { color: var(--success); }
.pricing-features li .fa-times { color: #cbd5e1; }
.pricing-features li.disabled { color: var(--text-light); }

.pricing-action {
    margin-top: 24px;
}

/* ---- Profile Grid ---- */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        left: 8px;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .story-tabs {
        flex-wrap: nowrap;
    }

    .story-tab {
        min-width: 80px;
        padding: 8px 10px;
    }

    .tab-label {
        font-size: 10px;
    }

    .page-header {
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .story-actions {
        flex-direction: column;
    }
}

/* ============================================
   Newsletter-Modul Styles
   ============================================ */

/* Persona-Preview */
.persona-preview {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
}

.persona-preview pre {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

/* Radio-Gruppe */
.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Zeichenzähler */
.char-count {
    display: block;
    text-align: right;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Hook-Liste */
.hooks-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
}

.hook-item {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hook-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.hook-item.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 1px var(--primary);
}

.hook-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.hook-label input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.hook-number {
    font-weight: 700;
    color: var(--primary);
    min-width: 2rem;
    flex-shrink: 0;
}

.hook-text {
    flex: 1;
    line-height: 1.5;
}

/* Hook-Preview im Projekt */
.hook-preview {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hook-preview blockquote {
    flex: 1;
    min-width: 200px;
    font-style: italic;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 0;
}

/* Pipeline-Buttons */
.pipeline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
}

.pipeline-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pipeline-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Version-Tabs */
.version-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Info-Tabelle */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.info-table td:first-child {
    width: 150px;
    color: var(--text-light);
}

/* Story-Content */
.story-content {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Copy-Button */
.copy-btn {
    margin-top: 0.5rem;
}

/* Badge-Varianten für Steps */
.badge-step-3 { background: var(--info); color: white; }
.badge-step-4 { background: var(--warm); color: white; }
.badge-step-5 { background: var(--success); color: white; }

/* Nav-Section-Title */
.nav-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Nav-Divider */
.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 1rem;
}

/* Form-Row */
.form-row {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .pipeline-buttons {
        flex-direction: column;
    }
    .pipeline-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Eigener Hook (Nr. 0) */
.hook-custom {
    border: 2px solid var(--warm) !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
}

.hook-custom .hook-number {
    color: var(--warm-dark) !important;
    font-weight: 700;
}

.hook-badge {
    display: inline-block;
    background: var(--warm);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

#customHookCard {
    border-left: 4px solid var(--warm);
}

#customHookCard textarea {
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}
