/* ============================================
   EVENTPLANER - EINHEITLICHES DESIGN-SYSTEM
   Basis: Friends-Seite als Vorbild
   ============================================ */

:root {
    --primary: #5f7f7a;
    --primary-dark: #4a655f;
    --primary-light: #e8f0ee;
	--success: #7a9e8a;
	--success-light: #eef5f0;
	--warning: #ff9800;
	--warning-light: #fff3e0;
	--owner: #5f7f7a;
    --owner-light: #e8f0ee; 
    --danger: #dc3545;
    --danger-light: #fdeaea;
    --gray: #e9ecef;
    --gray-light: #f8f9fa;
    --gray-dark: #6c757d;
    --text: #1a1a2e;
    --text-light: #666;
    --text-muted: #888;
    --border: #ddd;
    --border-light: #eee;
    --white: #ffffff;
    
    --border-radius-card: 16px;
    --border-radius-button: 40px;
    --border-radius-small: 12px;
    --border-radius-tag: 20px;
    
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(95,127,122,0.2);
    --shadow-fixed: 0 8px 25px rgba(0,0,0,0.15);
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #e2e6ea;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    padding: 20px 12px 80px 12px;
    overflow-x: hidden;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: var(--text);
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

/* ========== KERN-KLASSE: ALLE KARTEN ========== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-card);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card:last-child {
    margin-bottom: 0;
}

/* Spezialfall: Hervorgehobene Karte */
.card-highlight {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}

/* Event-Karte mit festem Termin */
.event-card-has-date {
    border-left: 4px solid var(--success);
}

/* Vergangenes Event */
.past-event {
    opacity: 0.75;
}

/* ========== KARTEN-HEADER (für aufklappbare Bereiche) ========== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px;
    transition: background 0.2s;
}

.card-header:hover {
    background: var(--gray-light);
}

.card-header h3 {
    margin: 0;
}

.card-header .arrow {
    font-size: 18px;
    transition: 0.2s;
}

/* ========== KARTEN-CONTENT (für aufklappbare Bereiche) ========== */
.card-content {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

/* ========== CONTAINER FÜR MEHRERE KARTEN ========== */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* ========== SEKTIONS-ÜBERSCHRIFTEN ========== */
.section-header {
    margin: 20px 0 10px 0;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
}

/* ========== EVENT CARD SPEZIFISCHE ELEMENTE ========== */
.event-header {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.event-bild-small {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-small);
    object-fit: cover;
    flex-shrink: 0;
}

.event-bild-placeholder {
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-small);
    flex-shrink: 0;
    overflow: hidden;
}

.event-bild-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.event-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-tag);
    font-size: 10px;
    font-weight: 600;
}

.status-planung {
    background: var(--warning-light);
    color: var(--warning);
}

.status-termin_fest {
    background: var(--success-light);
    color: var(--success);
}

.status-vergangen {
    background: var(--gray);
    color: var(--gray-dark);
}

.event-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--border-radius-small);
    font-size: 10px;
}

