/* ==========================================================================
   Auguste-Stiftung Workflow System - Frontend Styles
   Brand Colors: Primary #1a6b3c, Accent #c8a96e
   ========================================================================== */

:root {
    --ast-primary: #1a6b3c;
    --ast-primary-dark: #145530;
    --ast-primary-light: #e8f5ee;
    --ast-accent: #c8a96e;
    --ast-bg: #f0f2f5;
    --ast-white: #ffffff;
    --ast-text: #2d3436;
    --ast-text-light: #636e72;
    --ast-border: #dfe6e9;
    --ast-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --ast-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --ast-radius: 10px;
    --ast-radius-sm: 6px;
    --ast-transition: all 0.25s ease;
    --ast-sidebar-width: 260px;

    /* Ampel */
    --ast-grau: #9e9e9e;
    --ast-gruen: #4caf50;
    --ast-orange: #ff9800;
    --ast-rot: #f44336;
    --ast-blau: #2196f3;
}

/* ==================== LOGIN ==================== */

.ast-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.ast-login-card {
    background: var(--ast-white);
    border-radius: var(--ast-radius);
    box-shadow: var(--ast-shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.ast-login-header {
    background: linear-gradient(135deg, var(--ast-primary), var(--ast-primary-dark));
    padding: 40px 32px 32px;
    text-align: center;
    color: #fff;
}

.ast-login-header h2 {
    margin: 16px 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.ast-login-subtitle {
    opacity: 0.8;
    font-size: 14px;
    margin: 0;
}

.ast-logo-placeholder {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
}

.ast-login-card .login-username,
.ast-login-card .login-password,
.ast-login-card .login-remember,
.ast-login-card .login-submit {
    padding: 0 32px;
    margin-bottom: 16px;
}

.ast-login-card .login-username label,
.ast-login-card .login-password label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ast-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ast-login-card input[type="text"],
.ast-login-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 15px;
    transition: var(--ast-transition);
    box-sizing: border-box;
}

.ast-login-card input[type="text"]:focus,
.ast-login-card input[type="password"]:focus {
    border-color: var(--ast-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--ast-primary-light);
}

.ast-login-card .login-submit {
    padding-top: 8px;
    padding-bottom: 24px;
}

.ast-login-card input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--ast-primary);
    color: #fff;
    border: none;
    border-radius: var(--ast-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ast-transition);
}

.ast-login-card input[type="submit"]:hover {
    background: var(--ast-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,107,60,0.3);
}

.ast-login-footer {
    text-align: center;
    padding: 0 32px 16px;
}

.ast-login-footer a {
    color: var(--ast-primary);
    text-decoration: none;
    font-size: 14px;
}

.ast-login-dsgvo {
    padding: 16px 32px 24px;
    text-align: center;
    color: var(--ast-text-light);
}

.ast-login-dsgvo small { font-size: 11px; }

/* ==================== ALERTS ==================== */

.ast-alert {
    padding: 14px 20px;
    margin: 16px 32px;
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ast-alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

.ast-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* ==================== DASHBOARD LAYOUT ==================== */

.ast-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--ast-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar */
.ast-sidebar {
    width: var(--ast-sidebar-width);
    background: var(--ast-white);
    border-right: 1px solid var(--ast-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--ast-transition);
}

.ast-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--ast-border);
    background: linear-gradient(135deg, var(--ast-primary), var(--ast-primary-dark));
}

