/**
 * css/simple-cookie-notice.css
 * Vereinfachter Cookie-Hinweis für technisch notwendige Cookies
 * Für Flohmarkt-Karte.de
 */

/* Cookie-Hinweis für nur technisch notwendige Cookies */
.cookie-notice {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(44, 62, 80, 0.98);
	color: white;
	padding: 1rem 2rem;
	z-index: 10000;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	border-top: 3px solid var(--primary-color, #e74c3c);
	transform: translateY(100%);
	transition: transform 0.4s ease;
	font-family: inherit;
}

.cookie-notice.show {
	transform: translateY(0);
}

.cookie-notice-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
}

.cookie-notice-text h3 {
	margin: 0 0 0.5rem 0;
	color: var(--primary-color, #e74c3c);
	font-size: 1.1rem;
	font-weight: 600;
}

.cookie-notice-text p {
	margin: 0 0 0.75rem 0;
	line-height: 1.5;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
}

.cookie-notice-links {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.cookie-notice-links a {
	color: #3498db;
	text-decoration: none;
	font-size: 0.9rem;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.cookie-notice-links a:hover,
.cookie-notice-links a:focus {
	border-bottom-color: #3498db;
}

.cookie-notice-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Cookie Button Styles */
.cookie-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9rem;
	white-space: nowrap;
	font-family: inherit;
}

.cookie-btn:focus {
	outline: 2px solid white;
	outline-offset: 2px;
}

.cookie-btn-primary {
	background: #27ae60;
	color: white;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
	background: #229954;
	transform: translateY(-1px);
}

.cookie-btn-info {
	background: #3498db;
	color: white;
}

.cookie-btn-info:hover,
.cookie-btn-info:focus {
	background: #2980b9;
}

/* Cookie-Info Modal */
.cookie-info-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 10001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.cookie-info-overlay.show {
	display: flex;
}

.cookie-info-modal {
	background: white;
	border-radius: 12px;
	max-width: 500px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: var(--text-primary, #2c3e50);
	margin: auto;
}

.cookie-info-header {
	padding: 1.5rem 1.5rem 1rem;
	border-bottom: 1px solid var(--border-light, #ecf0f1);
}

.cookie-info-header h2 {
	margin: 0 0 0.5rem 0;
	color: var(--text-primary, #2c3e50);
	font-size: 1.3rem;
}

.cookie-info-header p {
	margin: 0;
	color: var(--text-secondary, #7f8c8d);
	line-height: 1.4;
	font-size: 0.9rem;
}

.cookie-info-body {
	padding: 1rem 1.5rem;
}

/* Cookie Category Styles */
.cookie-category {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--border-light, #ecf0f1);
	border-radius: 6px;
	background: #f8f9fa;
}

.cookie-category:last-child {
	margin-bottom: 0;
}

.cookie-category h3 {
	margin: 0 0 0.75rem 0;
	color: var(--text-primary, #2c3e50);
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.cookie-category p {
	margin: 0 0 0.75rem 0;
	color: var(--text-secondary, #7f8c8d);
	font-size: 0.85rem;
	line-height: 1.4;
}

.cookie-category ul {
	margin: 0 0 0.75rem 0;
	padding-left: 1.2rem;
	color: var(--text-secondary, #7f8c8d);
}

.cookie-category li {
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	line-height: 1.3;
}

/* Status Badge */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.6rem;
	border-radius: 15px;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.status-badge.active {
	background: rgba(39, 174, 96, 0.15);
	color: #27ae60;
}

.status-badge.inactive {
	background: rgba(149, 165, 166, 0.15);
	color: #7f8c8d;
}

.cookie-info-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--border-light, #ecf0f1);
	display: flex;
	gap: 1rem;
	justify-content: center;
}

/* Cookie-Info Button (permanent) */
.cookie-info-btn {
	position: fixed;
	bottom: 20px;
	left: 20px;
	background: var(--text-primary, #2c3e50);
	color: white;
	border: none;
	padding: 0.75rem;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	z-index: 9999;
	display: none;
	font-size: 1.2rem;
	font-family: inherit;
}

.cookie-info-btn.show {
	display: block;
}

.cookie-info-btn:hover,
.cookie-info-btn:focus {
	background: #34495e;
	transform: scale(1.1);
}

.cookie-info-btn:focus {
	outline: 2px solid white;
	outline-offset: 2px;
}

/* Footer Link für Cookie-Info */
.cookie-info-link {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.cookie-info-link:hover,
.cookie-info-link:focus {
	color: white;
	text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cookie-notice {
		padding: 1rem;
	}

	.cookie-notice-content {
		grid-template-columns: 1fr;
		gap: 1rem;
		text-align: center;
	}

	.cookie-notice-actions {
		justify-content: center;
	}

	.cookie-btn {
		flex: 1;
		min-width: 120px;
	}

	.cookie-info-overlay {
		padding: 0.5rem;
		align-items: flex-start;
		padding-top: 2rem;
	}

	.cookie-info-modal {
		max-height: 90vh;
		max-width: none;
		margin: 0;
	}

	.cookie-info-footer {
		flex-direction: column;
	}

	.cookie-info-btn {
		bottom: 15px;
		left: 15px;
		width: 45px;
		height: 45px;
		font-size: 1rem;
	}

	.cookie-category h3 {
		font-size: 0.95rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 480px) {
	.cookie-notice {
		padding: 0.75rem;
	}

	.cookie-notice-text h3 {
		font-size: 1rem;
	}

	.cookie-notice-text p {
		font-size: 0.9rem;
	}

	.cookie-btn {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}

	.cookie-info-overlay {
		padding: 0.5rem;
		padding-top: 1rem;
	}

	.cookie-info-header,
	.cookie-info-body,
	.cookie-info-footer {
		padding: 0.75rem 1rem;
	}

	.cookie-info-header h2 {
		font-size: 1.1rem;
	}

	.cookie-category {
		padding: 0.75rem;
		margin-bottom: 1rem;
	}

	.cookie-category h3 {
		font-size: 0.9rem;
	}

	.cookie-category p,
	.cookie-category li {
		font-size: 0.8rem;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.cookie-notice {
		border-top-width: 5px;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

	.cookie-notice,
	.cookie-btn,
	.cookie-info-btn {
		transition: none;
		animation: none;
	}

	.cookie-btn:hover,
	.cookie-btn-primary:hover {
		transform: none;
	}
}