/*
Theme Name: ganz-soft TK
Theme URI: https://ganz-soft.de
Description: Einheitliches Child-Theme für alle ganz-soft Produktseiten (Terminkalender, Kasse, HR, Shop, Kundenbereich).
Author: Dietrich Ganz / ganz-soft.de
Template: twentytwentyfive
Version: 1.0.0
Text Domain: ganz-soft-tk
*/

/* Site shell */
.gs-site-header {
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}
.gs-site-footer {
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	margin-top: 2rem;
}

.gs-site-footer .gs-footer-bar {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	min-height: 4rem;
}

.gs-site-footer .gs-footer-bar > .wp-block-group {
	margin: 0;
}

.gs-site-brand {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap;
}

.gs-site-footer .gs-footer-actions {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-end;
	gap: 1rem 1.25rem;
	margin-left: auto;
}

.gs-site-footer .gs-footer-actions > .wp-block-html,
.gs-site-footer .gs-footer-actions > .wp-block-html .gs-nav {
	display: flex;
	align-items: center;
	margin: 0;
}

.gs-site-footer .gs-nav__open {
	margin: 0;
	vertical-align: middle;
}

.gs-site-footer .gs-footer-credit {
	margin: 0 !important;
	padding: 0;
	align-self: center;
	color: #64748b;
	line-height: 1.4;
	white-space: nowrap;
}

.gs-site-footer .gs-footer-credit a {
	color: #1d4ed8;
	text-decoration: none;
	font-weight: 500;
}

.gs-site-footer .gs-footer-credit a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.gs-site-footer .gs-footer-bar {
		flex-direction: column;
		align-items: stretch !important;
		text-align: center;
	}
	.gs-site-brand {
		justify-content: center;
	}
	.gs-site-footer .gs-footer-actions {
		justify-content: center;
		margin-left: 0;
		width: 100%;
	}
	.gs-site-footer .gs-footer-credit {
		white-space: normal;
	}
}

.gs-site-header .wp-block-navigation,
.gs-site-footer .wp-block-navigation {
	display: none !important;
}

.gs-site-brand .wp-block-site-logo img,
.gs-site-brand .custom-logo {
	max-height: 56px;
	width: auto;
	height: auto;
	display: block;
}

.gs-site-footer .gs-site-brand .wp-block-site-logo img,
.gs-site-footer .gs-site-brand .custom-logo {
	max-height: 48px;
}

.gs-site-brand .wp-block-site-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.2;
}

.gs-site-brand .wp-block-site-title a {
	color: #0f172a;
	text-decoration: none;
}

.gs-site-brand .wp-block-site-title a:hover {
	color: #1d4ed8;
}

/* Navigation (TK-Design, Klasse gs-nav) */
.gs-nav {
	position: relative;
	z-index: 100;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.gs-nav__checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gs-nav__open {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0.55rem 1rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.gs-nav__open:hover {
	background: #3b82f6;
}

.gs-nav__backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 99998;
	cursor: pointer;
}

.gs-nav__checkbox:checked ~ .gs-nav__backdrop {
	display: block;
}

.gs-nav__panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(100vw, 380px);
	max-width: 380px;
	background: linear-gradient(165deg, #eff6ff 0%, #fffbeb 42%, #ffffff 100%);
	box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
	z-index: 99999;
	padding: 2.5rem 1.75rem 2rem;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.gs-nav__checkbox:checked ~ .gs-nav__panel {
	transform: translateX(0);
}

.gs-nav__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.75rem;
	line-height: 1;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0f172a;
}

.gs-nav__title {
	font-weight: 700;
	color: #1d4ed8;
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gs-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gs-nav__list a {
	display: block;
	color: #0f172a;
	font-size: 1.05rem;
	font-weight: 600;
	padding: 0.65rem 0.5rem;
	text-decoration: none;
	border-radius: 8px;
}

.gs-nav__list a:hover,
.gs-nav__list a.gs-nav__current {
	color: #1d4ed8;
	background: rgba(29, 78, 216, 0.06);
}

.gs-nav__group-label {
	display: block;
	font-weight: 700;
	color: #1d4ed8;
	padding: 0.7rem 0.5rem 0.25rem;
	font-size: 0.95rem;
}

.gs-nav__sublist {
	list-style: none;
	margin: 0 0 0.5rem 0.5rem;
	padding: 0.25rem 0 0.5rem 0.85rem;
	border-left: 3px solid #fbbf24;
}

.gs-nav__sublist a {
	font-size: 0.95rem;
	font-weight: 500;
	color: #475569;
}

.gs-nav__divider {
	height: 1px;
	background: #e2e8f0;
	margin: 0.75rem 0;
}
