/* ===================================
   GEWERBEGRUNDKURS - HILFE SEITE STYLES
   Dokumentation und FAQ im Western/Gold-Rush Design
   =================================== */

/* ===== HELP CONTAINER ===== */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HELP HEADER ===== */
.help-header {
    background: linear-gradient(135deg, #2C2623 0%, #1E1A17 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
}

.help-header h1 {
    color: #F4C066;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.help-header p {
    color: #D8C5B0;
    font-size: 1.1rem;
    margin: 0;
    font-style: italic;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quick-link {
    background: linear-gradient(135deg, #2C2623 0%, #1E1A17 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #F5F5F5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
}

.quick-link:hover {
    border-color: #F4C066;
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(244, 192, 102, 0.2);
}

.quick-link i {
    background: #F4C066;
    color: #2C2623;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-link span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* ===== HELP CONTENT ===== */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ===== HELP SECTIONS ===== */
.help-section {
    background: linear-gradient(135deg, #2C2623 0%, #1E1A17 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.3);
}

.help-section h2 {
    color: #F4C066;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid rgba(244, 192, 102, 0.3);
    padding-bottom: 1rem;
}

/* ===== HELP CARDS ===== */
.help-card {
    background: rgba(203, 131, 88, 0.1);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.help-card:hover {
    background: rgba(203, 131, 88, 0.15);
    border-color: rgba(244, 192, 102, 0.3);
}

.help-card:last-child {
    margin-bottom: 0;
}

.help-card h3 {
    color: #F5F5F5;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-card p {
    color: #D8C5B0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-card p:last-child {
    margin-bottom: 0;
}

.help-card ul,
.help-card ol {
    color: #D8C5B0;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-card li {
    margin-bottom: 0.5rem;
}

.help-card li:last-child {
    margin-bottom: 0;
}

.help-card strong {
    color: #F4C066;
    font-weight: 600;
}

.help-card em {
    color: #CB8358;
    font-style: italic;
}

/* ===== IMPORTANT CARD ===== */
.help-card.important {
    background: rgba(255, 130, 50, 0.1);
    border: 1px solid rgba(255, 130, 50, 0.3);
    border-left: 4px solid #FF8232;
}

.help-card.important:hover {
    background: rgba(255, 130, 50, 0.15);
    border-color: rgba(255, 130, 50, 0.5);
}

.help-card.important h3 {
    color: #FF8232;
}

/* ===== STEP LIST ===== */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 26, 23, 0.3);
    border-radius: 8px;
    border-left: 3px solid #F4C066;
}

.step-number {
    background: #F4C066;
    color: #2C2623;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    color: #F5F5F5;
    line-height: 1.5;
}

.step-content strong {
    color: #F4C066;
    display: block;
    margin-bottom: 0.3rem;
}

/* ===== PROBLEM SOLUTION ===== */
.problem-solution {
    background: rgba(30, 26, 23, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid #CB8358;
}

.problem-solution:last-child {
    margin-bottom: 0;
}

.problem {
    color: #FF8232;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.solution {
    color: #35A2A2;
}

.solution ul,
.solution ol {
    margin-top: 0.5rem;
    color: #D8C5B0;
}

/* ===== FAQ CONTAINER ===== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(203, 131, 88, 0.1);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(244, 192, 102, 0.3);
}

.faq-item.active {
    border-color: #F4C066;
    background: rgba(203, 131, 88, 0.15);
}

.faq-question {
    padding: 1.5rem;
    background: rgba(30, 26, 23, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: #F5F5F5;
    font-weight: 500;
}

.faq-question:hover {
    background: rgba(30, 26, 23, 0.4);
    color: #F4C066;
}

.faq-question i {
    color: #F4C066;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: #D8C5B0;
    line-height: 1.6;
    background: rgba(244, 192, 102, 0.05);
}

/* ===== SHORTCUTS GRID ===== */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.shortcut-item {
    background: rgba(30, 26, 23, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.shortcut-item:hover {
    background: rgba(30, 26, 23, 0.5);
    border-color: rgba(244, 192, 102, 0.3);
}

.shortcut-item kbd {
    background: #F4C066;
    color: #2C2623;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #D99C45;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    margin: 0 0.2rem;
}

.shortcut-item span {
    color: #D8C5B0;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .help-container {
        padding: 1.5rem;
    }
    
    .help-header {
        padding: 1.5rem;
    }
    
    .help-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .help-section {
        padding: 1.5rem;
    }
    
    .help-section h2 {
        font-size: 1.5rem;
    }
    
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .help-container {
        padding: 1rem;
    }
    
    .help-header {
        padding: 1rem;
    }
    
    .help-header h1 {
        font-size: 1.8rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .quick-link {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .quick-link i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
    }
    
    .help-section {
        padding: 1rem;
    }
    
    .help-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .help-card {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .step-content strong {
        margin-bottom: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .faq-answer p {
        padding: 1rem;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-solution {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .help-header h1 {
        font-size: 1.5rem;
    }
    
    .help-section h2 {
        font-size: 1.2rem;
    }
    
    .help-card h3 {
        font-size: 1.1rem;
    }
    
    .quick-link span {
        font-size: 1rem;
    }
    
    .step-number {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
    
    .shortcut-item {
        padding: 0.8rem;
    }
    
    .shortcut-item kbd {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

.help-section {
    scroll-margin-top: 2rem;
}

/* ===== PRINT STYLES ===== */
@media print {
    .help-container {
        max-width: none;
        padding: 0;
    }
    
    .help-header,
    .help-section,
    .help-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .quick-links {
        display: none;
    }
    
    .help-section h2,
    .help-card h3 {
        color: #333 !important;
    }
    
    .help-card p,
    .help-card li,
    .step-content,
    .faq-answer p {
        color: #333 !important;
    }
    
    .faq-answer {
        max-height: none !important;
    }
    
    .help-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .quick-link,
    .help-card,
    .faq-item,
    .shortcut-item,
    .step,
    .faq-question i {
        transition: none !important;
    }
    
    .faq-answer {
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

@media (prefers-contrast: high) {
    .help-header,
    .help-section,
    .help-card {
        border: 2px solid #F4C066 !important;
    }
    
    .quick-link {
        border: 2px solid #F4C066 !important;
    }
    
    .quick-link:hover {
        background: rgba(244, 192, 102, 0.2) !important;
    }
    
    .faq-item {
        border: 1px solid #F4C066 !important;
    }
    
    .shortcut-item {
        border: 1px solid #F4C066 !important;
    }
    
    .step,
    .problem-solution {
        border-left: 4px solid #F4C066 !important;
    }
}

/* ===== FOCUS STYLES ===== */
.quick-link:focus,
.faq-question:focus {
    outline: 2px solid #F4C066;
    outline-offset: 2px;
}

.quick-link:focus:not(:focus-visible),
.faq-question:focus:not(:focus-visible) {
    outline: none;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .help-header,
    .help-section {
        background: linear-gradient(135deg, #1A1714 0%, #0F0D0B 100%);
    }
    
    .help-card,
    .quick-link {
        background: rgba(139, 91, 61, 0.1);
    }
    
    .step,
    .problem-solution,
    .shortcut-item {
        background: rgba(15, 13, 11, 0.5);
    }
}