.badge-gruppe {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-privat {
    background: var(--gray);
    color: var(--text-light);
}

.badge-owner {
    background: var(--owner);
    color: white;
}

.event-fixed-date-orange {
    background: linear-gradient(135deg, var(--warning) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--border-radius-tag);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    font-size: 12px;
    color: var(--text-light);
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.progress-bar-container {
    background: var(--gray);
    border-radius: var(--border-radius-tag);
    height: 6px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--border-radius-tag);
}

.progress-bar.green {
    background: var(--success);
}

.progress-bar.yellow {
    background: var(--warning);
}

.progress-bar.red {
    background: var(--danger);
}

.progress-text {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* ========== FILTER ========== */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: var(--border-radius-button);
    background: var(--gray);
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn.reset-btn {
    background: transparent;
    border: 1.5px solid var(--danger);
    color: var(--danger);
}

.filter-btn.reset-btn:hover {
    background: var(--danger);
    color: white;
}

.filter-search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
}

.filter-search-row .search-form {
    flex: 2;
    min-width: 200px;
}

.filter-search-row .sort-select {
    flex: 1;
    min-width: 160px;
}

.filter-badge {
    display: inline-block;
    background: var(--gray);
    border: 1px solid var(--gray-dark);
    padding: 4px 12px;
    border-radius: var(--border-radius-tag);
    font-size: 12px;
    margin-left: 8px;
    color: var(--text);
    font-weight: 500;
}

.filter-reset {
    display: inline-block;
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: var(--border-radius-button);
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.filter-reset:hover {
    background: var(--danger);
    color: white;
}

/* ========== SUCHFORMULAR ========== */
.search-form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.search-form input {
    flex: 1;
    padding: 8px 14px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
    font-size: 13px;
    background: var(--white);
}

.search-form button {
    padding: 8px 16px;
    margin: 0;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--primary);
    color: white;
}

.sort-select {
    padding: 8px 14px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 40px;
}

.btn:hover, button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-success {
    color: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: var(--success);
    color: white;
}

.btn-secondary {
    color: var(--gray-dark);
    border-color: var(--gray-dark);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    color: white;
}

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

.event-btn-zum-event {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.event-btn-zum-event:hover {
    background: var(--primary);
    color: white;
}

.event-btn-delete {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: var(--border-radius-button);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.event-btn-delete:hover {
    background: var(--danger);
    color: white;
}

.btn-delete-small {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: var(--border-radius-button);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-delete-small:hover {
    background: var(--danger);
    color: white;
}

/* ========== FORMULARE ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-button);
    font-size: 14px;
    background: var(--white);
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== FREUNDE-SPEZIFISCHE ELEMENTE ========== */
.anfrage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.anfrage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anfrage-actions {
    display: flex;
    gap: 8px;
}

.category-select {
    padding: 6px 12px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    cursor: pointer;
}

.category-select:hover {
    border-color: var(--primary);
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--border-radius-tag);
    font-size: 10px;
    margin-left: 8px;
    border: 1px solid;
}

.role-badge.user {
    border-color: var(--success);
    color: var(--success);
}

.role-badge.manager {
    border-color: var(--warning);
    color: var(--warning);
}

.role-badge.admin {
    border-color: var(--danger);
    color: var(--danger);
}

.role-selector {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.role-option {
    flex: 1;
    padding: 6px 12px;
    border-radius: var(--border-radius-button);
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.role-option.user {
    color: var(--success);
    border-color: var(--success);
}

.role-option.user.active {
    background: var(--success);
    color: white;
}

.role-option.manager {
    color: var(--warning);
    border-color: var(--warning);
}

.role-option.manager.active {
    background: var(--warning);
    color: white;
}

.role-option.admin {
    color: var(--danger);
    border-color: var(--danger);
}

.role-option.admin.active {
    background: var(--danger);
    color: white;
}

.role-option:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.rollen-content {
    display: none;
    margin-top: 8px;
}

.login-code {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 11px;
    color: #888;
}

/* ========== GRUPPEN ========== */
.mitglied-row {
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
    padding: 16px;
}

.mitglied-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mitglied-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.rechte-badge {
    display: inline-block;
    background: var(--gray);
    padding: 4px 10px;
    border-radius: var(--border-radius-tag);
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.admin-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-tag);
    font-size: 11px;
    margin-right: 6px;
    display: inline-block;
}

.owner-badge {
    background: var(--owner);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-tag);
    font-size: 11px;
    margin-right: 6px;
    display: inline-block;
}

.btn-remove-member {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-button);
    font-size: 12px;
    text-decoration: none;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #ef9a9a;
}

.btn-remove-member:hover {
    background: var(--danger);
    color: white;
}

.btn-leave-group {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-button);
    font-size: 12px;
    text-decoration: none;
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #b8cfcc;
}

.btn-leave-group:hover {
    background: var(--warning);
    color: white;
}

.einladung-form {
    margin-top: 15px;
    padding: 12px;
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
}

.rechte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
}

