/* Reset aller Link-Standardstyles */
a {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
}

/* Basis-Styles */
body.portal-page {
    font-family: Arial, sans-serif;
    margin: 0;
	margin-left: 0px;
	margin-top: 5px;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Breite angepasst */
.header-container {
    width: 100%;
    max-width: 1210px;
	height: 120px;
	min-height: 110px;
	margin: 15px auto;
	margin-bottom: 20px;

    padding: 20px 30px;
    background: #444;
    color: white;
    border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand Logo zu Text */
}

.header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    height: 70px;
    width: 70px;
}

.header-right {
    text-align: right;
	flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
}

.company-name {

    color: #D12F24;
    font-size: 2.23rem;
    font-weight: bold;
    margin: 0px;
	margin-top: 0px;
	line-height: 1.2;
	position: relative;
	top: -2px;
}

.company-tagline {
	color: rgba(255, 255, 255, 0.8);
	letter-spacing: 0.5px;
	font-weight: 400;
	margin-top: 5px;
	text-transform: none;
    font-size: 1.2rem;
    font-weight: normal;
    margin: 5px 0 0;
}

.link-preview {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.link-preview a {
    color: #0066cc;
    text-decoration: none;
}

.link-preview a:hover {
    text-decoration: underline;
}

.copy-html-section {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

#html-code-preview {
    flex-grow: 1;
    padding: 8px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.copy-html-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-html-btn:hover {
    background: #45a049;
}

/* Sprachanzeige - Position optimiert */
.language-display {
    position: absolute;
    top: 20px;
    right: calc(0% + 20px);
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #555;
    z-index: 10;
}

/* Stil für Social Media App Cards */
.social-app-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background: white;
}

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.app-title {
    font-weight: bold;
}

.app-url-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Save Button Stil */
.form-footer {
    margin-top: 20px;
    text-align: right;
    padding: 10px 0;
}

.save-button {
    background-color: #D12F24;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-button:hover {
    background-color: #b8271d;
}

/* Navigation - Breite angepasst */
.portal-nav {
	position: relative; 
    width: 100%;
    max-width: 1210px;
	margin-left: 5px;
	top: -15px; 
	margin-top: 0px !important;
	margin-bottom: -12px !important;
    padding: 15px 9.5%;
	padding-top: 0px;
    box-sizing: border-box;
    color: #555;
    font-family: Arial, sans-serif;
	    font-size: 0.98rem;
	 font-weight: bold;
	line-height: 1.3;
	

}

.portal-nav a {
    display: inline-block;
    height: 1.1em; /* Feste Höhe */
    vertical-align: top; /* Ausrichtung oben */
}



/* Lazy Loading Icons */
.lazy-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 3px;
    vertical-align: middle;
}

.lazy-icon.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-icon.error {
    background-color: #ffebee;
    color: #d32f2f;
    font-size: 12px;
    text-align: center;
    line-height: 24px;
}

.lazy-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f0f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f0f0f0"/></svg>') no-repeat center;
}

.lazy-icon.loaded {
    background: none;
}

.lazy-icon.loaded::after {
    content: none;
}


@keyframes shimmer {
    to { background-position: -200% 0; }
}

.lazy-icon img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loaded-icon {
    display: inline-block;
    vertical-align: middle;
}

.lazy-icon.loaded img {
    display: block;
}

@media (min-width: 768px) {
    .portal-nav {
        padding: 15px 0px;
    }
}

@media (min-width: 1200px) {
    .portal-nav {
        padding: 15px 150px;
    }
}

.nav-container {
    display: flex;
    gap: 20px;
    padding: 0 0px;
}

.nav-container a {
    font-family: Arial, sans-serif; /* Gleiche Schriftart wie HTML */
    font-size: 0.97rem !important; /* Übernimmt 0.95rem von .portal-nav */
    text-transform: !important; /* Keine automatische Großschreibung */
    font-weight: bold; /* Wie in HTML */
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #555;
    padding: 0 20px;
}

/* Main Content - Rahmen hinzugefügt */
.main-content {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto 15px; /* Zentriert mit unterem Abstand */
    padding: 0px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1)  !important;
    position: relative;
    flex: 1;
    border: 0px solid #e0e0e0  !important;
}

/* Login-Formular - Vollständig überarbeitet */
.login-form {
    max-width: 400px !important;
    margin: 2rem auto;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center !important;
}

.login-form h2 {
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #D12F24;
    outline: none;
}

