
:root {
--agora-farbe-gruen: rgb(0,123,60);
--agora-farbe-braun: rgb(59,21,14);
--agora-farbe-halbtransparent: rgba(255,255,255,.5);
--agora-farbe-gruen-halbtransparent: rgba(0,123,60,.5);
--agora-farbe-braun-halbtransparent: rgba(59,21,14,.5);
--agora-farbe-gruen-fasttransparent: rgba(100,223,160,.3);
--agora-farbe-braun-fasttransparent: rgba(159,121,114,.3);
--agora-farbe-rot-fasttransparent: rgba(225,51,44,.6);
--agora-farbe-chat-text: #222;
}

/* Agora Frontend Styles */
.agora-mitglied-profil {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--agora-farbe-gruen);
}

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

.agora-profil-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.agora-profil-table td:first-child {
    width: 30%;
    font-weight: bold;
    color: #555;
}

.agora-edit-link {
    display: inline-block;
    background: var(--agora-farbe-gruen);
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.agora-edit-link:hover {
    background: #var(--agora-farbe-braun);
    color: white !important;
}

/* Erweiterte Form-Styles */
.agora-select-all {
    margin-bottom: 10px;
    padding: 8px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 3px solid var(--agora-farbe-gruen);
}

.agora-select-all label {
    font-weight: normal;
    color: var(--agora-farbe-gruen);
    cursor: pointer;
}

.agora-taxonomy-group.mobile-view {
    flex-direction: column;
}

.agora-taxonomy-group.mobile-view .agora-taxonomy-item {
    margin-right: 0;
    margin-bottom: 10px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
}

input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220,53,69,0.3) !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    .agora-profil-table td {
        display: block;
        width: 100%;
    }
    
    .agora-profil-table td:first-child {
        width: 100%;
        border-bottom: none;
        padding-bottom: 4px;
    }
    
    .agora-profil-table td:last-child {
        padding-top: 4px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }
}

/* Animation für Erfolgs-Nachrichten */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.agora-message {
	//background: #d4edda;
	background: var(--agora-farbe-halbtransparent);
}

.agora-message a {
	font-weight: bold;
	border-bottom: 2px solid transparent;
}

.agora-message a:hover {
	border-bottom: 2px solid var(--ast-global-color-1);
}

.agora-message.success {
    animation: slideInDown 0.3s ease-out;
}

/* Loading-State */
.agora-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.agora-submit-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mitglied-Bearbeiten: */

.agora-edit-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agora-form-row {
    margin-bottom: 20px;
}

.agora-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.agora-form-row input[type="text"],
.agora-form-row input[type="tel"],
.agora-form-row input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.agora-form-row input[type="text"]:focus,
.agora-form-row input[type="tel"]:focus,
.agora-form-row input[type="email"]:focus {
    border-color: var(--agora-farbe-gruen);
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.agora-taxonomy-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.agora-taxonomy-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.agora-taxonomy-item input[type="checkbox"] {
    margin-right: 5px;
}

.agora-submit-btn {
    background: var(--agora-farbe-gruen);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.agora-submit-btn:hover {
    background: #var(--agora-farbe-braun);
}

.agora-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.agora-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.agora-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.agora-readonly {
    background: #f5f5f5;
    color: #666;
}

.agora-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.agora-form-section:last-child {
    border-bottom: none;
}

.agora-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--agora-farbe-gruen);
}

@media (max-width: 768px) {
    .agora-edit-form {
        margin: 10px;
        padding: 15px;
    }
    
    .agora-taxonomy-group {
        flex-direction: column;
        gap: 5px;
    }
}

/* Registrieren: */

.agora-register-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agora-form-row {
    margin-bottom: 20px;
}

.agora-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.agora-form-row input[type="text"],
.agora-form-row input[type="email"],
.agora-form-row input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.agora-form-row input[type="text"]:focus,
.agora-form-row input[type="email"]:focus,
.agora-form-row input[type="tel"]:focus {
    border-color: var(--agora-farbe-gruen);
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.agora-submit-btn {
    background: var(--agora-farbe-gruen);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.agora-submit-btn:hover {
    background: #var(--agora-farbe-braun);
}

.agora-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.agora-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.agora-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.agora-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.agora-form-section:last-child {
    border-bottom: none;
}

.agora-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--agora-farbe-gruen);
}

.required {
    color: #dc3545;
}

/* Inserate: */

