/* Login Widget Styles - Zentral für alle Seiten */
.crumbs {
    position: relative;
}

.login-widget {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1000;
}

/* User Icon Styles */
.user-icon {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.user-icon.logged-in,
.user-icon.logged-in .fa,
.user-icon.logged-in i {
    color: #28a745 !important; /* Grün für eingeloggt */
}

.user-icon.logged-out,
.user-icon.logged-out .fa,
.user-icon.logged-out i {
    color: #6c757d !important; /* Grau für nicht eingeloggt */
}

.user-icon:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: rgba(255,255,255,0.2);
}

/* Dropdown Menu für eingeloggte User */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 100px;
    display: none;
    z-index: 1001;
    margin-top: 5px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
}

/* Login Overlay Styles - STANDARDMÄSSIG VERSTECKT */
.overlay-background {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.overlay-background.show {
    display: block !important;
}

.login-overlay {
    display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 2001;
    width: 90%;
    max-width: 400px;
}

.login-overlay.show {
    display: block !important;
}

.login-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.login-overlay-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.login-overlay-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.login-overlay-close:hover {
    color: #333;
}

.login-overlay-content {
    padding: 0;
}

.login-form-group {
    padding: 0 20px;
    margin: 15px 0;
}

.login-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.login-form-group input:focus {
    border-color: #4caf50;
    outline: none;
}

.login-btn {
    width: calc(100% - 40px);
    margin: 15px 20px;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #45a049;
}

.login-error {
    margin: 10px 20px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
}

.login-links {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.login-links a {
    color: #4caf50;
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

.user-welcome {
    color: #333;
    font-weight: 500;
    margin-right: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: #fff;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #204d74;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border-color: #ccc;
    color: #333;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #adadad;
    color: #333;
    text-decoration: none;
}

/* Register Page Styling - Schönes Design wie Login Overlay */
.register-container {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.register-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white !important;
}

.register-content {
    padding: 40px 30px 30px;
}

.register-form-group {
    margin-bottom: 25px;
}

.register-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.register-form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.register-form-group input:focus {
    border-color: #4caf50;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.register-form-group .form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.register-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.register-btn:active {
    transform: translateY(0);
}

.register-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.register-links a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-links a:hover {
    color: #45a049;
    text-decoration: underline;
}

.register-alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.register-alert.success {
    background-color: #f8f9fa;
    color: #155724;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
}

.register-alert.error {
    background-color: #f8f9fa;
    color: #721c24;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-status {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    .user-welcome {
        font-size: 12px;
        margin-right: 5px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Alert Styles für Login-Nachrichten */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

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