.ast-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ast-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.ast-user-details {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.ast-user-details strong {
    font-size: 14px;
}

.ast-user-details small {
    opacity: 0.75;
    font-size: 12px;
}

/* Navigation */
.ast-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.ast-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--ast-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--ast-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.ast-nav-item:hover {
    background: var(--ast-primary-light);
    color: var(--ast-primary);
}

.ast-nav-item.active {
    background: var(--ast-primary-light);
    color: var(--ast-primary);
    border-left-color: var(--ast-primary);
    font-weight: 600;
}

.ast-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.ast-badge {
    background: var(--ast-rot);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.ast-sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid var(--ast-border);
}

.ast-logout { color: var(--ast-rot) !important; }
.ast-logout:hover { background: #fdecea !important; }

/* Main Area */
.ast-main {
    flex: 1;
    margin-left: var(--ast-sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.ast-topbar {
    background: var(--ast-white);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--ast-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.ast-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--ast-text);
    padding: 4px 8px;
}

.ast-page-title {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--ast-text);
    margin: 0;
}

.ast-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Bell */
.ast-notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    color: var(--ast-text-light);
}

.ast-notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--ast-rot);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ast-notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 360px;
    background: var(--ast-white);
    border-radius: var(--ast-radius);
    box-shadow: var(--ast-shadow-lg);
    border: 1px solid var(--ast-border);
    z-index: 200;
}

.ast-notification-dropdown.open { display: block; }

.ast-notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--ast-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ast-notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Content */
.ast-content {
    padding: 32px;
    flex: 1;
}

/* ==================== CARDS ==================== */

.ast-card {
    background: var(--ast-white);
    border-radius: var(--ast-radius);
    box-shadow: var(--ast-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.ast-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ast-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ast-card-header h3,
.ast-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ast-text);
}

.ast-card-header h3 i,
.ast-card-header h4 i {
    color: var(--ast-primary);
    margin-right: 8px;
}

/* ==================== STATS GRID ==================== */

.ast-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ast-stat-card {
    background: var(--ast-white);
    border-radius: var(--ast-radius);
    box-shadow: var(--ast-shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--ast-transition);
}

.ast-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ast-shadow-lg);
}

.ast-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ast-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--ast-text);
    display: block;
    line-height: 1;
}

.ast-stat-label {
    font-size: 13px;
    color: var(--ast-text-light);
    margin-top: 2px;
}

/* ==================== AMPEL SYSTEM ==================== */

.ast-ampel-overview {
    padding: 20px 24px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.ast-ampel-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ast-ampel-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.ast-ampel-info strong {
    font-size: 20px;
    display: block;
}

.ast-ampel-info span {
    font-size: 13px;
    color: var(--ast-text-light);
}

/* Ampel Badge */
.ast-ampel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ast-ampel-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ampel-grau  { background: #f5f5f5; color: #757575; }
.ampel-grau::before, .ampel-grau .ast-ampel-light-lg { background: var(--ast-grau); }
.ampel-gruen { background: #e8f5e9; color: #2e7d32; }
.ampel-gruen::before, .ampel-gruen .ast-ampel-light-lg { background: var(--ast-gruen); }
.ampel-orange { background: #fff3e0; color: #e65100; }
.ampel-orange::before, .ampel-orange .ast-ampel-light-lg { background: var(--ast-orange); }
.ampel-rot   { background: #fdecea; color: #c62828; }
.ampel-rot::before, .ampel-rot .ast-ampel-light-lg { background: var(--ast-rot); }
.ampel-blau  { background: #e3f2fd; color: #1565c0; }
.ampel-blau::before, .ampel-blau .ast-ampel-light-lg { background: var(--ast-blau); }

/* Ampel Dot */
.ast-ampel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.ast-ampel-dot.ampel-grau  { background: var(--ast-grau); }
.ast-ampel-dot.ampel-gruen { background: var(--ast-gruen); }
.ast-ampel-dot.ampel-orange{ background: var(--ast-orange); }
.ast-ampel-dot.ampel-rot   { background: var(--ast-rot); }
.ast-ampel-dot.ampel-blau  { background: var(--ast-blau); }

/* Large Ampel */
.ast-ampel-large {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--ast-radius-sm);
}

.ast-ampel-light-lg {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.ast-ampel-label {
    font-weight: 700;
    font-size: 16px;
}

/* ==================== TABLES ==================== */

.ast-table-wrapper {
    overflow-x: auto;
}

.ast-table {
    width: 100%;
    border-collapse: collapse;
}

.ast-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ast-text-light);
    background: #fafafa;
    border-bottom: 2px solid var(--ast-border);
}

.ast-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ast-border);
    font-size: 14px;
    color: var(--ast-text);
    vertical-align: middle;
}

.ast-table tbody tr:hover {
    background: var(--ast-primary-light);
}

.ast-table tbody tr.ast-clickable {
    cursor: pointer;
}

.ast-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--ast-text-light);
    font-style: italic;
}