.rechte-panel {
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.rechte-panel.visible {
    display: block;
}

.panel-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

/* ========== IDEEPOOL ========== */
.idea-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.idea-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.idea-description {
    background: var(--gray-light);
    padding: 12px;
    border-radius: var(--border-radius-small);
    margin: 10px 0;
}

.idea-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    align-items: center;
}

.category-badge {
    background: var(--gray);
    padding: 3px 10px;
    border-radius: var(--border-radius-tag);
}

.favorite-badge {
    background: var(--warning);
    color: white;
    padding: 2px 8px;
    border-radius: var(--border-radius-tag);
    font-size: 10px;
}

/* Ideenpool Filter und List-Ansicht */
.list-view {
    margin-top: 10px;
}

.list-category {
    margin-bottom: 15px;
    background: white;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.list-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--gray-light);
    cursor: pointer;
}

.list-category-name {
    font-weight: 600;
    font-size: 16px;
}

.list-category-count {
    font-size: 12px;
    color: var(--text-muted);
}

.list-category-arrow {
    font-size: 12px;
    color: var(--text-light);
}

.list-category-content {
    padding: 5px 0;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 8px;
}

.list-item:hover {
    background: var(--gray-light);
}

.list-item-title {
    flex: 1;
    font-size: 14px;
}

.list-item-author {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 5px;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.list-favorite-btn, .list-edit-btn, .list-delete-btn {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--border-radius-button);
    text-decoration: none;
}

.list-favorite-btn {
    color: var(--warning);
}

.list-favorite-btn:hover {
    background: var(--warning-light);
}

.list-edit-btn {
    color: var(--primary);
}

.list-edit-btn:hover {
    background: var(--primary-light);
}

.list-delete-btn {
    color: var(--danger);
}

.list-delete-btn:hover {
    background: var(--danger-light);
}

.toggle-description-btn {
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toggle-description-btn:hover {
    background: var(--primary);
    color: white;
}

/* ========== VIEW TOGGLE ========== */
.view-toggle {
    display: inline-flex;
    gap: 5px;
    background: #f0f0f0;
    border-radius: var(--border-radius-button);
    padding: 3px;
}

.view-btn {
    padding: 5px 12px;
    border-radius: var(--border-radius-button);
    text-decoration: none;
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

/* ========== WILLKOMMENSBEREICH ========== */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}

.welcome-line1 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.welcome-line2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.welcome-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.role-badge-small {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-tag);
    font-size: 11px;
    font-weight: 500;
}

.role-admin {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #ef9a9a;
}

.role-manager {
    background: var(--warning-light);
    color: #ff9800;
    border: 1px solid #ffcc80;
}

.role-user {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a5d6a7;
}

/* ========== SUCCESS & EMPTY ========== */
.success {
    background: var(--success-light);
    color: #155724;
    padding: 12px 16px;
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius-card);
    color: var(--text-muted);
}

.hinweis-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    padding: 8px;
    background: var(--gray);
    border-radius: var(--border-radius-small);
}

.new-event-button {
    margin-bottom: 20px;
}

/* ========== BESCHREIBUNG ========== */
.beschreibung {
    background: var(--white);
    padding: 16px;
    border-radius: var(--border-radius-card);
    margin: 0 0 16px 0;
    word-break: break-word;
    box-shadow: var(--shadow);
}

/* ========== CHAT ========== */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    margin-top: 10px;
    padding: 10px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
}

.chat-message.own {
    background: var(--primary-light);
}

.chat-message:not(.own) {
    background: var(--gray);
}

