/* Fresenius Footer — Fresenius CI accents (#00737d / #00B9BC).
   Slim type, tight cards, neutral charcoal canvas with petrol accent.
   Strong text-size reset to override Elementor body styles.
   ────────────────────────────────────────────────────────── */

.fres-unlock,
.fres-footer {
	--fres-bg:        #0e1213;
	--fres-bg-soft:   #161a1c;
	--fres-fg:        #e9eef0;
	--fres-fg-strong: #ffffff;
	--fres-muted:     #8a9398;
	--fres-muted-2:   #5e676b;
	--fres-border:    rgba(255, 255, 255, 0.07);
	--fres-border-2:  rgba(255, 255, 255, 0.04);
	--fres-card:      rgba(255, 255, 255, 0.018);
	--fres-accent:        #00B9BC;
	--fres-accent-strong: #00737d;
	--fres-accent-soft:   rgba(0, 185, 188, 0.06);
	--fres-radius-md: 8px;
	--fres-radius-lg: 14px;
	--fres-status-open:   #22c55e;
	--fres-status-closed: #f59e0b;
	--fres-container:  1200px;
	--fres-text:       0.78rem;
	--fres-text-sm:    0.72rem;
	--fres-text-xs:    0.68rem;
	--fres-font:       "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--fres-fg);
	font-family: var(--fres-font);
	box-sizing: border-box;
}
.fres-unlock *, .fres-footer * { box-sizing: border-box; }

/* ── Hard text reset (override Elementor / theme overrides) ── */
.fres-unlock,
.fres-unlock *,
.fres-footer,
.fres-footer * {
	font-size: var(--fres-text);
	line-height: 1.5;
	font-family: var(--fres-font);
}
.fres-unlock h2 { font-size: clamp( 1.15rem, 2.2vw, 1.5rem ); line-height: 1.2; }
.fres-unlock p  { font-size: 0.68rem; }
.fres-footer__legal a,
.fres-footer__lang-current,
.fres-footer__lang-menu a,
.fres-footer__copy,
.fres-footer__badge,
.fres-footer__col h4,
.fres-footer__col a,
.fres-footer__expand,
.fres-footer__hours-list,
.fres-footer__hours-list li,
.fres-footer__hours-status,
.fres-footer__social,
.fres-footer__social a { font-size: var(--fres-text-sm); line-height: 1.5; }
.fres-footer__col h4 { font-size: var(--fres-text); }
.fres-footer__col h4 small { font-size: var(--fres-text-xs); }
.fres-footer__toggle { font-size: 0.88rem; line-height: 1.5; }
.fres-footer__cta    { font-size: 0.95rem; line-height: 1.5; }

/* ── Unlock-Hero (solid background, no glow) ─────────────── */

.fres-unlock {
	background: var(--fres-bg);
	text-align: center;
	padding: 4rem 1.5rem 3.25rem;
}
.fres-unlock__logo-wrap {
	display: block;
	margin: 0 auto 2.25rem;
}
.fres-unlock__logo {
	height: 3.4rem;
	width: auto;
	max-width: 70vw;
	margin: 0 auto;
	display: block;
	object-fit: contain;
}
.fres-unlock__title {
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 0.55rem;
	color: var(--fres-fg-strong);
}
.fres-unlock__tagline {
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fres-muted);
	margin: 0;
}

/* ── Footer base ─────────────────────────────────────────── */

