h1, h2, h3 {
    font-family: var(--heading-text) !important;
    text-transform: uppercase !important;
}

/* ===== RESPONSIVE TYPOGRAPHY FÜR MOBILE GERÄTE ===== */

/* H1 - Responsive Hauptüberschriften */
h1 {
    font-size: clamp(1.75rem, 4vw, 3rem) !important;
    line-height: 1.2 !important;
    text-wrap: balance; /* Bessere Zeilenumbrüche */
}

/* H2 - Responsive Sektionsüberschriften */
h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
    line-height: 1.3 !important;
    text-wrap: balance;
}

/* H3 - Responsive Unterüberschriften */
h3 {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
    line-height: 1.4 !important;
    text-wrap: balance;
}

/* Spezielle Optimierung für sehr kleine Displays <576px */
@media (max-width: 575px) {
    h1 {
        font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
        line-height: 1.1 !important;
        word-break: break-word; /* Verhindert Überlauf */
        hyphens: auto; /* Automatische Silbentrennung */
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        line-height: 1.2 !important;
        word-break: break-word;
        hyphens: auto;
    }
    
    h3 {
        font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
        line-height: 1.3 !important;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Spezielle Behandlung für sehr lange Wörter */
    h1, h2, h3 {
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    /* Spezifische Klassen für iPhone und kleinere Displays optimieren */
    .intro-text-headline {
        font-size: clamp(1.375rem, 4.5vw, 1.875rem) !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
    
    .hero-text-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.1 !important;
    }
    
    .hero-text-subline {
        font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
        line-height: 1.3 !important;
    }
    
    /* Alle großen Text-Elemente auf iPhone optimieren */
    .text-large-white {
        font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
        line-height: 1.2 !important;
    }
}

h4 {
    font-family: var(--text-bold) !important;
    text-transform: uppercase !important;
}

p {
    font-family: var(--text-regular) !important;
    font-size: 1.25rem !important;
}

/* Responsive Paragraph-Text für kleinere Displays */
@media (max-width: 575px) {
    p {
        font-size: clamp(1rem, 3vw, 1.125rem) !important;
        line-height: 1.5 !important;
    }
}

a {
    color: rgba(var(--text-standard-color), 1.0) !important;
    text-decoration: underline;
}

a:hover {
    color: rgba(var(--signal-color), 1.0) !important;
}

.text-bold {
    font-family: var(--text-bold) !important;
  }

.hero-text-headline {
    font-family: var(--hero-text);
    font-size: 5.25rem;
    font-size: calc(2rem + 2.03125vw);
    line-height: 1.2;
    text-align: center;
    color: rgba(var(--white), 1.0);
}

.hero-text-subline {
    max-width: 1200px;
    margin: auto 0;
    font-family: var(--text-light);
    font-size: calc(1rem + 0.625vw);
    line-height: 1.4;
    text-align: center;
    color: rgba(var(--white), 1.0);
}

.text-large-white {
    font-family: var(--hero-text);
    color: rgba(var(--white), 1.0);
    background-color: rgba(var(--main-color), 1.0);
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

/* Ein- und Ausklappen von Text */
.text-truncate-custom {
    position: relative;
}

.text-truncate-custom .truncated-content {
    position: relative;
    height: 6em;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.text-truncate-custom .truncated-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2em;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.text-truncate-custom.expanded .truncated-content::after {
    opacity: 0;
}

.read-more-btn {
    display: block;
    margin: 1rem auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Small devices in portrait or landscape orientation */
@media
only screen and (max-width: 768px) and (orientation: portrait),
only screen and (max-width: 768px) and (orientation: landscape) {
        .hero-text-headline {
            font-size: 2.25rem;
        }

        .hero-text-subline {
            font-size: 1.125rem;
            margin: 30px 0 !important;
            padding: 0 !important;
        }
}

@media
only screen and (max-height: 576px) and (orientation: landscape) {
        .hero-text-headline {
            font-size: 2rem;
        }

        .hero-text-subline {
            font-size: 1rem;
            margin: 30px 0 !important;
            padding: 0 !important;
        }
}