/* 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;
    padding: 0;
	margin-top: 1px;
	align-items: center; /* Zentriert horizontal */
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Header - Breite angepasst */
.header-container {
    width: 100%;
	min-height: 110px;
    max-width: 1210px;
    margin-top: 19px;
    margin-left: auto;
    margin-right: auto;
	margin-bottom: 1px;
    padding: 20px 30px;
    background: #444;
    color: white;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;}
}
.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: 0;
	margin-top: 0px !important;
	margin-bottom: 1px !important;
	line-height: 1.2;
	position: relative;
	top: 3px;
}
.company-tagline {
		color: rgba(255, 255, 255, 0.8);
	letter-spacing: 0.5px;
	font-weight: 400;
	line-height: 1.2;
	margin-top: 10px !important;
	margin-bottom: 4px !important;
	text-transform: none;

    font-size: 1.2rem;
    font-weight: normal;
    margin: 5px 0 0;

}
/* Sprachanzeige - Position optimiert */
.language-display {
    position: absolute;
    top: 20px;
    right: calc(10% + 20px);
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #555;
    z-index: 10;}
/* Navigation - Breite angepasst */
.portal-nav {
    width: 100%;
    max-width: 1210px;
    margin: 6px 0 0 0;
    padding: 15px 9.5%;
    box-sizing: border-box;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.2px;}


@media (min-width: 768px) {
    .portal-nav {
        padding: 15px 50px;}
@media (min-width: 1210px) {
    .portal-nav {
        padding: 15px 0px;}
.nav-container {
    display: flex;
    gap: 20px;
    padding: 0 0px;}
.nav-container a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;}
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #555;
    padding: 0 20px;}
/* Main Content - Rahmen hinzugefügt */
.main-content {
    width: 95%;
    max-width: 1210px;
	margin: 0 0;
	padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    flex: 1;
    border: 1px solid #e0e0e0;}
/* 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: 25px;
    margin-bottom: 15px;
    padding: 17px 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;}
.language-switcher {
    text-align: center;
    margin: 0px 0;
    padding: 0px;
    background: #fff;
    border-radius: 6px;}
.language-switcher a {
    padding: 5px 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
    border-radius: 4px;}
.language-switcher a:hover {
    color: #D12F24;
    background: #e0e0e0;}
.language-switcher a[href*="lang=<?= $lang ?>"] {
    font-weight: bold;
    color: #D12F24;
    text-decoration: underline;}
/* 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 .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;}
/* 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,
    .portal-nav,
    .main-content,
    .footer {
        width: 92%;
        margin-left: auto;
        margin-right: auto;}
.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;}
.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;}
/* 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: 20px auto !important;
    max-width: 500px !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;}
.content-section h2 {
    color: #D12F24;
    margin-bottom: 1em;
	    font-size: 1.4em;
    font-weight: normal;
	margin-left: 90px;}
#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: 1170px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none !important;}
/* Edge-spezifischer Fix */
@supports (-ms-ime-align:auto) {
    .main-content-wrapper {
        margin-top: 19px !important;}
.main-content {
        margin: 15px auto !important;}
	
   .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%;
        }
    }




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