.fres-footer {
	background: var(--fres-bg-soft);
	border-top: 1px solid var(--fres-border);
}
.fres-footer__container {
	max-width: var(--fres-container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ── Legal strip ─────────────────────────────────────────── */

.fres-footer__legal {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.75rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--fres-border-2);
	flex-wrap: wrap;
}
.fres-footer__legal > a {
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fres-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}
.fres-footer__legal > a:hover,
.fres-footer__legal > a:focus-visible {
	color: var(--fres-accent);
	outline: none;
}

/* ── Custom language switcher (dropdown with flags) ──────── */

.fres-footer__lang {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.fres-footer__lang-current {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.65rem;
	border-radius: var(--fres-radius-md);
	border: 1px solid var(--fres-border);
	background: transparent;
	color: var(--fres-muted);
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.fres-footer__lang-current:hover,
.fres-footer__lang-current[aria-expanded="true"] {
	color: var(--fres-fg-strong);
	border-color: rgba(0, 185, 188, 0.5);
	background: var(--fres-accent-soft);
}
.fres-footer__lang-current:focus-visible {
	outline: 2px solid var(--fres-accent);
	outline-offset: 2px;
}
.fres-footer__lang-current svg:last-child {
	transition: transform 0.18s ease;
	opacity: 0.75;
}
.fres-footer__lang-current[aria-expanded="true"] svg:last-child {
	transform: rotate(180deg);
}
.fres-footer__lang-code {
	font-weight: 700;
	letter-spacing: 0.1em;
}
.fres-footer__lang-menu {
	position: absolute;
	bottom: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: #1d2326;
	border: 1px solid var(--fres-border);
	border-radius: var(--fres-radius-md);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.fres-footer__lang-menu[hidden] { display: none; }
.fres-footer__lang-menu li { margin: 0; }
.fres-footer__lang-menu a {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.4rem 0.6rem;
	color: var(--fres-fg);
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}
.fres-footer__lang-menu a:hover,
.fres-footer__lang-menu a:focus-visible {
	background: var(--fres-accent-soft);
	color: var(--fres-accent);
	outline: none;
}
.fres-footer__lang-menu li[aria-selected="true"] a {
	color: var(--fres-accent);
	font-weight: 600;
}

/* ── Toggle buttons ──────────────────────────────────────── */

.fres-footer__menus {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--fres-border-2);
}
.fres-footer__toggles {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.3rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--fres-border);
	border-radius: 9999px;
	margin: 0 auto;
	width: auto;
}
.fres-footer__menus { text-align: center; }
.fres-footer__grid  { text-align: left; }
/* Pill toggle — visually consistent with .tmk-toggle-btn (tory messekalender) */
.fres-footer__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	border-radius: 9999px;
	border: none;
	background: transparent;
	color: var(--fres-muted);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	font-family: var(--fres-font);
}
.fres-footer__toggle:hover {
	color: var(--fres-fg-strong);
	background: rgba(255, 255, 255, 0.05);
}
.fres-footer__toggle:focus-visible {
	outline: 2px solid var(--fres-accent);
	outline-offset: 2px;
}
.fres-footer__toggle[aria-expanded="true"] {
	background: var(--fres-accent);
	color: #fff;
	box-shadow: 0 6px 16px -8px rgba(0, 185, 188, 0.6);
}
.fres-footer__toggle[aria-expanded="true"]:hover { background: var(--fres-accent-strong); }
.fres-footer__toggle svg { flex-shrink: 0; opacity: 0.9; }
.fres-footer__toggle[aria-expanded="true"] svg { opacity: 1; }

.fres-footer__toggle--hours .fres-footer__status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fres-status-open);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	animation: fres-pulse 2.4s ease-in-out infinite;
}
.fres-footer__toggle--hours[data-state="closed"] .fres-footer__status-dot {
	background: var(--fres-status-closed);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
@keyframes fres-pulse {
	0%, 100% { transform: scale(1);    opacity: 1;    }
	50%      { transform: scale(1.18); opacity: 0.85; }
}

/* ── Reveal grids (centered when few cols) ───────────────── */

.fres-footer__grid {
	display: none;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: var(--fres-radius-lg);
	background: var(--fres-card);
	border: 1px solid var(--fres-border-2);
}
.fres-footer__grid:not([hidden]) { display: grid; }

/* Center the grid when there are fewer than 5 columns */
.fres-footer__grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(180px, 240px)); }
.fres-footer__grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(180px, 220px)); }
.fres-footer__grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(180px, 220px)); }