.login-form button {
    width: 100%;
    padding: 14px;
    background: #D12F24;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.login-form button:hover {
    background: #b8271d;
}

.login-form .footer-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.login-form .footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-form .footer-links a:hover {
    color: #D12F24;
}

/* Alert-Messages */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-success {
    background: #e0f7e9;
    color: #2a7f4c;
    border: 1px solid #a8e6bf;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.login-form .alert {
    margin: -1rem 0 1.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

/* Footer - Überarbeitet für einzeilige Darstellung */
.footer {
    width: 100%;
    max-width: 1210px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 20px 15px;
    background: #ddd;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: nowrap;
}

.footer-copyright,
.footer-links a {
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #D12F24;
}

/* MODAL OPTIMIERUNGEN */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 25px;
    width: 85%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.3s;
}

#modalIframe {
    width: 100%;
    height: 78vh;
    border: none;
    border-radius: 8px;
    background: #f9f9f9;
}

.close-modal {
    position: absolute;
    right: 22px;
    top: 12px;
    color: #D12F24;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        transform: translateY(-20px);
        opacity: 0.9;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .modal-content {
        width: 92%;
        margin: 10% auto;
        padding: 20px 15px;
    }
    
    #modalIframe {
        height: 70vh;
    }
    
    .close-modal {
        right: 15px;
        top: 8px;
        font-size: 28px;
    }
}

/* Mobile Footer-Anpassungen NUR für sehr kleine Screens */
@media (max-width: 576px) {
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* Modal - Funktionssicherheit */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #D12F24;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #b8271d;
}

/* Schriftart und Grundstil für die gesamte Reset-Seite */
body.reset-password-page,
body.password-reset-mode {
    font-family: "Arial", sans-serif !important; /* Bevorzugte Schriftart */
    color: #333 !important; /* Standard-Textfarbe */
}

.reset-password-back-link {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: inline-block;
	margin-top: 1rem;
}

/* Stil für Reset-Link */
.reset-link {
    color: #555 !important;
    text-decoration: none !important;
}

/* Container für bessere Abstände */
.back-to-login {
    margin-top: 1.5rem;
    text-align: center;
}

/* Edge-spezifische Fixes */
.browser-edge .main-content {
    margin-right: 1px !important;
}

/* Edge-spezifische Schriftart-Fixes */
@supports (-ms-ime-align:auto) {
    body.reset-password-page, 
    body.password-reset-mode {
        font-family: Arial, sans-serif !important;
    }
}

/* Überschriften (z. B. "Neues Passwort") */
body.reset-password-page h2,
body.password-reset-mode h2 {
    font-size: 1.5rem !important; /* 24px bei Standard-16px */
    color: #D12F24 !important; /* Rot wie Firmenfarbe */
    margin-bottom: 1rem !important;
}

/* Formular-Text (Eingabefelder, Labels) */
body.reset-password-page .login-form,
body.password-reset-mode .login-form {
    font-size: 1rem !important; /* 16px */
}

/* Links ("Zurück zum Login") */
body.reset-password-page a,
body.password-reset-mode a {
    font-size: 0.9rem !important; /* 14.4px */
    color: #555 !important; /* Grau wie im Hauptportal */
    text-decoration: none !important;
}

/* Buttons ("Passwort speichern") */
body.reset-password-page button,
body.password-reset-mode button {
    font-family: "Arial", sans-serif !important;
    font-weight: bold !important;
}

#modalIframe {
    width: 100%;
    height: 80vh;
    border: none;
    margin-top: 20px;
    border-radius: 4px;
}

/* OTP-spezifische Styles */
.otp-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.text-link {
    color: #D12F24;
    text-decoration: none;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 3px;
}

.btn-primary {
    background: #D12F24;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* Passwort-Reset-Seite (bestehendes Design bleibt erhalten) */
body.reset-password-page .main-content,
body.password-reset-mode .main-content {
    max-width: calc(100% - 40px) !important; /* Gleiche Breite wie normale Seite */
    margin: 1px auto; /* Standard-Abstand wie im Portal */
    padding: 0px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 0px rgba(0,0,0,0.1);
    border: none !important; /* Rahmen entfernen */
}

/* Header/Footer anpassen (falls nötig) */
body.reset-password-page .header-container,
body.password-reset-mode .header-container {
    margin-top: 19px; /* Wie im normalen Portal */
}

/* Stil für den Link (wie im Login-Bereich) */
body.reset-password-page .footer-links a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.2s;
}

