/**
 * Datei: footer.css
 * Modul: Theme Footer
 * Projekt: MietPortalo
 * Autor: MARKS MEDIA
 *
 * Zweck:
 * - Einheitliches Layout für 4-Spalten-Footer + rechtliche Zeile
 * - Farben über CSS-Variablen (vom Admin gesetzt)
 * - Dark-Mode-Unterstützung integriert
 */

/* ============================================================
   0. Variablen (werden im Header & Footer Tab definiert)
============================================================ */
:root {
	--footer-bg-top: #16344A;
	--footer-bg-bottom: #142532;
	--footer-text: #ffffff;
	--footer-link: #cccccc;
	--footer-link-hover: #ffffff;
	--footer-width: 1200px;
	--footer-gap: 40px;

	--block-border: #2a2a2a;
	--color-1: #006699;
	--color-2: #cc3333;
}

/* ============================================================
   1. Grundstruktur
============================================================ */
#site-footer {
	color: var(--footer-text);
	font-size: 15px;
	line-height: 1.6;
	width: 100%;
	margin-top: 60px;
}

/* =======================
   1a. Oberer Bereich (Widgets)
======================= */
.footer-top {
	background: linear-gradient(
		to bottom,
		var(--footer-bg-top),
		var(--footer-bg-bottom)
	);
	padding: 50px 20px;
}

.footer-inner {
	max-width: var(--footer-width);
	margin: 0 auto;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--footer-gap);
}

.footer-widget {
	color: var(--footer-text);
}

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

.footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widget ul li {
	margin-bottom: 8px;
}

.footer-widget ul li a {
	color: var(--footer-link);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-widget ul li a:hover {
	color: var(--footer-link-hover);
}

/* =======================
   1b. Unterer Bereich (Copyright + Menü)
======================= */
.footer-bottom {
	background: var(--footer-bg-bottom);
	padding: 18px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom-inner {
	max-width: var(--footer-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.footer-left {
	font-size: 14px;
	color: var(--footer-link);
}

.footer-left a {
	color: var(--footer-link);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-left a:hover {
	color: var(--footer-link-hover);
}

/* =======================
   2. Footer-Menü (Rechtliches)
======================= */
.footer-right .footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-right .footer-menu li {
	margin: 0;
}

.footer-right .footer-menu a {
	color: var(--footer-link);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.footer-right .footer-menu a:hover {
	color: var(--footer-link-hover);
}

/* =======================
   3. Dark Mode
======================= */
@media (prefers-color-scheme: dark) {
	:root {
		--footer-bg-top: #1e1e1e;
		--footer-bg-bottom: #141414;
		--footer-text: #e0e0e0;
		--footer-link: #bfbfbf;
		--footer-link-hover: #ffffff;
		--block-border: #333333;
	}

	.footer-top {
		background: linear-gradient(
			to bottom,
			var(--footer-bg-top),
			var(--footer-bg-bottom)
		);
	}

	.footer-bottom {
		background: var(--footer-bg-bottom);
		border-top: 1px solid var(--block-border);
	}

	.footer-widget ul li a:hover,
	.footer-right .footer-menu a:hover,
	.footer-left a:hover {
		color: var(--color-1);
	}
}

/* =======================
   4. Responsive
======================= */
@media (max-width: 900px) {
	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 600px) {
	.footer-columns {
		grid-template-columns: 1fr;
	}
	.footer-bottom-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}
