/**
 * Block: HC Footer
 *
 * @package HeadAndCode\Core
 */

/* ── Footer Basis ────────────────────────────────────────────────────────── */

.hc-footer {
	background-color: #17202e;
	color: rgba(255, 255, 255, 0.75);
}

.hc-footer__inner {
	display: flex;
	align-items: center;
	gap: var(--hc-space-10);
	padding-block: var(--hc-space-8);
}

/* ── Haupt-Bereich ───────────────────────────────────────────────────────── */

.hc-footer__main {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hc-footer__main .hc-footer__inner {
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--hc-space-8);
}

/* Spalten */
.hc-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--hc-space-4);
}

.hc-footer__col--logo {
	flex-shrink: 0;
}

.hc-footer__col--claim {
	flex: 1;
}

.hc-footer__col--nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--hc-space-8);
}

/* Logo */
.hc-footer__logo-link {
	display: inline-block;
	text-decoration: none;
}

.hc-footer__logo {
	height: 60px;
	width: auto;
	display: block;
	/* Logo auf dunklem Hintergrund: Helligkeit anpassen falls nötig */
	filter: brightness(0) invert(1);
}

.hc-footer__logo-fallback {
	font-size: var(--hc-font-size-lg);
	font-weight: var(--hc-font-weight-bold);
	color: var(--hc-color-white);
}

/* Claim */
.hc-footer__claim {
	font-size: var(--hc-font-size-md);
	font-weight: var(--hc-font-weight-medium);
	color: var(--hc-color-white);
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: var(--hc-space-2);
	line-height: 1.4;
}

.hc-footer__claim-bullet {
	color: var(--hc-color-accent);
	font-size: 1.2em;
	line-height: 1;
	margin-top: 2px;
	flex-shrink: 0;
}

/* Social Icons */
.hc-footer__social {
	display: flex;
	align-items: center;
	gap: var(--hc-space-3);
}

.hc-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--hc-radius-full);
	color: var(--hc-color-white);
	text-decoration: none;
	transition: border-color var(--hc-transition-fast),
	            color        var(--hc-transition-fast);
}

.hc-footer__social-link:hover {
	border-color: var(--hc-color-accent);
	color: var(--hc-color-accent);
}

.hc-footer__social-link svg {
	display: block !important;
	overflow: visible !important;
}

/* Navigation */
.hc-footer__nav {
	display: flex;
	align-items: center;
	gap: var(--hc-space-6);
	flex-wrap: wrap;
}

.hc-footer__nav-link {
	font-size: var(--hc-font-size-sm);
	font-weight: var(--hc-font-weight-medium);
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color var(--hc-transition-fast);
}

.hc-footer__nav-link:hover {
	color: var(--hc-color-white);
}

/* ── Kontakt-Zeile ───────────────────────────────────────────────────────── */

.hc-footer__contact-bar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hc-footer__contact-bar .hc-footer__inner {
	align-items: flex-start;
	gap: var(--hc-space-12);
	flex-wrap: wrap;
}

.hc-footer__contact-item {
	display: flex;
	flex-direction: column;
	gap: var(--hc-space-2);
}

.hc-footer__contact-label {
	font-size: var(--hc-font-size-sm);
	font-weight: var(--hc-font-weight-bold);
	color: var(--hc-color-white);
	letter-spacing: 0.03em;
}

.hc-footer__contact-value {
	font-size: var(--hc-font-size-sm);
	color: rgba(255, 255, 255, 0.75);
	font-style: normal;
	line-height: 1.6;
}

.hc-footer__contact-link {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: rgba(255, 255, 255, 0.75);
	transition: color var(--hc-transition-fast);
}

.hc-footer__contact-link:hover {
	color: var(--hc-color-white);
}

/* ── Copyright-Zeile ─────────────────────────────────────────────────────── */

.hc-footer__bottom .hc-footer__inner {
	justify-content: space-between;
	padding-block: var(--hc-space-5);
}

.hc-footer__copyright {
	font-size: var(--hc-font-size-sm);
	color: rgba(255, 255, 255, 0.5);
}

.hc-footer__legal {
	display: flex;
	align-items: center;
	gap: var(--hc-space-6);
}

.hc-footer__legal-link {
	font-size: var(--hc-font-size-xs);
	font-weight: var(--hc-font-weight-bold);
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color var(--hc-transition-fast);
}

.hc-footer__legal-link:hover {
	color: var(--hc-color-white);
}

/* ── Scroll-to-Top ───────────────────────────────────────────────────────── */

.hc-scroll-top {
	position: fixed;
	inset-block-end: var(--hc-space-6);
	inset-inline-end: var(--hc-space-6);
	z-index: var(--hc-z-overlay);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: var(--hc-color-accent);
	color: var(--hc-color-white);
	border: none;
	border-radius: var(--hc-radius-full);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity    var(--hc-transition-normal),
		visibility 0s linear var(--hc-transition-normal),
		transform  var(--hc-transition-normal),
		background-color var(--hc-transition-fast);
	box-shadow: var(--hc-shadow-md);
}

.hc-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition:
		opacity    var(--hc-transition-normal),
		visibility 0s linear 0s,
		transform  var(--hc-transition-normal),
		background-color var(--hc-transition-fast);
}

.hc-scroll-top:hover {
	background-color: var(--hc-color-accent-dark, #a87e2e);
}

.hc-scroll-top svg {
	display: block !important;
	overflow: visible !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.hc-footer__main .hc-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--hc-space-6);
	}

	.hc-footer__col--nav {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--hc-space-4);
	}

	.hc-footer__nav {
		gap: var(--hc-space-4);
	}

	.hc-footer__contact-bar .hc-footer__inner {
		flex-direction: column;
		gap: var(--hc-space-6);
	}

	.hc-footer__bottom .hc-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--hc-space-3);
	}
}
