/* ==================== TYPOGRAPHY.CSS ==================== */
/* Version: 1.0.0
 * Letzte Aktualisierung: 2024-02-07
 */

/* Font Declarations */
@font-face {
    font-family: 'JosefinSlab-SemiBold';
    src: url('/Fonts/JosefinSlab-SemiBold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Light';
    src: url('/Fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

/* Typografie-Basis */
h1, h2, h3, h4, h5, h6 {
    font-family: 'JosefinSlab-SemiBold', serif;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-family: 'Roboto-Light', sans-serif;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Text-Styles */
.text-large {
    font-size: 1.25rem;
}

.text-small {
    font-size: 0.875rem;
}

.text-bold {
    font-weight: 700;
}

.text-light {
    font-weight: 300;
}

/* Font-Spezifische Klassen */
.josefin {
    font-family: 'JosefinSlab-SemiBold', serif;
}

.roboto {
    font-family: 'Roboto-Light', sans-serif;
}

/* Text-Ausrichtung */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Links */
a {
    color: var(--bloodred);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--lowred);
}

/* Listen */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Zitate */
blockquote {
    font-family: 'JosefinSlab-SemiBold', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--bloodred);
    background-color: var(--bg-secondary);
}

/* Code */
code {
    font-family: monospace;
    background-color: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5, h6 {
        font-size: 1rem;
    }

    .text-large {
        font-size: 1.125rem;
    }
}


/* Typewriter Animation */
.typing-animation {
    font-family: 'JosefinSlab-SemiBold', serif;
    font-size: 2.5em;
    color: var(--bloodred);
    text-align: center;
    margin: 40px 0;
}

#graphix {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.Typewriter__cursor {
    color: var(--bloodred);
}

@media (max-width: 768px) {
    .typing-animation {
        font-size: 2em;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .typing-animation {
        font-size: 1.5em;
        margin: 20px 0;
    }
}

/* Dark Mode Anpassungen */
[data-theme="dark"] {
    blockquote {
        background-color: var(--bg-secondary);
    }

    code {
        background-color: var(--bg-secondary);
    }
}