body.reset-password-page .footer-links a:hover {
    color: #D12F24 !important;
}

body.reset-password-page .login-form {
    padding: 0;
    box-shadow: none;
}

body.reset-password-page .main-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.reset-password-page .login-form {
    padding: 0;
    box-shadow: none;
}

body.reset-password-page .header-container {
    margin-bottom: 1.5rem;
}

body.reset-password-page button[type="submit"] {
    margin-bottom: 2rem !important; /* Etwa eine Leerzeile */
}

body.reset-password-page footer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
	font-size: 0.9rem;
}

body.reset-password-page .footer-links a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

body.reset-password-page .footer-links a:hover {
    color: #D12F24 !important;
}

/* Stil für "Zurück zum Login-Bereich" erzwingen */
body.reset-password-page a[href*="kunden_login.php"],
body.password-reset-mode a[href*="kunden_login.php"] {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.2s;
}


body.reset-password-page a[href*="kunden_login.php"]:hover,
body.password-reset-mode a[href*="kunden_login.php"]:hover {
    color: #D12F24 !important;
}

/* Responsive Design */

@media (max-width: 768px) {
    body.reset-password-page .main-content .main-content {
        width: 90%; /* Volle Breite auf kleinen Bildschirmen */
        margin: 10px auto; /* Zentrieren */
    }




    .header-container {
        padding: 12px 15px;
    }

    .portal-nav {
        margin-top: 0;
        margin-left: auto;
        order: -1;
        position: relative;
        z-index: 1000;
    }

    .nav-container {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 999;
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .header-container {
        position: relative;
    }

    .nav-container.active {
        display: flex;
    }

    .hamburger {
        display: block;
        z-index: 1000;
        position: relative;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .language-display {
        right: 20px;
    }

    /* Login-Formular Responsive */
    .login-form {
        width: 90%;
        padding: 1.5rem;
        margin: 2rem auto;
    }

    /* Reset-Password Responsive */

    body.reset-password-page .main-content {
        width: 90%;
        padding: 1.5rem;
    }
}

/* Zusätzliche Hilfsklassen */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Äußeren Rahmen NUR für die Passwort-Reset-Seite entfernen */
body.reset-password-page .main-content,
body.password-reset-mode .main-content {
    border: none !important;       /* Rahmen entfernen */
    box-shadow: none !important;  /* Schatten entfernen */
    padding: 0 !important;        /* Padding zurücksetzen (falls nötig) */
    max-width: 1170px !important; /* Standardbreite wie Hauptseite */
}

/* Inneren Rahmen (unter Hamburger-Menü) BEHALTEN */
.main-content {
    border: 1px solid #e0e0e0; /* Original-Rahmen für alle Seiten */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Nur den äußeren Rahmen der Wrapper-Seite entfernen */
body.reset-password-page > .main-content,
body.password-reset-mode > .main-content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.password-reset-mode .main-content {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Inneren Rahmen (Formular) BEHALTEN */
body.reset-password-page .main-content .main-content,
body.password-reset-mode .main-content .main-content {
    border: 1px solid #e0e0e0 !important; /* Original-Rahmen */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    background: white !important;
    padding: 20px !important;
}

/* Kopfbereich anpassen (falls nötig) */
body.reset-password-page .header-container,
body.password-reset-mode .header-container {
    margin-bottom: 0; /* Abstand zum Hauptinhalt reduzieren */
}

/* Formular-Rahmen optimieren */
body.reset-password-page .main-content .main-content {
    margin-top: 20px; /* Abstand zum Header */
    max-width: 500px; /* Etwas schmaler für Fokus */
}

/* Footer anpassen */
body.reset-password-page .footer {
    margin-top: 0; /* Kein doppelter Abstand */
}

/* [Vorheriger CSS-Code bleibt unverändert bis zum Ende der Datei] */

/* ========== BEREINIGTE RESET-PASSWORD STYLES ========== */
/* Entfernt alle doppelten Definitionen und ersetzt sie durch: */

/* Haupt-Container für Reset-Password (Wrapper-Ebene) */
body.reset-password-page > .main-content,
body.password-reset-mode > .main-content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    max-width: 1170px !important;
    margin: 19px auto 0 !important; /* An Header-Höhe angepasst */
}

/* Innerer Content-Bereich mit Formular */
body.reset-password-page .main-content .main-content,
body.password-reset-mode .main-content .main-content {
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    background: white !important;
    padding: 30px !important;
    margin: 0px auto !important;
    max-width: 1100px !important;
    border-radius: 12px !important;
}

/* portal.css */
.iban-error-message {
    color: #F44336;
    margin-top: 5px;
    display: none;
    font-size: 14px;
    padding: 5px;
    background: #FFEBEE;
    border-radius: 4px;
    border-left: 3px solid #F44336;
}

#kunden-languageSelect[disabled] {
    pointer-events: none;
    opacity: 0.7;
}

/* Header-Anpassungen für Reset-Seite */
body.reset-password-page .header-container,
body.password-reset-mode .header-container {
    margin-bottom: 0 !important;
}

/* Edge-spezifische Fixes */
@supports (-ms-ime-align:auto) {
    /* Schriftart für gesamte Seite */
    body.reset-password-page,
    body.password-reset-mode {
        font-family: Arial, sans-serif !important;
    }
    
    /* Rahmen-Fixes */
    body.reset-password-page > .main-content,
    body.password-reset-mode > .main-content {
        margin: 19px auto 10px !important;
    }
    
    body.reset-password-page .main-content .main-content,
    body.password-reset-mode .main-content .main-content {
        margin-top: 15px !important;
        border-width: 1px !important; /* Rahmenstärke erzwingen */
    }
    
    /* Hamburger-Menü Fix */
    .hamburger {
        padding-left: 5px !important;
        margin-right: 5px !important;
    }
    
    /* Footer-Anpassung */
    .footer {
        margin-top: 15px !important;
    }
}

/* Reset-Page Layout Fix */
.main-content-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
    margin-top: -25px;
	margin-bottom: -15px;
    background: transparent;
    border: none !important;
    position: relative;
}



/* Edge-spezifischer Fix */
@supports (-ms-ime-align:auto) {
    .main-content-wrapper {
        margin-top: 19px !important;
    }
    
    .main-content {
        margin: 15px auto !important;
    }
}

/* In portal.css */
.social-app-card {
    margin-bottom: 15px;
}

.form-footer {
    margin-top: 20px;
    text-align: right;
    padding: 15px 0;
    border-top: 1px solid #eee;
}


.save-button {
    background-color: #D12F24;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}


.save-button:hover {
    background-color: #b8271d;
}



   .logo-at {
        font-size: 4rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 70px;
        width: 70px;
        line-height: 1;
        margin-right: 15px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        position: relative;
        top: -5px;
        
        /* Farbverlauf-Animation mit direktem Farbwert #D12F24 */
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), #D12F24);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 5s ease infinite;
    }

    /* Keyframes für die Farbverlauf-Animation */
    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }



    /* Keyframes für die Farbverlauf-Animation */
    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