#agora_inserat_beschreibung {
	width: 100%;
}

#agora_inserat_erstellung {
	width: 100%;
}

#agora_inserat_beginn {
	width: 100%;
}

#agora_inserat_ende {
	width: 100%;
}

#agora_inserat_inserent {
	width: 100%;
}

/* Inserat anlegen: */

.agora-inserat-anlegen {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.agora-bilderverwaltung {
	margin-top: 30px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.bild-upload {
	margin-bottom: 20px;
}

.image-drop-area {
	border: 2px dashed #ccc;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	margin-bottom: 10px;
	transition: all 0.3s ease;
}

.image-drop-area.drag-over {
	border-color: var(--agora-farbe-gruen);
	background-color: #f0f8ff;
}

.bilder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.bild-box {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	text-align: center;
	position: relative;
}

.bild-box img {
	max-width: 100%;
	height: auto;
	margin-bottom: 10px;
}

.bild-box .button {
	margin: 5px;
}

.bild-box.zugewiesen {
	border-color: var(--agora-farbe-gruen);
	background-color: #f0f8ff;
}

.bild-info {
	font-size: 12px;
	color: #666;
	margin-bottom: 10px;
}

.button.button-small {
	padding: 5px 10px;
	font-size: 12px;
}

/* Inserat suchen: */

.agora-inserat-suche {
	max-width: 1000px;
	margin: 20px 0;
}
.search-row {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}
                                                                                                                
.search-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}
.search-field input,
.search-field select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: rgba(255,255,255,.5);
}
.search-field select option {
	background-color: rgba(255,255,255,.5) !important;
}
.search-field select option:hover {
	background-color: rgba(255,255,255,.7);
}
.suchergebnisse {
	margin-top: 10px;
}
.suchergebnisse h3 {
	margin-bottom: 5px;
}
@media (max-width: 768px) {
	.search-row {
		flex-direction: column;
		gap: 10px;
	}
}

/* Inserat Liste: */

.agora-inserat-liste {
	max-width: 1200px;
	margin: 20px 0;
}
.filter-row {
	display: flex;
	gap: 15px;
	align-items: end;
	margin-bottom: 20px;
}
.filter-field {
	flex: 1;
}
.filter-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}
.filter-field input,
.filter-field select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.inserat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin: 10px 0;
}
.pagination {
	text-align: center;
	margin-top: 30px;
}
@media (max-width: 768px) {
	.filter-row {
		flex-direction: column;
		gap: 10px;
	}
	.inserat-grid {
		grid-template-columns: 1fr;
	}
}/* Inserat Teaser manuell: */

.inserat-teaser {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	padding: 20px;
	align-content: flex-start;
}
.inserat-teaser-bilder {
	//width: 200px;
	width: 100%;
	//object-fit: fill;
	//overflow: hidden;
	//aspect-ratio: 1 / 0.75;
	aspect-ratio: 1 / 1;
}
.inserat-teaser-texte {
	padding-bottom: 10px;
	height: 100%;
}
.inserat-teaser-texte h3 {
	font-size: 1.3rem;
}

.inserat-teaser-texte .button,
.inserat-teaser-texte:last-child {
    align-self: flex-end;
    margin-top: auto;
	display: inline-block;
}

.inserat-teaser-bilder .agora-bild-box-bild-box {
	width: 100%;
	//object-fit: fill;
	//overflow: hidden;
	//aspect-ratio: 1 / 0.75;
	aspect-ratio: 1 / 1;
	background: #fff;
}

.agora-bild-bild {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inserat Teaser: */

.inserat-teaser {
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.2);
	transition: transform 0.2s ease;
}
.inserat-teaser:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	background-color: rgba(255, 255, 255, 0.4);
}
.teaser-image {
	height: 200px;
	overflow: hidden;
}
.teaser-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.teaser-content {
	padding: 15px;
}
.teaser-content h3 {
	margin: 0 0 10px 0;
	font-size: 1.2em;
}
.teaser-content h3 a {
	color: #333;
	text-decoration: none;
}
.teaser-content h3 a:hover {
	color: var(--agora-farbe-gruen);
}
.teaser-meta {
	margin-bottom: 10px;
}
.teaser-meta .bereich {
	background-color: #f0f0f0;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.75em;
}
.teaser-excerpt {
	margin-bottom: 15px;
	color: #666;
	line-height: 1.4;
}
.teaser-details {
	margin-bottom: 25px;
	font-size: 0.9em;
}
.teaser-details .detail {
	margin-bottom: 5px;
}
.teaser-details strong {
	color: #333;
}
.teaser-details .button {
//	margin-bottom: 15px;
//	font-size: 0.9em;
}

