/* EDVC Mapper - Main Stylesheet */

/* CSS Variables */
:root {
    --edvc-bg-map: #e9edee;
    --edvc-bg-navbar: #f5f8fa;
    --edvc-highlight: #007cba;
    --edvc-warning: #dc3232;
    --edvc-card-bg: #ffffff;
    --edvc-text-primary: #2c3e50;
    --edvc-text-secondary: #7f8c8d;
    --edvc-text-placeholder: #bdc3c7;
    --edvc-border-radius: 8px;
    --edvc-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --edvc-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --edvc-transition: all 0.3s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--edvc-text-primary);
    background-color: var(--edvc-bg-map);
    overflow: hidden; /* No scroll on body */
}
	
body::-webkit-scrollbar {
    width: 0px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--edvc-text-secondary);
}

a {
    color: var(--edvc-highlight);
    text-decoration: none;
    transition: var(--edvc-transition);
}

a:hover {
    text-decoration: underline;
}

/* Button Styles */
.edvc-btn-primary {
    background-color: var(--edvc-highlight);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--edvc-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--edvc-transition);
    box-shadow: var(--edvc-shadow);
}

.edvc-btn-primary:hover {
    background-color: #005f8a;
    box-shadow: var(--edvc-shadow-hover);
}

.edvc-btn-secondary {
    background-color: transparent;
    color: var(--edvc-text-primary);
    border: 2px solid var(--edvc-text-secondary);
    padding: 10px 20px;
    border-radius: var(--edvc-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--edvc-transition);
}

.edvc-btn-secondary:hover {
    border-color: var(--edvc-highlight);
    color: var(--edvc-highlight);
}

.edvc-btn-add {
    background-color: rgba(0, 124, 186, 0.1);
    color: var(--edvc-highlight);
    border: 2px dashed var(--edvc-highlight);
    padding: 12px 20px;
    border-radius: var(--edvc-border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--edvc-transition);
}

.edvc-btn-add:hover {
    background-color: rgba(0, 124, 186, 0.2);
}

.edvc-btn-warning {
    background-color: var(--edvc-warning);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--edvc-border-radius);
    font-size: 12px;
    cursor: pointer;
    transition: var(--edvc-transition);
}

.edvc-btn-warning:hover {
    background-color: #b32d2d;
}

/* Input Styles */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: var(--edvc-border-radius) !important;
    font-size: 14px;
	font-family: inherit;
    color: var(--edvc-text-primary);
    background-color: white;
    transition: var(--edvc-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--edvc-highlight);
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--edvc-text-placeholder) !important;
}

/* Application Container */
#edvc-mapper-app {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Start Screen */
.edvc-start-screen {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--edvc-bg-map);
}

.edvc-start-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.edvc-logo {
    width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
}

.edvc-presents {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--edvc-text-secondary);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.edvc-mapper-headline {
    font-size: 3rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: var(--edvc-text-primary) !important;
    margin-bottom: 1rem;
}