/* Füge diese Media-Query am Ende der portal.css hinzu */
@media (min-width: 1920px) {
    .portal-nav {
        max-width: 1210px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-container {
        padding: 0 20px; /* Etwas Innenabstand beibehalten */
    }
}

@-moz-document url-prefix() {
  .portal-nav {
    margin-left: 13px; /* Feinjustierung nur für Firefox */
  }
}

/* XXL-Screen Anpassungen (ab 1921px) */
@media (min-width: 1921px) {
    .portal-nav {
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .nav-container {
        justify-content: center;
        padding: 0;
    }
    
    /* Optional: Header auch zentrieren für Konsistenz */
    .header-container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Sehr große Bildschirme (ab 2560px) */
@media (min-width: 2560px) {
    .portal-nav {
        max-width: 1210px;
    }
}

/* Ultra-wide Bildschirme (ab 3440px) */
@media (min-width: 3440px) {
    .portal-nav {
        max-width: 1210px;
        margin-left: calc((100% - 1210px) / 2);
    }
    
    /* Sicherstellen, dass der Hauptinhalt auch zentriert ist */
    .main-content {
        margin-left: auto;
        margin-right: auto;
    }
}

/* XXL-Screen Anpassungen (ab 1921px) */
@media (min-width: 1921px) {
    .portal-nav {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        left: 0;
        right: 0;
    }
    
    .nav-container {
        justify-content: left;
        padding: 0;
    }
}

/* Ultra-wide Bildschirme (ab 3440px) */
@media (min-width: 3440px) {
    .portal-nav {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Sicherstellen, dass der Hauptinhalt auch zentriert ist */
    .main-content {
        margin-left: auto;
        margin-right: auto;
    }
}






/* [Eventuell vorhandene andere Media-Queries bleiben erhalten] */