/* ========== TERMIN BUTTONS ========== */
.termin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.termin-button {
    background: var(--gray);
    color: var(--text);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.termin-button.selected {
    background: var(--success);
    color: white;
}

/* ========== MITBRING-ITEMS ========== */
.mitbring-item {
    background: var(--gray-light);
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== TEILNEHMER ========== */
.teilnehmer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.teilnehmer span,
.teilnehmer-badge {
    background: var(--gray);
    padding: 6px 14px;
    border-radius: var(--border-radius-button);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========== TOGGLE BUTTONS ========== */
.toggle-button {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-button);
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    min-width: 80px;
    transition: all 0.2s;
}

.toggle-button.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.toggle-button.inactive {
    background: var(--gray);
    color: var(--text-light);
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
    flex-wrap: wrap;
}

/* Für Desktop: Button rechtsbündig, aber weniger Abstand */
@media (min-width: 768px) {
    .toggle-item {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .toggle-item .listen-button {
        margin-left: auto;
    }
}

/* Für Mobile: untereinander */
@media (max-width: 767px) {
    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toggle-item .listen-button {
        width: 100%;
        text-align: center;
    }
}

/* Listen-Button (für Essen/Trinken/Sonstiges Toggle) */
.listen-button {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-button);
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.2s;
    color: var(--text-light);
}

.listen-button.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.listen-button.inactive {
    background: var(--gray);
    color: var(--text-light);
    border-color: var(--border);
}

.listen-button.inactive:hover {
    background: var(--gray-dark);
    color: white;
    border-color: var(--gray-dark);
}

.listen-button.active:hover {
    background: var(--success);
    color: white;
    opacity: 0.9;
}

.final-termin-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius-tag);
    padding: 30px 20px;
    text-align: center;
    margin: 15px 0;
    box-shadow: var(--shadow);
}

.final-datum-gross {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    word-break: break-word;
}

/* ========== PROFILBILDER ========== */
.profilbild-klein {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

.profilbild-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
}

.profilbild-medium {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
}

.profilbild-placeholder-klein {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--gray);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ========== QUILL EDITOR ========== */
.ql-toolbar {
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0 !important;
}

.ql-container {
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small) !important;
    font-size: 14px !important;
}

