/* =============================================================================
   Beamer-Link App – style.css
   ============================================================================= */

/* Page Background */
body {
    background-color: var(--lmb-bg-dark, #0A0F1A);
    color: var(--lmb-text-main, #F8FAFC);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lmb-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.editor-container {
    width: 100%;
    max-width: 800px;
}

/* App Header */
.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-ben {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    letter-spacing: -0.025em;
}

.subtitle {
    color: var(--lmb-text-muted, #94A3B8);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Editor Card */
.editor-card {
    background-color: var(--lmb-bg-surface, #141B2D);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--lmb-radius-md, 12px);
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Form Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.lmb-input, .lmb-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--lmb-bg-dark, #0A0F1A);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--lmb-text-main, #F8FAFC);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lmb-input:focus, .lmb-select:focus {
    outline: none;
    border-color: var(--lmb-primary, #6366F1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-color: var(--lmb-text-muted, #94A3B8);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    pointer-events: none;
}

.lmb-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--lmb-text-muted, #94A3B8);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--lmb-bg-dark, #0A0F1A);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--lmb-primary, #6366F1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--lmb-primary, #6366F1);
    border-color: var(--lmb-primary, #6366F1);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Steps / Breadcrumbs Bereich */
.steps-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.section-desc {
    color: var(--lmb-text-muted, #94A3B8);
    font-size: 0.88rem;
    margin: 0 0 1rem 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-number-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lmb-text-muted, #94A3B8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-input-wrap {
    flex: 1;
}

.remove-step-btn {
    background: transparent;
    border: none;
    color: var(--lmb-text-muted, #94A3B8);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.remove-step-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Action Button */
.action-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

#present-btn {
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    justify-content: center;
    font-weight: 700;
}

/* OpenDyslexic Toggle Button Style */
.dyslexia-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--lmb-bg-surface, #141B2D);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--lmb-text-main, #F8FAFC);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}

.dyslexia-toggle:hover {
    transform: scale(1.05);
    background-color: var(--lmb-bg-surface-hover, #1A2338);
}

.dyslexia-toggle.active {
    background: var(--lmb-grad-primary);
    border-color: transparent;
}

/* =============================================================================
   Beamer Präsentationsmodus (Vollbild)
   ============================================================================= */
.beamer-overlay {
    position: fixed;
    inset: 0;
    background-color: #000000;
    color: #FFFFFF;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4vh 4vw;
    box-sizing: border-box;
}

.beamer-overlay[hidden] {
    display: none;
}

/* Exit Beamer Button */
.exit-beamer-btn {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, opacity 0.3s;
    opacity: 0.3; /* Halb transparent, damit es nicht ablenkt */
}

.exit-beamer-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    opacity: 1;
}

/* Verbergen des Buttons bei Inaktivität des Cursors */
.beamer-overlay.cursor-hide .exit-beamer-btn {
    opacity: 0;
    pointer-events: none;
}

.beamer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5vh;
}

/* Grid Layout für QR & URL */
.beamer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8vw;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* QR Code Bereich */
.beamer-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
}

.beamer-qr-container {
    background-color: #FFFFFF;
    padding: 2.5vw;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.05);
    width: 25vw;
    height: 25vw;
    max-width: 380px;
    max-height: 380px;
    min-width: 200px;
    min-height: 200px;
}

.beamer-qr-container canvas, 
.beamer-qr-container img {
    width: 100% !important;
    height: 100% !important;
}

.beamer-qr-label {
    color: #94A3B8;
    font-size: 1.5vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* URL Text Bereich */
.beamer-url-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.beamer-url-title {
    color: #94A3B8;
    font-size: 1.8vw;
    font-weight: 600;
    margin-bottom: 1.5vh;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beamer-short-url-text {
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 800;
    color: #FFFFFF;
    word-break: break-all;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-family: 'Outfit', sans-serif;
    /* Subtiler Glow für hervorragende Lesbarkeit */
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.beamer-help-text {
    color: #64748B;
    font-size: 1.2vw;
    margin-top: 2vh;
}

/* Schritte / Breadcrumbs im Beamer Modus */
.beamer-steps-wrap {
    width: 100%;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 3vh;
    margin-top: 2vh;
}

.beamer-steps-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5vw;
    max-width: 1600px;
    margin: 0 auto;
}

.beamer-step-text {
    font-size: 2vw;
    font-weight: 600;
    color: #E2E8F0;
}

.beamer-step-text.highlight {
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.beamer-step-arrow {
    color: #64748B;
    font-size: 2vw;
    font-weight: 400;
    display: flex;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .beamer-grid {
        grid-template-columns: 1fr;
        gap: 4vh;
        text-align: center;
    }
    
    .beamer-url-wrap {
        text-align: center;
    }
    
    .beamer-qr-container {
        width: 40vw;
        height: 40vw;
        max-width: 250px;
        max-height: 250px;
    }
    
    .beamer-qr-label {
        font-size: 3vw;
    }
    
    .beamer-url-title {
        font-size: 3vw;
    }
    
    .beamer-short-url-text {
        font-size: 6vw;
    }
    
    .beamer-help-text {
        font-size: 2.2vw;
    }
    
    .beamer-step-text, .beamer-step-arrow {
        font-size: 3.5vw;
    }
}

@media (max-width: 576px) {
    .editor-card {
        padding: 1.5rem;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
}