/* Company tab needs more breathing room between the contact-col and the link groups */
.fres-footer__grid--company {
	gap: 1.25rem 3rem;
	grid-template-columns: minmax(220px, 280px) minmax(180px, 220px) minmax(180px, 220px);
}
@media (max-width: 720px) {
	.fres-footer__grid--company { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 960px) {
	.fres-footer__grid,
	.fres-footer__grid[data-cols] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.fres-footer__grid,
	.fres-footer__grid[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; gap: 1rem; }
}
@media (max-width: 400px) {
	.fres-footer__grid,
	.fres-footer__grid[data-cols] { grid-template-columns: 1fr; }
}

.fres-footer__col h4 {
	font-family: inherit;
	font-weight: 600;
	color: var(--fres-accent);
	margin: 0 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
	line-height: 1.4;
}
.fres-footer__col h4 small {
	font-weight: 500;
	color: var(--fres-muted-2);
	letter-spacing: 0;
	text-transform: none;
	margin-left: auto;
}
.fres-footer__col h4 svg:not(.fres-footer__flag-icon) { stroke: var(--fres-accent); flex-shrink: 0; }
.fres-footer__col a {
	display: block;
	color: var(--fres-muted);
	padding: 0.18rem 0;
	text-decoration: none;
	transition: color 0.15s ease;
}
.fres-footer__col a:hover,
.fres-footer__col a:focus-visible {
	color: var(--fres-fg-strong);
	outline: none;
}

.fres-footer__expand {
	background: none;
	border: 0;
	padding: 0;
	margin-top: 0.25rem;
	color: var(--fres-accent);
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-weight: 500;
}
.fres-footer__expand:hover { color: var(--fres-fg-strong); text-decoration: underline; }

.fres-footer__flag-icon {
	width: 16px;
	height: 12px;
	border-radius: 1px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
}

.fres-footer__address { color: var(--fres-muted); }

/* Country tree: country link (bold) + indented cities */
.fres-footer__country-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fres-footer__country-tree > li { margin: 0 0 0.55rem; }
.fres-footer__country-tree > li:last-child { margin-bottom: 0; }
.fres-footer__country-link {
	display: block;
	font-weight: 600;
	color: var(--fres-fg-strong);
	text-decoration: none;
	padding: 0.18rem 0;
	transition: color 0.15s ease;
}
a.fres-footer__country-link:hover,
a.fres-footer__country-link:focus-visible {
	color: var(--fres-accent);
	outline: none;
}
.fres-footer__city-list {
	list-style: none;
	margin: 0.1rem 0 0;
	padding: 0 0 0 0.85rem;
	border-left: 1px solid var(--fres-border-2);
}
.fres-footer__city-list li { margin: 0; }
.fres-footer__city-list a {
	display: block;
	color: var(--fres-muted);
	font-size: var(--fres-text-sm);
	padding: 0.14rem 0;
	text-decoration: none;
	transition: color 0.15s ease;
}
.fres-footer__city-list a:hover,
.fres-footer__city-list a:focus-visible { color: var(--fres-fg-strong); outline: none; }

/* ── Hours tab: 2-col contact/hours layout ──────────────── */
.fres-footer__contact-col,
.fres-footer__hours-col {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.fres-footer__contact-logo-wrap {
	display: block;
	line-height: 0;
	margin-bottom: 0.25rem;
}
.fres-footer__contact-logo {
	height: 2.4rem;
	width: auto;
	display: block;
	object-fit: contain;
}
.fres-footer__company-name {
	margin: 0;
	font-weight: 700;
	font-size: var(--fres-text);
	color: var(--fres-fg-strong);
	line-height: 1.35;
}
.fres-footer__contact-address {
	margin: 0;
	font-style: normal;
	color: var(--fres-muted);
	line-height: 1.6;
}
.fres-footer__contact-list {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.fres-footer__contact-list li { margin: 0; }
.fres-footer__contact-list a,
.fres-footer__contact-list .fres-footer__contact-static {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--fres-fg);
	text-decoration: none;
	transition: color 0.15s ease;
}
.fres-footer__contact-list a:hover,
.fres-footer__contact-list a:focus-visible {
	color: var(--fres-accent);
	outline: none;
}
.fres-footer__contact-list svg {
	color: var(--fres-accent);
	flex-shrink: 0;
}
.fres-footer__contact-static { color: var(--fres-muted); cursor: default; }
/* Fax row: text muted, but icon stays in brand accent like the others */
.fres-footer__contact-static svg { color: var(--fres-accent); }

/* Service-Tab CTA row (full-width below regions) */
.fres-footer__cta-row {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-top: 0.5rem;
}
/* CTA — visually consistent with .tmk-btn (tory messekalender) */
.fres-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.7rem 1.1rem;
	border-radius: 9999px;
	background: var(--fres-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0;
	font-size: 0.95rem;
	border: none;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fres-footer__cta:hover,
.fres-footer__cta:focus-visible {
	background: var(--fres-accent-strong);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -10px rgba(0, 185, 188, 0.55);
	text-decoration: none;
	outline: none;
}
.fres-footer__cta:active { transform: translateY(0); }
.fres-footer__cta svg { color: #fff; flex-shrink: 0; opacity: 0.95; }
.fres-footer__cta svg:last-child { transition: transform 0.2s ease; }
.fres-footer__cta:hover svg:last-child { transform: translateX(3px); }

/* Hours panel — clean uniform two-column table.
   Reset all theme/browser borders, then apply only horizontal row dividers in a single grey. */
.fres-footer__hours-table {
	width: 100%;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0;
	margin: 0 0 0.75rem;
	background: transparent !important;
	font-variant-numeric: tabular-nums;
}
.fres-footer__hours-table tr   { background: transparent !important; }
.fres-footer__hours-table th,
.fres-footer__hours-table td {
	padding: 0.5rem 0;
	vertical-align: middle;
	color: var(--fres-fg);
	font-weight: 400;
	font-size: var(--fres-text-sm);
	font-style: normal;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.fres-footer__hours-table tr:last-child th,
.fres-footer__hours-table tr:last-child td { border-bottom: 0 !important; }
.fres-footer__hours-table th { text-align: left;  width: 6rem; }
.fres-footer__hours-table td { text-align: right; }

/* ── Hours grid: contact + hours columns wider apart ───── */
.fres-footer__grid--hours[data-cols="2"] {
	grid-template-columns: minmax(220px, 280px) minmax(220px, 280px);
	gap: 1.25rem 3.5rem;
}
@media (max-width: 720px) {
	.fres-footer__grid--hours[data-cols="2"] {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
.fres-footer__hours-status {
	margin: 0;
	color: var(--fres-accent);
	font-weight: 500;
}
.fres-footer__hours-status[data-state="closed"] { color: var(--fres-status-closed); }

/* ── Social media row ────────────────────────────────────── */

.fres-footer__social {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.85rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--fres-border-2);
	flex-wrap: wrap;
}
.fres-footer__social-label {
	color: var(--fres-muted);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
	margin-right: 0.5rem;
}
.fres-footer__social-link {
	--brand: var(--fres-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--fres-border);
	color: var(--brand);
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.fres-footer__social-link[aria-label="Instagram"] { --brand: #E4405F; }
.fres-footer__social-link[aria-label="Linkedin"]  { --brand: #0A66C2; }
.fres-footer__social-link[aria-label="Tiktok"]    { --brand: #25F4EE; }
.fres-footer__social-link[aria-label="Youtube"]   { --brand: #FF0000; }

.fres-footer__social-link:hover,
.fres-footer__social-link:focus-visible {
	color: #fff;
	background: var(--brand);
	border-color: var(--brand);
	transform: translateY(-1px);
	outline: none;
}

/* ── Bottom strip ────────────────────────────────────────── */

.fres-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 0;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.fres-footer__copy {
	color: var(--fres-muted);
}
.fres-footer__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--fres-muted);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ── A11y / motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.fres-footer__toggle--hours .fres-footer__status-dot { animation: none; }
	.fres-footer__toggle, .fres-footer__legal a, .fres-footer__col a, .fres-footer__social-link, .fres-footer__cta { transition: none; }
}
@media (prefers-contrast: more) {
	.fres-unlock, .fres-footer { --fres-muted: #c8d3e0; --fres-border: rgba(255, 255, 255, 0.18); }
}

/* Defensive: hide any leaked Elementor footer locations */
body :where(.elementor-location-footer) { display: none !important; }