/* ========== MENÜ (DESKTOP) ========== */
.desktop-menu {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.desktop-menu-container {
    max-width: 80%;
    min-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 5px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.desktop-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    border-radius: var(--border-radius-button);
    transition: all 0.2s;
}

.desktop-nav-item:hover {
    background: var(--gray);
}

.desktop-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.desktop-nav-item.active img {
    opacity: 1;
}

.desktop-nav-item img {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.desktop-nav-item:hover img {
    opacity: 1;
}

.desktop-nav-item.logout {
    color: var(--danger);
}

.desktop-nav-item.logout:hover {
    background: var(--danger);
    color: white;
}

/* ========== MOBILE MENÜ ========== */
@media (max-width: 767px) {
    .desktop-menu {
        display: none !important;
    }
    
    .main-content {
        padding-bottom: 80px;
        padding-top: 100px !important;
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 12px;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        gap: 2px;
        border: 2.5px solid rgba(95, 127, 122, 0.3);
    }
    
    .bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 9px;
        padding: 6px 4px;
        border-radius: var(--border-radius-button);
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .bottom-nav .nav-item img {
        width: 28px;
        height: 28px;
        opacity: 0.5;
        transition: opacity 0.2s ease;
    }
    
    .bottom-nav .nav-item span:last-child {
        font-size: 9px;
        font-weight: 500;
    }
    
    .bottom-nav .nav-item.active {
        color: var(--primary);
        background: rgba(95, 127, 122, 0.12);
    }
    
    .bottom-nav .nav-item.active img {
        opacity: 1;
    }
    
    .bottom-nav .nav-item:hover {
        background: rgba(95, 127, 122, 0.08);
    }
    
    .top-menu {
        position: fixed;
        top: 60px;
        right: 30px;
        z-index: 1001;
    }
    
    .menu-toggle {
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--border-radius-button);
        padding: 8px 14px;
        cursor: pointer;
        font-size: 20px;
        box-shadow: var(--shadow);
    }
    
    .menu-toggle:hover {
        background: var(--gray);
    }
    
    .menu-dropdown {
        display: none;
        position: absolute;
        top: 50px;
        right: 0;
        background: white;
        border-radius: var(--border-radius-small);
        box-shadow: var(--shadow-fixed);
        min-width: 180px;
        overflow: hidden;
        z-index: 1002;
    }
    
    .menu-dropdown a {
        display: block;
        padding: 12px 16px;
        text-decoration: none;
        color: var(--text);
        border-bottom: 1px solid var(--border-light);
        font-size: 14px;
    }
    
    .menu-dropdown a:hover {
        background: var(--gray-light);
    }
    
    .menu-dropdown a:last-child {
        border-bottom: none;
    }
    
    .menu-dropdown.show {
        display: block;
    }
}

@media (min-width: 768px) {
    .bottom-nav, .top-menu {
        display: none !important;
    }
    
    .main-content {
        max-width: 80%;
        min-width: 700px;
        margin: 0 auto;
        padding: 20px;
    }
}

/* ========== MOBILE OPTIMIERUNGEN ========== */
@media (max-width: 767px) {
    .filter-search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-search-row .search-form,
    .filter-search-row .sort-select {
        width: 100%;
        min-width: auto;
    }
    
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-row {
        display: contents;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-bild-small,
    .event-bild-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .welcome-name {
        font-size: 24px;
    }
    
    .welcome-line2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .anfrage-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .anfrage-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .role-selector {
        flex-direction: column;
    }
    
    .final-datum-gross {
        font-size: 20px;
    }
    
    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toggle-button,
    .listen-button {
        width: 100%;
        text-align: center;
    }
    
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-buttons {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .header-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* ========== PWA STANDALONE ========== */
@media (display-mode: standalone) {
    .main-content {
        padding-top: 70px !important;
    }
}

/* ========== LOGIN ========== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 40px;
}

.logo {
    text-align: center;
    font-size: 64px;
    margin-bottom: 16px;
}

.app-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--shadow-fixed);
}

.install-card {
    background: #f0f7ff;
    border-radius: var(--border-radius-tag);
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

@media (display-mode: standalone) {
    .install-card {
        display: none !important;
    }
}

/* ========== KATEGORIEN ADMIN ========== */
.vorschlag-card {
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kategorie-row {
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vorschlag-name {
    font-weight: 700;
    font-size: 16px;
}

.vorschlag-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.vorschlag-actions {
    display: flex;
    gap: 8px;
}

.kategorie-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.kategorie-stats {
    background: var(--gray);
    padding: 2px 8px;
    border-radius: var(--border-radius-tag);
    font-size: 11px;
}

.kategorie-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dashboard - genau wie Friends */
.desktop-actions {
    display: flex;
    gap: 8px;
}

.mobile-actions {
    display: none;
    margin-top: 12px;
    gap: 8px;
}

@media (max-width: 767px) {
    .desktop-actions {
        display: none;
    }
    .mobile-actions {
        display: flex;
    }
}

/* Teilnehmer Kreis-Badge */
.teilnehmer-badge-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== EDIT_EVENT.PHP SPEZIFISCHE STYLES ========== */

/* Kopfbereich mit Buttons */
.event-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Großes Event-Bild */
.event-bild-container {
    text-align: center;
    margin: 10px 0;
}

.event-bild-large {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 20px;
    display: inline-block;
    object-fit: contain;
}

/* Bearbeiten-Formular */
.edit-form {
    background: var(--white);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.edit-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.edit-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Inhalts-Abstimmung */
.vote-item {
    background: var(--gray-light);
    padding: 12px;
    border-radius: var(--border-radius-small);
    margin-bottom: 10px;
}

.vote-item strong {
    font-size: 16px;
}

.vote-stats {
    margin-top: 5px;
}

.vote-stats span {
    font-size: 13px;
    color: var(--text-light);
}

.voter-list {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.your-vote-badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}

/* Admin Abstimmung */
.admin-vote-box {
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--border-radius-small);
    margin-top: 15px;
}

.admin-vote-box h4 {
    margin-bottom: 12px;
}

.admin-vote-box p {
    margin-bottom: 10px;
}

.admin-vote-option {
    display: block;
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius-small);
    margin-bottom: 8px;
    cursor: pointer;
}

.admin-vote-option:hover {
    background: var(--gray-light);
}

.vote-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-description {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    margin-left: 22px;
}

/* Gewinner Auswahl */
.winner-option {
    display: block;
    background: var(--gray-light);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}

.winner-option:hover {
    background: var(--gray);
}

.winner-stats {
    float: right;
}

.winner-description {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    margin-left: 22px;
}

/* ========== EVENT_TEILNEHMER_BLOCK.PHP ========== */

/* Teilnehmer-Container */
.teilnehmer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.teilnehmer-item {
    background: var(--gray);
    padding: 5px 12px;
    border-radius: var(--border-radius-button);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.owner-badge-small {
    background: transparent;
    border: 1.5px solid var(--owner);
    color: var(--owner);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}

/* Rechte anzeigen Badge */
.rechte-view-badge {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    cursor: pointer;
}

.rechte-view-badge:hover {
    background: var(--primary-light);
}

/* Entfernen Link klein */
.remove-link-small {
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
}

.remove-link-small:hover {
    color: var(--danger);
    opacity: 0.7;
}

/* Einladungs-Formular */
.invite-form {
    margin-top: 15px;
}

.invite-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    background: var(--white);
}

/* Fehlende Gruppenmitglieder */
.fehlende-mitglieder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.fehlendes-mitglied-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
}

.btn-small {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

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

/* ========== EVENT_CHAT_BLOCK.PHP ========== */

/* Smiley Panel - geschlossen standardmäßig */
.smiley-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-small);
    padding: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

/* Smiley Buttons */
.smiley-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    transition: transform 0.1s;
    flex-shrink: 0;
    width: auto;
    min-width: 36px;
    text-align: center;
}

.smiley-btn:hover {
    transform: scale(1.2);
    background: var(--gray-light);
    border-radius: 8px;
}

/* Chat Formular */
.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.smiley-toggle-btn {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-button);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 20px;
}

.smiley-toggle-btn:hover {
    background: var(--gray-dark);
}

.chat-textarea {
    flex: 1;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    resize: vertical;
}

/* Chat Container */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    margin-top: 10px;
    padding: 10px;
}

/* Chat Nachrichten */
.chat-message {
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    margin-bottom: 10px;
}

.chat-message.own {
    background: var(--primary-light);
}

.chat-message.other {
    background: var(--gray);
}

.chat-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-name-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-time {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-text {
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-delete {
    text-align: right;
    margin-top: 5px;
}

.chat-delete-link {
    color: var(--danger);
    font-size: 11px;
    text-decoration: none;
}

.chat-delete-link:hover {
    text-decoration: underline;
}

.chat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

/* Für Desktop: Breite des Panels begrenzen */
@media (min-width: 768px) {
    .smiley-panel {
        max-width: 100%;
        width: 100%;
    }
}

/* ========== EVENT_MITBRINGEN_BLOCK.PHP ========== */

/* Mitbringen Section */
.mitbring-section {
    margin-top: 16px;
}

.mitbring-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

/* Formular */
.mitbring-form {
    margin-bottom: 12px;
}

.mitbring-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mitbring-input {
    flex: 2;
    min-width: 120px;
}

.mitbring-menge {
    flex: 1;
    min-width: 80px;
}

.mitbring-add-btn {
    flex: 0;
    white-space: nowrap;
}

/* Liste der Items */
.mitbring-list {
    margin-left: 16px;
}

.mitbring-item {
    background: var(--gray-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mitbring-delete {
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
}

.mitbring-delete:hover {
    opacity: 0.7;
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .mitbring-form-row {
        flex-direction: column;
    }
    
    .mitbring-input,
    .mitbring-menge,
    .mitbring-add-btn {
        width: 100%;
        flex: auto;
    }
    
    .mitbring-add-btn {
        white-space: normal;
    }
}

/* ========== EVENT_TERMIN_BLOCK.PHP ========== */

/* Termin Formular */
.termin-form {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
}

.termin-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.termin-date {
    flex: 1;
}

.termin-form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.termin-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.termin-uhrzeit {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.termin-uhrzeit input {
    flex: 1;
    min-width: 120px;
}

.termin-time {
    padding: 8px 12px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
}

.termin-submit-btn {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    padding: 8px 16px;
    cursor: pointer;
}

.termin-submit-btn:hover {
    background: var(--primary);
    color: white;
}

/* Hinweis */
.termin-hinweis {
    font-size: 13px;
    margin: 8px 0;
    color: var(--text-light);
}

.termin-empty {
    color: var(--text-muted);
}

/* Termin Buttons */
.termin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.termin-delete-link {
    color: #dc3545;
    margin-left: 6px;
    text-decoration: none;
}

.termin-button.selected .termin-delete-link {
    color: rgba(255,255,255,0.7);
}

/* Ergebnisse */
.termin-ergebnisse {
    margin-top: 16px;
}

.ergebnisse-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.ergebnis-item {
    background: var(--gray-light);
    border-radius: var(--border-radius-small);
    padding: 12px;
    border: 1px solid var(--border-light);
}

.ergebnis-item-top {
    background: var(--success-light);
    border: 1px solid #a5d6a7;
}

.ergebnis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.ergebnis-datum {
    font-weight: 500;
}

.ergebnis-datum-top {
    color: var(--success);
}

.ergebnis-stimmzahl {
    font-size: 13px;
    color: var(--text-light);
}

.favorit-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    margin-left: 8px;
}

.ergebnis-stimmen {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.stimme-badge {
    background: var(--gray);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.stimme-badge-top {
    background: #c8e6c9;
}

.ergebnis-keine-stimmen {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

/* Final Termin Formular */
.final-termin-form {
    margin-top: 20px;
}

.final-termin-form h4 {
    margin-bottom: 12px;
}

.final-termin-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-button);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    background: var(--white);
}

.final-termin-btn {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-button);
    padding: 10px;
    cursor: pointer;
}

.final-termin-btn:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .termin-form-row {
        flex-direction: column;
    }
    
    .termin-date {
        width: 100%;
    }
    
    .termin-uhrzeit {
        flex-direction: column;
        width: 100%;
    }
    
    .ergebnis-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile Optimierung für Datums- und Uhrzeit-Felder */
@media (max-width: 767px) {
    .termin-form-row {
        flex-direction: column;
    }
    
    .termin-date {
        width: 100%;
        min-width: auto;
    }
    
    .termin-uhrzeit {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .termin-uhrzeit input {
        flex: 1;
        min-width: 0;
        width: auto;
    }
    
    .mitbring-form-row {
        flex-direction: column;
    }
    
    .mitbring-input,
    .mitbring-menge {
        width: 100%;
        min-width: auto;
    }
}

/* ========== LOGIN ========== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 40px;
}

.logo {
    text-align: center;
    margin-bottom: 16px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.app-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--shadow-fixed);
}

.login-card .btn-block {
    width: 100%;
    margin-top: 8px;
}

.login-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.login-hint br {
    display: none;
}

@media (max-width: 480px) {
    .login-hint br {
        display: block;
    }
}

/* ========== INSTALLATIONS-ANLEITUNG ========== */
.install-card {
    background: var(--primary-light);
    border-radius: var(--border-radius-tag);
    padding: 24px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

.install-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.install-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.install-platform {
    flex: 1;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 16px;
    box-shadow: var(--shadow);
}

.platform-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text);
}

.platform-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.platform-steps li {
    margin-bottom: 6px;
}

.platform-hint {
    margin-top: 10px;
}

.install-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Desktop Ansicht */
.desktop-instruction {
    display: none;
}

.qr-hint {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

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

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gray);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 8px;
}

/* Mobile Ansicht */
.mobile-instruction {
    display: block;
}

@media (min-width: 768px) {
    .mobile-instruction {
        display: none;
    }
    .desktop-instruction {
        display: block;
    }
}

@media (display-mode: standalone) {
    .install-card {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .install-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .install-platform {
        min-width: auto;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding-top: 130px !important;
    }
    
    .welcome-header {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }
}