/* Import CSS Variables */
@import './utilities/variables.css';

/* Import Component Styles */
@import './components/header.css';
@import './components/footer.css';
@import './components/forms.css';
@import './components/button.css';
@import './components/article_polaroid.css';
/* @import './components/article_detail.css'; IS LOADED IN articles/detail.ejs */
@import './components/sort.css';
@import './components/tags.css';
@import './components/modals.css';
@import './components/notifications.css';
@import './components/itineraries.css';
@import './components/community.css';
@import './components/helptexts.css';
@import './components/tutorial.css';


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 
body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-title);
}

h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-title);
}

h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-title);
}

section {
    margin-bottom: 20px;
}

ul {
    list-style-type:square;
    margin-left: 20px;
}

li {
}
p {
    margin-bottom: 10px;
}

/* Main Layout */
.main {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main__content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .main__content,
    .container {
        padding: 1 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .main__content,
    .container {
        padding: 0 var(--spacing-xs);
    }

    .section {
        margin: var(--spacing-md) 0;
    }

    .page {
        padding: var(--spacing-md) 0;
    }
}

/* MOBILE FIX: Global typografische Anpassungen und Abstände */
@media (max-width: 480px) {
    /* MOBILE FIX: Grundschrift leicht größer für bessere Lesbarkeit */
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    /* MOBILE FIX: Content-Padding reduzieren, um Platz zu gewinnen */
    .main__content,
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* MOBILE FIX: Überschriften leicht skalieren */
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.05rem; }
}





/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


.editable-text:hover {
    outline: 1px solid var(--secondary-light);
    width: 100%;
}

.editable-text:focus {
    outline: 1px solid var(--secondary-light);
    margin: -1px;
    width: 100%;
    background-color: var(--surface-color);
}

.debug-code {
    display: none;
    font-size: 0.7rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--color-text-secondary);
    opacity: 0.2;
}

body[data-debugcode-enabled="true"] .debug-code {
    display: block;
}

.debug-code:hover {
    opacity: 1;
}

/* Mobile-spezifische Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .debug-code {
        display: none;
    }

    body[data-debugcode-enabled="true"] .debug-code {
        display: block;
        font-size: 0.6rem; /* Etwas kleiner auf Mobilgeräten */
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Register Prompt Styles für nicht angemeldete Nutzer */
.register-prompt {
    background: var(--background-color);
    color: var(--text-body);
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.register-prompt__content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.register-prompt__content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.register-prompt__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Mobile Styles für Register Prompt */
@media (max-width: 768px) {
    .register-prompt {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .register-prompt__content h3 {
        font-size: 1.3rem;
    }
    
    .register-prompt__content p {
        font-size: 0.9rem;
    }
    
    .register-prompt__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .register-prompt__buttons .button {
        width: 100%;
        max-width: 200px;
    }
}
