/* Allgemeine Stile */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header und Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

nav ul li a i {
    margin-right: 0.5rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: none;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    padding: 0.75rem 1rem;
    display: block;
}

.user-menu:hover + .dropdown,
.dropdown:hover {
    display: block;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    color: var(--dark-color);
}

.card-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.alert-success {
    background-color: var(--success-color);
    color: #fff;
}

.alert-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.alert-warning {
    background-color: var(--warning-color);
    color: #fff;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    font-weight: 600;
    color: var(--dark-color);
}

.table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Password Items */
.password-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.password-item:last-child {
    border-bottom: none;
}

.password-info {
    flex: 1;
}

.password-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.password-username {
    color: var(--gray-color);
    font-size: 0.875rem;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.password-field input {
    padding-right: 2.5rem;
}

.password-field .toggle-password {
    position: absolute;
    right: 0.75rem;
    cursor: pointer;
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray-color);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .dropdown {
        left: 0;
        right: auto;
    }
} 