.ast-empty-small {
    text-align: center;
    padding: 20px;
    color: var(--ast-text-light);
    font-size: 13px;
}

/* ==================== BUTTONS ==================== */

.ast-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--ast-transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.ast-btn-primary:hover {
    background: var(--ast-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,107,60,0.3);
    color: #fff;
}

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

.ast-btn-outline {
    background: transparent;
    color: var(--ast-text);
    border: 2px solid var(--ast-border);
}

.ast-btn-outline:hover {
    border-color: var(--ast-primary);
    color: var(--ast-primary);
}

.ast-btn-sm { padding: 6px 14px; font-size: 13px; }
.ast-btn-xs { padding: 4px 10px; font-size: 12px; }
.ast-btn-lg { padding: 14px 28px; font-size: 16px; }
.ast-btn-block { width: 100%; justify-content: center; }

.ast-btn-link {
    background: none;
    border: none;
    color: var(--ast-primary);
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.ast-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--ast-radius-sm);
    color: var(--ast-text-light);
    transition: var(--ast-transition);
    font-size: 14px;
}

.ast-btn-icon:hover {
    background: var(--ast-primary-light);
    color: var(--ast-primary);
}

.ast-btn-danger-icon:hover {
    background: #fdecea;
    color: var(--ast-rot);
}

.ast-action-btns {
    display: flex;
    gap: 4px;
}

/* ==================== VOTING ==================== */

.ast-status-card { padding: 20px 24px; }

.ast-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ast-vote-summary {
    display: flex;
    gap: 20px;
}

.ast-vote-block {
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--ast-radius-sm);
    min-width: 80px;
}

.ast-vote-block i { font-size: 20px; margin-bottom: 4px; }
.ast-vote-block strong { display: block; font-size: 24px; }
.ast-vote-block small { font-size: 11px; }

.ast-vote-ja { background: #e8f5e9; color: #2e7d32; }
.ast-vote-nein { background: #fdecea; color: #c62828; }
.ast-vote-hb { background: #fff3e0; color: #e65100; }

.ast-votes-inline {
    display: flex;
    gap: 8px;
}

.ast-vote-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.ast-vote-mini.ast-vote-ja { background: #e8f5e9; color: #2e7d32; }
.ast-vote-mini.ast-vote-nein { background: #fdecea; color: #c62828; }
.ast-vote-mini.ast-vote-hb { background: #fff3e0; color: #e65100; }

.ast-voting-area { padding: 24px; }

.ast-vote-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ast-vote-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    border: 2px solid;
    border-radius: var(--ast-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ast-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ast-white);
}

.ast-vote-btn-ja {
    border-color: var(--ast-gruen);
    color: var(--ast-gruen);
}
.ast-vote-btn-ja:hover {
    background: var(--ast-gruen);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76,175,80,0.35);
}

.ast-vote-btn-nein {
    border-color: var(--ast-rot);
    color: var(--ast-rot);
}
.ast-vote-btn-nein:hover {
    background: var(--ast-rot);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244,67,54,0.35);
}

.ast-vote-btn-hb {
    border-color: var(--ast-orange);
    color: var(--ast-orange);
}
.ast-vote-btn-hb:hover {
    background: var(--ast-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,152,0,0.35);
}

.ast-vote-details { padding: 0 24px 24px; }
.ast-vote-details h4 { margin: 0 0 12px; font-size: 14px; color: var(--ast-text-light); }

.ast-vote-item {
    padding: 12px 16px;
    border-radius: var(--ast-radius-sm);
    margin-bottom: 8px;
}

.ast-vote-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ast-vote-item-header small {
    margin-left: auto;
    color: var(--ast-text-light);
}

.ast-vote-comment {
    margin: 6px 0 0 30px;
    font-size: 13px;
    color: var(--ast-text-light);
    font-style: italic;
}

.ast-comment-field { padding: 0 0 8px; }

.ast-comment-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ast-text-light);
    margin-bottom: 6px;
}

.ast-comment-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.ast-comment-field textarea:focus {
    border-color: var(--ast-primary);
    outline: none;
}

/* ==================== DETAIL VIEW ==================== */

.ast-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ast-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ast-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.ast-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
}