.edvc-subline {
    font-size: 24px; /* Größere Schrift */
    font-weight: 400; /* Normal weight */
    color: var(--edvc-text-secondary, #6c757d);
    line-height: 1.5;
    margin: 1rem 0 2rem 0 !important;
    text-align: center;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.edvc-start-options {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 25px;
    width: 100%;
    max-width: 800px;
    justify-self: center;
    align-self: center;
    margin-top: 50px;
}

.edvc-start-option {
    background-color: var(--edvc-card-bg);
    padding: 2rem;
    border-radius: var(--edvc-border-radius);
	border: 2px solid transparent;
    box-shadow: var(--edvc-shadow);
    cursor: pointer;
    transition: var(--edvc-transition);
    text-align: center;
}

.edvc-start-option:hover {
    box-shadow: var(--edvc-shadow-hover);
	border-color: var(--edvc-highlight);
}

.edvc-option-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    border-radius: var(--edvc-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-option-icon img {
    width: 60px;
    height: 60px;
}

.edvc-start-option h3 {
    color: var(--edvc-text-primary) !important;
    margin-bottom: 0.5rem;
	margin-top: 0px;
	font-weight: 700 !important;
}

.edvc-start-option p {
    font-size: 13px;
    margin: 0 !important;
	line-height: 1.2;
	
}

.edvc-start-footer {
    margin-top: 3rem;
    font-size: 12px;
    color: var(--edvc-text-secondary);
}

/* Disabled state für Start-Option */
.edvc-start-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.edvc-start-option.disabled:hover {
    transform: none;
    box-shadow: var(--edvc-shadow);
    background-color: white;
}

.edvc-start-option.disabled .edvc-option-icon {
    opacity: 0.3;
}

.edvc-start-option.disabled h3,
.edvc-start-option.disabled p {
    color: #adb5bd;
}

/* Main Interface */
.edvc-main-interface {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utility Classes */
.edvc-hidden {
    display: none !important;
}

.edvc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.edvc-fade-in {
    animation: edvcFadeIn 0.3s ease-out;
}

.edvc-fade-out {
    animation: edvcFadeOut 0.3s ease-out;
}

.edvc-slide-in-left {
    animation: edvcSlideInLeft 0.3s ease-out;
}

.edvc-slide-out-left {
    animation: edvcSlideOutLeft 0.3s ease-out;
}

/* Animations */
@keyframes edvcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes edvcFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes edvcSlideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes edvcSlideOutLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes edvcGrowHeight {
    from { height: 0; opacity: 0; }
    to { height: auto; opacity: 1; }
}

@keyframes edvcShrinkHeight {
    from { height: auto; opacity: 1; }
    to { height: 0; opacity: 0; }
}

/* Pain Points Background */
.edvc-pain-point {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: var(--edvc-border-radius);
}

/* Ideas Background */
.edvc-idea {
    background-color: #d1f2eb;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: var(--edvc-border-radius);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles for Accessibility */
input:focus,
textarea:focus {
    outline: 2px solid var(--edvc-highlight);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .edvc-navbar,
    .edvc-phases-container,
    .edvc-main-menu,
    .edvc-tutorial-popup {
        display: none !important;
    }
}


/* ---------- Print Modal CSS Start -----------*/

/* Print Modal Overlay */
.edvc-print-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-sizing: border-box;
}

/* Print Modal Content Container */
.edvc-print-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgb(0 0 0 / 20%);
    max-width: 90vw;
    max-height: 90vh;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 20px;
}

/* Print Modal Header */
.edvc-print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e9edee;
    border-radius: 12px 12px 0 0;
}

.edvc-print-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.edvc-print-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-print-close:hover {
    background: #e9edee;
}

.edvc-print-close img {
    width: 20px;
    height: 20px;
}

/* Print Modal Body */
.edvc-print-body {
    padding: 24px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 0;
}

/* Phase Selection Section */
.edvc-phase-selection {
    margin-bottom: 24px;
    padding: 0px 16px 16px;
    border-bottom: 1px solid #e9edee;
	flex-shrink: 0;

}

.edvc-phase-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edvc-phase-option {
    background: white;
    border: 2px solid #e9edee;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.edvc-phase-option:hover {
    border-color: #007cba;
    color: #007cba;
}

.edvc-phase-option.selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Card Selection Section */
.edvc-card-selection {
    padding: 0px 16px 16px;
    flex: 1; /* Nimmt verfügbaren Platz */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Print Actions Footer - NEUES FLEXBOX LAYOUT */
.edvc-print-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9edee;
    border-radius: 0 0 12px 12px;
}

/* Links-Container für Select All/Deselect All */
.edvc-print-actions-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Rechts-Container für Cancel/Generate */
.edvc-print-actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Select All und Deselect All Buttons im Footer */
.edvc-print-actions .edvc-select-all,
.edvc-print-actions .edvc-deselect-all {
    /* Erben automatisch die .edvc-btn-secondary Styles aus der Haupt-CSS */
    min-width: auto; /* Überschreibt eventuelle feste Breiten */
}





/* Cards Grid Layout */
.edvc-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #f8f9fa;
    overflow-y: auto; /* NUR hier Scroll */
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    flex: 1; /* Nimmt verfügbaren Platz im Card Selection Container */
    min-height: 200px;
}

/* Scrollbar Styling für Cards Grid */
.edvc-cards-grid::-webkit-scrollbar {
    width: 8px;
}

.edvc-cards-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.edvc-cards-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.edvc-cards-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Individual Card Preview */
.edvc-card-preview {
    background: white;
    border: 2px solid #e9edee;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    
    /* GEÄNDERT: Feste Höhe statt stretching */
    height: 160px; /* Feste Höhe */
    align-self: start; /* Verhindert Stretching im Grid */
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt Inhalt gleichmäßig */
}
}

.edvc-card-preview:hover {
    border-color: #007cba;
}

.edvc-card-preview.selected {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Card Checkbox */
.edvc-card-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007cba;
}