/* Bilderverwaltung: */

#bilderverwaltung { margin-top: 1.5rem; }
.bilder-list { display:flex; gap:10px; flex-wrap:wrap; }
.bildverwaltung { width:400px; display:flex; flex-direction:column; align-items:center; border:1px solid #ddd; padding:8px; box-sizing:border-box; }
.bildverwaltung img { max-width:100%; height:auto; display:block; margin-bottom:8px; }
.bildverwaltung .meta { width:100%; text-align:left; font-size:0.9rem; }
.bildverwaltung .meta .hint { color:#666; font-size:0.85rem; }
.success { color: green; }
.error { color: red; }
.hinweis { color:#666; font-style:italic; }

/* Shortcode Inserat Bereiche: */

#agora-kategorien {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.agora-kategorie-link {
	flex: 1 1 calc(25% - 10px); /* 4 Spalten mit Gap */
	min-width: 150px;
	height: 50px;
	//border: 2px solid rgba(255, 255, 255, 0.3);
	border: 2px solid transparent;
	//background-color: rgba(128, 128, 128, 0.3);
	background-color: rgba(0, 123, 60, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.agora-kategorie-link a {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
}
.agora-kategorie-link:hover {
	//border: 2px solid rgba(0, 123, 60, 0.8);
	//background-color: rgba(128, 128, 128, 0.9);
	background-color: rgba(255, 255, 255, 0.3);
}
.kategorie-text {
	padding: 5px;
	word-break: break-word;
}

/* Agora Chat Eingabe: */

.agora-chat-eingabe {
	max-width: 600px;
	margin: 20px 0;
}
.form-group {
	margin-bottom: 15px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.success {
	color: #155724;
	background-color: #d4edda;
	padding: 10px;
	margin: 10px 0;
	border-radius: 4px;
}
.error {
	color: #721c24;
	background-color: #f8d7da;
	padding: 10px;
	margin: 10px 0;
	border-radius: 4px;
}

/* inserate-anzeigen chat */

.agora-inserat-anzeigen-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.agora-inserat-details {
    flex: 1;
    min-width: 300px;
}

.agora-chats-box {
    flex: 1;
    min-width: 600px;
    min-width: 50%;
}

.agora-chat-box {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.agora-chat-toggle {
    background-color: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agora-chat-toggle a {
    color: var(--agora-farbe-gruen);
    text-decoration: none;
}

.agora-chat-toggle a:hover {
    text-decoration: underline;
}

.agora-chat-content {
    padding: 15px;
}

.agora-chat-nachrichten-box {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 5px;
    border: 1px solid #eee;
    padding: 3px 10px;
    border-radius: 3px;
}

.agora-chat-nachricht-box {
    margin-bottom: 3px;
    padding-bottom: 3px;
//    border-bottom: 1px solid #eee;
}

.agora-chat-nachricht-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.agora-chat-sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.agora-chat-inhalt {
    padding-left: 10px;
}

.agora-no-chat, .agora-no-chats {
    color: #666;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.mitglied-werden {
	display: inline-block;
	padding: 15px 35px;
	border-radius: 3px;
    background-color: rgb(59, 21, 14);
	color: #fff;
}
.mitglied-werden:hover {
    background-color: rgb(0,123,60);
	color: #fff;
}

/* --- Generell manuell: */

.button {
  white-space: nowrap;
  display: inline-block;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Login manuell: */

#aniel-login-form button {
	margin-top: 20px;
	margin-right: 20px;
}

/* --- Linklist manuell: */

.agora_inserat_linklist_anlegen h3 {
	margin: 13px 20px;
}

.agora_inserat_linklist h3 {
	margin: 13px 0;
}

.agora_inserat_linklist ul,
.agora_inserat_linkliste {
	margin: 0px;
	list-style: none;
}

.agora_inserat_linklist li {
	padding: 3px 8px;
	margin: 3px 0;
	background-color: rgba(255,255,255,.5);
}

.agora_inserat_linklist li a {
	font-weight: bold;
}

/* ---: */

.agora-inserat-suche select {
	padding-top: 6px;
}

.agora-inserat-suche input {
	padding-top: 6px;
}

.suchergebnisse .pagination {
	grid-column: 1 / -1;
	font-size: 1.5rem;
	background-color: rgba(255,255,255,.5);
	//background: var(--agora-farbe-halbtransparent);
}

.suchergebnisse .pagination * {
	margin-left: 5px;
	margin-right: 5px;
}

.inserat-suche-form {
	width: 100%;
	margin: 0;
}
.inserat-suche-form *,
.inserat-suche-form .search-row * {
	display: inline-block;
}

/* ---: */

.agora-chat-toggle-box {
	padding: 3px 15px;
}
/* ---: */

/* Agora Chat Layout */
.agora-inserat-anzeigen-container { display: flex; flex-wrap: wrap; gap: 20px; }
.agora-inserat-details { flex: 1; min-width: 300px; }
.agora-chats-box { flex: 1; min-width: 50%; }
.agora-chats-container { display: flex; flex-direction: column; gap: 15px; }

/* Chat-Box */
.agora-chat-box { display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; }
.agora-chat-toggle-box { display: flex; justify-content: space-between; align-items: center; background-color: #f5f5f5; padding: 10px 15px; }
.agora-chat-toggle-box a { color: #0073aa; text-decoration: none; }
.agora-chat-toggle-box a:hover { text-decoration: underline; }
.agora-chat-content { display: none; padding: 15px; flex-direction: column; }
.agora-chat-content:has(.agora-chat-nachrichten-box) { display: flex; } /* Content wenn Nachrichten */

/* Nachrichten-Box */
.agora-chat-nachrichten-box { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding: 10px; border: 1px solid #eee; border-radius: 3px; margin-bottom: 15px; }

/* Chat-Nachricht */
.agora-chat-nachricht-box { display: flex; flex-direction: column; max-width: 80%; }
.nachricht-von-box { font-size: 0.8em; color: #666; margin-bottom: 4px; background: var(--agora-farbe-halbtransparent); }
.nachricht-box { display: flex; flex-direction: column; }
.agora-chat-inhalt { background-color: #f1f1f1; padding: 3px 5px; border-radius: 5px; }
.chat-nachricht-selbst { align-self: flex-end; align-items: flex-end; padding: 0 3px; }
//.chat-nachricht-selbst .agora-chat-inhalt { background-color: #0073aa; color: white; }
.chat-nachricht-anderer { align-self: flex-start; align-items: flex-start; padding: 0 3px; }
.chat-nachricht-selbst .agora-chat-inhalt { background: var(--agora-farbe-gruen-fasttransparent); color: var(--agora-farbe-chat-text); }
.chat-nachricht-anderer .agora-chat-inhalt { background: var(--agora-farbe-braun-fasttransparent); color: var(--agora-farbe-chat-text) }

/* Senden-Box */
.agora-chat-senden-box { display: flex; flex-direction: column; }
.agora-chat-form textarea { width: 100%; margin-bottom: 10px; }
.agora-chat-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.agora-chat-buttons button { padding: 5px 15px; }

/* Allgemeine Meldungen */
.agora-no-chats, .agora-no-chat { color: #666; font-style: italic; text-align: center; padding: 20px; }

/* Chat-Partner-Liste */
.agora-chat-partner-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}
.agora-chat-partner-meldungen-box {
    background-color: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    font-style: italic;
    color: #666;
    border-bottom: 1px solid #eee;
}
.agora-chat-partner-liste {
    display: flex;
    flex-direction: column;
    max-height: 150px;
    overflow-y: auto;
}
.agora-chat-partner-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}
.agora-chat-partner-item:last-child {
    border-bottom: none;
}
.agora-chat-partner-item:hover {
    background-color: #f0f0f0;
}

/* ---: */

.agora_menu_anzahl_ungelesene {
	background-color: #ff0000;
	background-color: var(--agora-farbe-rot-fasttransparent);
	color: #ffffff;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 0.8em;
	margin-left: 5px;
}

.agora_liste_anzahl_ungelesene {
	background-color: #ff0000;
	background-color: var(--agora-farbe-rot-fasttransparent);
	color: #ffffff;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 1.1em;
	margin-left: 5px;
}

/* ---: */

.test {
	color: transparent;
	font-size: 8px;
}
.test:hover {
	color: black;
}

/* ---: */

/* ---: */

/* ---: */