.ast-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ast-text-light);
    margin-bottom: 4px;
}

.ast-field span,
.ast-field p {
    font-size: 15px;
    color: var(--ast-text);
}

.ast-field-full {
    grid-column: 1 / -1;
    padding: 0 24px 24px;
}

.ast-amount {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--ast-primary) !important;
}

/* Status controls sidebar */
.ast-status-controls {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ast-release-info {
    padding: 16px;
    text-align: center;
}

.ast-hint {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--ast-text-light);
}

.ast-checklist { padding: 16px; }

.ast-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.ast-card-dsgvo {
    border-left: 3px solid var(--ast-primary);
}

.ast-card-dsgvo small {
    display: block;
    padding: 0 16px 8px;
    color: var(--ast-text-light);
    line-height: 1.5;
}

.ast-dsgvo-info {
    padding: 0 16px 16px;
}

/* ==================== FILES ==================== */

.ast-file-list { padding: 8px 16px; }

.ast-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--ast-radius-sm);
    transition: var(--ast-transition);
}

.ast-file-item:hover { background: var(--ast-primary-light); }

.ast-file-icon {
    width: 40px;
    height: 40px;
    background: var(--ast-primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ast-primary);
    font-size: 18px;
}

.ast-file-info { flex: 1; }

.ast-file-name {
    color: var(--ast-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ast-file-name:hover { color: var(--ast-primary); }

.ast-file-info small {
    display: block;
    color: var(--ast-text-light);
    font-size: 12px;
    margin-top: 2px;
}

/* ==================== FORMS ==================== */

.ast-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 24px;
}

.ast-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ast-text-light);
    margin-bottom: 6px;
}

.ast-form-field input,
.ast-form-field textarea,
.ast-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    transition: var(--ast-transition);
    box-sizing: border-box;
}

.ast-form-field input:focus,
.ast-form-field textarea:focus,
.ast-form-field select:focus {
    border-color: var(--ast-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--ast-primary-light);
}

.ast-form-field-full { grid-column: 1 / -1; }

.ast-form-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--ast-border);
    display: flex;
    gap: 10px;
}

.ast-select {
    padding: 10px 14px;
    border: 2px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== FILTERS ==================== */

.ast-filters { margin-bottom: 20px; }

.ast-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ast-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.ast-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ast-text-light);
    pointer-events: none;
    z-index: 1;
    font-size: 14px;
}

.ast-search-box input {
    width: 100%;
    padding: 10px 14px 10px 44px;
    border: 2px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}

.ast-search-box input:focus {
    border-color: var(--ast-primary);
    outline: none;
}

.ast-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ast-filter-btn {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ast-text-light);
    background: var(--ast-white);
    border: 1px solid var(--ast-border);
    transition: var(--ast-transition);
}

.ast-filter-btn:hover,
.ast-filter-btn.active {
    background: var(--ast-primary);
    color: #fff;
    border-color: var(--ast-primary);
}

/* ==================== PAGINATION ==================== */

.ast-pagination {
    padding: 16px 24px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.ast-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ast-text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ast-transition);
}

.ast-page-btn:hover,
.ast-page-btn.active {
    background: var(--ast-primary);
    color: #fff;
}

/* ==================== NOTIFICATIONS ==================== */

.ast-notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ast-border);
    cursor: pointer;
    transition: var(--ast-transition);
}

.ast-notification-item:hover {
    background: var(--ast-primary-light);
}

.ast-notification-item.ast-unread {
    background: #f0f8ff;
    border-left: 3px solid var(--ast-primary);
}

.ast-notification-icon {
    width: 40px;
    height: 40px;
    background: var(--ast-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ast-primary);
    flex-shrink: 0;
}

.ast-notification-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.ast-notification-content p {
    margin: 0;
    font-size: 13px;
    color: var(--ast-text-light);
}