/* Card Preview Title */
.edvc-card-preview-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    padding-right: 12px;
	padding-left: 12px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
	text-align: center;
}

/* Card Preview Icons */
.edvc-card-preview-icons {
    display: flex;
    justify-content: space-evenly;
    gap: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.edvc-card-preview-icons img {
    width: 40px;
    height: 40px;
    border-radius: 2px;
}

/* Card Preview Stats */
.edvc-card-preview-stats {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 2px;
	justify-content: space-evenly;
}

.edvc-card-preview-stats span {
    display: block;
    margin: 0;
    line-height: 1.2;
}

/* No Journey/Cards Messages */
.edvc-no-journey-message,
.edvc-no-cards-message {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    grid-column: 1 / -1; /* Span all columns */
}

/* Template Modal Styles */
.edvc-template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.edvc-template-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.edvc-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
    overflow-y: auto;
}

.edvc-template-item {
    background-color: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.edvc-template-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
    transform: translateY(-2px);
}

.edvc-template-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: #f5f8fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-template-icon img {
    width: 32px;
    height: 32px;
}

.edvc-template-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.edvc-template-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
    margin: 0;
}

/* Confirm Dialog Styles */
.edvc-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.edvc-confirm-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    margin: 20px;
}

.edvc-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.edvc-confirm-message {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.edvc-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* Animation Keyframes */
@keyframes edvcModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes edvcModalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

/* Apply animations to modals */
.edvc-print-modal .edvc-print-content,
.edvc-template-modal .edvc-template-content,
.edvc-confirm-modal .edvc-confirm-content {
    animation: edvcModalFadeIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .edvc-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .edvc-print-content {
        width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .edvc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
        min-height: 150px;
    }
    
    .edvc-phase-selector {
        flex-direction: column;
    }
    
    .edvc-phase-option {
        text-align: center;
        flex: 1;
    }
    
    .edvc-template-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .edvc-print-actions {
        flex-direction: column;
    }
    
    .edvc-print-body {
        padding: 16px;
    }
    
    .edvc-print-header {
        padding: 16px 20px;
    }
    
    .edvc-print-actions {
        padding: 16px 20px;
    }
	
	.edvc-print-actions {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .edvc-print-actions-left,
    .edvc-print-actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .edvc-print-actions-left {
        order: 2; /* Selection buttons kommen nach den Hauptbuttons auf Mobile */
    }
    
    .edvc-print-actions-right {
        order: 1; /* Hauptbuttons (Cancel/Generate) kommen zuerst */
    }
	
	.edvc-subline {
		font-size: 16px; /* Größere Schrift */
	}
}

@media (max-width: 480px) {
    .edvc-logo {
        margin-bottom: 0.5rem;
    }
	
	.edvc-presents {
		margin-bottom: 1rem;
	}
	
	.edvc-cards-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        min-height: 120px;
    }
    
    .edvc-card-preview {
        min-height: 100px;
        padding: 10px;
    }
    
    .edvc-card-preview-title {
        height: 32px;
        font-size: 13px;
    }
    
    .edvc-card-preview-icons img {
        width: 18px;
        height: 18px;
    }
    
    .edvc-select-all,
    .edvc-deselect-all {
        flex: 1;
        text-align: center;
    }
    
    .edvc-confirm-content {
        margin: 1rem;
        padding: 1.5rem;
    }
	
	.edvc-subline {
		font-size: 16px;
	}
    
    .edvc-phase-selection,
    .edvc-card-selection {
        padding: 12px;
    }
	
	.edvc-print-actions-left,
    .edvc-print-actions-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .edvc-print-actions-left .edvc-btn-secondary,
    .edvc-print-actions-right .edvc-btn-secondary,
    .edvc-print-actions-right .edvc-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Print Media Queries (for actual printing) */
@media print {
    .edvc-print-modal,
    .edvc-template-modal,
    .edvc-confirm-modal {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .edvc-card-preview {
        border-width: 3px;
    }
    
    .edvc-card-preview.selected {
        border-width: 3px;
        background: #e6f3ff;
    }
    
    .edvc-phase-option.selected {
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .edvc-card-preview,
    .edvc-phase-option,
    .edvc-select-all,
    .edvc-deselect-all,
    .edvc-print-close {
        transition: none;
    }
    
    .edvc-print-content,
    .edvc-template-content,
    .edvc-confirm-content {
        animation: none;
    }
}

/* Focus styles for accessibility */
.edvc-select-all:focus,
.edvc-deselect-all:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ---------- Print Modal CSS End -----------*/