.ast-notification-content small {
    color: #b2bec3;
    font-size: 11px;
}

/* ==================== SITZUNGEN ==================== */

.ast-sitzung-card { overflow: visible; }

.ast-sitzung-header {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.ast-sitzung-date {
    background: var(--ast-primary);
    color: #fff;
    border-radius: var(--ast-radius);
    padding: 12px 16px;
    text-align: center;
    min-width: 70px;
}

.ast-date-day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.ast-date-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

.ast-sitzung-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ast-sitzung-info p {
    margin: 0;
    color: var(--ast-text-light);
    font-size: 14px;
}

.ast-sitzung-info i {
    color: var(--ast-primary);
    margin-right: 4px;
}

.ast-tagesordnung {
    padding: 0 24px 24px;
}

.ast-top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ast-top-nr {
    width: 28px;
    height: 28px;
    background: var(--ast-primary-light);
    color: var(--ast-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ==================== USER MANAGEMENT ==================== */

.ast-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ast-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--ast-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ast-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--ast-primary-light);
    color: var(--ast-primary);
    font-size: 12px;
    font-weight: 600;
}

/* Badges */
.ast-badge-green { color: var(--ast-gruen); font-weight: 700; }
.ast-badge-grey { color: var(--ast-grau); }

/* ==================== MODAL ==================== */

.ast-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.ast-modal-content {
    background: var(--ast-white);
    border-radius: var(--ast-radius);
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--ast-shadow-lg);
}

.ast-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ast-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ast-modal-header h3 { margin: 0; }

.ast-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ast-text-light);
    padding: 0 4px;
}

.ast-modal-body { padding: 24px; }
.ast-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ast-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ast-cap-group {
    margin-bottom: 20px;
}

.ast-cap-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ast-primary);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--ast-primary-light);
}

.ast-cap-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ast-cap-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

/* ==================== SETTINGS ==================== */

.ast-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ast-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ast-info-text {
    padding: 0 24px 16px;
    color: var(--ast-text-light);
    font-size: 14px;
    line-height: 1.6;
}

.ast-log-action {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.ast-actions-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* ==================== TOAST ==================== */

.ast-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--ast-text);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--ast-shadow-lg);
}

.ast-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ast-toast.success { background: var(--ast-gruen); }
.ast-toast.error { background: var(--ast-rot); }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .ast-detail-grid {
        grid-template-columns: 1fr;
    }

    .ast-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ast-sidebar {
        transform: translateX(-100%);
    }

    .ast-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--ast-shadow-lg);
    }

    .ast-main {
        margin-left: 0;
    }

    .ast-sidebar-toggle {
        display: block;
    }

    .ast-content {
        padding: 16px;
    }

    .ast-topbar {
        padding: 12px 16px;
    }

    .ast-page-title {
        font-size: 18px;
    }

    .ast-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ast-stat-card {
        padding: 16px;
    }

    .ast-stat-number {
        font-size: 22px;
    }

    .ast-form-grid {
        grid-template-columns: 1fr;
    }

    .ast-field-grid {
        grid-template-columns: 1fr;
    }

    .ast-filter-row {
        flex-direction: column;
    }

    .ast-vote-buttons {
        flex-direction: column;
    }

    .ast-status-row {
        flex-direction: column;
    }

    .ast-vote-summary {
        width: 100%;
        justify-content: center;
    }

    .ast-ampel-overview {
        flex-direction: column;
        gap: 16px;
    }

    .ast-cap-list {
        grid-template-columns: 1fr;
    }

    .ast-notification-dropdown {
        width: calc(100vw - 40px);
        right: -60px;
    }

    .ast-table thead th,
    .ast-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ast-stats-grid {
        grid-template-columns: 1fr;
    }

    .ast-login-card {
        margin: 0 8px;
    }
}

/* ==================== PRINT ==================== */

@media print {
    .ast-sidebar,
    .ast-topbar,
    .ast-vote-buttons,
    .ast-form-actions,
    .ast-btn { display: none !important; }

    .ast-main { margin-left: 0; }
    .ast-content { padding: 0; }
}
